Mailinglisten-Archive |
At 19:23 03.08.99 +0200, Oliver Kummerow wrote:
>4. PHP-Code
>$file = "64mime.txt"; // Input-File
>$outfile = "64.txt";
>$fp = fopen ( $file , "r" );
>$content = fread ( $fp, filesize ( $file ) );
>fclose ( $fp );
>echo "Input-Länge = " . strlen ($content);
>echo "<br>";
>echo "Output-Länge = " . strlen ($output);
^^^^^^^
Hier soll die länge eines Strings bestimmt werden, der überhaupt nochnicht
existiert... *g*
>echo "<br>";
>$output = base64_decode ( $content );
^^^^^^^
Erst ab hier hat $output einen wert...
>$fp = fopen ( $outfile, "w" );
>$done = fwrite ( $fp, $output );
>fclose ( $fp );
Also, die echo-Ausgabe am besten ganz zum schluss hinhengen ;)
...Dann klappts auch mit Result... ;)
Man sollte sich das zuerst nochmal anschaun... *g*
Bye
Dante
php::bar PHP Wiki - Listenarchive