Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vikash12345 committed Sep 7, 2017
1 parent 4e19672 commit 2484813
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scraper.php
Expand Up @@ -8,7 +8,13 @@
$NewLink = 'http://globalcontact.com/gc/directory/search.php?table=USDIR';
$html = file_get_html($NewLink);
$var = 'Hello';
$input = $html->find('input[type=text]', 0)->innertext = 'foo';
$input = $html->find('input[type=text]', 0)
if($input == null || $input == '')
{
echo $input->innertext = 'foo';

}
echo "-----"
echo $input

//code
Expand Down

0 comments on commit 2484813

Please sign in to comment.