Posts Tagged with 'PHP'

Generating an alphabetical list from A to Z in PHP is a common requirement for various applications. Whether you want the output as A1, B1, C1... or simply A, B, C..., PHP offers multiple ways …

Last updated 7 months ago | 417 views

Tags:- PHP

When generating PDFs with TCPDF, handling large datasets can lead to errors such as: Fatal error: Maximum execution time of 30 seconds exceeded Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate …

Last updated 7 months ago | 446 views

Tags:- PHP TCPDF

Opening a PDF file in a new browser tab can enhance user experience, especially when dealing with reports or documentation. CodeIgniter, a popular PHP framework, makes this process straightforward. Here's a step-by-step guide to help …

Last updated 7 months ago | 463 views

Tags:- PHP CodeIgniter

Pagination is a critical technique when dealing with large datasets in web applications. It allows you to efficiently display data by breaking it into smaller, more manageable chunks. This guide will walk you through the …

Last updated 7 months ago | 414 views

Tags:- PHP PHP-MySQL

The csrf_token is used for protection against Cross-Site Request Forgeries. This kind of attack takes place when a malicious website consists of a link, some JavaScript, or a form whose aim is to perform some …

Last updated 3 years, 4 months ago | 1396 views

Tags:- PHP Django CodeIgniter

Interpreted language An Interpreted language executes its statements line by line. Languages such as Python, Javascript, R, PHP, and Ruby is a prime examples of Interpreted languages. Programs written in an interpreted language runs directly from …

Last updated 3 years, 4 months ago | 1375 views

Tags:- PHP Python

PHP | Start array index from 1 To change the array index start from 1 instead of 0 can be done using array_unshift() and unset() function. array_unshift() Function The array_unshift() function inserts new elements to …

Last updated 5 years, 5 months ago | 12922 views

Tags:- PHP

PHP | Web Scraping Web scraping is used to get specific data from another website when there is no API available for it. There are many techniques for web scraping. You can read more about this …

Last updated 5 years, 7 months ago | 2448 views

Tags:- PHP

Chart.JS | Draw Bar chart from server data using MySQL, Ajax, and PHP This example shows how to draw a bar chart with data from the database server.  FILE STRUCTURE At the end of this …

Last updated 5 years, 9 months ago | 11213 views

Tags:- HTML JQuery JavaScript PHP Chart Ajax PHP-MySQL

PHP | Warning: A non-numeric value encountered This error occurs when you are trying to do a mathematical operation on an integer with a nun-numeric value or a string.  Info: New E_WARNING and E_NOTICE errors …

Last updated 6 years ago | 23591 views

Tags:- PHP

PHP | Comments A comment in PHP code is a line that is not executed as a part of the program. It's only read by someone who is looking at the code. By reading the comments …

Last updated 6 years, 1 month ago | 2557 views

Tags:- PHP

PHP | Case Sensitive In PHP, keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined functions are not case-sensitive but all variable names are case-sensitive.   If you defined function name in lowercase, …

Last updated 6 years, 1 month ago | 6672 views

Tags:- PHP

PHP | Syntax, and Tags PHP introduces a list of Tags to code PHP. PHP tags allow the PHP parsing engine to get in and get out from the PHP block. A PHP script can …

Last updated 6 years, 1 month ago | 2354 views

Tags:- PHP

PHP | Statement $x = 3 + "15%" + "$25"? The correct answer is 18. Here’s why: PHP is a  loosely typed language, therefore it does automatic type conversion based on the context in which …

Last updated 6 years, 1 month ago | 2321 views

Tags:- PHP

PHP | Array error fix | array_merge() The output will be as follows: array(2) { [0]=> int(1) [1]=> int(2) } NULL NULL It will also generate two warning messages as follows: Warning: array_merge(): Argument #2 …

Last updated 6 years, 1 month ago | 2340 views

Tags:- PHP