When I need to get content from the site, I use the function file_get_content(), but now I need to capture the data that is downloaded after the request ajax. therefore, I cannot provide the exact URL. are there any algorithms to do such things?
file_get_content()
ajax
Thank.
If I understand your question correctly, you want to make a Get_content file on a website that loads AJAX data ... this is a client-side process that occurs when a client browser hits it, seeing that you are making a server request you will not see.
, ajax, NET firebug, , .
, JavaScript, Rhino, , .
Net firebug (firefox) Chromes Developer Tools, AJAX . javascript, php script - . PHP--, file_get_contents cURL ( POST). , , - , script.
URL , , , URL- , .
, . jQuery load() :
$('#my_container').load('local_proxy.php #container');
- file_get_contents() , id "container" (.. <div id="container">) "my_container" ".
<div id="container">
, , , js...: P
Source: https://habr.com/ru/post/1749248/More articles:The value of a transfer function to return a function of a jQuery function - javascriptIframe src dynamically installed via JavaScript runs twice in Internet Explorer - javascriptСсылки между веб-приложениями ASP.NET - referenceAdding XOR function to bigint library - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1749247/how-can-i-view-javadocs-that-have-been-added-to-a-maven-repository&usg=ALkJrhgkir8yoazC0DiXD4V6e3-AhTfDkAWhy does the right shift operator produce zero instead of one? - javaUse Python to search for a single .txt file for a list of words or phrases (and show context) - pythonDELPHI: EEncodingError - invalid codepage on xp embedded windows - delphiJQuery.hasClass method to lower the effect - jquerystored procedures in scala.dbc - scalaAll Articles