php-windows Digest 25 Apr 2002 03:41:38 -0000 Issue 1110

Topics (messages 13274 through 13299):

Re: $POST vars
        13274 by: Eduards Cauna
        13275 by: Matt Babineau
        13276 by: Mike Flynn
        13277 by: Nicole Amashta

Image generation question
        13278 by: Matt Babineau
        13279 by: Richard Black
        13280 by: Matt Babineau
        13282 by: Richard Black
        13284 by: Matt Babineau
        13285 by: Matt Babineau
        13286 by: Matt Babineau

R: [PHP-WIN] Image generation question
        13281 by: Darvin Andrioli
        13283 by: Matt Babineau

Re: Image creation
        13287 by: Matt Babineau

File upload issue 4.2.0
        13288 by: Ethan Nelson
        13290 by: Dash McElroy

PDF extensions freeze server 4.2.0
        13289 by: Ethan Nelson
        13295 by: Webmaster

Re: Excel not closing after using it via COM
        13291 by: Scott Hurring
        13296 by: Helphand
        13297 by: Alan Popow

Re: COM vs. ODBC
        13292 by: Scott Hurring

Re: I want to learn more COM for my php script
        13293 by: Scott Hurring
        13294 by: Neil Lincoln

installing on a remote web host
        13298 by: rob
        13299 by: Ross Fleming

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---

>I am merely trying to see whether a page was posted to or not, and
>perform an action from the result.
>
>Matt Babineau

<?

if (@$HTTP_POST_VARS) {

}

?>

--- End Message ---
--- Begin Message ---
Yeah that is the idea, are there any bad things about doing it this way?
The POST array does not exist if the page has not been posted to?

Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED] 
p: 603.943.4237
w: http://www.illuminatistudios.com
 


-----Original Message-----
From: Eduards Cauna [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 10:42 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] re: $POST vars



>I am merely trying to see whether a page was posted to or not, and 
>perform an action from the result.
>
>Matt Babineau

<?

if (@$HTTP_POST_VARS) {

}

?>


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

--- End Message ---
--- Begin Message ---
At 10:49 AM 4/24/2002 -0400, you wrote:
>Yeah that is the idea, are there any bad things about doing it this way?
>The POST array does not exist if the page has not been posted to?

To be safer, you could check the sizeof($HTTP_POST_VARS), rather than just 
if it is set (exists).  That might work better.  But I don't actually know 
how that variable works (if it is always set or not, or if there are 
default values in it even if a form has not been posted).  But this seems 
like a better bet than just doing isset() on it, anyway.

-Mike

--- End Message ---
--- Begin Message ---
You can set a hidden variable in your form that will be passed to the script
when it is posted. Then, you can check for that variable like so:

<input type="hidden" name="submitted" value="true">

<?
if ( $HTTP_POST_VARS["submitted"] == "true" )
{
 # do something
}
else {
 # this form has not been submitted yet.
}
?>

If you want to limit what scripts can post to the handling script, check the
referering script to make sure it is allowed, like so:

<?

#allowedscript.php is the script that is allowed to post to the handling
script, in this case.

if ( $HTTP_POST_VARS["submitted"] == "true"  && eregi("allowedscript.php",
$HTTP_REFERER) )
{
 # do something
}
else {
 # this form has not been submitted yet.
}
?>


Just some ideas .... and there are multiple ways of doing this as well.

good luck with it,

--
Nicole Amashta
Web Application Developer
www.aeontrek.com


"Matt Babineau" <[EMAIL PROTECTED]> wrote in message
009501c1eb9f$416ffbf0$0100a8c0@developerx">news:009501c1eb9f$416ffbf0$0100a8c0@developerx...
> Yeah that is the idea, are there any bad things about doing it this way?
> The POST array does not exist if the page has not been posted to?
>
> Matt Babineau
> Freelance Internet Developer
> e: [EMAIL PROTECTED]
> p: 603.943.4237
> w: http://www.illuminatistudios.com
>
>
>
> -----Original Message-----
> From: Eduards Cauna [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 10:42 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] re: $POST vars
>
>
>
> >I am merely trying to see whether a page was posted to or not, and
> >perform an action from the result.
> >
> >Matt Babineau
>
> <?
>
> if (@$HTTP_POST_VARS) {
>
> }
>
> ?>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
I have been trying to generate images dynamicall but I keep getting this
message.
 
Fatal error: Call to undefined function: imagecreatefrompng() in
D:\wwwroot\counter\img.php on line 5
 
Here is my code:
 
<?php
// set up image
 //$height = 200;
 //$width  = 200;
 $im = imagecreatefrompng("$Image1.png");
 $black = ImageColorAllocate($im, 0, 0, 0);
 
// draw string
 ImageString($im, 4, 15, 15, "000001", $black);
 
// output image
 Header("Content-type: image/png");
 ImagePNG($im);
 
// destroy img
 ImageDestroy($im);
?>
 
 
Matt Babineau
Freelance Internet Developer
e:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] 
p: 603.943.4237
w:  <http://www.illuminatistudios.com/> http://www.illuminatistudios.com
 
 
--- End Message ---
--- Begin Message ---
Do you have the php_gd.dll extension?? And if so, is it listed as an
extension which is listed in your php.ini file???

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 17:02
To: 'Php-Win (E-mail)'
Subject: [PHP-WIN] Image generation question


I have been trying to generate images dynamicall but I keep getting this
message.

Fatal error: Call to undefined function: imagecreatefrompng() in
D:\wwwroot\counter\img.php on line 5

Here is my code:

<?php
// set up image
 //$height = 200;
 //$width  = 200;
 $im = imagecreatefrompng("$Image1.png");
 $black = ImageColorAllocate($im, 0, 0, 0);

// draw string
 ImageString($im, 4, 15, 15, "000001", $black);

// output image
 Header("Content-type: image/png");
 ImagePNG($im);

// destroy img
 ImageDestroy($im);
?>


Matt Babineau
Freelance Internet Developer
e:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]
p: 603.943.4237
w:  <http://www.illuminatistudios.com/> http://www.illuminatistudios.com



--- End Message ---
--- Begin Message ---
I don't think so, where can I get this? I found a GD library but it
needs to be compiled or something and I don't know how to do that.

Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED] 
p: 603.943.4237
w: http://www.illuminatistudios.com
 


-----Original Message-----
From: Richard Black [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 12:12 PM
To: Matt Babineau; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


Do you have the php_gd.dll extension?? And if so, is it listed as an
extension which is listed in your php.ini file???

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 17:02
To: 'Php-Win (E-mail)'
Subject: [PHP-WIN] Image generation question


I have been trying to generate images dynamicall but I keep getting this
message.

Fatal error: Call to undefined function: imagecreatefrompng() in
D:\wwwroot\counter\img.php on line 5

Here is my code:

<?php
// set up image
 //$height = 200;
 //$width  = 200;
 $im = imagecreatefrompng("$Image1.png");
 $black = ImageColorAllocate($im, 0, 0, 0);

// draw string
 ImageString($im, 4, 15, 15, "000001", $black);

// output image
 Header("Content-type: image/png");
 ImagePNG($im);

// destroy img
 ImageDestroy($im);
?>


Matt Babineau
Freelance Internet Developer
e:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]
p: 603.943.4237
w:  <http://www.illuminatistudios.com/> http://www.illuminatistudios.com



--- End Message ---
--- Begin Message ---
If its not in your extensions folder, you should be able to download it from
php.net.

On the downloads page there are 2 different windows binary downloads. The
first of these is a zip package, which contains a whole host of extensions.
The second has a windows installer, but no extensions included.

If you download the zip file (making sure you get the right one for your PHP
version!) you should then be able to extract the php_gd.dll file, place it
in your extensions folder, and uncomment (or add the following line in your
php.ini:

extension=php_gd.dll

hth,

Richy
==========================================
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: [EMAIL PROTECTED]

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 17:14
To: 'Richard Black'; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


I don't think so, where can I get this? I found a GD library but it
needs to be compiled or something and I don't know how to do that.

Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.illuminatistudios.com



-----Original Message-----
From: Richard Black [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 12:12 PM
To: Matt Babineau; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


Do you have the php_gd.dll extension?? And if so, is it listed as an
extension which is listed in your php.ini file???

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 17:02
To: 'Php-Win (E-mail)'
Subject: [PHP-WIN] Image generation question


I have been trying to generate images dynamicall but I keep getting this
message.

Fatal error: Call to undefined function: imagecreatefrompng() in
D:\wwwroot\counter\img.php on line 5

Here is my code:

<?php
// set up image
 //$height = 200;
 //$width  = 200;
 $im = imagecreatefrompng("$Image1.png");
 $black = ImageColorAllocate($im, 0, 0, 0);

// draw string
 ImageString($im, 4, 15, 15, "000001", $black);

// output image
 Header("Content-type: image/png");
 ImagePNG($im);

// destroy img
 ImageDestroy($im);
?>


Matt Babineau
Freelance Internet Developer
e:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]
p: 603.943.4237
w:  <http://www.illuminatistudios.com/> http://www.illuminatistudios.com




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

--- End Message ---
--- Begin Message ---
Still no idea about the php_gd.dll file. I looked on
http://www.boutell.com/gd and only saw the 1.8.4 uncompiled version.
Where can I get the compiled DLL for windows?

Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED] 
p: 603.943.4237
w: http://www.illuminatistudios.com
 


-----Original Message-----
From: Richard Black [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 12:27 PM
To: Matt Babineau; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


If its not in your extensions folder, you should be able to download it
from php.net.

On the downloads page there are 2 different windows binary downloads.
The first of these is a zip package, which contains a whole host of
extensions. The second has a windows installer, but no extensions
included.

If you download the zip file (making sure you get the right one for your
PHP
version!) you should then be able to extract the php_gd.dll file, place
it in your extensions folder, and uncomment (or add the following line
in your
php.ini:

extension=php_gd.dll

hth,

Richy
==========================================
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: [EMAIL PROTECTED]

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 17:14
To: 'Richard Black'; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


I don't think so, where can I get this? I found a GD library but it
needs to be compiled or something and I don't know how to do that.

Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.illuminatistudios.com



-----Original Message-----
From: Richard Black [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 12:12 PM
To: Matt Babineau; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


Do you have the php_gd.dll extension?? And if so, is it listed as an
extension which is listed in your php.ini file???

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 17:02
To: 'Php-Win (E-mail)'
Subject: [PHP-WIN] Image generation question


I have been trying to generate images dynamicall but I keep getting this
message.

Fatal error: Call to undefined function: imagecreatefrompng() in
D:\wwwroot\counter\img.php on line 5

Here is my code:

<?php
// set up image
 //$height = 200;
 //$width  = 200;
 $im = imagecreatefrompng("$Image1.png");
 $black = ImageColorAllocate($im, 0, 0, 0);

// draw string
 ImageString($im, 4, 15, 15, "000001", $black);

// output image
 Header("Content-type: image/png");
 ImagePNG($im);

// destroy img
 ImageDestroy($im);
?>


Matt Babineau
Freelance Internet Developer
e:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]
p: 603.943.4237
w:  <http://www.illuminatistudios.com/> http://www.illuminatistudios.com




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


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

--- End Message ---
--- Begin Message ---
I found the DLL but I do not have an 'extensions' folder. Where should I
create this folder? Under the /PHP folder I installed PHP to? Aldo when
I try to run my code now, I get a new message:

X-Powered-By: PHP/4.1.2 Content-type: text/html 
Fatal error: Call to undefined function: imagecreatefrompng() in
D:\wwwroot\counter\img.php on line 5
PHP Warning: Unable to load dynamic library './php_gd.dll' - The
specified procedure could not be found. in Unknown on line 0 


Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED] 
p: 603.943.4237
w: http://www.illuminatistudios.com
 


-----Original Message-----
From: Richard Black [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 12:27 PM
To: Matt Babineau; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


If its not in your extensions folder, you should be able to download it
from php.net.

On the downloads page there are 2 different windows binary downloads.
The first of these is a zip package, which contains a whole host of
extensions. The second has a windows installer, but no extensions
included.

If you download the zip file (making sure you get the right one for your
PHP
version!) you should then be able to extract the php_gd.dll file, place
it in your extensions folder, and uncomment (or add the following line
in your
php.ini:

extension=php_gd.dll

hth,

Richy
==========================================
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: [EMAIL PROTECTED]

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 17:14
To: 'Richard Black'; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


I don't think so, where can I get this? I found a GD library but it
needs to be compiled or something and I don't know how to do that.

Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.illuminatistudios.com



-----Original Message-----
From: Richard Black [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 12:12 PM
To: Matt Babineau; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


Do you have the php_gd.dll extension?? And if so, is it listed as an
extension which is listed in your php.ini file???

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 17:02
To: 'Php-Win (E-mail)'
Subject: [PHP-WIN] Image generation question


I have been trying to generate images dynamicall but I keep getting this
message.

Fatal error: Call to undefined function: imagecreatefrompng() in
D:\wwwroot\counter\img.php on line 5

Here is my code:

<?php
// set up image
 //$height = 200;
 //$width  = 200;
 $im = imagecreatefrompng("$Image1.png");
 $black = ImageColorAllocate($im, 0, 0, 0);

// draw string
 ImageString($im, 4, 15, 15, "000001", $black);

// output image
 Header("Content-type: image/png");
 ImagePNG($im);

// destroy img
 ImageDestroy($im);
?>


Matt Babineau
Freelance Internet Developer
e:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]
p: 603.943.4237
w:  <http://www.illuminatistudios.com/> http://www.illuminatistudios.com




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


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

--- End Message ---
--- Begin Message ---
Ahhh, maybe I am having all these problems because I don't have the
version with all the extensions installed, I just have the base version
of PHP....let me install the other one....

Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED] 
p: 603.943.4237
w: http://www.illuminatistudios.com
 


-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 1:05 PM
To: 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


I found the DLL but I do not have an 'extensions' folder. Where should I
create this folder? Under the /PHP folder I installed PHP to? Aldo when
I try to run my code now, I get a new message:

X-Powered-By: PHP/4.1.2 Content-type: text/html 
Fatal error: Call to undefined function: imagecreatefrompng() in
D:\wwwroot\counter\img.php on line 5 PHP Warning: Unable to load dynamic
library './php_gd.dll' - The specified procedure could not be found. in
Unknown on line 0 


Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED] 
p: 603.943.4237
w: http://www.illuminatistudios.com
 


-----Original Message-----
From: Richard Black [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 12:27 PM
To: Matt Babineau; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


If its not in your extensions folder, you should be able to download it
from php.net.

On the downloads page there are 2 different windows binary downloads.
The first of these is a zip package, which contains a whole host of
extensions. The second has a windows installer, but no extensions
included.

If you download the zip file (making sure you get the right one for your
PHP
version!) you should then be able to extract the php_gd.dll file, place
it in your extensions folder, and uncomment (or add the following line
in your
php.ini:

extension=php_gd.dll

hth,

Richy
==========================================
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: [EMAIL PROTECTED]

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 17:14
To: 'Richard Black'; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


I don't think so, where can I get this? I found a GD library but it
needs to be compiled or something and I don't know how to do that.

Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.illuminatistudios.com



-----Original Message-----
From: Richard Black [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 12:12 PM
To: Matt Babineau; 'Php-Win (E-mail)'
Subject: RE: [PHP-WIN] Image generation question


Do you have the php_gd.dll extension?? And if so, is it listed as an
extension which is listed in your php.ini file???

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 17:02
To: 'Php-Win (E-mail)'
Subject: [PHP-WIN] Image generation question


I have been trying to generate images dynamicall but I keep getting this
message.

Fatal error: Call to undefined function: imagecreatefrompng() in
D:\wwwroot\counter\img.php on line 5

Here is my code:

<?php
// set up image
 //$height = 200;
 //$width  = 200;
 $im = imagecreatefrompng("$Image1.png");
 $black = ImageColorAllocate($im, 0, 0, 0);

// draw string
 ImageString($im, 4, 15, 15, "000001", $black);

// output image
 Header("Content-type: image/png");
 ImagePNG($im);

// destroy img
 ImageDestroy($im);
?>


Matt Babineau
Freelance Internet Developer
e:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]
p: 603.943.4237
w:  <http://www.illuminatistudios.com/> http://www.illuminatistudios.com




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


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


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

--- End Message ---
--- Begin Message ---
Do you have enabled the GD extension ?

Darvin

> -----Messaggio originale-----
> Da: Matt Babineau [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledi 24 aprile 2002 18.02
> A: 'Php-Win (E-mail)'
> Oggetto: [PHP-WIN] Image generation question
> 
> 
> I have been trying to generate images dynamicall but I keep getting this
> message.
>  
> Fatal error: Call to undefined function: imagecreatefrompng() in
> D:\wwwroot\counter\img.php on line 5
>  
> Here is my code:
>  
> <?php
> // set up image
>  //$height = 200;
>  //$width  = 200;
>  $im = imagecreatefrompng("$Image1.png");
>  $black = ImageColorAllocate($im, 0, 0, 0);
>  
> // draw string
>  ImageString($im, 4, 15, 15, "000001", $black);
>  
> // output image
>  Header("Content-type: image/png");
>  ImagePNG($im);
>  
> // destroy img
>  ImageDestroy($im);
> ?>
>  
>  
> Matt Babineau
> Freelance Internet Developer
> e:  <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED] 
> p: 603.943.4237
> w:  <http://www.illuminatistudios.com/> http://www.illuminatistudios.com
>  
>  
> 
--- End Message ---
--- Begin Message ---
I don't think so, I looked in my php folder and I cannot find the DLL
Richard Black said I needed.

Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED] 
p: 603.943.4237
w: http://www.illuminatistudios.com
 


-----Original Message-----
From: Darvin Andrioli [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 12:23 PM
To: Matt Babineau; 'Php-Win (E-mail)'
Subject: [PHP-WIN] R: [PHP-WIN] Image generation question


Do you have enabled the GD extension ?

Darvin

> -----Messaggio originale-----
> Da: Matt Babineau [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledi 24 aprile 2002 18.02
> A: 'Php-Win (E-mail)'
> Oggetto: [PHP-WIN] Image generation question
> 
> 
> I have been trying to generate images dynamicall but I keep getting 
> this message.
>  
> Fatal error: Call to undefined function: imagecreatefrompng() in 
> D:\wwwroot\counter\img.php on line 5
>  
> Here is my code:
>  
> <?php
> // set up image
>  //$height = 200;
>  //$width  = 200;
>  $im = imagecreatefrompng("$Image1.png");
>  $black = ImageColorAllocate($im, 0, 0, 0);
>  
> // draw string
>  ImageString($im, 4, 15, 15, "000001", $black);
>  
> // output image
>  Header("Content-type: image/png");
>  ImagePNG($im);
>  
> // destroy img
>  ImageDestroy($im);
> ?>
>  
>  
> Matt Babineau
> Freelance Internet Developer
> e:  <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED]
> p: 603.943.4237
> w:  <http://www.illuminatistudios.com/>
http://www.illuminatistudios.com
>  
>  
> 

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

--- End Message ---
--- Begin Message ---
Thanks for your help everyone, I got it working by installing the full
release of PHP with all the goodies, then configuring the extension
mapping, then changing the extension registration to
extension=php_gd2.dll, which is included in php 4.2.0.
 
Thanks~!
 
Matt Babineau
Freelance Internet Developer
e:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] 
p: 603.943.4237
w:  <http://www.illuminatistudios.com/> http://www.illuminatistudios.com
 
 
--- End Message ---
--- Begin Message ---
I get this error when I submit a form with nothing specified in the file
upload field.  My understanding is that the server or PHP should submit
"none" by default when nothing is submitted as the value of the name
associated with the file upload field.
This doesn't appear to be sending anything at all?  Did something change?
PHP Warning: No file uploaded in Unknown on line 0 PHP Warning: Unable to
open '' for reading: Permission denied in
d:\inetpub\klcc\public_html\admin\broadcast\brodnotes.html on line 28 

Thanks,

-Ethan

___________________________________
Ethan Nelson, Systems Administrator
Net Solutions, LLC
840 Lawrence Street
Eugene, OR 97401
[EMAIL PROTECTED]
http://www.netsolutionsllc.com
Voice +1 541 345-7087
Fax   +1 541 485-5519

--- End Message ---
--- Begin Message ---
You should probably check to see if the variable is set before you try and
read the uploaded file...

-Dash

-----Original Message-----
From: Ethan Nelson [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 11:57 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP-WIN] File upload issue 4.2.0


I get this error when I submit a form with nothing specified in the file
upload field.  My understanding is that the server or PHP should submit
"none" by default when nothing is submitted as the value of the name
associated with the file upload field.
This doesn't appear to be sending anything at all?  Did something change?
PHP Warning: No file uploaded in Unknown on line 0 PHP Warning: Unable to
open '' for reading: Permission denied in
d:\inetpub\klcc\public_html\admin\broadcast\brodnotes.html on line 28 

Thanks,

-Ethan

___________________________________
Ethan Nelson, Systems Administrator
Net Solutions, LLC
840 Lawrence Street
Eugene, OR 97401
[EMAIL PROTECTED]
http://www.netsolutionsllc.com
Voice +1 541 345-7087
Fax   +1 541 485-5519


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I'm trying to use the PDF extensions and have just upgraded to 4.2.0.  When
I enable the extension in the PHP.INI file, all my sites just hang when I
try to load them.  Any ideas?

Thanks,

-Ethan

___________________________________
Ethan Nelson, Systems Administrator
Net Solutions, LLC
840 Lawrence Street
Eugene, OR 97401
[EMAIL PROTECTED]
http://www.netsolutionsllc.com
Voice +1 541 345-7087
Fax   +1 541 485-5519

--- End Message ---
--- Begin Message ---
Probably you have not set the dll folder right in your php.ini file.

Example:

If you make an extentions directory in c:\php you must point php.ini to it

extention_dir="c:\php\extentions"

It works with me....

Cor van de Veen



"Ethan Nelson" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to use the PDF extensions and have just upgraded to 4.2.0.
When
> I enable the extension in the PHP.INI file, all my sites just hang when I
> try to load them.  Any ideas?
>
> Thanks,
>
> -Ethan
>
> ___________________________________
> Ethan Nelson, Systems Administrator
> Net Solutions, LLC
> 840 Lawrence Street
> Eugene, OR 97401
> [EMAIL PROTECTED]
> http://www.netsolutionsllc.com
> Voice +1 541 345-7087
> Fax   +1 541 485-5519
>


--- End Message ---
--- Begin Message ---
Thanks for the suggestion.  I tried using SaveAs(...) in
addition to Save(), to no avail.  Excel still stays resident.

This is my "end" sequence, when i'm all done processing
the spreadsheet.  Can anyone see any flaws or errors in
what i'm doing ??

$book->Save(); 
$book->Close();
unset($sheet);
unset($book);
$excel->Quit();
com_release($excel);
unset($excel)

I agree with a previous poster to this list; that it's
most likely an "undocumented" MS bug (are there any
other kinds of MS bugs? hehe)

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -----Original Message-----
> From: Helphand [mailto:[EMAIL PROTECTED]]
> 
>   Not sure if this will help or not, but I had a similar 
> issue using Perl.
> Turns out that it was popping up a dialog box on the server when
> I did a save or saveas and there was a pre-existing file with that
> same name. I solved it by first deleting the file, then doing a
> saveas and the problem went away.
> 
>    Scott
> 
> 
--- End Message ---
--- Begin Message ---
At 05:28 PM 4/24/02 -0400, Scott Hurring wrote:

>This is my "end" sequence, when i'm all done processing
>the spreadsheet.  Can anyone see any flaws or errors in
>what i'm doing ??
>
>$book->Save();
>$book->Close();


   Try

    $book->Close("False");



>I agree with a previous poster to this list; that it's
>most likely an "undocumented" MS bug (are there any
>other kinds of MS bugs? hehe)

   But then one has to ask, why does it work fine from other
languages, e.g. Perl? If the API were broken, it would seem
that it would be broken regardless of the language one was
using.

     Scott

--- End Message ---
--- Begin Message ---
On Wed, 24 Apr 2002 17:28:32 -0400, you wrote:

>Thanks for the suggestion.  I tried using SaveAs(...) in
>addition to Save(), to no avail.  Excel still stays resident.
>
>This is my "end" sequence, when i'm all done processing
>the spreadsheet.  Can anyone see any flaws or errors in
>what i'm doing ??
>
>$book->Save(); 
>$book->Close();
>unset($sheet);
>unset($book);
>$excel->Quit();
>com_release($excel);
>unset($excel)
>
>I agree with a previous poster to this list; that it's
>most likely an "undocumented" MS bug (are there any
>other kinds of MS bugs? hehe)

Since I can use .Quit() and Release from VB and from Visual Fox to get Excel
out of memory, I kind of doubt that the problem is in Excel. It seems more
likely that it has something to do with PHP's handling of com objects.

Alan

>---
>Scott Hurring
>Systems Programmer
>EAC Corporation
>[EMAIL PROTECTED]
>Voice: 201-462-2149
>Fax: 201-288-1515
>
>> -----Original Message-----
>> From: Helphand [mailto:[EMAIL PROTECTED]]
>> 
>>   Not sure if this will help or not, but I had a similar 
>> issue using Perl.
>> Turns out that it was popping up a dialog box on the server when
>> I did a save or saveas and there was a pre-existing file with that
>> same name. I solved it by first deleting the file, then doing a
>> saveas and the problem went away.
>> 
>>    Scott
>> 
>> 

--- End Message ---
--- Begin Message ---
If you use the COM interface, please let me know if 'EXCEL.EXE'
stays resident in memory after the script has completed itself.

I've been having trouble... every time the script runs, a
new instance of 'EXCEL.EXE' is created and *stays* in memory.

So after a few runs of the script, there are a bunch of zombie
procs laying around eating up all my free memory...

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -----Original Message-----
> From: Ray Hunter [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 12:04 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: COM vs. ODBC
> 
> 
> I would suggest to use the COM interface or move your excel file to a
> database and use ODBC connections if you are using a microsoft db.
> 
> ~~ BigDog ~~
> 
--- End Message ---
--- Begin Message ---
Short answer: Do some google searches. :)

Longer answer:
Personally, I've not really found too much info on 
PHP+COM+Excel on the web.

If you are very comfortable with PHP and know a little VB,
there are COM VB\VBScript examples on MS's website, that
(with a little work) can be translated into working PHP code.

PHPbuilder has a nice article up about COM programming,
and a few other sites out there have some sample code.

Also, check out MS's Excel object model, which might help
you figure out what you can and cannot ask the Excel
COM Object to do for you :)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modcore/htm
l/deovrMicrosoftExcel2000.asp

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -----Original Message-----
> From: Jack [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 5:59 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] I want to learn more COM for my php script
> 
> 
> Dear all
>  i know if i want the php script to access data from MS Word 
> or Excel, i got
> to know about COM, but i don't know where to start on COM, so 
> is there any
> Recommendation on books which i can learn about COM from the 
> Beginning!
> 
> 
> --
> Thx a lot!
> Jack
> [EMAIL PROTECTED]
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
This problem is real and is undocumented as a bug by MS but has appeared
several times in several newsgroups. No solutions were ever proposed. So I
repeat our solution to this  problem despite its brute force nature. We
installed PVIEW and exec a pview KILL EXCEL* when we are done with the EXCEL
COM processing. Terrible yes, but effective.

-----Original Message-----
From: Scott Hurring [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 4:41 PM
To: Php-Win (E-mail)
Subject: RE: [PHP-WIN] I want to learn more COM for my php script

Short answer: Do some google searches. :)

Longer answer:
Personally, I've not really found too much info on
PHP+COM+Excel on the web.

If you are very comfortable with PHP and know a little VB,
there are COM VB\VBScript examples on MS's website, that
(with a little work) can be translated into working PHP code.

PHPbuilder has a nice article up about COM programming,
and a few other sites out there have some sample code.

Also, check out MS's Excel object model, which might help
you figure out what you can and cannot ask the Excel
COM Object to do for you :)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modcore/htm
l/deovrMicrosoftExcel2000.asp

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -----Original Message-----
> From: Jack [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 5:59 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] I want to learn more COM for my php script
>
>
> Dear all
>  i know if i want the php script to access data from MS Word
> or Excel, i got
> to know about COM, but i don't know where to start on COM, so
> is there any
> Recommendation on books which i can learn about COM from the
> Beginning!
>
>
> --
> Thx a lot!
> Jack
> [EMAIL PROTECTED]
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002


--- End Message ---
--- Begin Message ---
Hi all,
I have searched for any info on installing php up to a web host's server as
far as they have told me "PHP is enabled by default"  so! I am looking for
the documentation that will guide me in the process of uploading and
activateing php ...  thanks!

Rob
deltona, fl


--- End Message ---
--- Begin Message ---
It's already installed and enabled, they've told you that.  Simply call your
pages .php or .phtml (whatever they tell you to call them) instead of .html

Ross

-----Original Message-----
From: rob [mailto:[EMAIL PROTECTED]]
Sent: 25 April 2002 02:58
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] installing on a remote web host


Hi all,
I have searched for any info on installing php up to a web host's server as
far as they have told me "PHP is enabled by default"  so! I am looking for
the documentation that will guide me in the process of uploading and
activateing php ...  thanks!

Rob
deltona, fl



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

--- End Message ---

Reply via email to