Update webpagetool.php
This commit is contained in:
parent
fd74b66231
commit
e31f9fa6c0
|
@ -6,7 +6,7 @@
|
||||||
* @brief WebPageTool helper
|
* @brief WebPageTool helper
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(!function("get_web_page")) {
|
if(!function_exists("get_web_page")) {
|
||||||
function get_web_page($url, $method="get", $data=array(), $proxy="", $ua="", $ct_out=45, $t_out=45) {
|
function get_web_page($url, $method="get", $data=array(), $proxy="", $ua="", $ct_out=45, $t_out=45) {
|
||||||
$options = array(
|
$options = array(
|
||||||
CURLOPT_PROXY => "", // set proxy server
|
CURLOPT_PROXY => "", // set proxy server
|
||||||
|
@ -62,7 +62,7 @@ if(!function("get_web_page")) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!function("get_web_json")) {
|
if(!function_exists("get_web_json")) {
|
||||||
function get_web_json($url, $method="get", $data=array(), $proxy="", $ua="", $ct_out=45, $t_out=45) {
|
function get_web_json($url, $method="get", $data=array(), $proxy="", $ua="", $ct_out=45, $t_out=45) {
|
||||||
$doc = array();
|
$doc = array();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user