/    Sign up×
Community /Pin to ProfileBookmark

Locally addressing the very first php file!

Hello everybody!

I am brand newbie to PHP programming.
I have just downloaded the package XAMPP in order to start learning and locally developing with PHP. The package has successfully installed on my local computer. I prepared my first php file named: “phpfile.php”, placed in a folder named: PHP, which is on the “D” division of my hard disk.

As far as I know, I have to write the address of my “phpfile.php” file in the location field of a browser in order to see the output of “phpfile.php” file, but I do not know the right form of the address to write in the browser! For example: [url]http://My[/url] Computer/D/PHP/phpfile.php, is wrong one, but what?

I seek your kind help, Please

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@OctoberWindApr 08.2011 — All your PHP files need to go in the XAMPP htdocs directory (usually [C:]xampphtdocs), so that the PHP is parsed by the webserver before it goes to the web browser.

From there, you send the browser to http://localhost/ and from there, going to the profile.php (or whichever pages you need).

I would suggest looking here if you're having issue with configuration troubles.
Copy linkTweet thisAlerts:
@Lotfi_MAauthorApr 09.2011 — Thank you OctoberWind, for your kind help.
×

Success!

Help @Lotfi_MA 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.27,
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,
)...