11.7.13

WordPress Memory Error - any solution?

WordPress Memory Error - any solution?

2.5.13

Wordpress Installation

WordPress is a popular Blogging software, you can use to create a beautiful website or blog.
For enhancements of wordpress software, we can use plug-ins and themes for UI Design.

1. Download wordpress script from wordpress.org
2. extract the zip  / tar files in to the root folder (xampp->htdocs / wamp->www)
3. create a database for this application
4. Start the wordpress installation from Browser URL
5. It will show 'create configuraiton file' option, click on the button to create the file.
6. Enter database name, database username and password details to install the wordpress.
7. Enter the admin user details, to access admin system from back end.
* admin section is useful to manage the site functionality,  users and UI Design etc.,

Finally the installation is completed, you are ready to post the blog articles.

PHP Latest Version 5.4 features

PHP Latest Version 5.4 features
 
These are new features supported by php 5.4
  • Support for traits has been added.
  • Short array syntax has been added, e.g. $a = [1, 2, 3, 4]; or $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];.
  • Function array dereferencing has been added, e.g. foo()[0].
  • Closures now support $this.
  • Class member access on instantiation has been added, e.g. (new Foo)->bar().
  • Class::{expr}() syntax is now supported.
  • Binary number format has been added, e.g. 0b001001101.
  • Improved parse error messages and improved incompatible arguments warnings.
  • The session extension can now track the upload progress of files.
  • Built-in development web server in CLI mode.

4.12.12

PHP Latest versions

PHP Development team releases PHP 5.4 version and also continuing support for PHP 5.3 version.

The latest stable versions for PHP 5.4 and 5.3

PHP Different versions page: Click here redirect the download page

PHP 5.4.9 stable version:  Download TAR format | Download Windows Binaries

PHP 5.3.19 stable version:  Download TAR format | Download Windows Binaries

PHP Documentation download here:


6.5.10

PHP - Tutorial II

Variable declarations:

Declare variables using '$' symbol, starting with alphabet characters and "_" allowed.

Ex: $id, $student_name, $count, $var1  etc.,

Assigning values to varibles, are describes the datatype of variable.

Declare string varibales with in double quotes.

Ex:  $id = 1;   //integer
      $studnent_name = "phppandits" // Strings
      $ave_marks = "98.88";
     

5.5.10

Interview Questions - PHP

1. What is PHP, Explain?

  • PHP is web development server side scripting language. 
  • Hypertext Preprocessor - PHP.
  • It is a Open source technology.
2. Latest versions of PHP?
  • Latest versions are 5.2.14 (stable) and  5.3.2 
 
3. "echo " is a functional or statement?
  • "echo"  is a function.  

4. Explain short open tags?
  • short open tags are "<?" and "?>".
  • for short open tags, we need to modify php configuration file i.e., php.ini
  • short_open_tags = Off (default), Change On.

3.5.10

Write your first PHP Program

For writing php programs
install notepad++ Editor

1. Write php program with in "<?php" and "?>" tags.

2. You can also write php program with in "<?" and "?>" tags. these tags are called 'short open tags'. You need to modify configuration in "php.ini" file.


Write your first Program :

<?php
echo "my first program";
echo "<br/>";

echo "php - hypertext preprocessor";
?>


  • Save the file "firstprogram.php" in root folder "Apache\htdocs\" (with extension ".php" )
  • run the file in browser (IE or FF) type "http://localhost/firstprogram.php"  and press Enter.
Explanation:
line no.1 : <?php 
  • php starting tag
line no.2 : echo "my first program"; 
  • echo - command to display data on browser windows", type date between double or single quotes ("example" || 'example')
  • ";" - termination operator for a statement.
  • it displays ::  my first program
line no.3 : echo "<br/>"; 
  • <br/> - HTML tag for line break, you can add html tags in double quotes to run in php language.

line no.4 : echo "php - hypertext preprocessor";
  • echo - display data on browser windows".
  • ";" - termination operator.
  • it displays ::  php - hypertext preprocessor

 line no.5 : ?>
  • php closing tag.

27.4.10

Apache, PHP Software Testing

Test apache server :

  • Type in Internet Explorer / Firefox, http://localhost and press Enter
  • Browser displays " It works" Message.

Test PHP :

  • open notepad
  • Write a program
<?php


phpinfo();

?>

  • Save the file "test.php" in "Apache\htdocs" folder.
  • and type in browser http://localhost/test.php
  • the browser displays all php setup information.

24.4.10

PHP - Setup & Installation

PHP - Setup & Installation
  • Download PHP latest Version
  • Download MySQL Latest version
  • Download Apache Latest version

Apache - Installation :
  • Download Apache Latest Version from Apache web site
  • Latest Versions are: Apache 2.2.14


PHP :

  • download php from PHP
  • Latest stable versions are: php 5.3.2 or 5.2.13
MySQL :

  • download mysql from mysql
  • latest version : 5.1

23.4.10

About PHP


What's PHP ? PHP is basically used for developing web based software applications. The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. "PHP is an HTML-embedded scripting language, its syntax is borrowed from C, Java and Perl.



What's it do - PHP ?

  • Reduce the time to create large websites.
  • Allow creation of shopping carts for e-commerce websites.
What You Should Know?

  • HTML - Know the syntax and especially HTML Forms.
  • Basic programming knowledge like C - This isn't required,
  • if you have any traditional programming experience, it will make easier to learn PHP.