/    Sign up×
Community /Pin to ProfileBookmark

Just started fooling around and studying PHP. Was using an old manual for PHP 4 but decided [url]www.w3schools.com/php[/url] was the way forward. Thanks Znupi…

Question is this: Here is a snippet of the code I put together for a sample and testing/learning purposes.

When I upload the default.html page to my webserver, the php code doesn’t show up, yet I thought if u embedded into the html it should.

Take a look at [url]www.myowntestpage.com[/url] for what I been fooling aroung with so far.

[CODE]

<body bgcolor=”#000000″ leftmargin=”0″ topmargin=”30″ marginwidth=”0″ marginheight=”0″>
<center>

<font color=”#FFFFFF”>
<?php

echo “Hello to all of you. This is just a php test, so pls ignore”;

?>
</font>

<table id=”Table_01″ width=”801″ height=”500″ border=”0″ cellpadding=”0″ cellspacing=”0″>
<tr>[/CODE]

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@Hooded_VillianauthorApr 03.2008 — Does it have to be saved as a php file?
Copy linkTweet thisAlerts:
@tracknutApr 03.2008 — That's dependent on your web host setup, but generally yes, if you want the php processor to read your file, then it knows that by the file being something.php

Dave
Copy linkTweet thisAlerts:
@Hooded_VillianauthorApr 03.2008 — Cool... Just saved it as default.php and uploaded it to my webserver and it works.

Shot Dave!!!
×

Success!

Help @Hooded_Villian spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...