myGully.com

myGully.com (https://mygully.com/index.php)
-   Entwicklung & Programmierung (https://mygully.com/forumdisplay.php?f=72)
-   -   Hilfe PHP Identisch(?) Skript (https://mygully.com/showthread.php?t=2181571)

Idi123 12.12.10 00:08

Hilfe PHP Identisch(?) Skript
 
Das Skript:
PHP-Code:

<?php
$urla 
"http://google.de"
$url urlencode($urla);
$listee fopen("urllist.txt","r+");
while (!
feof($listee)) {
    
$zeilee fgets($listee,500);
    
$userdate explode("|"$zeilee);
    if(
$userdate[1] == $url) {
        echo 
"Erfolgreich!<br />";
    }
    else {
echo 
"Fehler!<br />";
    }
echo 
$url;
echo 
"<br />";
echo 
$userdate[1];
echo 
"<br /><br />";
}
fclose($listee);
echo 
"Skriptende!<br />";
echo 
$url;
?>

Die "urllist.txt"
PHP-Code:

251535|http%3A%2F%2Fwww.google.de
829666
|http%3A%2F%2Fifun.de
422982
|http%3A%2F%2Fwww.google.de
915457
|http%3A%2F%2Fwww.chip.de
837657
|http%3A%2F%2Fwww.google.de
382999
|http%3A%2F%2Fgoogle.de
296293
|http%3A%2F%2Fmygully.com%2Fthread%2F74-tourl-sicherer-short-domain-service-2181337%2F
391777
|http%3A%2F%2Fadcdc
973152
|http%3A%2F%2Fwww.amazon.de
288994
|http%3A%2F%2Fmygully.com%2Fthread%2F72-mod_rewrite-frage-2181396%2F%23post21641305
147914
|http%3A%2F%2Fgoogle.de
117617
|http%3A%2F%2Fpsp-load.us
760923
|http%3A%2F%2Fhager-schueler.de 

Dieses Skript soll untersuchen ob userdate[1] aus einer datei jeweils identisch mit der variabel $url ist. Sieht irgendjemand einen Fehler. Selbst wenn das Skript zwei identische Eingaben hat sieht das Skript sie als unterschiedlich an


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:16 Uhr.

Powered by vBulletin® (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.