Team:Groningen/Team
From 2012.igem.org
(Difference between revisions)
Line 15: | Line 15: | ||
<html> | <html> | ||
- | |||
- | |||
<body> | <body> | ||
+ | <? | ||
+ | $size = 0; | ||
+ | $url = "http://www.php-scripts.com/php_diary/010100.php3"; | ||
+ | $the_page = fopen($url, "r"); | ||
+ | while(!feof($the_page)) | ||
+ | { | ||
+ | $each_line = fgetss($the_page, 255); | ||
+ | if(eregi($search_criteria, $each_line, $results)) | ||
+ | { | ||
+ | // for each line where there is a match, increment a counter | ||
+ | $size++; | ||
+ | } | ||
+ | } | ||
+ | fclose($the_page); | ||
+ | print("I found $size ocurrences of $search_criteria at $url"); | ||
+ | ?> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 21:32, 21 April 2012
Home | Team | Official Team Profile | Public Relations | Project | Parts Submitted to the Registry | Modeling | Notebook | Safety | Attributions |
---|
$size = 0; $url = "http://www.php-scripts.com/php_diary/010100.php3"; $the_page = fopen($url, "r"); while(!feof($the_page)) { $each_line = fgetss($the_page, 255); if(eregi($search_criteria, $each_line, $results)) { // for each line where there is a match, increment a counter $size++; } } fclose($the_page); print("I found $size ocurrences of $search_criteria at $url"); ?>
Who we are
|