Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/content/86/3464586/html/rkWebsites/allfree-stuff.com/conn.php on line 11
allfree-stuff.com - Free Tutorials, Ebooks, Source Codes, Question Bank
Logo Tutorials, Ebooks, Source Codes, Question Bank
Submit your Email ID & receive intimation about New/Updated Contents :
Advertise with us             CONTACT US
 
Android MobilesHTC MobilesMicromax MobilesMobile ArticlesMobile TermsNokia MobilesSamsung MobilesSony MobilesTablets
108 Names of GodBhajans CHALISA CollectionDevi Maa Ki AartiyanGanesh Ji Ki AartiyanHanuman Ji Ki AartiyanRadha Krishan Ji Ki AartiyanRam Ji Ki AartiyanSai Baba Ji Ki AartiyanShiv Ji Ki AartiyanTemples in IndiaVishnu Ji Ki Aartiyan
Wallpapers Pack
Bollywood FlashsFestival FlashsFlash GamesFlash MessagesFunny FlashsPatriotic FlashsPolitical FlashsSpiritual Flashs
FunStuffJokesRajnikanth JokesWhats App JokesWhats App Messages
About IndiaGeneral Knowledge Hindi RhymesMythological StoriesNursery RhymesPatriotic SongsRiddlesShort StoriesTongue Twisters
Funny SlideshowsInteresting SlideshowsMessage SlideshowsNice SlideshowsPatriotic SlideshowsSpiritual Slideshows
BirthDay SMSChristmas SMSClassic SMSFathers Day SMSFestivals SMSFriendship SMSFunny SMSHoli SMSHusbandWife SMSIndependenceDay SMSLohri SMSLove SMSMorning SMSMothers Day SMSNew Year SMSNight SMSPoetry SMSPunjabi SMSRakhi SMSSanta Banta SmSTeachers Day SMSTimePass SMSValentine Day SMS
3D WallpapersAbstract_WallpapersAnimated_WallpapersApple_Mac_WallpapersBaby_WallpapersBackGroundsBeach WallpapersBirds WallpapersCars WallpapersCartoon_WallpapersChristmas WallpapersColorFul_WallpapersColoringSheetsCool_WallpapersFish_WallpapersFlagsFlash TattoosFlowersFunny WallpapersGalleryGodsGreen_ScenesHD_High_ResolutioniPhone WallPapersLinux_WallpapersMobile_WallpapersMortality WallpapersMountain_WallpapersNatureOptical_IllusionsRosesSea_WallpapersShips WallpapersSports_GamesUltraBeautiful WallpaperValentine WallpapersVehiclesWideScreen WallpapersWildLife WallpapersWindows VistaWindowsXPWindows_7_Wallpapers
AJAX ASP.Net 2.0/3.5 C# / C-Sharp C/C++ Cryptography Data Compression Data Structures FLASH Foxpro/VFP HTML JAVA Java Scripts JSP LINUX Microsoft Office Microsoft Windows MS XNA PHP/MySQL Silverlight Software Engineering SQL SQL Server 2005 UNIX VB.Net 2005 VBScript XML

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/content/86/3464586/html/rkWebsites/allfree-stuff.com/conn.php on line 11
Home Search

?>
       
  
PHP/MySQL
Tutorials
PHP - Learn Syntax of PHP

Actually writing PHP on your computer is very simple. except text editor (like Notepad in Windows) You don't need any specail software. and you are ready to write your first PHP script.

General Syntax for PHP
PHP scripts should always be enclosed in between two PHP tags. This tells the server to parse all the information between them as PHP code. The three different ways for this are as follows:
Here is a PHP Code
?>
Here is a PHP Code
php?>

Your First PHP Script
You will be writing very basic code as your first PHP script. All that it will do is, just print out all the information about PHP on your server. Write following code in your text editor:
phpinfo();
?>
Nearly all lines are ended with a semicolon as with many other scripting and programming languages and if you miss it you will get an error.

Finishing and Testing the PHP Script
After writing your script save it as phpinfo.php and then upload it to your server. in the normal way. And now, using your browser, go to the URL of the script. If it has worked (and if PHP is installed on your server) you will get a huge page containing all the information about PHP on your server







allfree-stuff.com - Free Education for ALL - for any queries contact @ webmaster@allfree-stuff.com