I've posted before and i really just can't get this to work...i want this script to work on php 4.1 , but of course it was written for 4.3
here's the section of code i think needs to be edited.
$f = $_FILES["file"];
Now i get this error:
Warning: open_basedir restriction in effect. File is in wrong directory
Warning: fopen("/tmp/phpmXHk8X", "rb") - Operation not permitted
The "Fopen" is in a totally different script than the code i have listed above....the files names are benc.php (fopen) and takeuploade.php(that bit of code i have listed above).
the site works in this order...upload.php ( the form) takes the info, pass's it on to takeupload.php who does the job of checking the file and putting it in its place, and benc.php just read's what was upload...so it is just tripping over the problem in "Takeupload.php" at least in INOP.
This problem is pretty big...at least to me. I'm new to all this and i'm sure i jumped into the deep end of the pool with out ever learning how to swin first. The guy who wrote the scritp has it on his site which i'm about to give you a link to...If you think you can help me out by modding or telling me where to mod this scritpt to make it work on a server running php 4.1 then plz do...i think this will be the last time i post about this problem on these fourms...thanx for any help. The files that do the main work are:
Benc.php,bittorrent.php,takeupload.php,index.php. Here's that link to the script :
http://www.bytemonsoon.com/src/
If you have any queston's about what i ment, cause i'm not so sure i got it out clearly enought, plz post here...thanx