Warning:unable to open...
Hi, can anybody tell me what this warning means?
Warning: Unable to open 'C:\\My Documents\\Wallpaper\\Cute\\0160.jpg' for reading: No such file or directory in /usr/local/plesk/apache/vhosts/certifyexpress.com/httpdocs/test/template/admin.php on line 1317
i got this error when i tried to add a image. i tried this in localhost(my pc, not connected to server), and everything works fine. Then, i uploaded everything to the server and start testing. and i got this warning.
how can i solved it??
line 1317 of admin.php is:
<?php
copy($re_image, $image);
?>
pls help...pls...
Mark Hensler posted this at 08:09 — 5th December 2001.
He has: 4,048 posts
Joined: Aug 2000
Check to make sure your form has:
joyce posted this at 08:19 — 5th December 2001.
They have: 164 posts
Joined: Nov 2001
after i added the enctype...i got this error:
Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/plesk/apache/vhosts/certifyexpress.com/httpdocs/test/template/admin.php on line 1317
wat this means? wat can i do?
Wil posted this at 09:45 — 5th December 2001.
They have: 601 posts
Joined: Nov 2001
Um, I'm not a PHP expert but it does sound like exactly that...
open_basedir restriction in effect
Check with your hosting provider what restrictions they have in effect, and if they would be willing to lift them for your domain and/or selected scripts?
- wil
joyce posted this at 10:25 — 5th December 2001.
They have: 164 posts
Joined: Nov 2001
any suggestion on wat should i do? asked the hosting provider to change? or change my code?
if change my code? how should i change??
my code:
<?php
$ext = substr($re_image, -3, 3);
$path = \"../template/imga/\";
$filename = \"img\".$category_ID.\".\".$ext;
$image = $path.$filename;
copy($re_image, $image);
?>
Wil posted this at 10:35 — 5th December 2001.
They have: 601 posts
Joined: Nov 2001
Have you asked your hosting provider?
joyce posted this at 08:36 — 6th December 2001.
They have: 164 posts
Joined: Nov 2001
the openbase_dir are set to :
/usr/local/plesk/apache/vhosts/abc.com/httpdocs
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.