Dazzozo Posted May 26, 2008 Share Posted May 26, 2008 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 More sharing options...
mushroom Posted May 26, 2008 Share Posted May 26, 2008 This look incorrect <a href=\\\"http:// <a href=\"http:// Link to comment https://forums.phpfreaks.com/topic/107286-why-doesnt-it-echo/#findComment-550288 Share on other sites More sharing options...
Dazzozo Posted May 26, 2008 Author Share Posted May 26, 2008 Thanks for your help, but... It still doesn't work, the echo still doesn't show, I don't know why. Anything else I can try? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/107286-why-doesnt-it-echo/#findComment-550300 Share on other sites More sharing options...
ibolui Posted May 26, 2008 Share Posted May 26, 2008 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 More sharing options...
BlueSkyIS Posted May 26, 2008 Share Posted May 26, 2008 ^ good one! Link to comment https://forums.phpfreaks.com/topic/107286-why-doesnt-it-echo/#findComment-550307 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.