Jump to content

problem uploading photos...


elias

Recommended Posts

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
Share on other sites

"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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.