PHP forums, MySQL forums, Web Development resources

Home PageHome    PHP ResourcesTopic List    FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups 
 RegisterRegister
    ProfileProfile    Log in to check your private messagesLog in to check your private messages    Download the RSS Reader RSS Feed Download the RSS Reader RSS for this forum Log inLog in 

PHP Forum :: MySQL Forum :: Java Script Forum



RE: PHP £ Mysql

 
Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General
View previous topic :: View next topic  
Author Message
harris
Guest





PostPosted: Thu Jan 28, 1999 2:49 pm    Post subject: PHP £ Mysql Reply with quote

Hi,
I started my apache server with the PHPs modules loded
and I also installed the php3-mysql1_3.0-1.deb pakage for PHP3 to support mysql. The problem is the PHP always complains sth like:"Call to unsupported or undefined function mysql_connect()" when I load the phtml page.
Can anyone help me on that?

Thanks
Back to top
Simon
Guest





PostPosted: Fri Jan 29, 1999 4:58 am    Post subject: RE: PHP £ Mysql Reply with quote

Basically you need to load the module manually, in PHP3.INC or compile it in from the outset.

I took the latter choice as so much of my site is MySQL based.

I haven't seen the .deb for it (FreeBSD for real work + Win95 for offline dev) . Basically you'll either need to find / the module or recompile with MySQL enabled + therefore built-in.

I know the latter sounds a little messy but it is preferable.

If you use the module you have to have mod_so for Apache and have the compiled MySQL so.

To insert it automatically (so it's always available) you'll also have to edit php3.ini (wherever you put it). Failing that it's manual load - which is extremely messly.

Given a little time to spend on the thing (I take it this is mission critical to you) compile it into php from the start. If you're only after getting MySQL and PHP to work there are example simple instructions in both the Apache & PHP docs. If you're going much past that it starts (rapidly) to become a headache. You'll also need a pre-installed with the libs etc version of MySQL.

I know the compile it in option may well sound like a nightmare but it's not all that bad. Just read the docs and it's easily do-able. You're only likely to encounter headaches if you try something fancy (too me ages to do mine - Apache, mod_ssleay, PHP, mod_mysql).

I can't recomment the last optional enough. mod_mysql gives you .htaccess through a MySQL database. It's superb!!!
Back to top
Display posts from previous:   
WeberTrivia Questions WeberTrivia Questions
 Think you are smart? Prove it!. Try your skills with these questions :
 WeberTrivia QuestionsRecursive arrays and multi-dimensional arrays are one and the same. (PHP and MySQL)
 WeberTrivia QuestionsThe \"cache_dir\" tag of the squid configuration has a default of /var/spool/squid. (Linux)

WeberTrivia Questions



Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum






Powered by phpBB © 2001, 2005 phpBB Group
PHP Forum :: MySQL Forum :: Java Script Forum