Jump to content

[SOLVED] PHP image uploading


~n[EO]n~

Recommended Posts

yeah thanks i saw that I am getting this error on server

 

Fatal error: Call to undefined function: imagecreatetruecolor() in /home/shankhad/public_html/includes/app.class.php on line 420

 

line 420 got this

$image_p = imagecreatetruecolor($new_width, $new_height);

 

it works fine in localhost but when i upload my files it does not work online , when i viewed phpinfo() online there is no GD (not even a single word),

 

So, the question is can I make this current code work with minor modification or I have to re-code ?

 

any ideas...

So, can i resize my image without using GD Library  ???

 

I uploaded with this code but I couldn't resize the image

 

<?php if($frfilenamegif!="" && $imageErrorFlag==false)
	{

		if(!ereg(".gif", $_FILES["txtimagegif"]["name"]))
			{
				$msg="File should be of .gif type.";
				$imageErrorFlag1=true;
			}
		else {
		$filePathgif = $uploadDir.$frfilenamegif;

		$strfilepath=move_uploaded_file($tmpNamegif,"../".$filePathgif);
		$strfile=$filePathgif;
		}?>

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.