RE: PHP from the command line

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

 



ok..

show us the connection code you're using to access the db..

-bruce


-----Original Message-----
From: Robbert van Andel [mailto:php@xxxxxxxxxxxx]
Sent: Thursday, November 03, 2005 8:37 PM
To: bedouglas@xxxxxxxxxxxxx; 'David Tulloh'
Cc: php-general@xxxxxxxxxxxxx
Subject: RE:  PHP from the command line


>From the web, all I get is that the connection failed.  Nothing more useful
than that.  PHP_INFO tells me that it sees the MS SQL ini file and the MS
SQL configuration settings are displayed further down the list.

The username and password work in the script because I am able to connect
using the exact same script from the command line.

-----Original Message-----
From: bruce [mailto:bedouglas@xxxxxxxxxxxxx]
Sent: Thursday, November 03, 2005 7:28 PM
To: 'David Tulloh'; 'Robbert van Andel'
Cc: php-general@xxxxxxxxxxxxx
Subject: RE:  PHP from the command line

what's the error that you're getting from the web php app...

also, what do you get from the php_info() for the web app? this tells you a
great deal of information regarding your php/web setup (if you didn't
already know!)

get us the information and we can help track down your issue...

also, is there a user/passwd setup to access the mssql db?

-bruce


-----Original Message-----
From: David Tulloh [mailto:david.tulloh@xxxxxxxxxx]
Sent: Thursday, November 03, 2005 6:22 PM
To: Robbert van Andel
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  PHP from the command line


Many linux distributions use a different php config file for the apache
and cli versions.
Using two different configurations might explain the problems you are
seeing.

David

Robbert van Andel wrote:

>I run a linux webserver with Apache and PHP5.  Does anyone out there know
>why a php script would work from the command line but fail when running it
>through a web browser?  In particular, I'm trying to get a connection to an
>MSSQL server but PHP fails to connect when I run the script with a web
>browser.  My regular scripts (i.e. ones without any mssql functions) work
>fine from the browser. When I run the script from the command line, the
>connection succeeds.  Any idea if this is a PHP error or an apache error.
If
>this is an apache error, does anyone know what I need to search for to find
>an answer?
>
>
>
>Thanks,
>
>Robbert van Andel
>
>
>
>
>
>

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

-- 
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