Tuesday, 18 December 2012

PHP Basics – PHP comments

The PHP comment starts with a special character sequence and all text that appears between the start of the comment and the end will be ignored.
PHP comments main purpose is to give information about the code to the programmers who works along with you. Commenting will help other programmers to understand how your code, it will be useful to you, when you need to edit your own code.
There are two types of commenting
  • Single line comment
  • Comment Block with multiple lines

PHP Basics - PHP Tags

Every PHP scripy in your file should start with PHP Opening Tag, End end with an PHP Closing Tag,
Following are standard tags for opening and closing tags in PHP.
<?php
is standard tag for opening PHP script and
?>
is standard tag for closing PHP script.

Monday, 17 December 2012

PHP Basics - Writing First Script

In this post i am going to explain how to start writing your PHP scripts in your computer Using WAMP Server.

If you haven't install WAMP server click here to learn how to install.

To start writing scripts in PHP you need Text Editor or IDE.

There are so many Text Editiors available for windows like NotePad, NotePad++ etc.

And IDEs Like NetBeans for PHP, Eclipse for  PHP, Aptana Studios are open source softwares available for PHP.


Tuesday, 11 December 2012

Setting password protection for WAMP

   This post will guide you to setup password protection to WAMP server, There are so many ways to set up password, But following is the easiest way to do.

Note: perform full backup of WAMP before you do any changes. Check here to learn how to set backup for WAMP.

Click on WAMP tray icon and put server to online, When it is turned back to green click on it and open phpMyAdmin from popped-up menu.
















Monday, 10 December 2012

Setting backup for WAMP Server

    It is highly recommended to set backup for WAMP server before you do any changes to its default settings, If you have any problem with WAMP server, you can always restore from backup folder which you will set up in this guide. Setting back up will take couple of minuets and it will save hell lot of time if you have problem with WAMP server in future.

To set up back ups you need an synchronization software. i find SyncToy from MicroSoft is reliable and easy to use software for windows.

You can download software from here. (choose version which suites your operating system)

Download SyncToy and start installing it by clicking on it.


Installing WAMP Server

               WAMP Server is a pre-configured software bundle of PHP, MySQL, Apache for windows machines. You can get Installer software from the WAMP server official website. Click on download on main menu, and click on the version of WAMP server depends on your operating system.


if you click on desired version in the above screen a pop up window will appear, Just follow the instructions and install Visual C++ distributional package if you don't have it in your computer. If you have VC++ installed you can click on download directly from that window ( as shown in d below image ) to download WAMP server. Or click download from here. and save it to your desired location.


Saturday, 8 December 2012

Setting up PHP

There are few ways to install PHP in your computer,
  • Install PHP, Apache, Mysql individually and configure them.
  • Install using third party bundles (wamp, xampp, lamp etc.)


Manual Installation:

You have to download PHP, Apache , MySQL separately( php, mysql db server, apache ).
You need to configure each of them to work together, Lot of guides are available on the internet for configuration.

Using Packages:

 There are various bundled software packages available which you can download, install and start using it with out needing of configurations.

although there are several packages available WAMP, XAMPP are widely used packages. In next post i am going to explain how to install & configure WAMP server on your windows desktop.

WAMP stands for Windows Apache Mysql PHP

Friday, 16 November 2012

What is PHP...?

PHP (PHP : Hypertext Pre-processor) is an Open Source general-purpose server-side scripting language originally created for web development to produce dynamic web pages. It is one of the first to develop server-side scripting languages to be embedded into an HTML source document rather then calling an external file to process data. PHP code is interpreted by webserver with a PHP processor module which generates the resulting web page.

Intro

Hi,
        My name is Srinivas, Wroking as Web Developer in an Organization and I work as freelancer too. I am here to guide people who need help in learning PHP and in coding web technologies.

       When I started working as a PHP Developer, I have faced few difficulties in learning stuff and finding solutions for few problems I faced. So I have decided to create a blog with my knowledge to help you guys.