#28592 [Opn->Bgs]: ereg(i) (not really a bug)
| From: | webmaster at msc-solutions dot de | Date: | Mon, 31 May 2004 12:13:10 +0000 |
| Subject: | #28592 [Opn->Bgs]: ereg(i) (not really a bug) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60204@lists.php.net to get a copy of this message | ||
ID: 28592
User updated by: webmaster at msc-solutions dot de
Reported By: webmaster at msc-solutions dot de
-Status: Open
+Status: Bogus
Bug Type: Regexps related
Operating System: Suse Linux
PHP Version: 4.3.6
New Comment:
ok
Previous Comments:
------------------------------------------------------------------------
[2004-05-31 14:12:42] webmaster at msc-solutions dot de
gr
------------------------------------------------------------------------
[2004-05-31 14:12:20] webmaster at msc-solutions dot de
edit#2
------------------------------------------------------------------------
[2004-05-31 14:10:05] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
.
------------------------------------------------------------------------
[2004-05-31 13:58:01] webmaster at msc-solutions dot de
actual result is this:
Linknr1: www.google.de">googleararga a awerg agdcgasdfgadfg garg<a
href="www.gmx.deLinknr2:
------------------------------------------------------------------------
[2004-05-31 13:46:58] webmaster at msc-solutions dot de
Description:
------------
hi,
i coded a script which catches the links from a page.But that eregi
thing is very stupid.
Reproduce code:
---------------
<?
$file = fopen ("http://www.msc-solutions.de/suche.txt",
"r");
while (!feof($file)) {
$line = fgets($file);
if (eregi ('href="(.*)"', $line, $out)) {
$nr1 = $out[1];
$nr2 = $out[2];
echo "Linknr1: $nr1";
echo "Linknr2: $nr2";
break;
}
}
?>
Expected result:
----------------
Linknr1: www.google.de Linknr2: www.gmx.de
Actual result:
--------------
www.google.de">googleararga a awerg agdcgasdfgadfg garg<a
href="www.gmx.de
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28592&edit=1