Jump to content

imagecopy error


Recommended Posts

Hello friends,

 

I need help in imagecopy function used in php

 

i write the code here is the sample...................

 

<?php

$w = getimagesize("image2.jpg");

echo $w[0];

echo $w[1];

 

$src = "/var/www/html/image2.jpg";

 

imagecopy("image1.jpg","$src","50","100","40","100","$w[0]","$w[1]");

?>

 

and i am getting the error like this....................

 

PHP Warning:  imagecopy(): supplied argument is not a valid Image resource in /var/www/html/imagecp.php on line 19

 

please help me anybody i need very urgently

 

thank u

 

Link to comment
Share on other sites

Guest
This topic is now 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.