Re: [PHP] save file from outside url

2002-12-10 Thread Jeremiah Breindel
When I wanted to output the png to file, I just need to plop the global label in front of the $image_filename before I passed it.. Simple mistake, that's what I get for using someone else's script ;-) // output PNG object. global $image_filename; imagePNG($image, $image_filename); "J

Re: [PHP] save file from outside url

2002-12-09 Thread Jeremiah Breindel
image output code is close to the bottom *** $image_filename = "../images/tsroll_" . $id . ".png"; //dynamic file name $msg = $rollover; class textPNG { var $font = 'fonts/ARIAL.TTF'; //default font. put in full path. var $msg = "undefined"; // default text to display. var $s

Re: [PHP] save file from outside url

2002-12-09 Thread Jason Wong
On Monday 09 December 2002 23:44, Jeremiah Breindel wrote: > Ok. I stripped the needed code out of the image creation script and > inserted it into my update script. It works great as long as I hard > code in the filename of the file that is being saved to the server. > When I pass the image crea

Re: [PHP] save file from outside url

2002-12-09 Thread Jeremiah Breindel
Ok. I stripped the needed code out of the image creation script and inserted it into my update script. It works great as long as I hard code in the filename of the file that is being saved to the server. When I pass the image creation function a variable for the filename it tells me "invalid fil

Re: [PHP] save file from outside url

2002-12-08 Thread Jason Wong
On Sunday 08 December 2002 00:47, Jeremiah Breindel wrote: > Thanks for responing Jason! > > There is other code in there for updating some database entries and > producing a confirmation page, but I had them working perfectly before I > added the image code below. Only when acessing the outside s

Re: [PHP] save file from outside url

2002-12-07 Thread Jeremiah Breindel
Thanks for responing Jason! There is other code in there for updating some database entries and producing a confirmation page, but I had them working perfectly before I added the image code below. Only when acessing the outside script and saving to file did it start doing the odd things. I didn'

Re: [PHP] save file from outside url

2002-12-07 Thread Jason Wong
On Saturday 07 December 2002 05:12, Jeremiah Breindel wrote: > I am trying to save a dynamically generated image on an outside server to a > local file on my server using the code below: > > $fc = fopen($image_filename, "wb"); > $file = fopen ($image_url, "rb"); > > if (!$file) { > echo "Unabl

[PHP] save file from outside url

2002-12-07 Thread Jeremiah Breindel
I am trying to save a dynamically generated image on an outside server to a local file on my server using the code below: $fc = fopen($image_filename, "wb"); $file = fopen ($image_url, "rb"); if (!$file) { echo "Unable to open remote file.\n"; exit; }else{ while (!feof ($file)) { $li