I have an AMP application that does not know the location of mysql data?

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-30-2005
MLH
 
Posts: n/a
Default I have an AMP application that does not know the location of mysql data?

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?
Reply With Quote
  #2 (permalink)  
Old 03-30-2005
Kimmo Laine
 
Posts: n/a
Default Re: I have an AMP application that does not know the location of mysql data?

"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


Reply With Quote
  #3 (permalink)  
Old 05-06-2005
MLH
 
Posts: n/a
Default Re: I have an AMP application that does not know the location of mysql data?

<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.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0