Handling files

From: Date: Sat, 11 Aug 2001 10:38:03 +0000
Subject: Handling files
Groups: php.general 
Request: Send a blank email to php-general+get-62254@lists.php.net to get a copy of this message
I used to use : $data[0] = addslashes(fread(fopen($picture1, "r"), filesize($picture1))); to store files from a client machine but now I want to store files from a webstie ie http://servername.com/file.jpg but I can't seem to get the logic for it rite. Can some suggest wht shall I do ? Vishal
From: Rasmus Lerdorf <rasmus@php.net> To: Chris Cameron <chris@upnix.com> CC: <php-general@lists.php.net> Subject: RE: [PHP] open_basedir and safemode-ish things Date: Sat, 11 Aug 2001 01:13:27 -0700 (PDT) Did you restart your server? On Sat, 11 Aug 2001, Chris Cameron wrote: Put bluntly, it doesn't work. The manual says: If instead of safe_mode, you set an open_basedir directory then all file operations will be limited to files under the specified directory. I'm assuming that this should work without making any changes to my php.ini. The manuals example: <Directory /docroot> php_admin_value open_basedir /docroot </Directory> I've got: <Directory /home/www/chris/www>
      php_admin_value open_basedir /home/www/chris/www
</Directory> Like I said originally, I must be doing something wrong. "php_admin_value" isn't suppose to be set to something is it? I'm also surprised that (apperantly) nothing has to be changed in the .ini. This is inbetween <VirutalHost> and </VirutalHost>, and I'm testing that it does/doesn't work by reading out my /etc/passwd. That directory does exist, and is the www root for the Virtual Host. Thanks, Chris -----Original Message----- From: Rasmus Lerdorf [mailto:rasmus@php.net] Sent: Saturday, August 11, 2001 1:04 AM To: Chris Cameron Cc: php-general@lists.php.net Subject: RE: [PHP] open_basedir and safemode-ish things Did you actually search the manual? http://php.net/open_basedir gives you a list of hits. One of them is: http://php.net/manual/en/features.safe-mode.php -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

« previous php.general (#62254) next »