php-windows Digest 7 Aug 2001 11:07:15 -0000 Issue 689 Topics (messages 8688 through 8694): Problem with session data on PHP4/Win2k 8688 by: Scott Piccotti Re: Trying to assosiate .wml 8689 by: CJD 8694 by: Sven-Olov Larsson Seconds retrieving 8690 by: Ventsyslav Vassilev Problem 8691 by: OoCobra97.aol.com Upload Problem 8692 by: birdto WML / WAP size 8693 by: Keith Whyman Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Sorry for the cross-post, but no one at DevShed seemed to have an answer... I'm getting the following error in a script that makes use of sessions: "Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\PHP\sessiondata) in Unknown on line 0" I'm using PHP4.0.6 on Win2k with IIS 5.0. I've already checked the permissions on c:\php\sessiondata, and everything should be ok. The script has the same problem on my web host's server. It does *not* have this problem on my desktop machine (MacOS X/Apache/PHP4.0.6). Here's the strange part: I've noticed that I can go into that directory and actually see the session files. When I open them, I can see the first value set by the script. None of the others seem to make it into the file. But it seems odd that it's writing some session data, and then telling me it can' t write the session data. Could there be something wrong with the code that I'm missing? As I said, it works fine on Darwin/Apache. But a bug in my code would explain why it doesn't work on two different machines. But then why would it work on MacOS X? Very confusing. Anybody have any ideas? Thanks in advance... -scott
a.. Run Regedit. b.. Navigate to: HKEY_LOCAL_MACHINE /System /CurrentControlSet /Services /W3Svc /Parameters /ScriptMap. c.. On the edit menu select: New->String Value. d.. Type in the extension you wish to use for your php scripts. ex: .php e.. Double click on the new string value and enter the path to php.exe in the value data field. ex: c:\php\php.exe %s %s. The '%s %s' is VERY important, PHP will not work properly without it. f.. Repeat these steps for each extension you wish to associate with PHP scripts. g.. Now navigate to: HKEY_CLASSES_ROOT h.. On the edit menu select: New->Key. i.. Name the key to the extension you setup in the previous section. ex: .php j.. Highlight the new key and in the right side pane, double click the "default value" and enter phpfile. k.. Repeat the last step for each extension you set up in the previous section. l.. Now create another New->Key under HKEY_CLASSES_ROOT and name it phpfile. m.. Highlight the new key phpfile and in the right side pane, double click the "default value" and enter PHP Script. n.. Right click on the phpfile key and select New->Key, name it Shell. o.. Right click on the Shell key and select New->Key, name it open. p.. Right click on the open key and select New->Key, name it command. q.. Highlight the new key command and in the right side pane, double click the "default value" and enter the path to php.exe. ex: c:\php\php.exe -q %1. (don't forget the %1). r.. Exit Regedit. s.. If using PWS on Windows, reboot to reload the registry. "Sven-Olov Larsson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello World! > > When experementing with hawhaw.inc I want *.wml to be parsed by > php4isapi.dll > > Windows98 with PWS How? > > -- > Greetings from Sweden: > | Sven-Olov Larsson > | [EMAIL PROTECTED] > | http://www.debugdata.se/ > > >
Thanks Cjd. It's Ok now :) "Cjd" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > a.. Run Regedit.
Hi, is there any function, which returns the number of seconds between 01.01.1970 and a GIVEN date - similar to UNIX_TIMESTAMP in mySQL? time() works, but counts from current time only... so, what to do if i need to count the number of seconds between 2 different dates? 10x in adv... -- ________________________________ Ventsyslav Vassilev Comel Soft Multimedia Sofia, Bulgaria ICQ UIN: 11199819 e-mail: [EMAIL PROTECTED] Visit http://www.comelsoft.com
Ok, first, I want to ask what mailing list should I mail for a scripting question? Ive been on this list for about 6 months now, And i dont recall seeing to many script questions. 2nd, Im having a problem with the eregi command again (if you remember my e-mail from yesterday). Heres the problem, I can find a match for what I want, but it wont get the rest of the lines if theres a return in them, such as the following: (commands have * inside of the brackets for people with HTML mail, such as myself) <*tr*><*td*>1) Name here<*/td*> <*td align=right*>Results Here<*/td*> <*td align=right*>Result Time Here<*/td*> <*td align=right*>Average Time Here<*/td><*/tr*> If i use just the <*tr*><*td*>1) (.*)to search for, it will just return the Name Here part, If I use <*td*><*td*>1)(.*)<*/td*><*/tr*> to search for it, it wont return anything? If anyone has any ideas, or can pont me in the right direction, I would appreciate it. ~Jeff
When I try to upload the binary data into my MySQL database in IIS4, I found the upload time is very long even the file size is rather small. Even worse, those small file also can't upload to my server even wait for a long time. Does anyone know what's the problem on it? Configuration: Web Server : IIS Database : MYSQL PHP : PHP4 Many thanks,
I'm using php/mysql to create some wml pages which work fine BUT as always there is a problem. It seems that you are only allowed to have wml pages of 1400 bytes, anyone got any clever ideas how I can judge/control how big my generated pages are ? Info comes out from mysql - sometimes just one address - no problems sometimes 20 addresses and then dificulties ?? Anyone help ?