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. 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. 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 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 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
Archived
This topic is now archived and is closed to further replies.