Hello,
I need a little help with a coding problem..
I started this script and what I want to do is..
include a small file from one domain..
a php file that will make a table in a mysql database...
insert some data from the file that it is "including" and carry on..
but I have never used the base64_decode before..
or the include for that matter.. but it just seemed like the best way to do it..
Basically it is my copyright information that I want to include..
but I want to make it so it inserts my info.. from my domain so I can control what it says...
I also want to encode it so as not to be easily removed..
am I on the right track...
{ $upd = @file(base64_decode("('THIS IS WHERE I NEED HELP==")
Thanks ahead of time...
base64_decode
Moderator: General Moderators
BTW, base64_encode/decode is no form of encryption/decryption, so anyone can decode your encoded code.
outputs:
ZGV2bmV0
devnet
Use mcrypt functions instead. You can provide a key which makes it impossible (DIFFICULT ?) to hack.Basically it is my copyright information that I want to include..
Code: Select all
$a="devnet";
$e=base64_encode($a);
$d=base64_decode($e);
echo $e."<BR>";
echo $d."<BR>";ZGV2bmV0
devnet