Skip to main content

Posts

Showing posts from November, 2013

Variables in PHP

A variable is a storage area. You put things into your storage areas (variables) so that you can use and manipulate them in your programmers. Things you'll want to store are numbers and text. Variable in PHP You can't begin their names with an underscore (_), or a number. But most other characters are fine. Example 1 : A person is going to be collecting the books. But we can specify how many books he will be collecting. If you have five books   to give him, then you do the "Answer"   is like this: Answer is = 5 Books Ok, now going to the subject …   you're studying   PHP, so there's something missing. Two things, actually. First, your people (variables) need a dollar sign at the beginning (people are like that). So it would be this: $ books = 10 Examples 2 : try to do $books=10+20+30; What is your answer : answer must be 60 Example 3 : Test your mind Find the total books ? $english_book=10;

PHP: Hypertext Preprocessor Introduction

The fasting moving wold every programmer know .php so this post discuss about initial steps..  PHP: Hypertext Preprocessor Introduction What is PHP?  PHP is an acronym for "PHP Hypertext Preprocessor"  PHP is a widely-used, open source scripting language  PHP scripts are executed on the server  PHP costs nothing, it is free to download and use  What is a PHP File?   PHP files can contain text, HTML, CSS, JavaScript, and PHP code  PHP code are executed on the server, and the result is returned to the browser as plain HTML  PHP files have extension ".php"  What Can PHP Do?  Software Engineer  Wasura PHP can generate dynamic page content  PHP can create, open, read, write, and close files on the server  PHP can collect form data  PHP can send and receive cookies  PHP can add, delete, modify data in your database  PHP can restrict users to access some pages on your website  PHP can encrypt data

Installing and Testing Wampserver Introduction 1

Confidently, you have now downloaded and installed Wampserver. This will provide you a server on your personal PC (Windows users), everywhere you can test your scripts. If you haven't yet dowloaded the Wampserver software, you can download it here: Download Wampserver you should have an new icon in the bottom right, where the clock is: Click on localhost, though, and you'll see this page appear: (Localhost just refers to the server running on your own computer. Another way to refer to your server is by using the IP address 127.0.0.1.) Click the link under Tools that says phpinfo(). If all went well, you should be looking at the following page (The one below is a different php version, but don't worry about this - as long as you see something): If you saw the above page, then congratulations! Your PHP server is up and running, and you can make a start scripting PHP pages. Troubleshooting Software Engineer  Darshana Shan If you don'