FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP to MySQL connection





Fenroy
Right now, I'm trying to put a remote server on a Mac with OS X 10.4.8. I currently have Apache (the default build, I think it's 1.3) and PHP5 and MySQL on the computer. Everything works fine. The problem, however, is that I cannot connect to MySQL through a PHP script. The source in Firefox for the script is completely blank, even though I have a debug <h1>blah</h1> statement at the beginning of the script. If anyone knows how I can get PHP and MySQL to talk to each other, I'd be forever grateful.
ncwdavid
The link below is the link to MAMP, it has php, apache, mysql all together and its only a simple two minute installation. I have never tried it but i have used WAMP which is for windows and everything works fine.

http://www.living-e.de/en/products/The-MAMP/download/download.php
qscomputing
OK, first things first, get a modern version of Apache on there. Version 2.x

Secondly, could you post the script here, and tell us if the MySQL and PHP servers are on the same machine.

Also, can you get a simple PHP script (with no database connection) to run? Try the following:

Code:
<?php
echo 'Hello, world!';
?>
manum
pls post ur code so tht we can view it and help u out...
[FuN]goku
ncwdavid wrote:
The link below is the link to MAMP, it has php, apache, mysql all together and its only a simple two minute installation. I have never tried it but i have used WAMP which is for windows and everything works fine.

http://www.living-e.de/en/products/The-MAMP/download/download.php

or theres always xampp Very Happy http://www.apachefriends.org/en/xampp.html
i prefer xampp for win...
dawiid
I never got Xamp to work on my PC Wamp works just fine for me. Though I had to uninstall php and mysql prior to installing wamp inorder to get it to work good.

Xamp is a was more complicated to get runging but I've got friends using it on booth Mac:s and PC:s
Related topics
A very good PHP MySQL Tutorial
Setup php,mysql and others...
Storing MySQL connection data securely and conveniently
PHP, MySQL...
ASP +PHP+MySQL Tutorials
what is your php mysql apache installer package
Need some php/mysql dlls
The Basics (php, mysql etc)
What is useful way in this php+mysql problem?
PHP/Mysql - beginner!
php, mysql and iis5
 EASY 40 frih$ IF YOU KNOW PHP+MySQL 
Php Mysql security testing
Project to join - php,mysql??
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.