Mysql, PHP and a wrapper
| From: | Brian dot Duke at Level3 dot com | Date: | Tue, 24 Sep 2002 13:33:03 +0000 |
| Subject: | Mysql, PHP and a wrapper | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8554@lists.php.net to get a copy of this message | ||
I'm running apache-1.3.23-14 on a redhat 7.3 system.
I have installed the php-rpm and the php_mysql.rpm from Redhat.
installed php-4.1.2-7.3.4 and php-mysql-4.1.2-7.3.4.
Cannot connect to my mysql-3.23.49-3 database.
If I use "mysql_connect()" only, I get "Fatal error: Call to undefined
function: mysql_connect() in /var/www/html/admin.php on line 9"
elseif I put on my script "include_once(DB/mysql.php)"
I get "Fatal error: Class db_common: Cannot inherit from undefined class
pear in /usr/share/pear/DB/common.php on line 30"
endif. :)
can someone tell me how to preinclude /DB/* functions in my Zend engine so I
do not have to "include_once" in every script.
and if the php rpm needs to be installed how do I do that without breaking
the install of mysql and apache.
-----Original Message-----
From: Phil Driscoll [mailto:phil@dialsolutions.co.uk]
Sent: Tuesday, September 24, 2002 3:13 AM
To: Pascal S.; php-windows@lists.php.net; php-install@lists.php.net
Subject: [PHP-INST] Re: [PHP-WIN] Install PHP with IIS 5/W2K
On Tuesday 24 September 2002 5:24 am, Pascal S. wrote:
> I installed PHP 4.2.3 using the installer from PHP.net
>
> I can send the test.php file to the php.exe, and I get the right html
code.
>
> However, trying to open the same test.php in IE 6 won't produce anything.
> The window gets the right title, all html is displayed right, but nothing
> between <?php ?> is executed.
>
> I have tried to change most of the settings in Internet Information
> Services, the extension .php under configuration is also set to
> C:\PHP\php.exe, etc...
>
> What should I look at next?
Are you opening the file as c:\php\test.php or as http://localhost/test.php?
If you view source, do you see the php source code?
--
Phil Driscoll
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php