Php upload script

apps

#1

I do not know what i should do wit hthe below code anyone help please give examples?

*     Setup variables
************************************************************/
$site_name = $_SERVER['HTTP_HOST'];
$url_dir = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
$url_this =  "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];

$upload_dir = "files/";
$upload_url = $url_dir."/files/";
$message ="";

#2

Love to help, but this code should be just dandy for just setting a few variables - but it’ll never “upload” anything as-is. You’ll be needing an HTML/XML form or some other goodies to actually fetch a file from-somewhere to-somewhere.

A) Need some more details as to what you’re up to. I have plenty of code snippets you’re welcome to look at (or I’ll send to ya if ya like) but without knowing the ultimate intended application likely is you’ll still be confused.

B) This question probably is probably more apropos in the “Programming” forum.