* Anything from a form* Anything from $_GET, $_POST, $_REQUEST* Cookies ($_COOKIES)* Web services data* Files* Some server variables (e.g. $_SERVER['SERVER_NAME'])* Environment variables* Database query results
Filter supports get, post, cookies, server and environment variables as well as defined variables (server support may not work in all sapi, for filter 0.11.0 or php 5.2.0).
....!
"AJAX is an acronym for Asynchronous JavaScript and XML. If you think it doesn't say much, we agree. Simply put, AJAX can be read "empowered JavaScript", because it essentially offers a technique for client-side JavaScript to make background server calls(such as from PHP,ASP.NET,JSP,RUby etc) and retrieve additional data as needed, updating certain portions of the page without causing full page reloads".
The XMLHttpRequest object enables JavaScript to access the server asynchronously, so that the u....!
When a user first encounters a page in your application that call ssession start(),a sessionis created for the user.PHP generates a random session identifier to identify the user,and then it sends a set-Cookieheader to the client.By default,the name of this cookie is PHPSESSID,but it is possible to change the cookiename in php.ini or by using the session name() function.On subsequent visits,the client identifies the user with the cookie,and this is how thea application maintains state.
Smarty is a template engine written in PHP. Typically, these templates will include variables —such as {$variable}— and a range of logical and loop operators to allow adaptability within of the template.
....!
SELECT CURTIME(); SELECT CURDATE(); SELECT CURRENT_TIME(); SELECT CURRENT_DATE();
....!
The main difference between GET and POST is how the form data is passing. Both are used for passing form field values.
All the values which is submitted by the GET method will be appended to the URL.Where as POST method send the data with out appending the URL(hidden)
In GET Method we can bookmark the URLs where as in POST method its not possible
In GET Method there is a limit for passing the data from one page to another(ie 256 characters according to w3c standards)But in POST we can send large amount of data
Yes it is
Using header("Expires: Mon, 26 Jul 2007 05:00:00 GMT");
<?php header("Expires: Mon, 26 Jul 2007 05:00:00 GMT"); ?>
www.w3answers.com
....!
PHP 5.3.2 Released!
....!
Virtual hosting
HTTP includes the concept of virtual hosting, where a single HTTP server can represent multiple hosts at the same IP address.
A DNS server can allocate several different host names to the same IP address. When an HTTP client makes a request to a particular host, it uses the DNS server to locate the IP address corresponding to that host name, and sends the request to that IP address.
In HTTP/1.0 the host name did not appear in the HTTP message; it was lost after the IP address had been resolved. This meant that i....!
These are the simplest method to backup and restore the MySQl table
For taking the bakup of all the databases
mysqldump --user {user} --password {password} -A > {file name to dump}
To take the backup of a specific database
mysqldump --user {user} --password {password} dbname > {filename to dump}
To restore a SQL dump please use this
mysql --user {user} --password {password} dbName < {filename to restore}
Database testing basically include the following.
1)Data validity testing.
2)Data Integritity testing
3)Performance related to data base.
4)Testing of Procedure,triggers and functions. for doing data validity testing you should be good in SQL queries For data integrity testing you should know about referintial integrity and different constraint. For performance related things you should have idea about the table structure and design. for testing Procedure triggers and functions you should be able to understand the sam....!
$s=”hihihi”; echo $s. “ welcome”.$s; a) syntax error b) runtime error c) all of the above d) hihihi welcome hihihi
ANS: d
....!
PHP arrays are associative arrays with a little extra machinery thrown in. The associative part means that arrays store element values in association with key values rather than in a strict linear index order. (If you have seen arrays in other programming languages, they are likely to have been vector arrays rather than associative arrays.) If you store an element in an array, in association with a key,all you need to retrieve it later from that array is the key value.....!
<?php session_start(); $_SESSION["var"] = NULL; echo $var = "www.w3answers.com"; ?>
The output : www.w3answers.com and warning as below
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a ....!
Set char to occupy n bytes and it will take n bytes even if u r storing avalue of n-m bytes
Set varchar to occupy n bytes and it will take only the required space and will not use the n bytes
eg. name char(10) will waste 5 bytes if we store ‘testname’, if each char takes a byteeg. name varchar(10) will just use 5 bytes if we store ‘testname’, if each char takes a byte. rest 5 bytes will be free.
....!
Set char to occupy n bytes and it will take n bytes even if u r storing avalue of n-m bytes
Set varchar to occupy n bytes and it will take only the required space and will not use the n bytes
eg. name char(10) will waste 5 bytes if we store ‘testname’, if each char takes a byte
eg. name varchar(10) will just use 5 bytes if we store ‘testname’, if each char takes a byte. rest 5 bytes will be free.
....!
Recent comments
3 weeks 3 days ago
4 weeks 2 days ago
4 weeks 2 days ago
4 weeks 2 days ago
5 weeks 4 days ago
6 weeks 3 days ago
6 weeks 5 days ago
7 weeks 2 days ago
9 weeks 13 hours ago
9 weeks 13 hours ago