Php verifies whether a page contains a specific content. it is used to make a submission form, submit multiple URLs to php for processing, and determine whether the content of this URL contains a specific sentence. compare the URL with the url in the database to check whether the url exists in the database. the pop-up prompt for both matches is passed. the prompt for non-conformances fails. can you help me with PHPcode? you can put the website in your data into a php file to verify whether a page contains a specific content?
It is to make a submission form, submit multiple URLs to php for processing, and determine whether the content of this URL contains a specific sentence. compare the URL with the url in the database to check whether the url exists in the database. the pop-up prompt for both matches is passed. the prompt for non-conformances fails.
Can you help me?
------ Solution --------------------
PHP code
You can put the URLs in your data into an array. Suppose it is $ arrif (strpos (file_get_contents ($ _ POST ['URL']), 'specific sentence ')! = False & in_array ($ _ POST ['URL'], $ arr) {echo 'passed';} else {echo "failed ";}
------ Solution --------------------
Yes?
Print_r ($ _ POST); check whether data exists.