Php

Support, Snippets & Projects

Moderators: Moderator, Global Moderator

Post Reply
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 2:54 pm

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:[list]
[*]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:
[/list][quote]

  PHP Test


Hello World

\'; ?>

[/quote][list]
[*]Then I hit the preview button..
[*]What do I get? A Blank page...
[/list]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: Thu Jun 17, 2004 12:37 am

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 2:54 pm

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: Thu Jun 17, 2004 12:37 am

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 1:08 pm

Php

Post by Scott »

[color=\"blue\"]Might want to try using \" instead of \', or print instead of echo, either should work <_< [/color]
Peter007
Newbie
Newbie
Posts: 11
Joined: Thu Jun 17, 2004 12:37 am

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”