Blog Archives

you can learn here basics about Php.

PHP and AJAX

AJAX Introduction Ajax stands for Asynchronous JavaScript and XML. AJAX is about updating parts of a web page, without reloading the whole page. Ajax is not an Technology in itself. It is a term used for representing the technique used

Posted in Php

PHP MySQL Connect to a Database

Connect to MySQL Database Opening a connection to MySQL database from PHP is easy. Just use the mysql_connect() function like this, Syntax mysql_connect(servername,username,password); servername = Specifies the server to connect to. Default value is “localhost:3306” username = Specifies the username

Posted in Php

PHP E-mail

PHP allows you to send e-mails directly from a script. The PHP mail() function is used to send emails from inside a script. Syntax mail($to, $subject, $message, $headers); As you can see above, the mail function has four parameters. *

Posted in Php

PHP Sessions

Sessions are used to store information which can be used through-out the application for the entire time the user is logged in or running the application. Each time a user visits your website, you can create a session for that

Posted in Php

PHP Cookies

Cookies allow the webmaster to store information about the site visitor on their computer to be accessed again the next time they visit. Syntax The setcookie() function is used to set a cookie. Note: The setcookie() function must appear BEFORE

Posted in Php

PHP File Upload

PHP is its ability to manage file uploads to your server. To allow users to upload a file to the server, you first need to provide a form for them to specify which file they want to upload. Once they

Posted in Php

PHP Include File

You can insert the content of one PHP file into another PHP file before the server executes it, with the include() or require() function. The two functions are identical in every way, except how they handle errors: * include() generates

Posted in Php

PHP Date() Function

The PHP date() function is used to format a time and/or date. date(format,timestamp) The required format parameter in the date() function specifies how to format the date/time. Here are some characters that can be used: * d – Represents the

Posted in Php

PHP Forms

The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input. PHP $_GET Function The built-in $_GET function is used to collect values in a form with method=”get”. Information sent from a form with the

Posted in Php

PHP String Functions

A string variable is used to store and manipulate text. String Variables in PHP String variables are used for values that contain characters. <?php $txt = "Learn Web Development things"; echo $txt; ?> The output of the code above will

Posted in Php