Question:
I'm not understanding PHP/mySQL/apache.?
tribe2437
2008-03-01 08:51:10 UTC
I've been reading up and trying to learn/understand how to create a website database with PHP/mySQL/apache. Every resource I find says that it's so easy. I'm usually a very fast learner, but I'm not understanding any of this. All of this software is from the stone ages. Can someone please tell me what is the function of
PHP:
mySQL:
Apache:

I want to create a database like this one at www.whogavemecredit.com, and I'm having no luck understanding any of these programs. Please give me ANY information you can think of...thanks
Four answers:
Hoody Hoo
2008-03-01 10:23:59 UTC
PHP, Mysql, and Apache are probably some of the farthest softwares from being considered out of date, they are updated so frequently it's hard to stay up with the latest versions. If you think it's from the stone ages because it doesn't use a GUI ...well....

Apache is a webserver, this is what delivers the pages to the users visiting your website. A user types in the address of the server like "www.google.com" if you have purchased a name from dns like register.com and that send them to your sends them to your webserver in other words apache. Apache then see someone wants to view your site and sends them the html, php, and javascript code and whatever else your program might be developed in and thats pretty much all. This is why it's called a webserver because it is quite literally serving websites to people.



PHP is "PHP Hypertext Preprocessor" what happens is you write php code this is not html it's a whole different langugage. But what happens is the php program that gets installed on the server your on will run before your page is sent and parse all of your php before it is sent and all of it's functionality will be employed in the sent webpage. This is why you can not view source the php for a page because it has already been parsed before the page was sent over. So if you've worked with any programming language a good analogy for the php program your installing on the server machine would be the compiler and then the php that you write as code would be your language.



Mysql is a database management system and it's purpose is to organize and store information. Mysql is like a Microsoft Access database except that it doesn't have all the pretty graphics and is incredibly more robust. Once mysql is installed you will be able to create databases and use SQL to manipulate the tables of them and such. And then once you have php connected to it you will be able to access your database while creating pages allowing you pull out data such as addresses, names, messages, and posts which could all potentially be stored in the database.



To install all of these programs on a server you could use my favorite tutorial for doing so at http://www.ricocheting.com/server/apache.html



If you think this is to much and don't care a lot about the level of control then you could use something like XAMPP ( http://www.apachefriends.org/en/xampp.html )



And also if you are planning on creating a webpage that will be put up on the web then most webhosts have these programs already installed on them. Plus they have a lot of helper programs as well like phpmyadmin which will make mysql graphical.
anonymous
2016-10-08 10:26:57 UTC
some stated sticking with the C/Java direction si you decide directly to do interest programing. the different technologies you stated are information superhighway-centric, and could not at all be suited for video games. i'd pass in direction of C++ and proceed with Java. The LAMP technologies (Linux, Apache, MySQL, own residing house page) would be the thank you to choose for the internet stuff. by skill of ways, there is yet another guy in this website who pronounced the "programming language HTML." Crap. he's making an attempt to sell his e book. Iguess he hasn't found out yet that HTML isn't a "programming language," that's a MARKUP language that does 0 programmatic applications. to boot, once you're into own residing house page and all that, you're possibly already distinctly adept at HTML.
Jimmy W
2008-03-04 09:29:50 UTC
Since you are a newbie to PHP and MySQL, this search code may be some use to you. It is a full PHP search script that searches through multiple MySQL table and displays results by relevance. DEMO available. Visit.....



http://www.mysqlphpcode.com
Ashes
2014-05-15 00:40:07 UTC
In Short:



PHP is server side programming, which runs on server and execute output to user.

MYSQL is a database management software, you can use mysql and php together to manage data.

APACHE is the server software, in which php runs.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...