This is a discussion on I have an AMP application that does not know the location of mysql data? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; A programmer developed an AMP (Apache/MySQL/PHP) application for me. When he was done, he sent me the PHP ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
A programmer developed an AMP (Apache/MySQL/PHP) application
for me. When he was done, he sent me the PHP files and the MySQL dump file. Now, when I connect to the application on my LAN using http://192.168.1.106/~mlh/credifree/index.php the AMP app still thinks the data resides somewhere else. It runs fine - as long as I leave my LAN's external internet connection up. But if I unplug my LAN from the world, my app locks up. How do I tell the PHP files that the data now resides on the same linux server? And, is that all I have to do - just make configuration changes in PHP? |
|
|||
|
"MLH" <CRCI@NorthState.net> wrote in message
news:thnk4116dh9hjtqb0n98a8n1ucb6av096l@4ax.com... >A programmer developed an AMP (Apache/MySQL/PHP) application > for me. When he was done, he sent me the PHP files and the MySQL > dump file. Now, when I connect to the application on my LAN using > http://192.168.1.106/~mlh/credifree/index.php the AMP app still > thinks the data resides somewhere else. It runs fine - as long as I > leave my LAN's external internet connection up. But if I unplug my > LAN from the world, my app locks up. > > How do I tell the PHP files that the data now resides on the same > linux server? And, is that all I have to do - just make configuration > changes in PHP? Somewhere in the code there is a command which tells php where to find the MySQL server. It's a function called mysql_connect(). See where it is told to connect in the particular function. Change, if necessarily. It should be something like 'localhost' or the IP you gave '192.168.1.106' . Now it perhaps points to some external IP. -- Welcome to Usenet! Please leave tolerance, understanding and intelligence at the door. They aren't welcome here. eternal piste erection miuku gmail piste com |
|
|||
|
<snip>
Thanks much. You were right! I have it working now. I am strugging to learn what I can along the way. You've been helpful. > >Somewhere in the code there is a command which tells php where to find the >MySQL server. It's a function called mysql_connect(). See where it is told >to connect in the particular function. Change, if necessarily. It should be >something like 'localhost' or the IP you gave '192.168.1.106' . Now it >perhaps points to some external IP. |