| | |
What is the use of PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2006
Posts: 14
Reputation:
Solved Threads: 0
I just started to have experience of making web sites. I know html and flash and things like that. I had some experience with javascript.
What is the use of php? also, what is the use of css and javascript?
which one should i learn first?
which is the most useful?
i would like the answers and this would be a good thread to have.
What is the use of php? also, what is the use of css and javascript?
which one should i learn first?
which is the most useful?
i would like the answers and this would be a good thread to have.
I'm going to run through each of the languages, and give you some sample code for each.
PHP: PHP is used to program websites that can do things automatically. Take my website, UberAAZ.com. When you access it, it accesses a database, gets my posts and the content of the sidebar, then displays it to you.
CSS: CSS is used to design pages. You might say "yes, but I can do that in HTML", and you'd be right, but the point of CSS is that if you want to change the design of your website by editing the style sheet you can do it all in one place.
JavaScript: JavaScript is used to do some quite advanced things, such as displaying popups, asking for user input, doing things based on that input, etc. I really don't like this language though (my personal opinion) because if you use a browser that's not called Internet Explorer some of the more advanced stuff will look awful or just plain won't work.
(code above moves to www.blah.com)
Hope that helps,
PHP: PHP is used to program websites that can do things automatically. Take my website, UberAAZ.com. When you access it, it accesses a database, gets my posts and the content of the sidebar, then displays it to you.
PHP Syntax (Toggle Plain Text)
<?php //this will display "Hello World" in the browser window echo "Hello World"; ?>
CSS: CSS is used to design pages. You might say "yes, but I can do that in HTML", and you'd be right, but the point of CSS is that if you want to change the design of your website by editing the style sheet you can do it all in one place.
PHP Syntax (Toggle Plain Text)
<style type="text/css"> <!-- body,td,th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; color: #000000; } body { background-color: #FFFFFF; } --> </style>
JavaScript: JavaScript is used to do some quite advanced things, such as displaying popups, asking for user input, doing things based on that input, etc. I really don't like this language though (my personal opinion) because if you use a browser that's not called Internet Explorer some of the more advanced stuff will look awful or just plain won't work.
PHP Syntax (Toggle Plain Text)
<script language="text/javascript"> location.href="www.blah.com"; </script>
(code above moves to www.blah.com)
Hope that helps,
You may also find my post at http://www.daniweb.com/techtalkforum...javascript+PHP helpful in understanding at a high level the difference between client-side and server-side scripting.
Do we assume you tried to install PHP on a Windows computer? Which web server? IIS? Apache?
It is difficult to help you without some details like this. If you want accurate, thorough answers, ask accurate, thorough questions.
IF you want to get PHP working with Apache on Windows, click the WAMP HOWTO link in my signature below. It will walk you STEP by STEP through installation to configuration to creating a test PHP page to see that everything is working.
It is difficult to help you without some details like this. If you want accurate, thorough answers, ask accurate, thorough questions.

IF you want to get PHP working with Apache on Windows, click the WAMP HOWTO link in my signature below. It will walk you STEP by STEP through installation to configuration to creating a test PHP page to see that everything is working.
![]() |
Similar Threads
- learning php (PHP)
- PHP vs ASP... the big ShOwdOwN (IT Professionals' Lounge)
Other Threads in the PHP Forum
- Previous Thread: PHP with Javascript Parsing
- Next Thread: I want to create a community script
Views: 1854 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email encode error file files folder form forms function functions google howtowriteathesis href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple multipletables mysql oop parse paypal pdf php problem provider query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure syntax system table template tutorial update updates upload url validation validator variable video web xml youtube





