April 20th, 2004, 01:52 AM
|
#1 (permalink)
| | Member
Join Date: May 2003 Location: So Cali
Posts: 337
| DreamWeaver & PHP help
Hi everyone, I am having trouble getting DreamWeaver to connect to my PHP / MySQL server. I think it has to do with how I am setting up the Site Definition in DreamWeaver.
My local computer is running WinXP Pro and my Server is running MDK 9.2. I have used rpmDrake to install MySQL and php. I have created an info.php file in /var/www/html directory and typed http://localhost/info.php into mozilla and it returns all the information about php from my server (linux box).
I have also created another file time.php to display the time. Both run fine on the server, but not on my WinXP box. I can't get Dreamweaver to display the "live data".
Any help would be greatly appreciated!
Here is the error message I am getting: |
| |
April 20th, 2004, 02:54 AM
|
#2 (permalink)
| | Ultimate Member
Join Date: Jun 2002 Location: Iowa
Posts: 2,879
|
in your image..... your trying to call the site "localhost" that WONT work from another computer.
I assume your dealing with 2 networked computers. You need to call the LOCAL ip address of your server comp from your Dreamweaver computer.
From your server machine (linux) open up a terminal window and type su - (will ask for root password)
then ifconfig eth0
This should give you this machines LOCAL IP address. From your windows machine type in the local ip address of the linux machine..... you should see your apache server return the index page for your webserver.
IE: http://192.168.0.2/ or "something" like that (use the number you just found).
In your dreamweaver setup (I'm not familiar with that....) you need to change the "localhost" setting to the new http://(your local linux machines number here) you just found.
I know that explanation isn't perfect......but maybe it will get you pointed in the right direction. 
Last edited by crouse : April 20th, 2004 at 02:56 AM.
|
| |
April 20th, 2004, 03:19 AM
|
#3 (permalink)
| | Member
Join Date: May 2003 Location: So Cali
Posts: 337
|
Thanks Crouse!! that worked!!
I used 192.168.1.103/<root folder name>/
Thanks a bunch!!
Linux is hard when you are trying to learn linux.. dreamweaver.. php and mysql all at the same time!!
Thanks again!!!! |
| |
April 20th, 2004, 03:32 AM
|
#4 (permalink)
| | Ultimate Member
Join Date: Jun 2002 Location: Iowa
Posts: 2,879
|
Your welcome. Glad you got it all working  |
| |
April 20th, 2004, 03:46 AM
|
#5 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Pasadena, CA
Posts: 2,152
|
hehe...I know how you feel Tazzin. I couldn't get freakin ASPX files to work on my server for a while and all it finally took was a simple permissions change and wham bam I was fine....server setup can really be a pain in the butt 
__________________
YAH! I knew you'd be jealous
|
| |
April 20th, 2004, 03:50 AM
|
#6 (permalink)
| | Member
Join Date: May 2003 Location: So Cali
Posts: 337
|
You got that right Tekk... hmm.. you are close to me.. I am up north in Camarillo, Cali... over the hill from Thousand Oaks..
when I get this thing finished .. yeah right.. maybe you could check the server out to see that there aren't any security holes..  |
| |
May 23rd, 2004, 10:23 PM
|
#7 (permalink)
| | Junior Member
Join Date: May 2004
Posts: 2
|
If you are fiddling with php make sure "globals' is turned on in the ini file. The latest php has globals 'off' on th standard install. Without it cookies will not be recognized.
habuchas |
| |
May 23rd, 2004, 10:39 PM
|
#8 (permalink)
| | Real gangstas sip on Yacc
Join Date: Oct 2001 Location: Suckas-ville
Posts: 4,549
|
No, do not turn register globals on under any circumstance. Having register globals on is the biggest security risk you can create yourself.
Cookies are still very easy to access with register globals off. They are accessed like all other variables, you need to use the $_COOKIE[] construct to access them and cannot access them directly with $cookiename (which is a GOOD thing).
Jkrohn
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
|
| |
May 24th, 2004, 07:33 PM
|
#9 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Hamilton, On, Ca
Posts: 2,620
| Quote: |
you need to use the $_COOKIE[] construct to access them and cannot access them directly with $cookiename (which is a GOOD thing).
| Found that one out with "$_POST[]" I was using a book that insisted it could be accessed by $varname .... Guess it wasn't wrong, just configured differently... |
| |
May 25th, 2004, 02:11 AM
|
#10 (permalink)
| | Junior Member
Join Date: May 2004
Posts: 2
|
jkrohn is absolutely correct. After doing much more reading I have been enlightened. Thanks for the insight to the globals problem. I am rather new at this and am trying to learn too much too fast. Being close to 70 (2 weeks away) it is not Alzheimer's it's Oldtimers. My mental hard drive seem to be full so I have to purposely forget something to make room for what I currently want to remember. I need more post-it notes.
thanks again. I am still having problems including a photo album created from DW/FW MX into a index.php page for a web site I'm trying to build. The album comes up empty of thumbnails.
habuchas |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |