/    Sign up×
Community /Pin to ProfileBookmark

Ok, I just went to this website:

[url]http://www.kingsofchaos.com/[/url]

And I noticed that after every link, there’s “.php”

I know absolutely nothing about PHP, and I was wondering exactly what it does, and maybe learn some basic codes if there is such a thing..

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@scragarJan 28.2005 — php is a serverside language which esentialy means it writes the HTML that is seny to your computer and displayed on the screen. This means that they can keep their database secret and stuff.

As for basic PHP try something like:
[code=php]
<? // start PHP
echo "some text.";// writes some text onto the page.
$txt = "some text";//fills the variable $txt with the string "some text"
echo $txt;//writes out the contents of $txt, in this case some text is again writen to the page.
echo "$txt";//same as above.
$txt = 'some text';//fills the variable $txt with the string "some text"
echo '$txt';//writes the string '$txt' to the page(not the variable)
$txt = "hello "."world";//fills $txt with "hello world".
$int = 5;//fills $int with the number 5.
$int = $int * 2;//fills $int with it's current value times 2, AKA 10.
$int = rand(0, 10);//fills int with a random number between 0 and 10.

//end PHP on line below:
?>
[/code]
Copy linkTweet thisAlerts:
@Thrash372authorFeb 01.2005 — Ok, thanks for the help.
×

Success!

Help @Thrash372 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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