[PHP-WIN] Re: COM on remote machine

2004-04-24 Thread Jason Barnett
M.Staiger wrote: Hello NG, Imagine that you have one machine running iis with php and want to call a COM-Server (e.g. Word) on a remote machine.Would this be possible? How would it look like, if this is the call for the local machine : $word = new COM("word.application"); Thanks, Marc I haven't p

[PHP-WIN] Re: function parser

2004-04-24 Thread Jason Barnett
John Yu wrote: Hi guys If I want to input a function (for example x = 2y + 5) and then have it stored in a database, so next time when I input the values for x and y, I would like php to retrieve the function and compute it. I know how to store and retrieve, anyone got any ideas about writing a

[PHP-WIN] Re: Q on fopen (URL )

2004-05-13 Thread Jason Barnett
What I get back is this... Unable to find wrapper "https" - did you forget to enable it when you configured PHP? You'll need to look at the openSSL for Windows. Someone at PHP's site said they openSSL has a bug in it, you should try using this to support https: http://ftp.proventum.net

[PHP-WIN] Re: $_ENV displaying admin password

2004-05-13 Thread Jason Barnett
Steve Douville wrote: Values for $AS_ADMIN_PASSWORD which is stored in $_ENV is displayed from phpinfo(). What is this a password to and can I turn it off? TIA, Steve It's from the operating system. I don't know exactly what it's a password for, but you can probably find out by going to: start-

[PHP-WIN] Re: I've found the cause of the error but I cant fix it.

2004-05-13 Thread Jason Barnett
Alejandro césar garrammone wrote: Hi all, The problem is the GET and the POST method. I've create a simple form and I pass my name on it, on the other hand, on the file referenced in the form, I put an echo with the variable, and it doesn't print it. (I use GET, on the link it shows it, but the

Re: [PHP-WIN] Problems Configuring.

2004-05-13 Thread Jason Barnett
Well it sounds as if your server is set up ok with support for MySQL. Have you tried to login as the MySQL user using the command prompt (just to be sure that you have the right permissions)? Also, please tell us the error message(s) that you receive when trying to do mysql_connect. -- PHP Win

[PHP-WIN] Re: Windows speed issue

2004-05-13 Thread Jason Barnett
Andrew Staples wrote: I'm fairly new to php, hoping someone can help. I have a webpage that displays records from a table. The problem is that viewing the page on via any browser other than a browser directly on the server gives me a timeout Out of curiosity, what is your time limit? It shouldn

[PHP-WIN] Re: post TO sql routine

2004-05-12 Thread Jason Barnett
George, I haven't done this myself but you should be able to accomplish this with several preg_replace() statements. Just match from the wildcard characters you want to use and match until you find a whitespace character. http://www.php.net/preg_replace -- PHP Windows Mailing List (http://www

[PHP-WIN] Re: Problems Configuring.

2004-05-12 Thread Jason Barnett
Alejandro césar garrammone wrote: Hi all, I've a problem configuring my php on a Windows XP OS. I do all the manual says...the Apache Server has service start and it seems it is working fine...but when the php try to connect to a mysql databases it's do nothing. I'm glad to hear you read the manu

[PHP-WIN] Re: I a list of PHP 5 reserved words please!

2004-05-12 Thread Jason Barnett
Sonia, you will not have to rewrite all sections of code that use $this. However, when you try to *assign* to the variable $this then you run into problems (i.e. don't try to tell this object to change into another object). Just out of curiosity, why did you assign values directly to $this?

[PHP-WIN] Re: Steps to setup PEAR

2004-04-25 Thread Jason Barnett
I thought PEAR's website had a manual for installation? Well in any case if you have PHP 4 (I think 4.3.2+) then you should have a PEAR directory already. In it should be go-pear, try giving that a whirl (there's also a batch file to run it on the command line if you prefer). If that doesn't

[PHP-WIN] Re: modifying a substring

2004-04-26 Thread Jason Barnett
John Yu wrote: Hi guys I want to do some fancy syntax highlighting so I added to my input text. Is there a way to take the entire input text, but only take the substring between those tags, do something to the substring and put it back into the original text? Thanks in advance John PHP

[PHP-WIN] Re: Re PEAR

2004-04-26 Thread Jason Barnett
Sudar wrote: Hai Janson Thanks for responding. The problem with me is that, right now I don't have access to the server. I have just got a virtual directory in which I have to upload my files and execute. And recently I PEAR files could be put under your document root, you don't *have* to have a

[PHP-WIN] Re: PHP and Authentication

2004-04-26 Thread Jason Barnett
Kc2lto - Andrew Ragone wrote: Hello, one of the servers I am working on is being switched from UNIX to Windows. There is nothing I can do about this but I am wondering how to get the former USER_AUTH and such variables to work with IIS through a popup login window. I noticed that it still works wi

[PHP-WIN] Re: most latest file

2004-04-26 Thread Jason Barnett
Harpreet wrote: Actually I have a backups folder that gets once a day backups of the database automaticcaly. I want to be able to know the name fo the the latest file to do the restore. The name of the files have the time stamp and plus file has a time last mdified date attached to it. How can I k

Re: [PHP-WIN] modifying a substring

2004-04-26 Thread Jason Barnett
William Candillon wrote: Use xml_parse_into_struct () : I was going to suggest preg_replace, but I kind of like xml_parse_into_struct(). But, won't they have a problem if there's no root tags wrapping the entire string? To show the code out the : ", $fp)== false) { ++$i $fp = fread($string

[PHP-WIN] Re: Muting Errors

2004-04-27 Thread Jason Barnett
Matthew Huggins wrote: Hey all, I happened to catch on an ambiguous page describing one of the PHP functions that you can "mute" errors from functions by using the "at" (@) character immediately before the function name. (e.g.: @objConnection = @mysql_connect(...);) I can't find any documentation

Re: [PHP-WIN] Re: most latest file

2004-04-27 Thread Jason Barnett
Harpreet wrote: I am using the below code and get the error Warning: fileatime() [function.fileatime]: Stat failed for abc.txt (errno=2 - No such file or directory) $dir='c:\pathname\temp'; $time='1'; $handle = opendir($dir); while (false !== ($file = readdir($handle))) { echo date("m-d-y H:i:s",

[PHP-WIN] Re: Automated Login

2004-04-28 Thread Jason Barnett
Ron Herhuth wrote: I am trying to build an automated dashboard sort of thing that goes and checks if several of my clients sites are functioning and reporting back the findings. I have two types of URLs that I'm attmepting to check. 1) Typical static URLs example: http://www.yahoo.com 2) I would

[PHP-WIN] Re: problem with web pages and php

2004-04-28 Thread Jason Barnett
Mike Ryan wrote: I have downloaded mysql-4.0.18-win, php-4.3.6, webcalendar and apache2 webserver I am retrieving files from my server so I know the webserver is correct but when I try to access the day.php file all I am getting is the code to show up on the screen. I have tried to add to the

[PHP-WIN] Re: Run batch files using php

2004-04-28 Thread Jason Barnett
Harpreet wrote: I wrote a batch file using php . Can I run this batch file using php with the system or some other command. Please help Sure, you can call php from the command line and pass arguments to it (like the name of a php script to run). Or did you mean run a batch file from inside a php

[PHP-WIN] Re: How do you get the image function to work?

2004-04-29 Thread Jason Barnett
Daniel Anderson wrote: Hi, can anyone tell me how I can get the Image Create function for PHP to work properly? I have viewed the English manual at www.php.net and the comments posted don't really help to get this thing working, the GD Image Library says it is not for PHP. Can anyone help? Any

[PHP-WIN] Re: Internal Server Error

2004-04-29 Thread Jason Barnett
Raheel Hussain wrote: I m trying to configure the php 4.3.6 on windows 2K I did every step witten in the installation instructions but when i go to run the test.php page with < ? phpinfo(); ?> witten in it then it was first giving an error of You should try to use php tags for php code: "th

[PHP-WIN] Running PHP as another user

2004-04-29 Thread Jason Barnett
It seems that several people have run into a problem where PHP did not have permission to access certain folders / files in Windows. I have two solutions that I have tried on WinXP, if others could verify if this works on other Windows platforms this would be helpful. Solution #1: Use the fu

[PHP-WIN] Running PHP scripts as a different user

2004-04-29 Thread Jason Barnett
It seems that several people have run into a problem where PHP did not have permission to access certain folders / files in Windows. I have two solutions that I have tried on WinXP, if others could verify if this works on other Windows platforms this would be helpful. Solution #1: Use the fu

Re: [PHP-WIN] Running PHP as another user

2004-04-29 Thread Jason Barnett
's permissions, etc.?) -Original Message- From: Jason Barnett To: [EMAIL PROTECTED] Sent: 2004-04-29 19:03 Subject: [PHP-WIN] Running PHP as another user It seems that several people have run into a problem where PHP did not have permission to access certain folders / files in Windows

[PHP-WIN] Re: Running PHP scripts as a different user

2004-05-04 Thread Jason Barnett
De Greef SéBastien wrote: why don't you try runas in the exec() function ? runas requires you to enter the password credentials after you've executed the command. I'm not aware of how to pass information like that while PHP is trying to use exec(), it just hangs waiting for input that never com

[PHP-WIN] Re: Serialization

2004-05-04 Thread Jason Barnett
Ron: You need to use stripslashes() when passing a serialized string via HTTP requests. error_reporting(E_ALL); if (isset($_POST['serialArray'])) { $stripped = stripslashes($_POST['serialArray']); echo ""; // Works $unserialized = unserialize($stripped); print_r($unserialized); } else

Re: [PHP-WIN] Re: Running PHP scripts as a different user

2004-05-04 Thread Jason Barnett
). I think Windows only saves the credentials for one cmd session (and exec starts a new session). That's just a guess, if anyone knows for sure I'd appreciate it. Jason -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: HTTP Header Viewer... Do I need regexps?

2004-04-28 Thread Jason Barnett
Leif Gregory wrote: Hello everyone, I've been putzing with this for about a week on and off now. I've googled like crazy and tried to figure out the regexps, but I can't just get it. What I'm doing is taking some code I found to show me the HTTP headers from a remote server and making it

[PHP-WIN] Re: Ampersand before function name

2004-05-25 Thread Jason Barnett
Ross Honniball wrote: Just curious about what the apmersand does in this context: function & funcname ($parm) {} This means the function is supposed to return a reference by default instead of a value. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP-WIN] Re: tgz files

2004-05-25 Thread Jason Barnett
I've found an incredibly useful compression utility for windows called 7-zip. It handles zip, tar/gzip, bzip, and a specialized 7-zip utility that can compress even more (by using a larger library). I don't use the 7-zip compression itself all that much, but the utility itself is a nice (and

Re: [PHP-WIN] Output Control

2004-05-27 Thread Jason Barnett
When PHP is used to serve pages it won't output anything until it is completely finished with execution. If you're trying to show 10 numbers with a one second delay you'd probably need to use refresh tags and a hidden field (or sessions) to loop back to the same page with each "second". I.e.

Re: [PHP-WIN] Output Control

2004-05-27 Thread Jason Barnett
OK, that's news to me. Could you help explain this to the class? And yes, I've put in some effort trying to understand this already :) Every time I execute a script (a la Apache) I don't get any output until execution finishes. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP-WIN] Output Control

2004-05-27 Thread Jason Barnett
Wow, new tools for me to play with! I'm going to have to try this some more later. I've only done a little bit of work with output buffering and, quite frankly, I didn't even realize I could flush out data like that. I mostly just have used output buffering to capture data before I wanted to

[PHP-WIN] Re: Where is mysqli in PHP5rc3?

2004-06-11 Thread Jason Barnett
[EMAIL PROTECTED] wrote: The mysqli DLL file is not present in the PHP5rc3 for Win32 package, nor is it bundled. Can't find it in the PECL package either. Did they just forget to put the DLL in the package or is there a more esoteric explanation to this? Erik The new releases of MySQL are licens

[PHP-WIN] Re: COM function

2004-06-22 Thread Jason Barnett
Heekw wrote: Hi, I couldn't run the com progam on my server but everthing well on my pc. The only different is server is using UNIX version while pc is Window version. It game me error like this -> "Fatal error: Cannot instantiate non-existent class: com in /home/www/hermes/data/progra

[PHP-WIN] Re: view xml thru php

2004-06-23 Thread Jason Barnett
Joakim Ling wrote: Hi, Im trying to view a xml file (texttv.xml) thru php. Are you wanting to see the raw xml? You can do it like so: $file = './path/to/file.xml'; header("Location: $file"); ?> Or, are you wanting to have the xml as part of the php script's output? Then you might do this: $fi

[PHP-WIN] Re: view xml thru php

2004-06-23 Thread Jason Barnett
Joakim Ling wrote: The raw xml. I tried header("Location: $file"); but its not working in IE. NN works fine. http://www.lokalguiden.se/tv4/texttv.php Any ideas? I tried the link you posted above; it did not redirect me to any xml file (Mozilla). Were you hoping to have me view the contents of t

[PHP-WIN] Re: SOAP in php 4.3.7

2004-06-23 Thread Jason Barnett
Darren Horrocks wrote: is it posible to use SOAP in 4.3.7, or is it a php5 only thing? Yes it is possible. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Session On Window [Urgent]

2004-07-06 Thread Jason Barnett
one help me regarding this. Regards, M. Imran Khan Do you have an existent tmp directory, and does your Apache process have access to it? My guess is you just need to add the directory. Jason -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: PHP extension problem in new XP site

2004-07-07 Thread Jason Barnett
And the relevant bit from the php.ini == ; Directory in which the loadable extensions (modules) reside. extension_dir = ".;C:\PHP\extensions;" == You need extension_dir to point to the location where your extensions are located. Just

[PHP-WIN] Re: GTK -why not

2004-07-12 Thread Jason Barnett
I guess it depends on what you mean by web-based. If you mean you want to have a GTK frontend that connects to a web server, that would certainly be possible. If a user had PHP/GTK loaded onto their (client) machine there's no reason why you couldn't send them a script that connected to your

Re: [PHP-WIN] Re: PHP 5.0.0 Released!

2004-07-14 Thread Jason Barnett
Steve Browne wrote: You should be using php-cgi.exe. You could also follow the directions on how to run it as an ISAPI module. The same thing happens on my computer running Windows XP and trying to use php.exe. I'm not even sure this is an error though. The documentation hasn't really been updated

[PHP-WIN] Re: PHP and RedBack COM objects

2004-07-16 Thread Jason Barnett
Hey Brian, can you just put the code inline? I didn't get the attachment. Brian E wrote: Hello. I'm trying to access RedBack COM objects (Redback is a garbage DB that one of my clients has purchased) through PHP rather than documented ASP. I can Create the objects just fine and make the initial

[PHP-WIN] Re: [mysql]

2004-07-17 Thread Jason Barnett
Ciprian Constantinescu wrote: Where can I download a working "libmysql.dll" to use on WindowsXP? I have a version that doesn't work. All I get is "Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - The specified procedure could not be found". Are you trying to use dl() to load the libr

[PHP-WIN] Re: PHP and RedBack COM objects

2004-07-17 Thread Jason Barnett
I checked it out a bit last night, since I don't own a license for RedBack (no offense :)) I tried checking the online manuals. Didn't see too much that looked useful. AFAIK the objects were supposed to be returning strings for the Value call, but I'm thinking that I somehow missed something a

[PHP-WIN] Re: Upgrading from PHP 4 to 5

2004-07-18 Thread Jason Barnett
Adrian Cooper wrote: Hi, I have only just joined this list so apologies if this has been asked before. I have Windows 2000 Servers currently running PHP 4, some with the ISAPI module and some with the CGI module from the installer program. What is involved in upgrading these? For example, for the I

[PHP-WIN] Re: doubt

2004-07-19 Thread Jason Barnett
Php mysql wrote: Is this the address where i send my queries regarding any problems faced with php. This list is for php + windows queries. For general php queries, you should probably ask it on php-general (makes sense doesn't it :) -- PHP Windows Mailing List (http://www.php.net/) To unsubsc

php-windows@lists.php.net

2004-07-20 Thread Jason Barnett
Z‹екш`нлpЉhльяшои wrote: Hello everyone! How to use php4 & php5 on my Win98 with different php.ini's and files with extention such as *.php5 use php5, .php - use php4? Thanks. ps. Sorry my English Depends on what kind of interface you want to use. Do you have Apache? IIS? CLI? Something else?

[PHP-WIN] Re: Moving to php5

2004-07-20 Thread Jason Barnett
Enfarious wrote: I'm using apache2 and just moved to php5 and the oddest thing happened, it quit processing php scripts it just outputs plain text for some reason, I get no errors or warnings when I start apache so I have nothing to go on, anyone else ever have anything like this happen? My gues

[PHP-WIN] Re: php5 and phpMyAdmin

2004-07-20 Thread Jason Barnett
Schalk Neethling wrote: Does anyone have any pointers or resources in getting phpMyAdmin working with php5? Check the project website. I'm sure they're aware that PHP5 changed in some ways and they're working to fix the source - or do you simply have a problem connecting to a mysql daemon? In

php-windows@lists.php.net

2004-07-20 Thread Jason Barnett
Honestly, it's rude to directly email people trying to help you. You should always send your responses to the list for a couple of reasons: 1) I don't always have the answer (though I like to pretend I do) 2) Other people are very smart (see 1) 3) I am not your technical support person - I am a

[PHP-WIN] Re: Handling Linux directory paths in Win32

2004-07-21 Thread Jason Barnett
I've run into this exact problem many times. Two things: 1) use the PEAR constant DIRECTORY_SEPERATOR, or define it yourself if (PHP_OS == 'Win32' || PHP_OS == 'WinNT') { define('DIRECTORY_SEPERATOR', '\'); } else { define('DIRECTORY_SEPERATOR', '/'); } 2) I have two ways that I solve the rela

Re: [PHP-WIN] Re: Handling Linux directory paths in Win32

2004-07-22 Thread Jason Barnett
Windows and *nix systems. IIS and Apache both. FPM --- Jason Barnett <[EMAIL PROTECTED]> wrote: I've run into this exact problem many times. Two things: 1) use the PEAR constant DIRECTORY_SEPERATOR, or define it yourself if (PHP_OS == 'Win32' || PHP_OS == 'WinNT

[PHP-WIN] Re: Web site Templating (ie: patTemplate orSmarty)

2004-07-22 Thread Jason Barnett
Jim Macdiarmid wrote: Hi everyone, I'm interested in taking the next step and learn templating. I've been toying with one called patTemplate, however I'm a little confused by it. I understand the concept, but I'm having trouble getting things to flow correctly. Logic such as how to process forms, e

[PHP-WIN] Re: Question about the Apache 2.0 Warning in the PHP manual on the PHP web site

2004-07-22 Thread Jason Barnett
Search the archives for this one - but basically there may/may not be third party thread issues. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Enviar Attach via PHP

2004-07-22 Thread Jason Barnett
Hola, Por favor perdoname mi espanol - hace tres anos que hable. Primero debe escribir a la lista espanol (hay mucha gente alli que hablen espanol): php.general.es GastóN Quiroga wrote: Hola, es la primera vez que escribo a la lista, pero desde hace rato soy participante. La consulta es

Re: [PHP-WIN] CGI error on IIS

2004-07-23 Thread Jason Barnett
Odd Egil H. Selnes wrote: Hi. When I use: header("Location: ".$_SERVER["PHP_SELF"]."?page=something"); I get a strange CGI error on IIS. This error occurs about 4 out of 10 times i access the page. My guess is you need to encode the GET variables (something) you're sending through your request. -

[PHP-WIN] Re: PHP4 AND PHP5 on the same server by WAMP5

2004-07-23 Thread Jason Barnett
http://www.wampserver.com (french) http://www.en.wampserver.com (english) Romain Very cool Romain! Will check this out. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: php_printer extension patch

2004-07-31 Thread Jason Barnett
Philippe Maes wrote: For my work, i needed the printer extension (for windows), and some problems appeared to me when i used it: - printer_draw_bmp function don't satisfy me because it not use printer resolution. I fixed it by adding 2 parameters (width and height). - printer_set_option doesn't

[PHP-WIN] Re: WinXP PHP Install Problem

2004-07-31 Thread Jason Barnett
Hey Bruce, could you get it to work with the CLI version of PHP? The exact path is going to depend on where you installed PHP, but in my installation I use C:\php\php.exe. So the command to run your program would be something like: cd\php php -f C:\path\to\yourfile.php If that gives you "Hello

[PHP-WIN] Re: Hopefuly an easy one?

2004-07-31 Thread Jason Barnett
Yep... all you need is rawurlencode: http://www.php.net/rawurlencode -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: PHP help: login.php T_ELSE error

2004-08-07 Thread Jason Barnett
That's a *lot* of levels... easy to get caught up in it. You probably have more closing braces than you though opening braces, but skimming the code quickly I didn't catch where. else if( !$userdata['session_logged_in'] ) * { $page_title = $lang['Login']; include($phpbb_root_path

Re: [PHP-WIN] virus and auto-reponders!

2004-08-07 Thread Jason Barnett
still get the mails. So the compromise is to appear as an idiot in the mailing list - all thanks to Bill Gates who makes use - the user - to behave stupid becasue we ha no other choise. I happen to use Mozilla Thunderbird for my email / newsgroup needs... and it works wonderfully! :) -- PHP Wind

[PHP-WIN] building PHP with cygwin - dies at fopencookie ???

2004-08-22 Thread Jason Barnett
Hey guys I'm back! I actually have a problem of my own - I've tried (unsuccessfully) recently to build PHP5.0.0 from source, but no dice. I've read through the install instructions, but I just can't make heads or tails of my problem. I am probably missing something simple. The last part of

[PHP-WIN] Re: PHP-Java extension problem

2004-08-22 Thread Jason Barnett
Unknown(): Unable to load dynamic library 'C:\PHP\extensions\php_java.dll' - Access is denied. Just another possibility: Several people have had luck moving the library to your system folder. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Changing loaction of php.ini file

2004-10-22 Thread Jason Barnett
PHP has several ways it looks for php.ini Environment variables Folder for Web Server Folder for PHP executable Command line parameters If you want to be able to start up PHP with different configuration files then passing the location of PHP.ini via command line parameters is probably the best w

[PHP-WIN] Re: Changing loaction of php.ini file

2004-10-26 Thread Jason Barnett
FYI - respond to the list not to me personally. The list will respond faster than I will and can often provide extra insight. Plus it sometimes irritates me (not this time though ;) I know Microsoft has made most of us forget about the command line, but the *nix tradition for it is great and

[PHP-WIN] Re: Question......

2004-10-26 Thread Jason Barnett
I'm not a VC programmer so I won't promise this works, but you could try building PHP from source into your project. I do know that different SAPI's can be written and PHP can be embedded within another application. Try checking out _sapi_module_struct in the source. Raul Ionescu wrote: I

[PHP-WIN] Re: Access deined - yet another MySQL problem

2004-10-26 Thread Jason Barnett
This error is about 80% of the time caused because of errors loading libmysql. But usually putting that library in the system32 folder solves the problem. Do you have any other errors? Make sure you're restarting the server after you've moved the files. Heck try throwing libmysql back in php/

[PHP-WIN] Re: apache config question

2004-10-28 Thread Jason Barnett
Bobo Wieland wrote: How do I set up permission to access folders and not only specific files in these folders with apache...? I can't find the correct line in httpd.conf _bobo Did you try searching Apache's help guide at the web site? http://httpd.apache.org/docs-2.0/misc/security_tips.html -- PH

[PHP-WIN] Re: Installation? problem for php newbie

2004-10-29 Thread Jason Barnett
Yes this is duplicate... please don't do that in the future unless you've waited a few days without an answer. Also for installation problems it might be better to try the php install newsgroup. Michael Horniak wrote: I manually installed PHP 5.0.2 and have also used the installer. In either ca

Re: [PHP-WIN] include statement

2004-10-29 Thread Jason Barnett
Just one thing to add here: My query is: If i load the header as .HTM does it put the included file through the PHP parser. I have the includes as .PHP at present. There is nothing php in the header or footer as yet. I am looking at saving the server some cycles by doing this. Not sure exactly how

[PHP-WIN] Re: session expiration problem

2004-11-02 Thread Jason Barnett
Nightwalker wrote: Hi. When I set session expiration using: ini_set('session.gc_maxlifetime','3'); and I refresh page after 10 seconds or even change my system time to a few hours ahead, the session variables still exist. It doesn't work even Hmmm, do you mean the old session values are being c

Re: [PHP-WIN] Displaying An Image / Non-Web accessible Dir

2004-11-02 Thread Jason Barnett
Can you or someone suggest how I can access an image file on my drive which is not part of the http-accessible directories (say in C:\images\somepic.jpg) and display the filetype? I think once I can at least get that to work, the rest should be fairly simple. If all goes well, the only thing you sh

[PHP-WIN] Re: running an exe

2004-11-05 Thread Jason Barnett
Why would you want to do this? Blindly installing applications from web links is *a bad idea* and dialog boxes are there to help protect users. Heck from the way you asked your question I'm not even sure - are you the user or the provider? Give us a little more than this to go on and we'll se

Re: [PHP-WIN] Re: Headers Already Sent - How To Overcome????

2004-11-05 Thread Jason Barnett
Warren Vail wrote: Mike, While that's not the only way to go somewhere else, if it is the way the other guy wrote the code to get around, ripping it out an replacing it with something else could be a problem. The error message you are referring to indicates that something was sent to the browser b

[PHP-WIN] Re: exec() IIS 5 php

2004-11-05 Thread Jason Barnett
My script is like this * $cmd = "\"C:\MATLAB6p5\bin\win32\matlab.exe\" /nosplash /nodesktop /r -c E:\\SSN\\cognetics\\amp_fit_power_with_mex\\test2.m"; exec($cmd,$output,$rv); echo "program started!!!"; ?>

[PHP-WIN] Re: running an exe

2004-11-08 Thread Jason Barnett
Message- From: Jason Barnett [mailto:[EMAIL PROTECTED] Sent: 05 November 2004 09:40 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: running an exe Why would you want to do this? Blindly installing applications from web links is *a bad idea* and dialog boxes are there to help protect users. Heck

[PHP-WIN] Re: PHP and IIS6 on Win2k3

2004-11-12 Thread Jason Barnett
Dean L. Howen wrote: HI, I have been successful config PHP 5 on IIS5 , but not with IIS6 on Win2k3. I have done by following the install instruction. The error is "404-This page cannot display" Tell me what to do continue... Thanks 404 is the file not found error. Are you possibly pointing to the

[PHP-WIN] Re: foreach Problem

2004-11-14 Thread Jason Barnett
Man, and I thought *I* was verbose. :P Actually some of the pieces of your code is missing, ie. we don't have the class definition for whatever $t is. If you are looping the right number of times, but the array key selected is the wrong key, then the problem likely lies in the function where

[PHP-WIN] Re: newbie: a very simple question (I hope)

2004-12-15 Thread Jason Barnett
I know how to print out the value of $x, but not the test result of 'true or false'. A couple of ways to do this. Probably the easiest is to cast the true / false answer to an int and then echo that answer. $x = 3; $bool = ++$x < 4; echo (int) $bool; -- PHP Windows Mailing List (http://www.ph

[PHP-WIN] Re: Problems with require.

2004-12-17 Thread Jason Barnett
S wrote: Im having a problem that im assuming is related to my core PHP code rather than the pear file I am trying to include (though if you folks think I need to look into that, thats ok too). Basically im seeing the following when I try to load my page: Warning: main(DB.php) [function.main]: fail

[PHP-WIN] Re: Session_start() not working

2004-12-15 Thread Jason Barnett
S.D.Price wrote: Hi can anyone help me, I have moved my application from a Unix server to a Windows based server but suddenly I don't seem able to use sessions I get Warning: session_start() [function.session-start ]: open(C:\PHP\sessiondata\sess_60e554

[PHP-WIN] Re: How to parse XML in php

2004-12-20 Thread Jason Barnett
Please start a new thread when you ask a new question. Pravin-Kumar wrote: hi! How can i parse a xml file in php. need to do some extension enable or what? give me some details. i had tried xml_parse() yet but not working :( i am getting error messages. Warning: xml_parse(): Unable to cal

[PHP-WIN] Re: Timer in Safe Mode

2004-12-20 Thread Jason Barnett
A timer script? Go check out PEAR's Benchmark package. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: How to parse XML in php

2004-12-20 Thread Jason Barnett
Jason Barnett wrote: Please start a new thread when you ask a new question. Pravin-Kumar wrote: hi! How can i parse a xml file in php. need to do some extension enable or what? give me some details. i had tried xml_parse() yet but not working :( i am getting error messages. Warning

[PHP-WIN] Re: Timer in Safe Mode

2004-12-20 Thread Jason Barnett
Mikea wrote: Why would I want that? Is that the answer to getting around timeouts? I'm not sure what you are telling me. Thanks. Mike No it is not the answer to timeouts... whoops! All righty well it seems that you are trying to call set_time_limit but your PHP binary is running in safe mod

[PHP-WIN] Re: Problems with require.

2004-12-20 Thread Jason Barnett
Please do not email me personally; keep your questions on the list. There are a lot of good reasons for this... most importantly being that I am not your paid tech support person ;) S wrote: Im actually not defining the pear include in my PHP.ini file. Im defining it in the application itself. t

Re: [PHP-WIN] About "\n"

2004-12-29 Thread Jason Barnett
Graeme wrote: > Hi, > > What the "\n" does is to throw a newline in your source code. So when > the page is displayed look at the source that has been generated you > will see the blank line. This can be useful to make the HTML source > readable. However to get a new line displayed in the browser

[PHP-WIN] Re: a function question

2004-12-30 Thread Jason Barnett
Here is my code (which I can't get to work): /** Note that my code / comments are untested, but should be helpful. */ $mail = "[EMAIL PROTECTED]"; $user = "patrick"; function usermail( $user, $mail ) { /** We don't need global $user or $mail since these are passed into

[PHP-WIN] Re: Searching for UPS tool

2005-01-04 Thread Jason Barnett
Didn't you already search their site and find the answer? It is *very* infuriating when people refuse to help themselves! Because I can guarantee that if you search the UPS site you will find the answer. -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-ques

[PHP-WIN] Re: Searching for UPS tool

2005-01-04 Thread Jason Barnett
Ah, you were just asking for a scipt. In that case I send you my apologies my good sir. This works for PHP 4.3 http://www.phpscriptsearch.com/0/PHP-XML-and-PHP/UPS-XML-Shipping-Tool-PHP-Function-Library.html -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-q

Re: [PHP-WIN] Re: Searching for UPS tool

2005-01-04 Thread Jason Barnett
Yes, I did reply without carefully reading the message. See my second response to the thread for a PHP script that does as you ask. -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://php.net/manual/ php-general archives: http:/

[PHP-WIN] Re: Making includes easy.... Am I a 'tard?

2005-01-04 Thread Jason Barnett
I haven't bothered to benchmark this, but here is my own solution to this problem. If you already have a common file that you are including in every script then the cost should be very low. Feel free to use it if you prefer. Apache htdocs site1 includes common.php

Re: [PHP-WIN] Re: Making includes easy.... Am I a 'tard?

2005-01-04 Thread Jason Barnett
Patrick Roane wrote: The inludes folder is thrown around as more of a generic term for a directory that includes important files. Is this a pretty good definition for the purpose of an 'includes' folder? Sure, that's a fine definition. And the setup that I proposed isn't the only way to do it, b

[PHP-WIN] Re: PHP5, IIS6, and Windows2003 Web Edition

2005-01-05 Thread Jason Barnett
Steve Larabee wrote: Greetings all: I have tried a number of things that I have found in these newsgroups, and I am still receiving 404 errors when I try to open a php page. PHP is showing as "UP" in the ISAPI Extensions settings screen, I have PHP allowed as a web service extension. Nothing.

[PHP-WIN] Re: Is it possible to have IIS and apache runing in the same machine, with windows xp?

2005-01-05 Thread Jason Barnett
Andre wrote: Hello Anyone know if it’s possible to have a (IIS – sql-server) and (apache – mysql) running on the same machine? Thanks André Caridade If they are listening on different ports then I don't think this is a problem. Then again I've never actually done this. :) -- Teach a person to

[PHP-WIN] Re: PHP & Win2k

2005-01-07 Thread Jason Barnett
Daniel Aguilar wrote: I'm a newbie to PHP and I can't find what "PHP_Self" ( )ers to? it seems to be why I can't get my supposedly simple php shop to work. Any suggestions or websites with examples? I believe you are referring to a server variable? At least, there is a variable that might match t

<    1   2   3   >