Posts Tagged with 'PHP'
Unlink Function in 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 …
What are the difference between Notify url and Return url?
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 …
What is the difference between unlink and unset function?
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() …
What type of inheritance supported by php?
PHP | Inheritance PHP mainly supports two types of inheritance: Single inheritance Multilevel inheritance
Adding element in an array in 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 …
Save a generated PDF file using 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 …
Prevent page caching in php using header() function
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 …
What is the use of header() function in 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. …
What is session in 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 …
What are the main error type in 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. …
How to get the client IP address in 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 …
What is PHP Variables
PHP | Variable A variable is a user define keyword which is used to store value like string, number, and array. Once a variable is defined then we can use it one or more than …
What is php?
PHP | What is php? PHP is a popular server site scripting langage stands for "PHP: Hypertext Preprocessor". It is an open source scripting language, hence it is free to download and use. We can …