base64 encoding

I want my code to work in a way where the directory $test is the only thing thats echoed in base 64.

If this is possible please tell me how its done.

:)

<?php //base64_encode($test); dont know where to put this for ($test=0; $test<10; $test++){ echo "http://www.site.com/$test/<br />"; } ?>

[php]<?php
for ($test=0; $test < 10; $test++)
{
echo ‘http://www.site.com/’ . base64_encode($test) . ‘/
’;
}
?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service