php-windows Digest 31 Mar 2001 05:46:43 -0000 Issue 519 Topics (messages 6393 through 6403): passing array 6393 by: afan problem with loops 6394 by: afan Re: Parse error after install 6395 by: joerg andreas Re: Database search, http headers 6396 by: joerg andreas Re: php&win98 6397 by: paulyoung unhappy camper 6398 by: paul morgan Time 6399 by: Josh Seward Re: [PHP-GTK] Time 6400 by: Chris Chabot 6401 by: Steph 6402 by: Chris Chabot 6403 by: Josh Seward 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] ----------------------------------------------------------------------
hi guys, my problem is how to pass an array to other page. E.g. I have an array of randomly choose numbers, 11, 7, 5, 10, 6 After I serialize that array I'm getting a:5:{i:0;s:2:"11";i:1;s:1:"7";i:2;s:1:"5";i:3;s:2:"10";i:4;s:1:"6";} Then I addslashes: a:5:{i:0;s:2:\"11\";i:1;s:1:\"7\";i:2;s:1:\"5\";i:3;s:2:\"10\";i:4;s:1:\"6\";} After using form <input type=hidden ...> and submitting I have only first part, up to first " (quote) a:5:{i:0;s:2:\ What I have to do? Thanks! Afan
Hi, Does anyone know how to in case I make by accident a never-ending-loop stop running program? I just crushed couple times server with loop problem. Thank you! Afan
Hi Mark, try this <?php phpinfo() ?> It works with IIS5 and PHP. reagrds, Joerg "Mark Collins" <[EMAIL PROTECTED]> schrieb in im Newsbeitrag: 98t6p0$eti$[EMAIL PROTECTED] > Hello, > > I have installed php on my NT server and I think its all ok, it performs > very simple scripts, however a phpinfo(): gives me this > > Parse error: parse error in C:\INetPub\WWWRoot\test.php on line 7 > > with line 7 being the phpinfo(): > > it seems like quite a fundimental error, have i messed up the install? > > cheers > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hi Mark, searching databases will work with SELECT ... FROM ... WHERE Criteria Like '%Crit%'; Attention please, use the ... Like '%...%' -code for search, only this has worked with my own search function. Reagrds, Joerg "Mark Collins" <[EMAIL PROTECTED]> schrieb in im Newsbeitrag: 99nu1n$9nj$[EMAIL PROTECTED] > Hi again, a couple of questions if you have the time. > > I am having trouble writing the code to perform a search on a database. I > have written some code which will search but only get case sensitive exact > match results. Are there any functions or prewritten bits that would help > here? Or can anyone point me in the right direction so I can code it myself? >
Have you ever update the MSVCRT.DLL in window system directory "Aleksey Filimonov" <[EMAIL PROTECTED]> wrote in message 991p0e$nk1$[EMAIL PROTECTED]">news:991p0e$nk1$[EMAIL PROTECTED]... > Well.... in version apache-1.3.19 this bug presence too.... > > "Tom Mathews" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Yep - Apache bug - upgrade it! > > > > Aleksey Filimonov wrote: > > > > > Hi all, > > > > > > I have some problems installing php-4.0.4pl1 on apache-1.3.14 on > win98... > > > The apache server is running fine before adding this line in httpd.conf: > > > LoadModule php4_module c:/php/sapi/php4apache.dll > > > After adding module apache crash with alert: > > > This program has performed an illegal operation and will be shut > down. > > > details: > > > APACHE caused an invalid page fault in > > > module MSVCRT.DLL at 0177:7800d269. etc. > > > > > > Any ideas???? > > > > > > Aleks Filimonov > > > ([EMAIL PROTECTED]) > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
hi, I'm new to this game but have managed to set up apache 1.3.19 that runs php/4.0.4pl1 (the apache dll I think) on Win 98 SE. I've also installed the windows build of mysql, version 3.23 I think and can administer easily via the msdos prompt. I have removed the general root user, as in the mysql Docs and replaced it with my own logon user and pwd. The problem is that I can't seem to pull anything out of a database that I create. I've read the docs that come with mysql, esp Ch6 and privileges, but even simple things like typing 'show grants;' gives me an error in the msdos prompt yet I can insert, delete etc data from the database I created whilst in the msdos prompt - command line interface. I can connect to mysql using the 'mysql_connect() function in php I think (I don't get any erroes when just testing the connection) but when actually going to do something via php I get an error similar to this; Warning: Supplied argument is not a valid MySQL result resource in ...location of file then line number. Some example code that fails is below. It fails on the line where the 'while' loop starts but I think that's because the $result var doesn't seem to be allowed to list tables?? but I don't know why. <?php $link_id = mysql_connect("localhost", "myUsername", "myPassword"); $result = mysql_query("SHOW TABLES", $link_id); while($query_data = mysql_fetch_row($result)) { echo "$query_data[0], is some data <br>"; } ?> Anyone got any ideas as to why I'm getting stuffed? Is it permissions within mysql or is there a known bug in one of the apps that is messing me about. Any suggestions gratefully received. Please reply to this or to my addy directly. Many thanks ;) Paul
Hello, Is there a way to have php run a script at a certain time? What I really need is something like cron on unix systems. I would use windows scheduler but it only goes by days. I ned to run this once every hour. P.S. To let everyone how helped me before. I can now send commands to an outside program I am running w/ the fsockopen command. This is after I open the prog. with popen. Thank you all for your help., especially Steph and Micheal. Your efffort and advice is much appriciated. If your ever in Athens Ohio the first round is on me :-)
Umm the obvious reply would be to go to download.com and browse to see if they have a shareware version of a cron like application, i am sure they do... i remember seeing some of those. Otherwise, code a simple php or c or delphi or visual basic app that only does while (1) sleep(60*60); exec('application') end Can't be that hard to write right? :) or even if you wanted it -on- every hour and not every hour, just do a if ( frac (time() / (60*60) ) == 0) { exec('application') } (ie if the dividable time / 'seconds in hour' has no fraction (behind the . or , depending on locality, its on the hour) I realy hope this wont become a windows support mailing list though, thats kinda outside of the scope of php-gtk? :) -- Chris Josh Seward wrote: > Hello, > > Is there a way to have php run a script at a certain time? What I really need is >something like cron on unix systems. I would use windows scheduler but it only goes >by days. I ned to run this once every hour. > > P.S. To let everyone how helped me before. I can now send commands to an outside >program I am running w/ the fsockopen command. This is after I open the prog. with >popen. Thank you all for your help., especially Steph and Micheal. Your efffort and >advice is much appriciated. If your ever in Athens Ohio the first round is on me :-)
Seconds? I thought milliseconds? Oh well, suck it and see, Josh! ;) ----- Original Message ----- From: "Chris Chabot" <[EMAIL PROTECTED]> To: "Josh Seward" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "php-gtk" <[EMAIL PROTECTED]> Sent: Saturday, March 31, 2001 4:31 AM Subject: Re: [PHP-GTK] Time Umm the obvious reply would be to go to download.com and browse to see if they have a shareware version of a cron like application, i am sure they do... i remember seeing some of those. Otherwise, code a simple php or c or delphi or visual basic app that only does while (1) sleep(60*60); exec('application') end Can't be that hard to write right? :) or even if you wanted it -on- every hour and not every hour, just do a if ( frac (time() / (60*60) ) == 0) { exec('application') } (ie if the dividable time / 'seconds in hour' has no fraction (behind the . or , depending on locality, its on the hour) I realy hope this wont become a windows support mailing list though, thats kinda outside of the scope of php-gtk? :) -- Chris Josh Seward wrote: > Hello, > > Is there a way to have php run a script at a certain time? What I really need is >something like cron on unix systems. I would use windows scheduler but it only goes >by days. I ned to run this once every hour. > > P.S. To let everyone how helped me before. I can now send commands to an outside >program I am running w/ the fsockopen command. This is after I open the prog. with >popen. Thank you all for your help., especially Steph and Micheal. Your efffort and >advice is much appriciated. If your ever in Athens Ohio the first round is on me :-) -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
No both time and sleep use seconds. see http://www.php.net/manual/en/function.sleep.php and http://www.php.net/manual/en/function.time.php respectivly. if you want to use milliseconds, you need to use usleep see http://www.php.net/manual/en/function.usleep.php just nitpicking my last few awake moments of the day :) -- Chris Steph wrote: > Seconds? I thought milliseconds? > > Oh well, suck it and see, Josh! > ;) > > ----- Original Message ----- > From: "Chris Chabot" <[EMAIL PROTECTED]> > To: "Josh Seward" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]>; "php-gtk" <[EMAIL PROTECTED]> > Sent: Saturday, March 31, 2001 4:31 AM > Subject: Re: [PHP-GTK] Time > > Umm the obvious reply would be to go to download.com and browse to see if they have >a shareware version of a cron like application, i am sure they do... i remember >seeing some of those. > > Otherwise, code a simple php or c or delphi or visual basic app that only does > > while (1) > sleep(60*60); > exec('application') > end > > Can't be that hard to write right? :) > or even if you wanted it -on- every hour and not every hour, just do a > if ( frac (time() / (60*60) ) == 0) { > exec('application') > } > (ie if the dividable time / 'seconds in hour' has no fraction (behind the . or , >depending on locality, its on the hour) > > I realy hope this wont become a windows support mailing list though, thats kinda >outside of the scope of php-gtk? :) > > -- Chris > > Josh Seward wrote: > > > Hello, > > > > Is there a way to have php run a script at a certain time? What I really need is >something like cron on unix systems. I would use windows scheduler but it only goes >by days. I ned to run this once every hour. > > > > P.S. To let everyone how helped me before. I can now send commands to an outside >program I am running w/ the fsockopen command. This is after I open the prog. with >popen. Thank you all for your help., especially Steph and Micheal. Your efffort and >advice is much appriciated. If your ever in Athens Ohio the first round is on me :-) > > -- > PHP GTK Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
while (1) > sleep(60*60); > exec('application') > end wouldn't running the exec make the time be off? ----- Original Message ----- From: "Chris Chabot" <[EMAIL PROTECTED]> To: "Steph" <[EMAIL PROTECTED]> Cc: "Josh Seward" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "php-gtk" <[EMAIL PROTECTED]> Sent: Friday, March 30, 2001 10:43 PM Subject: [PHP-WIN] Re: [PHP-GTK] Time > No both time and sleep use seconds. > see http://www.php.net/manual/en/function.sleep.php and http://www.php.net/manual/en/function.time.php respectivly. > > if you want to use milliseconds, you need to use usleep > see http://www.php.net/manual/en/function.usleep.php > > just nitpicking my last few awake moments of the day :) > > -- Chris > > Steph wrote: > > > Seconds? I thought milliseconds? > > > > Oh well, suck it and see, Josh! > > ;) > > > > ----- Original Message ----- > > From: "Chris Chabot" <[EMAIL PROTECTED]> > > To: "Josh Seward" <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]>; "php-gtk" <[EMAIL PROTECTED]> > > Sent: Saturday, March 31, 2001 4:31 AM > > Subject: Re: [PHP-GTK] Time > > > > Umm the obvious reply would be to go to download.com and browse to see if they have a shareware version of a cron like application, i am sure they do... i remember seeing some of those. > > > > Otherwise, code a simple php or c or delphi or visual basic app that only does > > > > while (1) > > sleep(60*60); > > exec('application') > > end > > > > Can't be that hard to write right? :) > > or even if you wanted it -on- every hour and not every hour, just do a > > if ( frac (time() / (60*60) ) == 0) { > > exec('application') > > } > > (ie if the dividable time / 'seconds in hour' has no fraction (behind the . or , depending on locality, its on the hour) > > > > I realy hope this wont become a windows support mailing list though, thats kinda outside of the scope of php-gtk? :) > > > > -- Chris > > > > Josh Seward wrote: > > > > > Hello, > > > > > > Is there a way to have php run a script at a certain time? What I really need is something like cron on unix systems. I would use windows scheduler but it only goes by days. I ned to run this once every hour. > > > > > > P.S. To let everyone how helped me before. I can now send commands to an outside program I am running w/ the fsockopen command. This is after I open the prog. with popen. Thank you all for your help., especially Steph and Micheal. Your efffort and advice is much appriciated. If your ever in Athens Ohio the first round is on me :-) > > > > -- > > PHP GTK Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >