Ok, my web hosting service is using php 4.1 and the code i am trying to work out was written for 4.3, but with a few diff commands i was told it should work, so i've been learning some php and switch some commands. I need help with this one though.
Code : $f = $_FILES["file"];
this is the line of code for the script, my host has their "register globals" on, since it is on by default, and my files are trying to upload to the /tmp/ directory. Which is not allow because open_basedir is in effect.(and i don't want it to go there anyway)
Code: $fp = fopen($f, "rb");
this is the line of code that recieves the "$f" and it gives out a error like this
Error: Warning: open_basedir restriction in effect. File is in wrong directory
Warning: fopen("/tmp/phpBYvtmv", "rb") - Operation not permitted
So what i want to know is how to fix this, i want my files to go to a directory of my setting and not to /tmp/, but i have no idea what to do about $_Files. I know if i fix this alot of other problems i am haveing will be cleared. So if you can help plz do...
Thanx Lucid