Is it possible to get image path from some text using PHP ?
For example, we have a text with such code somewhere inside it This text is stored in DB (as article). How to get image path (in this example it is – http://tutorialspots.com/wp-content/uploads/2013/04/1.png) from text? Of course, text and images varies from article to article Read more about PHP get image path from text …
Category: PHP
PHP functions: remove accents, UTF8 to ASCII, latinization
There are many methods to remove accents, UTF8 to ASCII, latinization: Method 1 Using iconv function: result: Regardez les vidos YouTube - notamment celles proposes…
PHP: calculate percentage of CPU load
Read first: Function sys_getloadavg in PHP < 5.1.3 This function can calculate percentage of CPU load, work done with LINUX and WINDOWS OS. Usage: Online…
PHP function: get US state abbreviation from state name
In the previous tutorial PHP function: get US state name by abbreviation, we can get US state name by abbreviation. Now, we try to get…
PHP function: get US state name by abbreviation
This is a state list I made for a website. I kept it just in case i ever needed it again, which i have. I…
PHP function: Image Resize and Crop
This function support crop and resize JPEG, GIF, PNG image. Example of usage: online demo
Simple Poll script with PHP and MySQL
This tutorial will demonstrate how to make a basic poll using PHP, and store the results in MySQL DEMO: HERE
PHP: Convert IP Range to CIDR
Read first: PHP: Convert CIDR to ipaddress range PHP: check valid ipaddress or CIDR notation range This function work done with small IP range ex:…
PHP: check valid ipaddress or CIDR notation range
This function checks for a valid IP address or CIDR notation address range. Example of usage:
PHP: Convert CIDR to ipaddress range
This function takes an IP address and CIDR netmask (e.g. 102.68.1.0/25), and calculate IP address range in that netblock. Example: result: array(2) { [0]=> string(10)…