php-windows Digest 16 Jul 2004 00:39:22 -0000 Issue 2320

Topics (messages 24172 through 24180):

Re: PHP + ODBC + Ingres_II
        24172 by: Robert Twitty
        24179 by: php_beginner

PHP5 ISAPI Extensions
        24173 by: johne59
        24175 by: Frank M. Kromann
        24176 by: johne59
        24177 by: Gerardo Rojas
        24178 by: Frank M. Kromann
        24180 by: johne59

Did the exec function change between php 4.3.4 and 4.3.7?
        24174 by: Daniel Gaddis

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 ---
You may have better luck with ODBTP.  You can get it at
http://odbtp.sourceforge.net.

Also, the crashes may be due to the fact that the free ODBC driver is not
thread-safe.  If this is the case, then you should use odbtp_sconnect()
instead of odbtp_connect() to connect to the database.

-- bob

On Wed, 14 Jul 2004, php_beginner wrote:

> Hi,
>
> Does anyone uses PHP to access an Ingres Database ?
> I created php_ingres.dll from ingres_ii module but when I enable it and run
> php.exe it crashes and give an error about a trashed file (symbol.tbl)
> I tried to use Ingres ODBC from Computer Associates but it crashes too. I
> just have sucess when using ODBC Driver from Openlinksw.com but have to pay
> for it and I hope that I find a free ODBC driver that works with Ingres and
> PHP.
> I work with Windows XP, Ingres 2.6 and PHP-4.3.7.
>
> Heeeeeeelp me please.
>
> Thanks once more,
> Mauro
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Hi Robert,

It works fine. You saved my life because I was going crazy with this problem
and now I am going to keep learning php.

Thanks once more,
Mauro

----- Original Message ----- 
From: "Robert Twitty" <[EMAIL PROTECTED]>
To: "php_beginner" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 15, 2004 9:38 AM
Subject: Re: [PHP-WIN] PHP + ODBC + Ingres_II


> You may have better luck with ODBTP.  You can get it at
> http://odbtp.sourceforge.net.
>
> Also, the crashes may be due to the fact that the free ODBC driver is not
> thread-safe.  If this is the case, then you should use odbtp_sconnect()
> instead of odbtp_connect() to connect to the database.
>
> -- bob
>
> On Wed, 14 Jul 2004, php_beginner wrote:
>
> > Hi,
> >
> > Does anyone uses PHP to access an Ingres Database ?
> > I created php_ingres.dll from ingres_ii module but when I enable it and
run
> > php.exe it crashes and give an error about a trashed file (symbol.tbl)
> > I tried to use Ingres ODBC from Computer Associates but it crashes too.
I
> > just have sucess when using ODBC Driver from Openlinksw.com but have to
pay
> > for it and I hope that I find a free ODBC driver that works with Ingres
and
> > PHP.
> > I work with Windows XP, Ingres 2.6 and PHP-4.3.7.
> >
> > Heeeeeeelp me please.
> >
> > Thanks once more,
> > Mauro
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>

--- End Message ---
--- Begin Message ---
I am using w2k3 with iis6 and all of the reported "hotfixes".
I have just installed PHP5 and have successfully configured everything to
work correctly using the php-cgi.exe configuration.
However, I would like to use the php5isapi.dll configuration. The only
problem I seem to have is getting the php_gd2.dll extension to load. The
ISAPI configuration works... It just needs to know about the gd extension.
Does anybody know how to get the ISAPI configured to understand the gd
extension?

--- End Message ---
--- Begin Message ---
When you use ISAPI you can only load extensions from php.ini with the line

extension=php_gd2.dll

When using CGI, FastCGI or CLI you can load extensions from the script
with code like

dl("php_gd2.dll");

- Frank

> I am using w2k3 with iis6 and all of the reported "hotfixes".
> I have just installed PHP5 and have successfully configured everything
to
> work correctly using the php-cgi.exe configuration.
> However, I would like to use the php5isapi.dll configuration. The only
> problem I seem to have is getting the php_gd2.dll extension to load.
The
> ISAPI configuration works... It just needs to know about the gd
extension.
> Does anybody know how to get the ISAPI configured to understand the gd
> extension?
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
Frank,
That looks good on paper, but... I am loading the extension from php.ini as
you describe.
When I run the site with php-cgi.exe, running phpinfo() shows me that gd is
installed.
When I run the site with php5isapi.dll and then run phpinfo() it doesn't
appear to be loaded.

I have copied the php_gd2.dll into the main PHP 5 install directory, but
havn't bothered with copying it into the windows directory, as I don't
believe that this should solve my problem.

Do you have any other ideas?


"Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> When you use ISAPI you can only load extensions from php.ini with the line
>
> extension=php_gd2.dll
>
> When using CGI, FastCGI or CLI you can load extensions from the script
> with code like
>
> dl("php_gd2.dll");
>
> - Frank
>
> > I am using w2k3 with iis6 and all of the reported "hotfixes".
> > I have just installed PHP5 and have successfully configured everything
> to
> > work correctly using the php-cgi.exe configuration.
> > However, I would like to use the php5isapi.dll configuration. The only
> > problem I seem to have is getting the php_gd2.dll extension to load.
> The
> > ISAPI configuration works... It just needs to know about the gd
> extension.
> > Does anybody know how to get the ISAPI configured to understand the gd
> > extension?
> >
> > -- 
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >

--- End Message ---
--- Begin Message ---
I've had similiar problems loading extensions when running the ISAPI version.  My fix 
was to put them in Windows directory.


--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]


-----Original Message-----
From: johne59 [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 4:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP5 ISAPI Extensions


Frank,
That looks good on paper, but... I am loading the extension from php.ini as
you describe.
When I run the site with php-cgi.exe, running phpinfo() shows me that gd is
installed.
When I run the site with php5isapi.dll and then run phpinfo() it doesn't
appear to be loaded.

I have copied the php_gd2.dll into the main PHP 5 install directory, but
havn't bothered with copying it into the windows directory, as I don't
believe that this should solve my problem.

Do you have any other ideas?


"Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> When you use ISAPI you can only load extensions from php.ini with the line
>
> extension=php_gd2.dll
>
> When using CGI, FastCGI or CLI you can load extensions from the script
> with code like
>
> dl("php_gd2.dll");
>
> - Frank
>
> > I am using w2k3 with iis6 and all of the reported "hotfixes".
> > I have just installed PHP5 and have successfully configured everything
> to
> > work correctly using the php-cgi.exe configuration.
> > However, I would like to use the php5isapi.dll configuration. The only
> > problem I seem to have is getting the php_gd2.dll extension to load.
> The
> > ISAPI configuration works... It just needs to know about the gd
> extension.
> > Does anybody know how to get the ISAPI configured to understand the gd
> > extension?
> >
> > -- 
> > 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 ---
PHP needs to know where the extensions are located, and when you make
changes to php.ini you have to restart the web server in order for the
changes to take place. Under ISAPI the php.ini file is only read during
startup and not on each page reqyues as is the case with CGI.

Getting php to know where the extensions are located takes the folowing
steps.

1) For ISAPI installes place the php.ini file in the windows (or winnt)
directory.
2) edit php.ini to include the line extension_dir = 'full/path/to/php'
3) restart the web server

For CGI and FastCGI the php.ini file can be placed in the php directory,
as each PHP-process is launched from the folder and know the location of
the files.

- Frank
> Frank,
> That looks good on paper, but... I am loading the extension from php.ini
as
> you describe.
> When I run the site with php-cgi.exe, running phpinfo() shows me that gd
is
> installed.
> When I run the site with php5isapi.dll and then run phpinfo() it
doesn't
> appear to be loaded.
> 
> I have copied the php_gd2.dll into the main PHP 5 install directory,
but
> havn't bothered with copying it into the windows directory, as I don't
> believe that this should solve my problem.
> 
> Do you have any other ideas?
> 
> 
> "Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > When you use ISAPI you can only load extensions from php.ini with the
line
> >
> > extension=php_gd2.dll
> >
> > When using CGI, FastCGI or CLI you can load extensions from the
script
> > with code like
> >
> > dl("php_gd2.dll");
> >
> > - Frank
> >
> > > I am using w2k3 with iis6 and all of the reported "hotfixes".
> > > I have just installed PHP5 and have successfully configured
everything
> > to
> > > work correctly using the php-cgi.exe configuration.
> > > However, I would like to use the php5isapi.dll configuration. The
only
> > > problem I seem to have is getting the php_gd2.dll extension to
load.
> > The
> > > ISAPI configuration works... It just needs to know about the gd
> > extension.
> > > Does anybody know how to get the ISAPI configured to understand the
gd
> > > extension?
> > >
> > > -- 
> > > 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 ---
Thanks for the help and information.
I did have the extension_dir properly set in the php.ini file.
And I was restarting the service with every change I made.
What I finally did, that appeared to help was:
I added 'full/path/to/php' to my environment PATH variable
and then rebooted the system. As ALWAYS, with microsoft....
If it doesn't work.... BOOT, BOOT, AND REBOOT!!!!!
I began by following Gerardo's recomendation and
copied the dll's to the windows directory, and it started working.
But that tends to create version problems when applying updates,
so I updated the PATH and backed them out of the system dir and all
seems to be working now.

Thanks again for all the help!!!

"Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> PHP needs to know where the extensions are located, and when you make
> changes to php.ini you have to restart the web server in order for the
> changes to take place. Under ISAPI the php.ini file is only read during
> startup and not on each page reqyues as is the case with CGI.
>
> Getting php to know where the extensions are located takes the folowing
> steps.
>
> 1) For ISAPI installes place the php.ini file in the windows (or winnt)
> directory.
> 2) edit php.ini to include the line extension_dir = 'full/path/to/php'
> 3) restart the web server
>
> For CGI and FastCGI the php.ini file can be placed in the php directory,
> as each PHP-process is launched from the folder and know the location of
> the files.
>
> - Frank
> > Frank,
> > That looks good on paper, but... I am loading the extension from php.ini
> as
> > you describe.
> > When I run the site with php-cgi.exe, running phpinfo() shows me that gd
> is
> > installed.
> > When I run the site with php5isapi.dll and then run phpinfo() it
> doesn't
> > appear to be loaded.
> >
> > I have copied the php_gd2.dll into the main PHP 5 install directory,
> but
> > havn't bothered with copying it into the windows directory, as I don't
> > believe that this should solve my problem.
> >
> > Do you have any other ideas?
> >
> >
> > "Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > When you use ISAPI you can only load extensions from php.ini with the
> line
> > >
> > > extension=php_gd2.dll
> > >
> > > When using CGI, FastCGI or CLI you can load extensions from the
> script
> > > with code like
> > >
> > > dl("php_gd2.dll");
> > >
> > > - Frank
> > >
> > > > I am using w2k3 with iis6 and all of the reported "hotfixes".
> > > > I have just installed PHP5 and have successfully configured
> everything
> > > to
> > > > work correctly using the php-cgi.exe configuration.
> > > > However, I would like to use the php5isapi.dll configuration. The
> only
> > > > problem I seem to have is getting the php_gd2.dll extension to
> load.
> > > The
> > > > ISAPI configuration works... It just needs to know about the gd
> > > extension.
> > > > Does anybody know how to get the ISAPI configured to understand the
> gd
> > > > extension?
> > > >
> > > > -- 
> > > > 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 have a script that broke after upgrading php 4.3.4 to 4.3.7

Did the exec function change between php 4.3.4 and 4.3.7? With 4.3.4
exec seems to return output, with 4.3.7 exec does not seem to return
output.

For example, I ran a batch file date.bat from the php command line
interface as shown below...

D:\PHP4\php-4.3.4-Win32\cli> php -r print_r(exec('date.bat'));
Thu 07/15/2004
D:\PHP4\php-4.3.4-Win32\cli>

D:\PHP4\php-4.3.7-Win32\cli> php -r print_r(exec('date.bat'));

D:\PHP4\php-4.3.7-Win32\cli>

php 4.3.4 returns the date as expected. php 4.3.7 doesn't return
anything.

date.bat contains one command as shown below...
F:\batfiles\batch>type date.bat
date /t

I checked the latest documentation for exec to see if any changes were
noted but only found one additional warning...

Warning 
With safe mode enabled, all words following the initial command string
are treated as a single argument. Thus, echo y | echo x becomes echo "y
| echo x".


Any ideas what has happened?

Thanks,
Daniel

--- End Message ---

Reply via email to