Category: Technical Skills

Get image URL from post in wordpress 0

Get image URL from post in wordpress

To get the image URL of post thumbnail in wordpress is little difficult because the wordpress doesn’t provide any function to get the image URL. It only returns the full HTML code of image....

How to fetch current date and time using Javascript 0

How to fetch current date and time using Javascript

JavaScript Current Time Clock With the newly created Date Object we can show the current date and time, now only a variable which store the current date and time. We have to only print...

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 fetch all files from folder using php 0

how to fetch all files from folder using php

PHP directory listing Some times we have to display the list of all files in a directory.We can do this with the help of php function readdir(). The code to display all the files...

Protect your folder or folder lock without any Software 0

Protect your folder or folder lock without any Software

We can protect or lock any folder without any software with few steps Open notepad and copy the below code and save as lock.bat.You can save also any other default name. At first time...

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....