Jump to content

phillips321

Members
  • Posts

    44
  • Joined

  • Last visited

    Never

Everything posted by phillips321

  1. Hi guys, My site www.forumpix.co.uk is a tool that can be used for user to upload images. When a user uploads an image it get's stored on my server as $image_name How could i check for a cookie on the user pc and if there is one read in the uploaded images. (if not then create one) If a new image is uploaded then apend the cookie with $image_name Thus, i can display the users recently uploaded pictures. Cheers guys
  2. im not so much worried about people stealing the image as the whole i dea will be that the image will be hosted on my website for them.
  3. Hi guys, My site takes in a photo and currently adds a watermark to the bottom right as shown by the code at the bottom of this message. Instead i would like to take in an image like this: and turn it into a pic like this how could this be done? i guess the logical way to do it would be to create another image +40px on both height and width and then apply the original image to the centre of the new image. I would then need to get the border going around the outside in some sort of fasion. Cheers in advance imagealphablending($img, true); //turn on transparency on image $overlay = imagecreatefrompng($overlay); //create overlay image using user set file $owidth = imagesx($overlay); //get width of overlay image $oheight = imagesy($overlay); //get height of overlay image imagecopy($img, $overlay, $iwidth - $owidth, $iheight - $oheight, 0, 0, $owidth, $oheight); //apply overlay to image imagedestroy($overlay); //Get rid of temporary overlay file...
  4. hi agentsteal, im not too sure what you mean by user enumeration, when i browse to http://forumpix.getmyip.com/~nobody it says 404 Not Found What will i need to do to fix this
  5. any idea how i make the log.txt unreadable for web browsers but ok for the php script to read/write?
  6. Hi guys, my website is in alpha still, if possbile would you guys be able to test it. upload any image etc... basically try to break it so that i can optimise and secure the code. many thanks http://www.forumpix.co.uk
  7. just figured it out sorry guys, i was stupid enough to put the slash the wrong way it shud have been \n not /n whoops!
  8. Hi guys, I have a website where people have the option to upload pics. when someone uploads a pic i want a file that logs the pic number and the remote ip. It works so far but i cant get each new log on a new line "/n" doesnt work? any ideas? Here's the part where im trying to write out to the file: $ip= $_SERVER['REMOTE_ADDR']; //remote IP address $logoutput = "/n".$newcountnum."-->".$ip; //new data for log file $logfile = fopen($logpath, a); //open log file in append mode fwrite($logfile, $logoutput); //add new data to log file fclose($logfile); //close log file for some reason this code doesn't work, any ideas? thanks in advance And for reference here's the entire of the code: <html> <head> <title>ForumPix Uploader</title> <SCRIPT TYPE="text/javascript"> <!-- function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; window.open(href, windowname, 'width=440,height=365,scrollbars=no'); return false; } //--> </SCRIPT> </head> <body background="background.gif" TEXT="#FFFFFF" LINK="FF6600" VLINK="FF6600"> <!--Changed theme to personalise--> <center> <A HREF="http://www.forumpix.co.uk" STYLE="text-decoration: none"><B> <PRE> __ _ _ / _| (_) | | | |_ ___ _ __ _ _ _ __ ___ _ __ ___ __ ___ ___ _ _| | __ | _/ _ \| '__| | | | '_ ` _ \| '_ \| \ \/ / / __/ _ \ | | | | |/ / | || (_) | | | |_| | | | | | | |_) | |> < _ | (_| (_) | _ | |_| | < |_| \___/|_| \__,_|_| |_| |_| .__/|_/_/\_\ (_) \___\___/ (_) \__,_|_|\_\ | | |_| </PRE> </B></A> <form enctype="multipart/form-data" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="4096000"/> Your file:<input name="upload" type="file"> <font size="1"> <A HREF="TandCs.html" onClick="return popup(this, 'notes')">Accept T&Cs:</A> </font> <input type="checkbox" name="tac" value="1" /> <input type="submit" value="Upload!"> </form> <?php $countpath = 'upcount.txt'; //sets location of counter file $logpath = 'log.txt'; //sets location of the log file $resize = '1000'; //sets max width or height of image $url = 'http://forumpix.getmyip.com'; //url of site (dont not include trainling "/") $overlay = 'overlay.png'; $quality = '60'; //user sets quality of jpg image $fail = '0'; $img_resized = '0'; $size = $_FILES['upload']['size']; $type = $_FILES['upload']['type']; $name = $_FILES['upload']['tmp_name']; if ($_POST['tac'] == 1){$tac = 1;} else {$tac = 0;} if ($name != UPLOAD_ERR_OK){$fail = 'Error uploading file!';} //checks for upload error if ($size == 0){$fail = 'Error: uploaded file is empty!';} //file size check if ($size > '4096000') {$fail = 'File was too big - please upload one smaller than 1MB.';} //checks uploaded file size if ($tac == 0){$fail = 'Please acccept the terms and conditions';} if($fail == '0'){ //echo '<BR>FILE Type Check running'; if ($type == 'image/jpeg') {$img = imagecreatefromjpeg($name);} //the follwoing segment of code checks the file type elseif ($type == 'image/gif') {$img = imagecreatefromgif($name);} elseif ($type == 'image/png') {$img = imagecreatefrompng($name);} elseif ($type == 'image/bmp') {$img = imagecreatefromwbmp($name);} else {$fail = 'incorrect file type, please upload either; JPG, BMP, GIF or PNG';} } //echo '<BR>size='.$size; //echo '<BR>type='.$type; //echo '<BR>name='.$name; //echo '<BR>tac='.$tac; if ($fail != '0'){} else { //echo '<BR>fail=PASS'; //TEMP marker to inform that fail=0 $iwidth = imagesx($img); //get image width $iheight = imagesy($img); //get image height //echo '<BR>Image dimentions:'.$iwidth.'x'.$iheight; //show dimentions before resize //Shrink image size if larger than 1000x1000 if($iwidth>$resize || $iheight>$resize){ $img_resized = '1'; if($iwidth>$iheight){ $tmp_iwidth= $resize; //set width of new size $tmp_iheight = $iheight * ($tmp_iwidth/$iwidth); //create height based on width maintaining aspect ratio } else{ $tmp_iheight= $resize; //set width of new size $tmp_iwidth = $iwidth * ($tmp_iheight/$iheight); //create width based on height maintaining aspect ratio } $tmp_resized = imagecreatetruecolor($tmp_iwidth, $tmp_iheight); //create new images with resized dimentions imagecopyresampled($tmp_resized, $img, 0, 0, 0, 0, $tmp_iwidth,$tmp_iheight, $iwidth, $iheight); //resample image to new size $img = $tmp_resized; //set resampled image back to $img $iwidth= imagesx($img); //get image width $iheight= imagesy($img); //get image height } imagealphablending($img, true); //turn on transparency on image $overlay = imagecreatefrompng($overlay); //create overlay image using user set file $owidth = imagesx($overlay); //get width of overlay image $oheight = imagesy($overlay); //get height of overlay image imagecopy($img, $overlay, $iwidth - $owidth, $iheight - $oheight, 0, 0, $owidth, $oheight); //apply overlay to image imagedestroy($overlay); //Get rid of temporary overlay file... $countfile = fopen($countpath, r); //open counter file $countnum = fread($countfile, filesize($countpath)); //get current counter integer fclose($countfile); //close counter file $newcountnum = $countnum + 1; //increment counter by one $path = 'uploads/'.str_pad($newcountnum,8,0,'STR_PAD_LEFT').'.jpg'; //create a new filename $webpath = $url.'/'.$path; //generate path to new photo if(!imagejpeg($img, $path, $quality)) { $fail = 'Unable to write a new JPEG. Contact the administrator.'; echo $fail; } else { $countfile = fopen($countpath, w); //open counter in overwrite mode fwrite($countfile, $newcountnum); //write new counter num fclose($countfile); //close overwritten counter file $success=1; //success! $ip= $_SERVER['REMOTE_ADDR']; //remote IP address $logoutput = "/n".$newcountnum."-->".$ip; //new data for log file $logfile = fopen($countpath, a); //open log file in append mode fwrite($logfile, $logoutput); //add new data to log file fclose($logfile); //close log file } imagedestroy($img); //Get rid of our temporary file... //echo '<BR>Fail Status at end of image processing='.$fail; } if (!$fail=='0') { //failure during script so output UPLOAD FAILED echo '<font size="6">File Upload...</font>'; echo '<BR>'.$fail; echo '<BR>Try to upload a file using the above form<BR>'; } else{ echo '<font size="6">Upload Sucess!</font><BR>'; echo 'Your photo\'s has been uploaded to:<BR><A href='.$webpath.'>'.$webpath.'</A><BR>'; echo '<font size ="1">Copy and paste the above link into your forum when writitng a message</font><BR>'; echo 'You should see a preview of it below:<BR>'; echo '<img src='.$webpath.' width=450><BR>'; if ($img_resized = '1'){echo '<font size="1">Image size='.$iwidth.'x'.$iheight.'</font><BR>';} //show new dimentions echo 'Now feel free to upload another if you\'d like...<BR>'; } ?> <font size="1"> <A HREF="help.html" onClick="return popup(this, 'notes')">Click here for some help</A> </font> </center> </body> </html>
  9. BlueSkyIS, ur a legend! that was it, it was initially set as 2M, just changed that to 10M, pretty sure a user wont try to upload a 10MB image to my server. Once again can i say thanks for figuring this out for me, i thought it was an issue with my php code rather than my ini file. If your ever in southwest england i owe you a pint!
  10. nope thats not it either. I have literally looked into this code like a madman but something with php aint right. Any chance someone could quickly use the php code on their server and test uploading a file to it? (try uploading a file greater than 2048KB - i would be very greatful if someone else could reproduce the error) 4 files + 1 directory needed: index.php (the actual code) overlay.png (the overlayed logo) background.gif upcount.txt (the upload text counter) uploads/ (a directory to write the uploaded images to) all files are packed in this zip here (11KB) http://phillips321.getmyip.com/dumping_ground/forumpix.zip here's the code for reference: <html> <head> <title>ForumPix Uploader</title> <SCRIPT TYPE="text/javascript"> <!-- function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; window.open(href, windowname, 'width=400,height=300,scrollbars=no'); return false; } //--> </SCRIPT> </head> <body background="background.gif" TEXT="#FFFFFF" LINK="FF6600" VLINK="FF6600"> <!--Changed theme to personalise--> <center> <PRE> __ _ _ / _| (_) | | | |_ ___ _ __ _ _ _ __ ___ _ __ ___ __ ___ ___ _ _| | __ | _/ _ \| '__| | | | '_ ` _ \| '_ \| \ \/ / / __/ _ \ | | | | |/ / | || (_) | | | |_| | | | | | | |_) | |> < _ | (_| (_) | _ | |_| | < |_| \___/|_| \__,_|_| |_| |_| .__/|_/_/\_\ (_) \___\___/ (_) \__,_|_|\_\ | | |_| </PRE> <form enctype="multipart/form-data" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="4096000"/> Your file:<input name="upload" type="file"> <font size="1"> <A HREF="TandCs.html" onClick="return popup(this, 'notes')">Accept T&Cs</A> </font> <input type="checkbox" name="tac" value="1" /> <input type="submit" value="Upload!"> </form> <?php $countpath = 'upcount.txt'; //sets location of counter file $resize = '1000'; //sets max width or height of image $url = 'http://forumpix.getymyip.com'; //url of site (dont not include trainling "/" $overlay = 'overlay.png'; $quality = '60'; //user sets quality of jpg image $fail = '0'; $img_resized = '0'; $size = $_FILES['upload']['size']; $type = $_FILES['upload']['type']; $name = $_FILES['upload']['tmp_name']; if ($_POST['tac'] == 1){$tac = 1;} else {$tac = 0;} if ($name != UPLOAD_ERR_OK){$fail = 'Error uploading file!';} //checks for upload error if ($size == 0){$fail = 'Error: uploaded file is empty!';} //file size check if ($size > '4096000') {$fail = 'File was too big - please upload one smaller than 1MB.';} //checks uploaded file size if ($tac == 0){$fail = 'Please acccept the terms and conditions';} if($fail == '0'){ //echo '<BR>FILE Type Check running'; if ($type == 'image/jpeg') {$img = imagecreatefromjpeg($name);} //the follwoing segment of code checks the file type elseif ($type == 'image/gif') {$img = imagecreatefromgif($name);} elseif ($type == 'image/png') {$img = imagecreatefrompng($name);} elseif ($type == 'image/bmp') {$img = imagecreatefromwbmp($name);} else {$fail = 'incorrect file type, please upload either; JPG, BMP, GIF or PNG';} } //echo '<BR>size='.$size; //echo '<BR>type='.$type; //echo '<BR>name='.$name; //echo '<BR>tac='.$tac; if ($fail != '0'){} else { //echo '<BR>fail=PASS'; //TEMP marker to inform that fail=0 $iwidth = imagesx($img); //get image width $iheight = imagesy($img); //get image height //echo '<BR>Image dimentions:'.$iwidth.'x'.$iheight; //show dimentions before resize //Shrink image size if larger than 1000x1000 if($iwidth>$resize || $iheight>$resize){ $img_rezied = '1'; $tmp_iwidth= $resize; //set width of new size $tmp_iheight = $iheight * ($tmp_iwidth/$iwidth); //create height based on width maintaining aspect ratio $tmp_resized = imagecreatetruecolor($tmp_iwidth, $tmp_iheight); //create new images with resized dimentions imagecopyresampled($tmp_resized, $img, 0, 0, 0, 0, $tmp_iwidth,$tmp_iheight, $iwidth, $iheight); //resample image to new size $img = $tmp_resized; //set resampled image back to $img $iwidth=$tmp_iwidth; //reset the width $iheight=$tmp_iheight; // reset the height } imagealphablending($img, true); //turn on transparency on image $overlay = imagecreatefrompng($overlay); //create overlay image using user set file $owidth = imagesx($overlay); //get width of overlay image $oheight = imagesy($overlay); //get height of overlay image imagecopy($img, $overlay, $iwidth - $owidth, $iheight - $oheight, 0, 0, $owidth, $oheight); //apply overlay to image imagedestroy($overlay); //Get rid of temporary overlay file... $countfile = fopen($countpath, r); //open counter file $countnum = fread($countfile, filesize($countpath)); //get current counter integer fclose($countfile); //close counter file $newcountnum = $countnum + 1; //increment counter by one $path = 'uploads/'.str_pad($newcountnum,8,0,'STR_PAD_LEFT').'.jpg'; //create a new filename $webpath = $url.'/'.$path; //generate path to new photo if(!imagejpeg($img, $path, $quality)) { $fail = 'Unable to write a new JPEG. Contact the administrator.'; echo $fail; } else { $countfile = fopen($countpath, w); fwrite($countfile, $newcountnum); fclose($countfile); $success=1; } imagedestroy($img); //Get rid of our temporary file... //echo '<BR>Fail Status at end of image processing='.$fail; } if (!$fail=='0') { //failure during script so output UPLOAD FAILED echo '<font size="6">Upload Failed!</font>'; echo '<BR>'.$fail; echo '<BR>Try giving it another go...'; } else{ echo '<font size="6">Upload Sucess!</font>'; echo '<P>Your photo\'s has been uploaded to:<BR><A href='.$webpath.'>'.$webpath.'</A><br>you should see a preview of it below:</P>'; echo '<P><img src='.$webpath.' width=450></P>'; if ($img_resized = '1'){echo '<font size="1">Image resized to='.$iwidth.'x'.$iheight.'</font>';} //show new dimentions echo '<P>Now feel free to upload another if you\'d like...</P>'; } ?> </center> </body> </html>
  11. I have tested this code and it still doesn't work... Something really isn't right. Can you possibly try uploading a BMP or a large picture to http://www.forumpix.co.uk Cheers
  12. Hi guys, I've found a fault in my php script, when i try to upload a file sometimes if the file is too large it wont report the size of it. This simple code should just work, i'm unsure as to why it doesn't. If i upload an small image (<1MB) everything works fine,but sometimes if i upload a larger image it doesn't report the size? Any one here got any ideas?? Cheers <html> <head> <title>ForumPix Uploader</title> </head> <body> <center> <form enctype="multipart/form-data" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="94096000"/> Your file:<input name="upload" type="file"> <input type="submit" value="Upload!"> </form> <?php $size = $_FILES['upload']['size']; $type = $_FILES['upload']['type']; $name = $_FILES['upload']['tmp_name']; echo ' size='.$size; echo ' type='.$type; echo ' name='.$name; ?> </center> </body> </html>
  13. hi guys, here's the code so far. How do i got about on error of trying to convert a picture to quit out and display an error message? <?php $quality=60; //Quality we'll write the JPEG as... $countpath = 'upcount.txt'; //Name of our filename counter... $url = 'http://forumpix.getmyip.com/';//Where our images are published (with trailing slash) //Variables representing the uploaded file $size = $_FILES['upload']['size']; $type = $_FILES['upload']['type']; //Location of temporary uploaded file $name = $_FILES['upload']['tmp_name']; //Empty variables to store error messages... $fail=0; $skip=0; $success=0; $resize=1000; //resize to this size if over //Check image is right size... if ($size > 2048000) { $fail = 'File was too big - please upload one smaller than 2MB.'; } elseif ($size < 1) { //Probably nothing's been uploaded so we're going to pretend they didn't. $skip=1; //Check image is right type, and create GD resource as necessary... } elseif ($type == 'image/jpeg') { $img = imagecreatefromjpeg($name); } elseif ($type == 'image/gif') { $img = imagecreatefromgif($name); } elseif ($type == 'image/png') { $img = imagecreatefrompng($name); } elseif ($type == 'image/bmp') { $img = imagecreatefromwbmp($name); //None of the right types were found, so fail out... } else { $fail = 'Invalid file - check it\'s JPG, PNG, GIF, or BMP!'; } //Check there's no error messages, then write JPEG... if ($fail==0 and $skip==0) { //First check our filename counter exists... $countfile = fopen($countpath, r); $countnum = fread($countfile, filesize($countpath)); fclose($countfile); //Generate the new file number... $newcountnum = $countnum + 1; //Generate a new filename... $path = 'uploads/'.str_pad($newcountnum,8,0,'STR_PAD_LEFT').'.jpg'; //Generate the URL to that filename... $webpath = $url.$path; //Find base image size $iwidth = imagesx($img); $iheight = imagesy($img); //Shrink image size if larger than 1000x1000 if($iwidth>$resize || $iheight>$resize){ $tmp_iwidth= $resize; //set width of new size $tmp_iheight = $iheight * ($tmp_iwidth/$iwidth); //create height based on width maintaining aspect ratio $tmp_resized = imagecreatetruecolor($tmp_iwidth, $tmp_iheight); //create new images with resized dimentions imagecopyresampled($tmp_resized, $img, 0, 0, 0, 0, $tmp_iwidth,$tmp_iheight, $iwidth, $iheight); //resample image to new size $img = $tmp_resized; //set resampled image back to $img $iwidth=$tmp_iwidth; //reset the width $iheight=$tmp_iheight; // reset the height } //Turn on alpha blending imagealphablending($img, true); // Create overlay image $overlay = imagecreatefrompng('overlay.png'); //Get the size of overlay $owidth = imagesx($overlay); $oheight = imagesy($overlay); //Overlay watermark imagecopy($img, $overlay, $iwidth - $owidth, $iheight - $oheight, 0, 0, $owidth, $oheight); //Get rid of temporary overlay file... imagedestroy($overlay); //Write JPEG and increment counter... if(!imagejpeg($img, $path, $quality)) { $fail = 'Unable to write a new JPEG. Contact the administrator.'; } else { $countfile = fopen($countpath, w); fwrite($countfile, $newcountnum); fclose($countfile); $success=1; } //Get rid of our temporary file... imagedestroy($img); } //Now to have a chat with the user him/her/itself... ?> <html> <head> <title>ForumPix Uploader</title> <SCRIPT TYPE="text/javascript"> <!-- function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; window.open(href, windowname, 'width=400,height=300,scrollbars=no'); return false; } //--> </SCRIPT> </head> <body background="background.gif" TEXT="#FFFFFF" LINK="FF6600" VLINK="FF6600"> <!--Changed theme to personalise--> <center> <PRE> __ _ _ / _| (_) | | | |_ ___ _ __ _ _ _ __ ___ _ __ ___ __ ___ ___ _ _| | __ | _/ _ \| '__| | | | '_ ` _ \| '_ \| \ \/ / / __/ _ \ | | | | |/ / | || (_) | | | |_| | | | | | | |_) | |> < _ | (_| (_) | _ | |_| | < |_| \___/|_| \__,_|_| |_| |_| .__/|_/_/\_\ (_) \___\___/ (_) \__,_|_|\_\ | | |_| </PRE> <?php //Actually, best check whether we've got good or bad news first... //First, the bad news... if (!$fail==0) { echo '<H2>Upload Failed!</H2>'; echo '<P>'.$fail.'</P>'; echo '<P>Try giving it another go...</P>'; //Second, the good news... } elseif ($success==1) { echo '<H2>Upload Success!</H2>'; echo '<P>Your photo\'s been uploaded to:<BR><A href='.$webpath.'>'.$webpath.'</A><br>you should see a preview of it below:</P>'; echo '<P><img src='.$webpath.' width=450></P>'; echo '<P>Now feel free to upload another if you\'d like...</P>'; //Lastly... no news! } else { echo '<H2>Upload Photo</H2>'; echo '<P>Locate your picture by clicking on browse and then click "Upload!"</P>'; } //And that's it... we just need the form, and end the HTML document! ?> <form enctype="multipart/form-data" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="2048000"/> Your file:<input name="upload" type="file"> <input type="submit" value="Upload!"> </form> <font size="1"> Make sure you agree to the <A HREF="TandCs.html" onClick="return popup(this, 'notes')">Terms and Conditions</A> </font> </center> </body> </html>phillips321@LinuxServer:/media/data/forumpix.co.uk$
  14. Hi guys, New idea and creation, i've created a website for my friends and family to host their pictures that they want to post to forums. http://www.forumpix.co.uk This is the first time i've ever played with php so i'm not too sure how solid this code will be. If possible could you guys upload an image or two and try to break the php script. Any feedback would be much appreciated Thanks in advance
  15. just to note i already have GD installed on the server so if i could use that it would be handy. I've been looking at this site but i'm still confused http://uk3.php.net/gd
  16. Hi guys, I have got my script working so that only GIF, PNG, BMP and JPG files can be uploaded. It then saves these images to the "uploads" directory. What i would like to do is automatically convert these images to jpg and also add a small logo onto the image before saving it. I have heard of imagemagic but i dont really know how to use it. Anyone know of any tutorials or code i can have a look through to help me? Is this going to be difficult to do? P.s. My existing upload code is below <?php $path= "uploads/".$HTTP_POST_FILES['ufile']['name']; $quit=0; $size= $HTTP_POST_FILES['ufile']['size']; $type= $HTTP_POST_FILES['ufile']['type']; if($size > 350000) { echo "Your file is too large.<br>"; $quit=1; } if(($type == "image/jpeg") || ($type == "image/gif") || ($type == "image/png") || ($type == "image/bmp")) { if(!($quit==1)) { if(copy($HTTP_POST_FILES['ufile']['tmp_name'], $path)) { echo "Successful<BR/>"; echo "File Name :".$HTTP_POST_FILES['ufile']['name']."<BR/>"; echo "File Size :".$HTTP_POST_FILES['ufile']['size']."<BR/>"; echo "File Type :".$HTTP_POST_FILES['ufile']['type']."<BR/>"; echo "Image Location: <A href=".$path.">http://forumpix.getmyip.com/".$path."</A><BR/>"; echo "<img src=\"$path\">"; } } else { echo "There was an error.<br>"; } } else { echo "You may only upload JPG, BMP, PNG or GIF images.<br>"; $quit=1; } ?>
  17. one thing i have noticed is that it's trying to reference the file /var/www/uploads/me.gif but it should be referencing it as: /media/data/forumpix.co.uk/uploads/me.gif any ideas?
  18. Hi guys, i know php works fine on my site as i have fotopholder running fine on it. I'm trying to create an upload script using http://snippets.dzone.com/posts/show/3729 but i keep getting an error, anyone know what this error means and how to solve it? many thanks P.s. ubuntu 6.06LTS and apache2 Warning: move_uploaded_file(/var/www/uploads/me.gif) [function.move-uploaded-file]: failed to open stream: No such file or directory in /media/data/forumpix.co.uk/upload.php on line 8 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpfSRbit' to '/var/www/uploads/me.gif' in /media/data/forumpix.co.uk/upload.php on line 8 Upload failed Here is some more debugging info:Array ( [userfile] => Array ( [name] => me.gif [type] => image/gif [tmp_name] => /tmp/phpfSRbit [error] => 0 [size] => 32658 ) )
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.