View Single Post
Old
  (#12 (permalink))
BobW
Registered User
BobW is on a distinguished road
 
Status: Offline
Posts: 8
Join Date: Feb 2003
Rep Power: 0
08-24-2008, 01:21 AM

Jim,
I don't think there is any compression feature enabled in my editor. I think the Parse error had something to do with how my FTP client handled the upload because I uploaded and overwrote the file on the server using cPanel's File Manager and now the "Parse error: syntax error" message is gone and it loads a page. But the page it loads is our home page, not the birthday page it should be loading today. Is it possible that 'Location: ' is still missing from the PHP syntax on the server? I have no way of knowing because when I right click the page and click "View Source" I see only the HTML code, parsed correctly, but not the PHP script.
I uploaded a file containing your original script that you posted here at 02:26PM today, positioned over some simple HTML code containing a text message and then accessed it with my browser and it worked like a charm, displaying the About.com page listed as the 'Location: ' for "08 23" and hiding the text message.
I compared the two scripts and can see no difference in syntax. The only difference I can think of is that the one I adapted, with the birthday page URLs as Locations, is positioned over a more complex page of HTML code.
Here is my adaptation of your script; maybe you can see something I missed:

<?php
$day = date("m d") ;
switch($day){
case "08 23": header( 'http://mcpharts.org/members/marty.htm' ) ; break;
case "08 25": header( 'http://mcpharts.org/members/brucenew.htm' ) ; break;
case "08 26": header( 'http://mcpharts.org/members/alan.html' ) ; break;
}

?>

This is positioned over the HTML code representing our home page.
Thank you for taking the time to work with me on this, Jim. I know you have other things you could be doing and I want you to know that I truly appreciate your help.
Bob Wilson
   
Reply With Quote