will this code work with php3???
dont seem to!
can anyone help me make it work with php3?
muppet web hosts wont install php4 for some reason!
thx
<?
$updir = "/home/sites/bla bla/flash";
$updir2 = "/home/sites/bla bla/icons";
if ($gif_name == "") {
die("No icon file selected to upload");
}
$gif_name = str_replace(" ","_",$gif_name);
$gif_name = str_replace("\'","",$gif_name);
if (file_exists("$updir2/$gif_name")) {
die("The icon file you are trying to upload already exists....try re-naming your file");
}
if ($swf_name == "") {
die("No swf file selected to upload");
}
$swf_name = str_replace(" ","_",$swf_name);
$swf_name = str_replace("\'","",$swf_name);
if (file_exists("$updir/$swf_name")) {
die("The swf file you are trying to upload already exists....try re-naming your file");
}
@copy($gif, "$updir2/$gif_name") or die("The icon file you are trying to upload couldn't be copied to the server");
@copy($swf, "$updir/$swf_name") or die("The swf file you are trying to upload couldn't be copied to the server");
?>