Portal Home > Knowledgebase > Articles Database > Why doesn't this code work? [php]


Why doesn't this code work? [php]




Posted by Chris`, 12-10-2007, 09:55 AM
It gives: Source: http://twodayslate.wordpress.com/200...ect-ie6-users/ Can someone please tell me what I need to do to get that code working? *sigh*

Posted by Jamie Edwards, 12-10-2007, 10:09 AM
Check the comments on the blog entry; Here is the code corrected and cleaned;

Posted by Chris`, 12-10-2007, 10:14 AM
I did, but I still got an error. Granted, it's not the same error I'm getting now (thanks). But I'm getting this error with the code you posted:

Posted by apsivam, 12-10-2007, 10:16 AM
end does not exists in the code you provided. Can you post the complete code here.

Posted by Chris`, 12-10-2007, 10:17 AM
I just pasted that code into page.php and loaded it and that's the error I got. It's not part of another page for testing purposes.

Posted by apsivam, 12-10-2007, 10:19 AM
do you mean the the pasted code is the whole content of the file?

Posted by apsivam, 12-10-2007, 10:21 AM
I can see the problem now line 13 should read as header('Location: http://redirect.com'); the last one was not single quote in the code provided above

Posted by Chris`, 12-10-2007, 10:23 AM
Yes, this is the entire file: And it gave me that error previously posted. Edit: Nevermind it looks like the wrong ' was used at the end. I think it's working now. This is the code: Edit2: Thanks everyone.

Posted by twodayslate, 12-10-2007, 07:42 PM
Sorry. Fixed blog entry. Tell me if it does not work.

Posted by Chris`, 12-10-2007, 08:11 PM
The code I posted last worked fine for me. Thanks!



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
CSF Firewall Issue (Views: 730)


Language: