Quote:
Originally Posted by rake
Like i said, before, you can't come here and expect someone to code an entire hack for you
|
The thing is, its not a hack for vB. Its a PHP script. I wrote some coding of this script (with not knowing much PHP), a friend of mine also helped write most of it.
PHP Code:
<?php
if($Submit){
if ($_FILES['imagefile']['type'] == "image/gif" OR $_FILES['imagefile']['type'] == "image/jpg" OR $_FILES['imagefile']['type'] == "image/psd" OR $_FILES['imagefile']['type'] == "image/png") {
copy ($_FILES['imagefile']['tmp_name'], "www.3pic-designs.com/hosting/".$_FILES['imagefile']['name'])
or die ("Could not copy");
}else{
echo "Not an image file (".$_FILES['imagefile']['name'].")";
}
}else{
}
?>
And here is the error I get with a .gif: Warning: copy(
www.3pic-designs.com/hosting/phreak.gif): failed to open stream: No such file or directory in /home/www/3pic-designs.com/hosting/upload.php on line 11
Could not copy
And here is the error I get with a .jpg: Not an image file (Divine.jpg)
Does anyone know how I could fix this? I wrote the image/jpg all the way to png myself from just looking at the code and changing the /gif to my desire.
EDIT: I dont want a vB hack. I am talking about a real script for a site. Not forums.