문제

I have to decode a large string base64 encoded:

<?php
        $str ='base64code';
    echo base64_decode($str);
?>

The link contains the base64 encoded string: http://www.interwebmedia.nl/dataxi/base64.txt

Online decoders give the right result but this php function doesn't. Is there a solution?

도움이 되었습니까?

해결책

base64_decode outputs exactly what was encoded before. It does not adapt any contained values.

You are writing everything out in HTML context. And there any <tags> will not be shown in the browser window. Use show source. Or htmlspecialchars.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top