The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Want to knock together an online file stash rather quickly for a group project at uni. When it comes to webscripts, the only language I know is PHP (or at least the basics of it).
First step is to get the script to actually allow the user to upload a file to my web server (I'll worry about listing uploaded files later).
Here's my effort so far:
[URL]http://www.newslinks.co.uk[/URL]
At the moment, I've restricted it to image files only, but I can't get it to work - something along the lines of "failed to open stream: Permission denied in /home/newslinksuk/public_html/index.php on line 34".
My code can be provided if required.
Any prompt help would be greatly appreciated, as this would be a valuable tool for my team.
Oh, and if anyone knows of a free service on the web that does such a thing, please let me know - no point trying to reinvent the wheel!
> You can normally just right click a folder and look at the properties.
> Then change the mode to '0777', or mke sure all the boxes are
> checked and ok it.
Woohoo, finally got it working. Thanks for the hint. ;)
Now just got to get it to list all files for others to download, but there looks like there's loads of functions under the Filesystem heading on php.net that should make this relatively straightforward (famous last words)!
Thanks for the continued support all. :)
> A permission denied error sounds as though you haven't correctly
> CHMODed the directory you're uploading to, or it's otherwise denied
> through php.ini or somethign.
Well I've been in touch with my webhost support, and they've said I can't use the ftp functions in PHP but I can use move_uploaded_file(). If the permissions aren't set up correctly at the mo, can you explain to me how to change the permissions of the directory? I'm using Filezilla as my FTP program if that helps. :)
Want to knock together an online file stash rather quickly for a group project at uni. When it comes to webscripts, the only language I know is PHP (or at least the basics of it).
First step is to get the script to actually allow the user to upload a file to my web server (I'll worry about listing uploaded files later).
Here's my effort so far:
[URL]http://www.newslinks.co.uk[/URL]
At the moment, I've restricted it to image files only, but I can't get it to work - something along the lines of "failed to open stream: Permission denied in /home/newslinksuk/public_html/index.php on line 34".
My code can be provided if required.
Any prompt help would be greatly appreciated, as this would be a valuable tool for my team.
Oh, and if anyone knows of a free service on the web that does such a thing, please let me know - no point trying to reinvent the wheel!