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 …
How to use php array with sql IN operator?
SQL | IN operator with PHP Array In this article we will use PHP Array with SQL IN operator. SQL IN operator allows us to specify multiple values in where clause. So in this article …
What are the predefined classes in PHP?
Predefined classes in PHP are: Directory stdClass __PHP_Incomplete_Class exception php_user_filter
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. …
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 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 …
Convert Object To Array in PHP
PHP | Convert Object To Array Converting an object to an array is a small thing that can be achieved by a single line of code. For this purpose, we need to use typecasting. Typecasting …
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. …
hr tag attribute and its use
HTML | <hr> tag By using html <hr> tag, some time we need to style <tr> tag as per page or design requirement. For styling <hr> tag we can use htrml <hr> tag attribute or …
What is HTML?
HTML | What is HTML HTML is a web language that stands for HyperText Markup Language. It was created by Berners-Lee in late 1991. HTML is the standard markup language for creating web pages that …
What is recursion in PHP?
PHP | Recursion PHP also supports recursive function call like C/C++. In such a case, a function calls itself within the function. Note: Recursion must be incorporated carefully since it can lead to an …
What is the difference between explode and split?
The explode() and split() both function is use to split a string into an array. But the difference is explode() function splits a string into array by string where as Split function splits string into …
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 a view in SQL?
SQL | View View in SQL is a kind of virtual table. It does not physical exists in our database but have rows and column as there we have in a real database table. we …
Overriding the save method in Django
Django | Overriding the save method The save method is inherited from models.Model class. It is used to override the save method before storing the data in the database. This is used when there is …