[PHP] substr() help

2003-02-07 Thread Paul Reilly
working on a peice of code that should be pretty easy, but for some reason I
am not getting any results.

I want the first 10 characters of each line from the file I am reading and
am using this code:
$temp = str_replace(\n, , fgets($fp, 4096));
$line = substr ($temp, 0, 5);

when I test for temp I get 30 responses - which is correct, but when I test
for $line I get Zero responses.  Did I make a mistake in my code

Paul Reilly
[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PEAR website down

2002-06-30 Thread Paul Reilly


The pear.php.net site seems to have a problem with no MySQL server
running. I need to download PEAR in a hurry. Can someone get the site
back up or tell me if I can get PEAR from somewhere else??

Thanks

Paul



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php