Step 1 – Set up the Structure
Before starting with any jQuery, we’ve got to build a quick menu structure with XHTML and load in the required project files. Make new XHTML, CSS, and javascript documents. I’ve chosen to name each of mine “animated-menu”. Make two folders in the root directory for images and javascript. I’ve [...]
Archive for the ‘Php interview question’ Category
How to check the user’s browser type and platform in php
Sooner or later it might become necessary to write an application that tracks site visitor browser types. Here’s some code to use:
<?php
echo($_SERVER[‘HTTP_USER_AGENT’]);
?>
This will output something that looks like one of the following:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Mozilla/5.0 (Windows; U; Windows NT 5.1; [...]
How Cross Site Scripting XSS browser attacks
Now a days Web applications are becoming more and more dynamic. Dynamic websites means contents shown on web page are pulled dynamically depending on some settings. These setting may include sending some important variables in query string, or sending the data entered by users with post form type. So in simple [...]
list all string functions in php : php String function list is very userfull in any language
PHP is very powerful server side programming language.
It has lots of powerful functions which speed up the php development and also the performance. While developing a flexible and good web application we always need list of string handling functions.There are lots of php functions and I am giving you a [...]
Posted in
Tags: