elias Posted February 1, 2007 Share Posted February 1, 2007 Hi guys long time no speak... I have a code which allows (well it is supposed to) let you upload photos, but I get this error code everytime I try it: Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/barnacan/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/barnacan/public_html/pedigree/famgal.php on line 108 and the mentioned line is this one: $data = fread( fopen( $tname, "rb"), filesize( $tname)); anyhow, th funny thing is that the data is recorded in the database, as if the photo has been loaded and afterwards the gallery shows as if it has a photo loaded, but there is nothing there. I have upgraded the permissions in the /temp and /images folder, but this had little effect. Can anyone point where I could look for some solutions TIA elias Link to comment https://forums.phpfreaks.com/topic/36695-problem-uploading-photos/ Share on other sites More sharing options...
pocobueno1388 Posted February 1, 2007 Share Posted February 1, 2007 "This error indicates that your host has enabled the PHP open_base_dir setting on your server. Your host needs to add your Movable Type installation folder to the allowed paths for this setting (i.e., add the file path referenced in the error as "not within the allowed path"). The open_base_dir setting is primarily used to prevent php scripts for a particular user from accessing files in another user's account. So usually, any files in your own account should be readable by your own scripts." Source: http://www.sixapart.com/movabletype/kb/dynamic/open_basedir_re.html Link to comment https://forums.phpfreaks.com/topic/36695-problem-uploading-photos/#findComment-174976 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.