GD text proc via php OK for local strings, but NOT for SESSION-passed strings. why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


hi all,

php-5.1.2 built from src on OSX 10.4.6.

GD-2.0.33 + libpng-1.2.10 are built/enabled.

GD is working fine ... locally.

in a given php file, this returns an image as expected:

	...
	$word="blah";
	imagefttext($im, ... other params ... , $word);
	...
	header ("Content-type: image/png");
	imagepng($im);
	...

however, if rather than defining $word locally in the script, i

	$_SESSION['test']="blah";

elsewhere, then:

	$word=$_SESSION['test']="blah";
	imagefttext($im, ... other params ... , $word);
	imagepng($im);

i simply get a blank image.  NO error in either the browser or my apache
logs.

a simple test with:

	echo $word;

outputs

	"blah"

as expected; i.e, the _SESSION var *is* passed.

QUESTION: what's different about the string passed via SESSION?

thx!

richard

- --

/"\
\ /  ASCII Ribbon Campaign
 X   against HTML email, vCards
/ \  & micro$oft attachments

[GPG] OpenMacNews at gmail dot com
fingerprint: 50C9 1C46 2F8F DE42 2EDB  D460 95F7 DDBD 3671 08C6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iEYEAREDAAYFAkRSjyEACgkQlffdvTZxCMZz/ACgvI60Zm6JfUDnczpOl3gpNLjj
ObMAoLOobf7h7CGuD6dX7Rz2KRV/9vsf
=Znuf
-----END PGP SIGNATURE-----

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux