[PHP] renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
images can be downloaded as binary files with no problem.. I now have over 3000 images I cannot download or view on our website. What about rename caused this? Thank you, Bryan Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
Browser and FTP client act as if the image files do not exist, even though the directory contents can be views via FTP... What did I do? Bryan On Thu, 26 Feb 2004 17:56:25 -0600, Bryan Henry <[EMAIL PROTECTED]> wrote: Hello all, I wrote a small script to rename a few thousand images

Re: [PHP] Re: renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
files, especially if you ran the script as some privileged user like root. chmod or chown can be used to changed these. Mike Bryan Henry wrote: Browser and FTP client act as if the image files do not exist, even though the directory contents can be views via FTP... What did I do? Bryan On T

Re: [PHP] renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
Here is the script I used to rename images. foreach ($config as $line) { if ( $line == "" ) next($config); elseif ( $line == "\n" ) next($config); elseif ( strstr($line,"#")) next($config); else { $value = split(Chr(9),$line); $imgs[$value[0]] = $value[1];

Re: [PHP] renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
Chmod and file_exists report that the file does not exist, even though I can view the files via the FTP client. bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
Fri, 27 Feb 2004 00:01:47 +, Michael Nolan <[EMAIL PROTECTED]> wrote: Check the permissions and ownership of the files, especially if you ran the script as some privileged user like root. chmod or chown can be used to changed these. Mike Bryan Henry wrote: Browser and FTP client act

[PHP] Success Using PEAR?

2002-03-16 Thread Bryan Henry
anyone had success using PEAR? I have read the documentation and been trying to use the PEAR files that came with PHP 4.1.2 , PEAR cvs and PHP4/PEAR cvs with no success. I wish there was some updated documentation, and more explanation on which files to use for stable development. Every ans