Re: [PHP] PHP or Apache problem?

2004-10-07 Thread Curt Zirzow
* Thus wrote william van der wee:
> Hi all,
> 
> I'am using SuSe 9.1 with Apache and PHP. In order to 
> get access to MS SQL server I installed freeTDS ODBC 
> driver. Everything ok, except I can't get it in a PHP 
> webpage. I use in my PHP scripts odbc_connect.
> ISGL is working. When I look in apache error_log it 
> say: 
> 
> /usr/sbin/httpd2-prefork: error while loading shared
> libraries: /usr/lib/php/extensions/unixODBC.so: 
> undefined symbol: SQLAllocEnv script not found or 
> unable to stat
> 
> I'am not sure this is a PHP or an Apache problem.

It appears to be something wrong with php. more details on how you
installed this will be needed.

It could also be related to your freeTDS. Make sure the
driver you specify to odbc_connect() is using the proper string for 
freeTDS to pick up.

> 
> Anybody have any experience with this.

Back in php3 days I had to ensure the proper environment was setup
with php's setemv(). Things might have changed since then.


Curt
-- 
The above comments may offend you. flame at will.

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



[PHP] PHP or Apache problem?

2004-10-07 Thread william van der wee
Hi all,

I'am using SuSe 9.1 with Apache and PHP. In order to 
get access to MS SQL server I installed freeTDS ODBC 
driver. Everything ok, except I can't get it in a PHP 
webpage. I use in my PHP scripts odbc_connect.
ISGL is working. When I look in apache error_log it 
say: 

/usr/sbin/httpd2-prefork: error while loading shared
libraries: /usr/lib/php/extensions/unixODBC.so: 
undefined symbol: SQLAllocEnv script not found or 
unable to stat

I'am not sure this is a PHP or an Apache problem.

Anybody have any experience with this.

Appreciate your help.

Thanks

William



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



Re[2]: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick,

Friday, January 16, 2004, 2:31:46 PM, you wrote:

NW> I dont. That's just in my email to tell where the code begins ;-)
NW> line 1 is just
NW> mailto:[EMAIL PROTECTED]

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



Re: [PHP] PHP or Apache Problem?

2004-01-16 Thread Nick Wilson

* and then Richard Davey declared
> Why do you have code comments OUTSIDE of the php tags? I can't say for
> sure, but it wouldn't surprise me if it caused it.

I dont. That's just in my email to tell where the code begins ;-)
line 1 is just
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick,

Friday, January 16, 2004, 12:47:43 PM, you wrote:

NW> I'm getting this now:
NW> Parse error: parse error in http://ellasattic.co.uk/index.php on line 1

NW> ### CODE
NW>  // $Id: index.php,v 1.68 2003/09/30 17:00:49 dries Exp $
NW> ### END CODE

NW> What? - how can that be? - is this another setting I'm missing?

Why do you have code comments OUTSIDE of the php tags? I can't say for
sure, but it wouldn't surprise me if it caused it.

Does this make any difference? :-



-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

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



Re: [PHP] PHP or Apache Problem?

2004-01-16 Thread Nick Wilson

* and then Richard Davey declared
> Hello Nick,
> 
> Friday, January 16, 2004, 12:39:16 PM, you wrote:
> 
> NW> Line 19 is a simple include() but uses 'http://' rather than a local
> NW> path (i cannot change this)...
> 
> allow_url_fopen is almost certainly disabled in your php.ini file.


Yes, that was it, much thankyous ;-)

I'm getting this now: 
Parse error: parse error in http://ellasattic.co.uk/index.php on line 1

### CODE
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick,

Friday, January 16, 2004, 12:39:16 PM, you wrote:

NW> Line 19 is a simple include() but uses 'http://' rather than a local
NW> path (i cannot change this)...

allow_url_fopen is almost certainly disabled in your php.ini file.

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

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



[PHP] PHP or Apache Problem?

2004-01-16 Thread Nick Wilson
Hi all, 

I'm getting this error on a well tested and used CMS script:

** CODE
warning: main(): URL file-access is disabled in the server configuration
in /var/www/localhost/htdocs/ellasattic.co.uk/error.php on line 19.

warning: main(http://ellasattic.co.uk/index.php): failed to open stream:
no suitable wrapper could be found in
/var/www/localhost/htdocs/ellasattic.co.uk/error.php on line 19.

warning: main(): Failed opening 'http://ellasattic.co.uk/index.php' for
inclusion (include_path='.:/usr/lib/php') in
/var/www/localhost/htdocs/ellasattic.co.uk/error.php on line 19.

*** END CODE

Line 19 is a simple include() but uses 'http://' rather than a local
path (i cannot change this)...

Anyone take a guess at what's happening..
-- 
Nick W

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



RE: [PHP] PHP or Apache problem?

2002-09-12 Thread MET

The detailed answer, I have no idea.

The simple answer, currently there compatibility is NOT stable, but will
be soon

~ Matthew

-Original Message-
From: Aaron Gould [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 12, 2002 9:35 AM
To: PHP-GENERAL
Subject: [PHP] PHP or Apache problem?


I have recently installed Apache 2.0.40 with PHP 4.2.3 on a development
server...

When I type the IP address of the server into my browser, all I see is
PHP code.  However, when I type the IP address, with the "index.php", it
works perfectly!  Why would one work and not the other?

192.168.1.1   Doesn't work (displays the code in
"index.php")
192.168.1.1/index.php   Does work!

I have these PHP-related entries in my httpd.conf file:

LoadModule php4_modulemodules/libphp4.so
DirectoryIndex index.php index.html.var
AddType application/x-httpd-php .php

Am I missing something important here?

--
Aaron Gould



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




[PHP] PHP or Apache problem?

2002-09-12 Thread Aaron Gould

I have recently installed Apache 2.0.40 with PHP 4.2.3 on a development
server...

When I type the IP address of the server into my browser, all I see is PHP
code.  However, when I type the IP address, with the "index.php", it works
perfectly!  Why would one work and not the other?

192.168.1.1   Doesn't work (displays the code in
"index.php")
192.168.1.1/index.php   Does work!

I have these PHP-related entries in my httpd.conf file:

LoadModule php4_modulemodules/libphp4.so
DirectoryIndex index.php index.html.var
AddType application/x-httpd-php .php

Am I missing something important here?

--
Aaron Gould



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