Apna Code

Code, Tutorials and Snippets by Adeel Sarfraz

  • Home
  • About Us
  • Contribute
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

PHP

How to fetch posts from my WordPress blog without accessing the database

March 19, 2020 Adeel Sarfraz 0

If you view the websites being developed nowadays you will find an option for a blog or blog posts to be shown on the web […]

How to perform session timeout after 20 minutes using PHP?

March 17, 2020 Adeel Sarfraz 0

One of the features people usually require while working on a back office panel for a system is that the user be automatically logged out […]

How to fetch visitors location using ip2location in Laravel

September 30, 2019 Adeel Sarfraz 0

If you have installed the ip2location library for Laravel as described in the previous post then you can proceed with the next step i.e. using […]

How to add ip2location library support in my Laravel website code?

September 30, 2019 Adeel Sarfraz 0

IP2Location is a 3rd party provider which provides website owners the option to detect the actual location of the visitor i.e. country, city, postcode, ISP […]

How to remove a specific key from a query string using PHP

September 28, 2019 Adeel Sarfraz 0

Sometimes you come across a situation where you need to remove a specific key from the query string. I have come across a regular expression […]

How to export to Excel from HTML using PHP

September 28, 2019 Adeel Sarfraz 0

I had a recent requirement of exporting a report in HTML to an Excel file using PHP. Now, there is no built in PHP extension […]

How to save Japanese characters in a mySQL table

September 26, 2019 Adeel Sarfraz 0

I had to save Japanese characters in a CSV file to a mySQL table and then display those characters on another page. I created a […]

How to setup ION Cube Loader on your Windows machine

February 11, 2019 Adeel Sarfraz 0

If you are going to purchase a commercial PHP script from any 3rd party then chances are that they will provide you encoded PHP scripts […]

How to edit an existing PDF using PHP

February 11, 2019 Adeel Sarfraz 0

A couple of weeks back I was asked to edit an existing PDF file and make changes to the content and save it back as […]

Bulk unsubscribe email addresses from PHPList using custom PHP script

February 5, 2019 Adeel Sarfraz 0

I had a small task to unsubscribe email addresses of specific countries from our company mailing list as we would not be able to do […]

Posts navigation

1 2 … 6 »

Recent Posts

  • How to stop users from copy pasting content from my web page
  • How to fetch posts from my WordPress blog without accessing the database
  • How to use Google font on my web page?
  • How to check if my website is safe from malware infection
  • How to perform session timeout after 20 minutes using PHP?

Code Gallery

Apna Code Scripts - where you can view all scripts coded which you can use on your website.

Copyright © 2021 | WordPress Theme by MH Themes