An image address decomposition program (for PHP thieves ),. An image address decomposition program (for PHP thieves), such as a question, returns an array to obtain the baseurl, relative address, and name of the image address. for details, see the following example: error_rep an image address decomposition program (for PHP thieves ),
For example, return an array to obtain the base url, relative address, and name of the image address. for details, see the following example:
<? Error_reporting (E_ALL ^ E_NOTICE); $ imgurl = 'http: // your getimg ($ imgurl ,'. /img '); var_dump (url_set_value ($ imgurl); var_dump (url_set_value ($ imgurl_dir);/*** function name: url_set_value * User: Don * Date: 14-8-2 * Time: */function url_set_value ($ url) {$ a = explode ('/', $ url); $ url_set = array (); for ($ n = 0; $ n
Running result:
array(4) { ["base_url"]=> string(14) "files.jb51.net" ["img_dir_path"]=> string(27) "/file_images/article/201408" ["img_path"]=> string(19) "201408232212306.png" ["img_ful_path"]=> string(46) "/file_images/article/201408201408232212306.png"}array(3) { ["img_dir_path"]=> string(15) "/img/2014/07/02" ["img_path"]=> string(12) "14520384.gif" ["img_ful_path"]=> string(27) "/img/2014/07/0214520384.gif"}
Keys (used in PHP thieves), such as the question, returns an array to obtain the base url, relative address, and name of the image address. for details, see the following example: error_rep...