home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1779
Discussions: 188,401, Posts: 2,243,603, Members: 232,630
Old April 20th, 2004, 01:52 AM   Digg it!   #1 (permalink)
Member
 
Tazzin's Avatar
 
Join Date: May 2003
Location: So Cali
Posts: 337
Angry
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:
Attached Thumbnails
dreamweaver-php-help-dream_error.jpg  

Tazzin is offline   Reply With Quote
Old April 20th, 2004, 02:54 AM     #2 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
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.
__________________
USA Linux Users Group
OpenSUSE.us


Last edited by crouse : April 20th, 2004 at 02:56 AM.
crouse is offline   Reply With Quote
Old April 20th, 2004, 03:19 AM     #3 (permalink)
Member
 
Tazzin's Avatar
 
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!!!!

Tazzin is offline   Reply With Quote
Old April 20th, 2004, 03:32 AM     #4 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
Your welcome. Glad you got it all working
crouse is offline   Reply With Quote
Old April 20th, 2004, 03:46 AM     #5 (permalink)
Ultimate Member
 
Tekk's Avatar
 
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
Tekk is offline   Reply With Quote
Old April 20th, 2004, 03:50 AM     #6 (permalink)
Member
 
Tazzin's Avatar
 
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..
Tazzin is offline   Reply With Quote
Old 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
habuchas is offline   Reply With Quote
Old May 23rd, 2004, 10:39 PM     #8 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,549
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
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.
jkrohn is offline   Reply With Quote
Old May 24th, 2004, 07:33 PM     #9 (permalink)
Ultimate Member
 
Wizzard~Of~Ozz's Avatar
 
Join Date: Oct 2001
Location: Hamilton, On, Ca
Posts: 2,620
Send a message via ICQ to Wizzard~Of~Ozz Send a message via MSN to Wizzard~Of~Ozz
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...
Wizzard~Of~Ozz is offline   Reply With Quote
Old 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
habuchas is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
Laptop proccesor to desktop mob.. (1)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
For cheap price and good qualit.. (1)
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:47 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28