Thanks but not really 🙂
I'm a bit of a n00b but looks like the above is giving me access to sql server. What I'm trying to do is run a file upload script on my server but the files that get uploaded I want to go to a directory on another server.
I assume I have to take them as a form upload attachment which will be stored in my host temp directory but if I try to move them anywhere but to a sub folder on the local server, it won't accept it.
If I do this:
move_uploaded_file($_FILES['myfile']['tmp_name'],"files/myuploadedfile"
the file is moved into "files", a sub-folder of the directory where my script is. Fine.
If I try to do this:
move_uploaded_file($_FILES['myfile']['tmp_name'],"http://www.otherurl.com/files/myuploadedfile"
It fails. 🙁
I figure this makes sense coz otherwise I could upload to anywhere I like on the Net so I must have to provide username & password on remote server, but how?
Help appreciated, plz explain tho coz like I say I'm a n00b 😕
thanks