[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

Re: [PHP] save file from outside url

2002-12-07 Thread Jeremiah Breindel
this - "$rollover_image_url = "http://www.anysite.com//pngmake.php?msg="; . $rollover . "&rot=0&size=12&font=fonts/ARIAL.TTF"; "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Saturda

Re: [PHP] save file from outside url

2002-12-09 Thread Jeremiah Breindel
valid filename", although I am echoing it out right before and it looks perfect. Any thoughts? Jason Wong wrote: > > On Sunday 08 December 2002 00:47, Jeremiah Breindel wrote: > > Thanks for responing Jason! > > > > There is other code in there for updating some da

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

[PHP] Re: save file from outside url

2002-12-09 Thread Jeremiah Breindel
I figured it out! Variable scope problem! Thanks for all your help! "Jeremiah Breindel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am trying to save a dynamically generated image on an outside server to a > local file on

Re: [PHP] save file from outside url

2002-12-10 Thread Jeremiah Breindel
e_filename); "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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

[PHP] installation problem

2003-08-28 Thread Jeremiah Breindel
displayed the text it was supposed to, and it never errored out. Anybody have any ideas? Jeremiah Breindel [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] installation help

2003-09-15 Thread Jeremiah Breindel
displayed the text it was supposed to, and it never errored out. Anybody have any ideas? I also had phpinfo run as a script through the server, with the same results. Jeremiah Breindel [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net