PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Oct 18, 2018 12:07 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: php file upload
PostPosted: Thu Apr 19, 2018 5:07 am 
Offline
Forum Newbie

Joined: Thu Apr 19, 2018 5:02 am
Posts: 1
I am a newbie to the world of webdesign and my experience is one website old.I am reading the basic text books on php and viewing the tutorial videos on YouTube and have the following question.
The textbook advises me to code php along with html and save it as index.php and “ put it onto your php enabled server”—On which folder on the server am I supposed to upload my index.php file to.There is also an index.html file which contains the same html code excepting the php part which I have uploaded to public_ html folder on the server.
When it comes to running the webpage which of these two files will have precedence-?
Can anyone explain my problem?
Regards,


Top
 Profile  
 
 Post subject: Re: php file upload
PostPosted: Thu Apr 19, 2018 7:03 am 
Offline
Forum Newbie

Joined: Sun Jan 28, 2018 12:18 pm
Posts: 9
carllwyman wrote:
On which folder on the server am I supposed to upload my index.php file to


public_html/

Quote:
When it comes to running the webpage which of these two files will have precedence


It depends how the server is configured. But if you're programming in PHP, there's no need for anything to have an .html extension anymore, because PHP includes all of HTML.


Top
 Profile  
 
 Post subject: Re: php file upload
PostPosted: Thu Apr 19, 2018 2:34 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13580
Location: New York, NY, US
carllwyman wrote:
When it comes to running the webpage which of these two files will have precedence-?

You can confirm the setting by having both files in public_html/ and see which one is displayed. In the end, you should only have one of them in the directory.

_________________
(#10850)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Exabot [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group