/    Sign up×
Community /Pin to ProfileBookmark

Very First step with PHP

I want to learn PHP on my own machine, I downloaded the windows version to replace IIS and just test the

[CODE]<?PHP
phpinfo();
?>[/CODE]

and to my own surprise it is working,…. oohhh what a wonderful feeling.

My question is why my [B]default.php [/B] or [B]index.php[/B] page doesn’t appear by default on the browser at [B][url]http://localhost[/url] [/B] but it is OK if type [B][url]http://localhost/default.php[/url][/B]

thank you for your help

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@bokehMay 26.2006 — If you "[I]replaced[/I]" IIS what are you using as a server?

On Apache there is a line in httpd.conf to specify what the default file is named.[CODE]DirectoryIndex index.php index.php3 index.html index.html.var index.htm[/CODE]
Copy linkTweet thisAlerts:
@LodovikusauthorMay 26.2006 — Now I know [I]Replace [/I] is wrong word, I think I meant PHP for windows and I have IIS on my machine something like that....or is it?

any way, thank you Bokeh. is there something similar to [B]directoryIndex[/B] in IIS
Copy linkTweet thisAlerts:
@bokehMay 26.2006 — I don't know but I suggest you use Apache as your webserver.
Copy linkTweet thisAlerts:
@LodovikusauthorMay 26.2006 — I will have look at the apache server'

Thanks again for your time
×

Success!

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