file-get-contents

    5

    2답변

    현재 URL이 주어진 경우 웹 페이지 제목을 얻으려면 file_get_contents()을 사용하고 있습니다. Wamp에서 이것은 완벽하게 작동합니다. 그러나 이것을 웹 서버로 옮기면 문제가 발생하여 this 답변으로 연결됩니다. (allow_url_fopen에서 1으로 설정). 이 기능을 설정하는 데 보안 위험이 있습니까? 그렇다면 URL 자체에서 웹 페

    0

    1답변

    아약스 호출을 통해 다른 HTML 데이터도 일부 반환해야하는 배열을 만들려고합니다. 문제는 내가 file_get_contents() 같은 명령을 사용할 때 PHP를 먼저 HTML 페이지를 구축하는 파일, BUE을 포함 할 필요가있다 .. 그것은 단지 배열뿐만 아니라 모든 내 PHP 코드를 반환 $array['nav'] = array( 1 => fal

    0

    1답변

    웹 사이트 (taste.com.au)의 일부 데이터를 가져 오려고하는데 클래스 나 ID가없는 요소의 데이터를 가져 오는 데 성공하지 못했습니다. $url = "http://www.taste.com.au/recipes/15281/asparagus+with+sun+dried+tomatoes+and+basil"; $html = file_get_contents(

    1

    2답변

    PHP를 사용하여 링크에서 웹 컨텐츠를 가져 오려고했습니다. file_get_contents()을 사용해 보았지만 둘 다 원하는 링크로 작동하지 않습니다. 다음과 같이 내 curl 코드는 다음과 같습니다 function request($url){ $curl = curl_init(); curl_setopt($curl, CURLOPT_URL,

    0

    1답변

    CSS 경로를 사용하여 웹 사이트의 콘텐츠를 가져올 수 있습니까? 예를 html body#tplThread div#mainContainer div#main div#possd443.message div.messageInner div.messageContent div.messageContentInner

    1

    1답변

    나는 ... comments.txt 내가 하나 하나 .. file_get_contents도 비활성화 $f_contents = file_get_contents("comments.txt"); $line = $f_contents[array_rand($f_contents)]; $messages = $line; $messages = urlencode($mess

    -1

    3답변

    curl url에 변수를 전달하고 싶지만 오류가 발생합니다. HELP ME에서의 코드는 $url = 'https://graph.facebook.com/$id/comments?message=$messages&method=post&access_token=$m'; 입니다 : $arr = file('comments.txt',FILE_IGNORE_NEW_LINE

    2

    2답변

    PHP 사용 웹 사이트 페이지를 크롤링하고 자동으로 이미지를 가져 오려고합니다. Internal Server Error와 <?php $url = "http://www.domain.co.uk/news/local-news"; $str = file_get_contents($url); ?> 및 <?php $opts = array('http'=>

    -3

    1답변

    이 코드가 있습니다. 그리고 나는 모든 위치에서 방문을 얻기 위해 아레 (Aray datte)에서 그걸 원합니다. 하지만 문자열로 결과를 얻을. 여기 예 : "string"(7652) "{"id ":"34 ","nume ":"학생 ","bilet ": null,"log ":"2014-06-16 11:41 : 28 \ n2014-06-16 11 : 41 :

    0

    1답변

    Statcounter API에서 json 데이터를 가져 오려고합니다. 나는 다음과 같습니다 $query = makeQuery("2292634", "demo_user", "statcounter", "visitor", ""); echo $query . "<br>"; $response = file_get_contents($query, true); $data