RE: [PHP] help with undefined variables, please

2002-05-14 Thread Luc Saint-Elie
At 12:49 14/05/2002 -0600, Matthew Walker wrote: I prefer to use isset(), not empty(). It's more accurate, in that it knows the difference between a variable that just isn't set, and one that has an empty value (which may be valid). hello, You may want to do some tests. last time i did that :

RE: [PHP] help with undefined variables, please

2002-05-14 Thread Luc Saint-Elie
At 21:57 14/05/2002 +0200, Luc Saint-Elie wrote: 4.1 = isset() returns false if the variable is not set OR if the variable is empty typo.. wanted to say : 4.1 isset() returns true if the variable is set ORT if the variable is empty Luc -- PHP General Mailing List (http://www.php.net

RE: [PHP] register_globals in php4

2002-05-10 Thread Luc Saint-Elie
Mike, Both of your bit of code are not equal. On my ISP in 4.0.6 isset returned false if the variable was not existing OR empty in 4.2 isset returns true if the variable exists but is empty, so you may want to check with empty instead of isset Luc At 12:16 10/05/2002 +0100, Ford, Mike

[PHP] Question about fsockopen

2002-05-06 Thread Luc Saint-Elie
Hello I use a class to parse a RSS feed, my problem is that when the distant site is down my own site is stuck (because my class waits for an answer that doesn't come..) The logical answer is to use a fsockopen before to control the connection. Reading the doc I see : int fsockopen ( string

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Luc Saint-Elie
At 11:07 04/05/2002 -0500, Paras Mukadam wrote: Thanks for that ! But my question still remains the same ... does PHP alone (without ZEND) compile code into some .compiled_PHP file so that the user loading same page for 2nd time gets better response than the 1st time? Hello, Both have nothing

Re: [PHP] get ip of visitors

2002-04-23 Thread Luc Saint-Elie
At 11:04 23/04/2002 +0300, Cosmin Vlasiu wrote: Hello, How can I take the IP of the visitator of my php page? not gethostbyname... I need the ip of any visitator not for the specified visitator. Thank you Cosmin Hello, function http_data() { $user_data = array (); // IP Number if

Re: [PHP] How to get Specific Data from an CSV format file to PHP

2002-04-18 Thread Luc Saint-Elie
Jack You may want to have a look at : http://cvs.php.net/cvs.php/pear/File Hope this helps Luc At 20:41 18/04/02 +0800, Jack wrote: Dear all I had tried to fetch the data from CSV file by using PHP, what i did is fetch the whole file content! But now i only want specific data from that CSV