hey i have a script here.. it uses a lang.core.php file in wich it stores a code and the message it shows for that code so i got something like this: $LANG['core'] = array ( "no_access" => "You cannot access this page." , ); Code (markup): so on the site where that no_access thing shows up it will show the "You cannot access this page" message what i want to obtain is instead of showing that message to redirect the users to a URL i want them to go to.. is there a way to obtain this from this lang.core.php file so i won`t have to go through all the languages files (there are alot of them) and try to make it work from there thanks
Replace "You cannot access this page." Code (markup): With "<script type='text/javascript'>window.location='http://www.google.com';</script>" Code (markup): That's my best suggestion. Another option would be PHP's redirect, but I assume the headers are long sent by then.
@KinetiX: If you view source and see nothing in it, maybe there's some error in parsing your php file.
Try changing it too "\<script type\=\'text/javascript\'\>window.location\=\'http://www.google.com\'\;\<\/script\>" Code (markup):