FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Can you have upload scripts on frihost sites?





The-Master
I have tried several PHP codes to have images uploading.

I always get errors like
Code:
Warning: copy(/home/themaste/domains/dougie.frih.net/public_htmlimages/userimagesUntitled-1.gif) [function.copy]: failed to open stream: No such file or directory in /home/themaste/domains/dougie.frih.net/public_html/PHP/Image uploader.php on line 49
Could not copy file.


amd others. Is it the script or is it the site?
sonam
Quote:
(/home/themaste/domains/dougie.frih.net/public_htmlimages/userimagesUntitled-1.gif)


Only what I see miss one / between public_html and images. Set your code and try again.

Sonam
The-Master
It still happens
Code:
Warning: copy(/home/themaste/domains/dougie.frih.net/public_html/images/userimages/delete.JPG) [function.copy]: failed to open stream: Permission denied in /home/themaste/domains/dougie.frih.net/public_html/PHP/Image uploader.php on line 46
Could not copy file.
hexkid
The-Master wrote:
I have tried several PHP codes to have images uploading.


Have you tried the example from the PHP manual?
sonam
Quote:
No such file or directory


AND

Quote:
Permission denied


IS NOT SAME??!

I am not sure but I think you need to change image folder chmod.

Sonam
kv
Yes. You need to set the parent directory permissions to 777 (from ftp or cpanel). Otherwise it will not work.
Related topics
Examples of websites built by frihost?
I can't upload my Database SQL script ! Helllppppp!!!!
best frihost website layout/design/functionality
Uploading Files
Ready made directory of frihost sites
Easy way to see all the FriHost websites
Win A Domain ..... The Best FriHost Website Edition
frihost websites
root access
Frihost Manual Traffic Exchange
Busy FriHost Sites
[solved] FriHost only websites forum
CNAME (or A Record) referencing to Frihost sites
FriHost Top 100
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.