Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-14-2004, 07:44 AM   #1
LQ Newbie
Registered: Sep 2003
Location: Belgium
Distribution: RH 6.1 / xandros
Posts: 5

Rep: Reputation: 0
PHP difference between --without-mysql and

difference between --without-mysql and

When i run php4 -i
the output tells me that it is compiled with the configure parameter

But i can activate mysql support via the php.ini setting
and now i can use the mysql_connect() function from
a web. app php through apache.

But when i run a php script in a terminal the mysql_connect() function
is undefined.

root@2[www]# php4 test.php

Fatal error: Call to undefined function: mysql_connect() in /var/www/test.php on line 3

I guess because of the --without-mysql parameter.
Is this the only difference?

That i can not run php scripts from the command line and only as web
app's from apache?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
php cannot load mysql extension no_names_left Linux - Software 4 03-02-2005 07:31 PM
Mysql Php Extension SilentK Linux - Newbie 11 06-11-2004 08:47 AM
PHP does not show mysql as an extension Linix Linux - Newbie 7 01-31-2004 09:13 AM
[mysql] difference between Mysql Max or Normal BlackCell Programming 2 11-06-2003 05:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration