home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

DreamWeaver & PHP help

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1312
Discussions: 204,386, Posts: 2,417,908, Members: 249,808
Old April 20th, 2004, 12: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, 01: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 01:56 AM.
crouse is offline   Reply With Quote
Old April 20th, 2004, 02: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, 02: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, 02:46 AM     #5 (permalink)
Ultimate Member
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: Pasadena, CA
Posts: 2,182
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, 02: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, 09: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, 09:39 PM     #8 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,553
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, 06: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, 01: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
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (1225)
VOIP suggestions (12)
Want a new power supply for my Dell.. (23)
keyboard not responding (7)
Closet question. (10)
Video Card Dilemma (20)
Computer won't turn on (19)
screen cleaner??? (15)
Hopefully the last thread I make be.. (17)
Windows 7 - Do you want to change t.. (5)
Computer getting hot! (7)
video cards (5)
Upgrading Video card (18)
Internet Censorship. (5)
Recent Discussions
Common Ports for Networking (17)
what will happen if...(RAM) (3)
[ F@H Chat] 03/07/10 New Month New T.. (53)
dual view with SDTV using GTX 260? HE.. (3)
email monitoring software (3)
Clueless Woman Calls Tech Show When H.. (5)
Computer crashes (black screen and so.. (1)
I passed cisco 645-985 exam (0)
Help me navigate the sea of cards? (0)
Computer won't turn on (19)
case (4)
Want a new power supply for my Dell. (23)
Gigabyte X58A-UD3R (5)
gateway hdmi (0)
Windows 7 - Do you want to change the.. (5)
Visiontek Radeon 4850: Too Hot! (2)
Logitech Headset problem (1)
keyboard not responding (7)
WAN settings (2)
wanna run setup switch for VGA adapor.. (2)
Mac parts question (2)
Wireless connection randomly disconne.. (4)
SATA to eSATA (3)
Help with XP embedded image (3)
Notepad won't open (4)


All times are GMT -4. The time now is 06:07 AM.
TechIMO Copyright 2009 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