Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The method to look for specific text on a page and proceed the script from that location depends on the programming language being used. However, in general, the steps to achieve this are:

  1. Retrieve the HTML content of the page using a function like file_get_contents() or similar.
  2. Use a function like strpos() or regular expressions to search for the specific text on the page.
  3. Once the text is found, use the PHP substr() function to extract the remaining content from that location and continue the script execution.
  4. Alternatively, you can use jQuery or JavaScript to find the specific text on the page and manipulate the DOM to execute the script from that location.

Here's an example of how to search for specific text in PHP:

$html = file_get_contents('https://example.com');

$pos = strpos($html, 'specific text');

if ($pos !== false) {
    $remainingContent = substr($html, $pos);
    // continue script execution from this location
}