Tag: scripts (Page 1 of 14)

How to Create Image thumbnail using PHP

Last updated on April 22nd, 2022 at 10:03 amThe following PHP code will create image thumbnails on the fly . We are using PHP GD2 library. You will need to make sure that you have PHP with at least GD 2.0.1 enabled. Very simple script and very easy to customize. Save the above code as create_thumb.php […]

How to read xml using PHP (Demo)

Last updated on October 4th, 2022 at 02:20 pmRead xml and parse it using php and we are using simple php functions named simplexml_load_file, simplexml_load_string & SimpleXMLElement This is handy when you are working with the advanced XML features of DOM. When you are ready to move from those precocious features, just load the DOM […]

Check if bash array contains a value

Last updated on August 27th, 2024 at 01:16 pmAn array is like a list of elements, you can refer to specific elements in an array with indices. For instance myarray[i] refers to the i th element in an array named myarray. Here i am using korn shell. We can use the below shell script in […]

How to search using MySQL prepared statement and PHP

Last updated on March 7th, 2022 at 03:56 pmEnabling content search is always very important for a large website especially when you have lot of pages. I am going to explain this in both regular mysqli procedural approach and also using prepared statements. This script also count number of rows returned from the search. The […]

« Older posts