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
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
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
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
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
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'
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
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
8 matches
Mail list logo