SV: [PHP-DB] mssql_connect() commandline problem

2001-08-14 Thread Erik

I wrote a script (? phpinfo(); ?) and executed it from the commandline
(php script.php  test.txt)
turns out text.txt doesnt have sybase support listed at all - which the
apache version of phpinfo has.
could this be the problem? and if so, how do i enable sybase support for the
commandline php?
or can i setup so i run the apache configured php from the commandline also?

thank you for your previous answer!


 Sounds like you might be working with 2 different versions of php:
 Mod-php for Apache in the web environment, stand-alone php operating in
 the shell. You might want to start by ensuring that the stand alone
 version is compiled -with mssql. Try running phpinfo() in the shell?
 Richard

 Erik wrote:

  When running a (php 4.0.6) script (on redhat 6.1) using mssql_connect()
  directly on the shell with php -q script.php i get a fatal error:
 
  Call to undefined function:  mssql_connect()
 
  But this error does not occur when running the script through a browser
  (apache webserver)
  What's the deal here?
 
  Erik Kaber
 
 
 
 




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: SV: [PHP-DB] mssql_connect() commandline problem

2001-08-14 Thread Richard Chauvaux

Erik,

Having only set up PHP once on Windoze and once with Apache on Linux, I 
would have to reference the installation docs on php.net. On Windoze, 
you edit the php.ini file-- maybe that's also true for the stand-alone 
on Linux?  You need the stand-alone version if you want to bypass the 
Apache server and work within the shell environment.

Richard

Erik wrote:

 I wrote a script (? phpinfo(); ?) and executed it from the commandline
 (php script.php  test.txt)
 turns out text.txt doesnt have sybase support listed at all - which the
 apache version of phpinfo has.
 could this be the problem? and if so, how do i enable sybase support for the
 commandline php?
 or can i setup so i run the apache configured php from the commandline also?
 
 thank you for your previous answer!
 
 
 Sounds like you might be working with 2 different versions of php:
 Mod-php for Apache in the web environment, stand-alone php operating in
 the shell. You might want to start by ensuring that the stand alone
 version is compiled -with mssql. Try running phpinfo() in the shell?
 Richard
 
 Erik wrote:
 
 When running a (php 4.0.6) script (on redhat 6.1) using mssql_connect()
 directly on the shell with php -q script.php i get a fatal error:
 
 Call to undefined function:  mssql_connect()
 
 But this error does not occur when running the script through a browser
 (apache webserver)
 What's the deal here?
 
 Erik Kaber
 
 
 
 


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]