Php

Support, Snippets & Projects

Moderators: Moderator, Global Moderator

Post Reply
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 7:54 am

Php

Post by Josh »

Okay, this makes no sense to me... They say:

[quote]All you have to do is make a file *.php and put your php scripts in there![/quote]

Uhm, it doesn't work :S I already tried! I did something simple:
  • Opened a new HTML document (Making a PHP Document it didn't list..)
  • Erased all basic coding automatically put in it ( ect..)
  • Saved file as a Testing.PHP file...
  • Went to a PHP Script site.. and entered the following into my document:
[quote]

  PHP Test


Hello World'; ?>

[/quote]
  • Then I hit the preview button..
  • What do I get? A Blank page...
Now why doesn't this work? :S Do I need some kind of PHP editor?

Thanks in advance
~Josh
[align=center]

Image

“If you stop learning, you stop living.” ~Tami Quiring

“It's the rare man who understands the value of a single perfect rose.”

[/align]
Electrix
Hero Member
Hero Member
Posts: 578
Joined: Wed Jun 16, 2004 5:37 pm

Php

Post by Electrix »

Try removing the <p> tags in the echo, if does not work, say so here.
[align=center]

forgedeuphoriacom - now with 30% less fat.

stylecommentcom - recently relaunched!

[/align]
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 7:54 am

Php

Post by Josh »

no workie /cry.gif' class='bbc_emoticon' alt=':(' />
[align=center]

Image

“If you stop learning, you stop living.” ~Tami Quiring

“It's the rare man who understands the value of a single perfect rose.”

[/align]
xxstaineds0ul
Newbie
Newbie
Posts: 1
Joined: Wed Jun 16, 2004 5:37 pm

Php

Post by xxstaineds0ul »

You can't use the preview button in Dreamweaver to see PHP unless you have PHP/apache installed on your computer. You need to upload it to a server that has PHP and preview it from there.
Scott
Administrator
Administrator
Posts: 1651
Joined: Sun Apr 25, 2004 6:08 am

Php

Post by Scott »

Might want to try using " instead of ', or print instead of echo, either should work <_<
Peter007
Newbie
Newbie
Posts: 11
Joined: Wed Jun 16, 2004 5:37 pm

Php

Post by Peter007 »

the code is good, dont change it, but as like xxstaineds0ul said you need to host the file on a server with php installed or have apache and php installed on your pc

download apache from [url="http://apache.org"]http://apache.org[/url]
download php from [url="http://php.net"]http://php.net[/url]
Post Reply

Return to “PHP &amp; MySQL”