- 3:51 AM
- 0 Comments
- What is the Variable
- Variables are "containers" for storing information.
- Creating (Declaring) PHP Variables.
- In PHP, a variable starts with the $ sign, followed by the name of the variable:
Example ::
- PHP Variables.
A variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume).
Rules for PHP variables:
- A variable starts with the $ sign, followed by the name of the variable
- A variable name must start with a letter or the underscore character
- A variable name cannot start with a number
- A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
- Variable names are case-sensitive ($age and $AGE are two different variables).
- Operation Variables (like Sum)
- Output Variables.
- Operation Variables (like Sum)
- Output Second.php File ......
Thanks .....Enjoy the Program .....
- 8:19 AM
- 0 Comments
The easiest way to run a PHP Program for the first time is using the software bundle named XAMPP:
You don't have to install Apache, PHP and MySQL separately, in fact, it is often difficult for beginners to install these bundles separately and combine them to run PHP CODE. XAMPP does that for you with just a few clicks.
- XAMPP works well in all the major platforms: Windows, Mac and Linux.
You don't have to install Apache, PHP and MySQL separately, in fact, it is often difficult for beginners to install these bundles separately and combine them to run PHP CODE. XAMPP does that for you with just a few clicks.
- Before you install XAMPP, you may have to uninstall existing Apache and MySQL installations, especially if they were installed as a service.
After you install XAMPP,
- 1. Open any Text Editor.
- 2.Install new if you don't already have any good Text Editor installed.(Notepad ++ )
- 3.Write the following PHP Program / CODE in the Text Editor:
- Save the file in......
XAMPP Installation Directory
\Web Root Directory
4. When you save the file, name it
first.php
(just as an example, any valid file name with .php in the end will work).
Note: when you save this file, make sure it has no
.txt
extension at the end. Some text editors place .txt
at the end of file name, so it becomes first.php.txt
instead of first.php
. To avoid this, when you save the file using any text editor, place double quote around the file name: e.g. "first.php"
5 .Then, go to XAMPP installation folder (typically,
C:\xampp
) and run xampp-control.exe
by double clicking it.
6. In the
xampp-control
window, click the start button beside Apache. Later, if you need other options like MySQL, you'll also have to start MySQL by clicking the start button beside MySQL in the XAMPP control Panel.
Note: if your OS hides common file extensions, then you'll see
xampp-control
, instead of xampp-control.ex
7 .Now, in your web browser's address bar, type the address:
http://localhost/my folder/first.php
8. Then Click on First.php ....
Thanks Your Program Is Run....
- 7:45 AM
- 0 Comments
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
Nice, but what does that mean? An example:
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo "Hi, I'm a PHP script!";
?>
</body>
</html>
- 4:26 AM
- 0 Comments
XAMPP for Windows 7 version provides an easy to install Apache-MySQL-PHP-PERL-PEAR framework. XAMPP saves time and effort and provides the software support for web frameworks like Drupal, Joomla, Moodle, or wikiMedia on any Windows PC.
you can download xampp this link :: http://www.apachefriends.org/en/xampp.html
- 9:33 PM
- 0 Comments
The PHP development team announces the immediate availability of PHP 7.0.1. Several bugs have been fixed. All PHP 7.0 users are encouraged to upgrade to this version.
For source downloads of PHP 7.0.1 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.
For source downloads of PHP 7.0.1 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.
- 4:04 AM
- 0 Comments