Category: Web Development Tips

Get country from ip-address 0

Get country from ip-address

Get country name from ip-address <?php function countryCityFromIP($ipAddr) { //function to find country and city from IP address //verify the IP address for the ip2long($ipAddr)== -1 || ip2long($ipAddr) === false ? trigger_error(“Invalid IP”, E_USER_ERROR)...

How to delete the file using php 0

How to delete the file using php

We can delete the file using php with the help of unlink function. Define this function like this: unlink ( string $filename [, resource $context ] ) Parameter: File name: Path to the file....

use rich text editor(RTE) with html, php and .net code 0

use rich text editor(RTE) with html, php and .net code

The rich text format (RTF) contain the html code by this we can easily store the format of text in the database and also we can show this format directly on the website page....

How to Create a auto scheduling task Using PHP (Cron Job or Scheduled Task) 0

How to Create a auto scheduling task Using PHP (Cron Job or Scheduled Task)

Basically, we will start by creating a schedule. Then, we will feed this schedule to a program called crontab. Crontab will take the schedule and install it into an internal set of tables which...

Making a PayPal Form to accept a payment on our site 0

Making a PayPal Form to accept a payment on our site

PayPal makes doing this very easy by providing those “Buy-It-Now” buttons you’ve probably seen around the place. Basically when you see one of those buttons, it is really the submit button on an HTML...

Run the .php extension(or .shtml, or .asp, etc), code in .html file 0

Run the .php extension(or .shtml, or .asp, etc), code in .html file

Google strictly follow the .html or .htm extension when it indexed your website if it find the .php extension(or .shtml, or .asp, etc), it execute your web page before indexed by this way your...