1

I'm using imagecreatefromjpeg() function to merge two pictures..

now the problem which I'm facing is that when I use the pictures from my server, it works perfectly and when I use pictures from some other website, it doesn't work.

For example: when I use this PHP file http://coolfbapps.in/test/merger.php with function

 imagecreatefrompng('http://coolfbapps.in/test/1.png');

It works perfectly fine as the image is at my own server

but when I alter this function and put the link of an image which is not on my server,

for example:

imagecreatefrompng('http://www.businesseconomics/Test.png');

it doesn't work. (the image file is not on my server)

please suggest me an alternative to this function or a solution as I want to use this with Facebook apps..

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Anurag
  • 141
  • 1
  • 3
  • 12
  • It smells permission problem. Check http://graph.facebook.com/erkintek/picture&type=large – nerkn Apr 06 '11 at 15:04
  • no.. i dont think its permission problem b'coz i tried getting images of frnds and it shows them.. – Anurag Apr 06 '11 at 15:08
  • when you try from firefox, you can download image because you'r logged, when you try with php, php is not logged! If your friends allow photo to be shown anyone, I'm wrong. – nerkn Apr 06 '11 at 15:48

1 Answers1

0

You can use the PHP Function copy() to save the image on your Server.

Phillip Plum
  • 537
  • 4
  • 14