/    Sign up×
Community /Pin to ProfileBookmark

Help, how do you run PHP files

Hi, im new to web designing, i want to run a PHP file but i dont know how to, could you please help me out here.

Thanks
Sam

UK
My Website
[URL=http://www.unlockme.co.nr]Unlockme[/URL]

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@GenixdeaeApr 22.2005 — you need to go to www.php.net and download the files required to run PHP. php.net will be your best resource of information for learning php. The online documentation is very handy. they also have an install guide.
Copy linkTweet thisAlerts:
@abudabitApr 22.2005 — Are you tring to run them on a server or on your computer? I assume a server, and chances are it already has php installed. The simplest way is to have your document named filename.php. The .php tells your server to run it with php. But also inside your document you will probably need your first line to be <?php and your last line to be ?>. Everything in between there is treated as a script.

To run it, just load the file like you would load an .html file. For example www.yourwebsite.com/myfile.php.

Make a php file:


<?php

echo "Testing!";

?>
[/QUOTE]


Name it testfile.php and then upload it and try to run it. It should display "Testing!" on the screen.
×

Success!

Help @sambam2005 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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