What is the use of PHP

Reply

Join Date: Mar 2006
Posts: 14
Reputation: bbb777b7 is an unknown quantity at this point 
Solved Threads: 0
bbb777b7 bbb777b7 is offline Offline
Newbie Poster

What is the use of PHP

 
0
  #1
Mar 19th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 73
Reputation: UberAAZ is an unknown quantity at this point 
Solved Threads: 1
UberAAZ's Avatar
UberAAZ UberAAZ is offline Offline
Junior Poster in Training

Re: What is the use of PHP

 
0
  #2
Mar 19th, 2006
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.

  1. <?php
  2. //this will display "Hello World" in the browser window
  3. echo "Hello World";
  4. ?>

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.

  1. <style type="text/css">
  2. <!--
  3. body,td,th {
  4. font-family: Verdana, Arial, Helvetica, sans-serif;
  5. font-size: small;
  6. color: #000000;
  7. }
  8. body {
  9. background-color: #FFFFFF;
  10. }
  11. -->
  12. </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.

  1. <script language="text/javascript">
  2. location.href="www.blah.com";
  3. </script>

(code above moves to www.blah.com)


Hope that helps,
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 84
Reputation: web_developer is an unknown quantity at this point 
Solved Threads: 1
web_developer web_developer is offline Offline
Junior Poster in Training

Re: What is the use of PHP

 
0
  #3
Mar 19th, 2006
man if u want to be web developer
u should be familar with doing static web sites, using html, javascript and flash
in the next stage u can use server side programming like (Php, Asp.net..)
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 354
Reputation: Troy is an unknown quantity at this point 
Solved Threads: 5
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: What is the use of PHP

 
0
  #4
Mar 20th, 2006
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.
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 14
Reputation: bbb777b7 is an unknown quantity at this point 
Solved Threads: 0
bbb777b7 bbb777b7 is offline Offline
Newbie Poster

Re: What is the use of PHP

 
0
  #5
Mar 24th, 2006
Well, i think I know enough of html and flash and all those static site making skills.

i searched everything online for a good php tutorial but nothing is good. I don't even know if I installed the PHP correctly. I don't know how to open a class i made. can anyone help me?
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 354
Reputation: Troy is an unknown quantity at this point 
Solved Threads: 5
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: What is the use of PHP

 
0
  #6
Mar 24th, 2006
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.
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 14
Reputation: bbb777b7 is an unknown quantity at this point 
Solved Threads: 0
bbb777b7 bbb777b7 is offline Offline
Newbie Poster

Re: What is the use of PHP

 
0
  #7
Mar 24th, 2006
I installed IIS, though i did it without using a service disk so i don't know if itz rite. i did install the microsoft service pack though.

i installed the PHP too, but they say i need to find the htdoc, where is that?

srry if i'm an idiot
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum


Views: 1854 | Replies: 6
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC