carlwenrich Posted March 12, 2007 Share Posted March 12, 2007 I set extension_dir = "/usr/lib/apache2/modules" in php.ini and retarted apache. It still doesn't work. Quote Link to comment https://forums.phpfreaks.com/topic/42376-mysql_connect-doesnt-work-using-php4-under-linux/ Share on other sites More sharing options...
papaface Posted March 12, 2007 Share Posted March 12, 2007 of course mysql_connect() works with php 4 under linux. Show us your code. Quote Link to comment https://forums.phpfreaks.com/topic/42376-mysql_connect-doesnt-work-using-php4-under-linux/#findComment-205554 Share on other sites More sharing options...
carlwenrich Posted March 12, 2007 Author Share Posted March 12, 2007 Here's the code: <html> <head> </head> <body> <?php echo '<p>Start'; $link = mysql_connect('localhost', 'root', 'root'); echo '<p>Connected'; mysql_close($link); echo '<p>Closed'; ?> </body> </html> And here's the result: Start Fatal error: Call to undefined function: mysql_connect() in /var/www/apache2-default/php/connect.php on line 7 Quote Link to comment https://forums.phpfreaks.com/topic/42376-mysql_connect-doesnt-work-using-php4-under-linux/#findComment-205558 Share on other sites More sharing options...
papaface Posted March 12, 2007 Share Posted March 12, 2007 This may help http://www.linuxsolved.com/forums/ftopic884.html Quote Link to comment https://forums.phpfreaks.com/topic/42376-mysql_connect-doesnt-work-using-php4-under-linux/#findComment-205572 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.