Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Parse Error
Posted: 30 May 2004 02:59 AM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1330
Joined  2003-02-12

The school district site I have set up with pmachine pro has been working wonderfully until today. I was setting up a weblog for a teacher and I’m getting a parse error.  They wanted to have two seperate weblogs on the same page.  I’m wondering if this might be the problem?  The error I receiv is this:

Parse error: parse error, unexpected T_STRING in D:\ChathamSD Web Page\staffpages\jwparkin\WebPage2\index.php on line 1

The page is here:
http://www.chathamsd.org/staffpages/jwparkin/WebPage2/index.php

Thanks a lot for any help.

Jamie

Profile
 
 
Posted: 30 May 2004 11:22 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  2541
Joined  2001-12-21

Most likely you have an error in the index.php file noted above.  Make sure any instances of pMachine tags have correct syntax.

 Signature 
Profile
 
 
Posted: 30 May 2004 11:49 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1330
Joined  2003-02-12

I looked and it seems perfectly fine.  Every other blog on the district site is working perfectly and their setup is basically the same.  That is why I don’t understand the problem with this one. 

Could I possibly send you the file in question and see if you could find anything?  The teacher is on a deadline for a graduate class and needs to be able to show something for his work.

Jamie

Profile
 
 
Posted: 31 May 2004 12:13 AM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1330
Joined  2003-02-12

Well, I figured it out.  For some reason our IIS server is unable to parse a PHP file that contains XHTML.  It works fine with ones that use only html but XHTML and it gives that unexpected T_STRING error.

Does anyone have experience with this and know a solution?

Jamie

Profile
 
 
Posted: 31 May 2004 12:47 AM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  2002-08-05

Is it choking on something like this?

<?xml version=“1.0” encoding=“iso-8859-1”?>

 Signature 
Profile
 
 
Posted: 31 May 2004 12:58 AM   [ Ignore ]   [ # 5 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1330
Joined  2003-02-12

smile  That was indeed the problem.  I removed that line from the pages that were not working and they display fine now.  Thanks Paul.

Do you know why IIS doesn’t handle pages like this the same way my linux server does?

Jamie

Profile
 
 
Posted: 31 May 2004 01:25 AM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

Not sure of the difference in server.  Could be a difference in PHP settings, I guess.

To get that line to display you might try something like this:

<?php echo "<" . "?" . "xml"; ?> version="1.0" encoding="iso-8859-1"?>

It’s the first “<?” part that’s choking it since that’s a shorthand version of the opening PHP tag.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 64967 Total Logged-in Users: 0
Total Topics: 81989 Total Anonymous Users: 0
Total Replies: 440672 Total Guests: 12
Total Posts: 522661    
Members ( View Memberlist )
Active Members: