Let’s see the reading and writing to files in PHP with the help of an Example. Create a text file example “file.txt” in the root folder. //reading the contect $stockFile = “file.txt”; $fh = fopen($stockFile, ‘r’); $stockfileContents = fread($fh, 21); fclose($fh); You can open the file using “fopen” command The “fread” command is for reading…
Category: PHP
50 US States List-PHP array useful for Website Development
The USA is politically and geographically divided into 50 different states. The US president is the central inclination of 50 states. Each us state has a governor elected by the people and they represent them in the American parliament. The United States of America is comprised of 50 states. The List of 50 US States…
Laravel 5.6.12 Released
Laravel has come a long way becoming better with each new release. The new release 5.6.12 added support for signed routes and URLs along with quite a few other new additions. The signed routes were added by Taylor Otwell, which provides a few new methods you can use to generate a signed route and a temporary signed route….