Web deployment, ftp & .php: the deliberations of a noob

Joined
Oct 18, 2005
Messages
230
Reaction score
0
Points
16
Your Mac's Specs
MacPro 3.1
Ok, firstly I'm pretty new to web design and am really quite enjoying it so far, but I do have a few questions.

If I sit at my desk and develop a number of webpages, such as

index.html
helloworld.html
.......
contactus.html
main.css

and I stick them all in a folder, do I just upload that folder via ftp to a web server and then the world can see see my website?

If I was to buy a domain name, such as http://www.andy4prez.com am I buying space on a web server as well that I can push the folder to or do I have to pay costs for a web server and a domain name?

With regards to .php files and MySQL, where do I actually put the database? Is that also just added to the folder that gets sent to the web server or do you have to make special provisions for a database, or must it be placed in a special location to function correctly?

Are websites ever made up of .html and .php pages or should that really be avoided?

I've been using MAMP to get started and play with .php files. So far I've just been pushing my test .php files through Apache and MySQL locally to experiment but is there any way to open this up to the internet? ie. can I leave MAMP on in my room and access the pages that I have in the relevant folders at another location?

Cheers!

:Smirk:
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
I wouldn't recommend you use MAMP as an external server. As per their philosophy: "MAMP was created primarily as a PHP development environment for Macintosh computer and should therefore not be used as Live Webserver for the Internet. In this case, we recommend that you use Mac OS X server with the provided Apache or a Linux server."
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top