[PHP] PHP and JavaScript

2002-05-26 Thread mp
Hi, php-general, I make this kind of PHP script(script.php): script.php ? $variable = Some some long long Text Blah blah; echo document.write(\.$variable.\); ? And in HTML (other.html) file I write: script language=JavaScript src=script.php/script But there is some mistake. Does

[PHP] Creating Image...

2002-07-31 Thread mp
I want to create simple image... I execute this script: $im = imagecreate (50, 100); $fp = fopen(test/im.jpg,w); fwrite($fp, imagegd($im)); fclose($fp); But there is some problems about this... Could somebody help me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Creating Image v2... storing thumblains...

2002-08-01 Thread mp
Thanks to those who helped me last time about creating image, but now there is another problem... I'm making a thumblain like this: $base_size = 300; $size = GetImageSize($image1); $kof = ($size[0] $size[1]) ? $size[0] : $size[1]; $koef = ($base_size / $kof);

Re: [PHP] Creating Image v2... storing thumblains...

2002-08-01 Thread mp
Oh don't worry about this... I've already found the mistake... Thanks to those who helped me last time about creating image, but now there is another problem... I'm making a thumblain like this: $base_size = 300; $size = GetImageSize($image1); $kof =