Posts Tagged with 'PHP'

session_id() function There is a function session_id() in php which is use to get and/or set the current session id. string session_id ([ string $id ] ) for getting session id in php we have to …

Last updated 7 years, 1 month ago | 4220 views

Tags:- PHP

PHP | What are default session times in PHP? By default, session variables last until the user closes the browser or leaves the site otherwise most of the server terminates the session variable if you …

Last updated 7 years, 1 month ago | 2370 views

Tags:- PHP

PHP | strip_tags() function strip_tags() function is use to remove HTML, XML, and PHP tags from string. The function provides you the ability to remove tags from strings. You can also ignore certain tags by …

Last updated 7 years, 1 month ago | 2507 views

Tags:- PHP

PHP | unset() function The function unset() is an inbuilt function in in php which is use to delete variable. unset($var) or void unset ( mixed $var [, mixed $... ] ) Note: we can …

Last updated 7 years, 1 month ago | 2354 views

Tags:- PHP

PHP | Unlink() function The unlink() function is an inbuilt function in PHP that is used to delete the file from a directory. If the file function executes successfully and deletes the file then it …

Last updated 7 years, 1 month ago | 2776 views

Tags:- PHP

PayPal | Notify url and Return url Both of these are used in PayPal payment gateway integration. Notify url is used by paypal to send response regarding current transaction in other word notify about the …

Last updated 7 years, 1 month ago | 4867 views

Tags:- PHP PayPal

unlink() and unset() The unlink() and unset() function in php have same functionality (i.e.: delete) but the difference is in the type of data on which they are applied to perform such delete functionalities. unlink() …

Last updated 7 years, 1 month ago | 2903 views

Tags:- PHP

PHP | Inheritance PHP mainly supports two types of inheritance: Single inheritance Multilevel inheritance

Last updated 7 years, 1 month ago | 2316 views

Tags:- PHP

PHP | array_push() function We can add elements to an array in an easy way. There is an inbuilt function array_push() in PHP which is used to add elements to the PHP array. With the …

Last updated 7 years, 1 month ago | 2176 views

Tags:- PHP

PHP | Download pdf file To download a pdf file in PHP, we need to use the header() function. In the header() function, we need to pass "Content-Disposition" which is used to supply a recommended filename …

Last updated 7 years, 1 month ago | 2859 views

Tags:- PHP

PHP | header() function By sending the headers bellow, we change the browser’s default cache settings. We can override any of those settings and force the browser to not cache. In this code we just …

Last updated 7 years, 1 month ago | 2345 views

Tags:- PHP

header() function The header() function in php is use to sends a raw HTTP header to a client. With the help of header() function we can Change page location, set timezone, set caching control, etc. …

Last updated 7 years, 1 month ago | 2743 views

Tags:- PHP

Session in php A session is a global variable which is used to store users/sensitive information on the server. Each session register a unique session id which is use to fetch stored value. Session store …

Last updated 7 years, 1 month ago | 3066 views

Tags:- PHP

Error type in php There are three main error type in php Notice Error Warning Error Fatal Error   Notice Error It is a simple and non critical error which is occur during script execution. …

Last updated 7 years, 1 month ago | 2661 views

Tags:- PHP

$_SERVER['REMOTE_ADDR'] id use to get the IP address of the user.   But sometime it may not return the true IP address of the client at all time. Use Below code to get true IP …

Last updated 7 years, 2 months ago | 2667 views

Tags:- PHP