Jump to content

Why doesn't it echo?


Dazzozo

Recommended Posts

Hey! I've been using PHP for quite a while now, and I thought of combining most of my skills in to one, and I decided to make some sort of pre-caching script. I want to have a copyright notice at the bottom of the page, which is decoded using base64_decode(), and what should happen is the decoded version of the text should be made a variable, and then echoed later on in the script, but nothing ever echoes. Here is the php in the script:

 

http://dazzozo.com/stuck.txt

Whats wrong? I just can't figure it out.

 

Thanks,

Dazzozo.

 

Link to comment
https://forums.phpfreaks.com/topic/107286-why-doesnt-it-echo/
Share on other sites

if($pk = 'Copyright © Dazzozo.COM 2008 All Rights Reserved<br><br><a href=\\\"http://dazzozo.com/led/\\\" title=\\\"Dazzozo.COM\\\">The LED Project</a>') {
    $pk = $rn;
} else {
    $dr = base64_decode('WU9VIEhBVkUgUkVNT1ZFRCBUSEUgQ09QWVJJR0hUIE5PVElDRSwgUExFQVNFIEVNQUlMIDxhIGhyZWY9XCJtYWlsdG86bGVkQGRhenpvem8uY29tXCI+TEVEQERBWlpPWk8uQ09NPC9hPi4=');
}

 

i am not sure.. but does

 

if($pk = 'Copyright .....

 

always return true? shouldnt it be

 

if($pk == 'Copyright ....  ???

Link to comment
https://forums.phpfreaks.com/topic/107286-why-doesnt-it-echo/#findComment-550306
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.