Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

What Is Php?


22 replies to this topic

#1 19163

    Newbie

  • Kontributors
  • Pip
  • 1 posts

Posted 01 January 2008 - 12:39 PM

I am a new starter. Who can tell me what is PHP?

#2 MiniK

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 112 posts
  • Gender:Male
  • Location:United Kingdom

Posted 01 January 2008 - 02:22 PM

PHP is a popular programming and scripting language created to add dynamic functionality to websites and to provide a way for websites which use a web-based database to store and retrieve information remotely.

PHP syntaxes always start with:
<?php

And end with:
?>

PHP files have a file extension of .php, .php3, .php4, .php5 - or, if you would like to create a PHP file in which the information is not processed, and the source code displayed, simply change the file extension to .phps

If you would like to display certain information, use the echo function.

<?php
echo "INFORMATION";
?>

will display:

Quote

INFORMATION

For more info and examples, go to http://www.w3schools.com/php/

#3 Liam_CF

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 403 posts
  • Location:ERROR 404

Posted 01 January 2008 - 02:22 PM

Quote

PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.


#4 omarsdali

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 74 posts

Posted 01 January 2008 - 04:31 PM

PHP is a server side scripting language, it's like javascript but the only diffrence between them is that javascript is a client side language. Server side means the code is executed on the server the the output is sent to the browser, so no one sees your source code. Client side means that the code is executed by the browser, so the code can be seen by everyoone.

If you want to learn php just go to w3schools.org and read the lessons they have over there, if you already know another programming language like me, it will be very easy and you will be writing php code in no time.

You can't test your php code just by opening it in the browser, you have to either uploaded it to a hosting account or install a webserver on your pc ( IIS or Apache) if you understood what server side means you'll know why.

#5 suberatu

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 131 posts
  • Gender:Male

Posted 01 January 2008 - 07:47 PM

Just as a bit of trivia, PHP is an endless acronym, as it stands for 'PHP Hypertext Preprocessor'.

#6 galexcd

    Trap Grand Marshal Member

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,331 posts
  • Gender:Not Telling
  • myCENT:39.82

Posted 03 January 2008 - 07:02 AM

View Postsuberatu, on Jan 1 2008, 11:47 AM, said:

Just as a bit of trivia, PHP is an endless acronym, as it stands for 'PHP Hypertext Preprocessor'.

Yes but I believe the PHP in PHP does not stand for PHP Hypertext Preprocessor, if I recall it stands for 'Personal Home Page', so the full length acronym would be "Personal Home Page Hypertext Preprocessor".

#7 buddzph

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 16 posts

Posted 03 January 2008 - 08:14 AM

PHP = PHP Hypertext Preprocessor..

It is a language which is free to use... i think.. but powerful.. Using PHP, you can create websites, backends for your websites or we can call it CMS.. The popularity of PHP is increasing because of its expanding usage..

#8 hitmanblood

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 788 posts
  • Gender:Male
  • Location:mreža

Posted 03 January 2008 - 11:48 PM

as everyone almost exlained more or less things about php. I will say this. It is languuage or script that is executed on the server instead of the browser this way yuou can implement many nice features like dynamic websites and so on. It is really easy for use howeveer some features I personally dislike very very much. Such as that php is not type strict language and this leads to many mistakes however on the other hand I like arrays and way they were implemented in the php it is really helpful.

Also I'd like to suggest book php and mysql from the o'reilly this is really good puclisher and you should lear mysql because it will help you much as it is database language and you can male even better sites with it and many many more things. Good luck.

P.S. just for the end php doesn;t have to be used for site programming you can use it as any other language if you run it in the console.

#9 [John]

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 32 posts

Posted 19 February 2008 - 10:42 PM

PHP is basically a server-side scripting language which allows you to add dynamic content to your website. It makes the server complete all the calculations of your code allowing you to add features to your site like the time, math functions, database connectivity and much more. Combined with html and css and you have yourself the best weapon on the web. A great coder can effectively utilize all three if not 5 or more languages on a page while keeping it xhtml/css strict. Good luck in your web development! :P

#10 hitmanblood

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 788 posts
  • Gender:Male
  • Location:mreža

Posted 20 February 2008 - 12:30 AM

View Post[John], on Feb 19 2008, 11:42 PM, said:

PHP is basically a server-side scripting language which allows you to add dynamic content to your website. It makes the server complete all the calculations of your code allowing you to add features to your site like the time, math functions, database connectivity and much more. Combined with html and css and you have yourself the best weapon on the web. A great coder can effectively utilize all three if not 5 or more languages on a page while keeping it xhtml/css strict. Good luck in your web development! :P

Some experience though I must note still limited had learned me that too many languages is producing only problems. And furthermore it is not needed to have strict coding because it is important to keep zour site to the brwoser compatibility and not in fact strict though many people consider strict code as compatible but many times if you try to check it out even if your code is strict you might have problems with code however the point also is that you want to allow your site to be viewable by as may users possible however the thing is that you must consider compatibility this is the thing I hold usually when coding

And best combination to combine is to use javascript then css html php and mysql.

javascript for modification of the page in real time without almost without communication with server. Under javascript I consider ajax also that is the reeason for the almost there :P

css for the basic look and feel of the page site or however you like to conside rit. And also it is better to use this then to modify with ccss then with the html tags since it is easier to modify and change page afterwards or to make more templates and so on.

html. as basic for the organization of all elements in the page and everything else for providing outputs from the php ad so on.,,.

php as server side scripting opposite to teh javascript sinve with this you can manipulate all bunch of the things like logins sessions registrations very different data and so on. Almost everything you think.

mysql ought to be used for communication between php and database server and to pull out and send data inot databases. The rgeat engine though there are some misuses like sql injections.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users