[PHP] MySql or flat database using PHP ?
Before I start creating an Sql table/database, thought I would ask for advice first. I am creating a directory online, with urls information, links, email addresses etc etc. What do you think is best a MySql database or writing it to a file using fopen/fwrite (flat file) ??? Your thoughts would be very much appreciated. Thanks Dave
Re: [PHP] Using fsockopen()
Thought I would repost, does anyone have a solution ? I am using php, apache on a windows system. - Original Message - From: "David Ovens" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 1:26 AM Subject: [PHP] Using fsockopen() I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? Dave -- PHP General 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 General 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]
Re: [PHP] Using fsockopen()
this is my fsockopen satement it will check about 4/5 urls and then time out (exceed 30 second timeout error) on the 5/6 url, I have no idea, why my program wont continue checking all the urls in one go. $socket = @fsockopen($urlArray[host], $urlArray[port], $errnum, $errstr, 100); - Original Message - From: Tim [EMAIL PROTECTED] To: David Ovens [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 11:55 AM Subject: Re: [PHP] Using fsockopen() Is the timeout coming from fsockopen() or from the program using too much time? I've used @fsockopen() before without any issues (at least on Linux and Solaris), but if your script is running for a long time, you may need to tweak the execution time limit: http://www.php.net/manual/en/function.set-time-limit.php - Tim On 13 Aug 2001 11:40:04 +0100, David Ovens wrote: Thought I would repost, does anyone have a solution ? I am using php, apache on a windows system. - Original Message - From: David Ovens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 1:26 AM Subject: [PHP] Using fsockopen() I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? -- PHP General 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 General 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]
Re: [PHP] Using fsockopen()
so far by increasing the set_tim_limit function it seems to have cured my problem. I shall see how it goes. Thanks Dave - Original Message - From: Tim [EMAIL PROTECTED] To: David Ovens [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 11:55 AM Subject: Re: [PHP] Using fsockopen() Is the timeout coming from fsockopen() or from the program using too much time? I've used @fsockopen() before without any issues (at least on Linux and Solaris), but if your script is running for a long time, you may need to tweak the execution time limit: http://www.php.net/manual/en/function.set-time-limit.php - Tim On 13 Aug 2001 11:40:04 +0100, David Ovens wrote: Thought I would repost, does anyone have a solution ? I am using php, apache on a windows system. - Original Message - From: David Ovens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 1:26 AM Subject: [PHP] Using fsockopen() I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? -- PHP General 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 General 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]
Re: [PHP] Re: replacing variables in file
I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? Dave -- PHP General 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] Using fsockopen()
I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? Dave -- PHP General 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] blank form
in my php scripts I am using forms which are posted to itself, each time fields are submitted the php scripts checks the syntax before moving onto the next part of the form, if there is an error the script will tell the user that there is an error and to use the back button to correct the form, problem is when you press the back button the form is blank. how do I overcome this by keeping the original details in the form especially when using drop down menu options ??
[PHP] Re: blank form
oops sorry, dont think it was a php problem but a problem with my browser !! - Original Message - From: David Ovens To: php Sent: Wednesday, August 08, 2001 10:56 AM Subject: blank form in my php scripts I am using forms which are posted to itself, each time fields are submitted the php scripts checks the syntax before moving onto the next part of the form, if there is an error the script will tell the user that there is an error and to use the back button to correct the form, problem is when you press the back button the form is blank. how do I overcome this by keeping the original details in the form especially when using drop down menu options ??
[PHP] .shtml or .php ?
The Virtual() command works on my hosting server, I am running windows, idigostart perl/apache with php4 installed, how do I get this virtual() command to work on my machine, I assumed that the php4 I had installed was an apache module. I have .shtml pages using includes for html, and exec cgi for executing .cgi scripts, as I am using php more and more is there an advantage in me changing my .shtml pages to php and use the equivalent include, and virtual commands ?? But I do need somehow to be able to use the virtual() command on my machine so that I can develop my scripts. Dave