Jump to content

PHP worked on old server... Doesnt work now...


sublime5o

Recommended Posts

We have a site that was hosted elsewhere but now will be hosted on our WINDOWS 2003 box with PHP 5 on it.  This site uses includes that do not seem to be working.  Below is the code for the page and it stops right in the source view when i look at it at the first include.  Please if anyone knows why please reply.  Thanks.

 

 

<?
include "php_includes/functions.php" ;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Default : Default</title>

<link rel="stylesheet" type="text/css" href="/css/main.css" />

<?php if($HTTP_GET_VARS["s"]=="solutions" || $HTTP_GET_VARS["s"]=="highvolume" || $HTTP_GET_VARS["s"]=="largeformat" || $HTTP_GET_VARS["s"]=="orderform"){ include "php_includes/solutions_subnav.php" ; } ?>

</head>
<body style="margin:0px; background-image:url(img/background_middle.gif); background-repeat:repeat-y; background-position:center;">

<div align="center">
	<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" style="background-image:url(img/background_table.gif); background-repeat:no-repeat; background-position:center top; margin:0px; padding:0px;">
		<tr>
			<td> </td>
			<td width="760" align="center" valign="top" style="width:760px;" id="column_top_center">
				<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="760" height="235" id="navigation" align="middle">
					<param name="allowScriptAccess" value="sameDomain" />
					<param name="movie" value="/swf/navigation.swf" />
					<param name="menu" value="false" />
					<param name="quality" value="high" />
					<param name="scale" value="exactfit" />
					<param name="bgcolor" value="#ffffff" />
					<embed src="swf/navigation.swf" menu="false" quality="high" scale="exactfit" bgcolor="#ffffff" width="760" height="235" name="navigation" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
				</object>
			</td>
			<td> </td>
		</tr>
		<tr>
			<td> </td>
			<td width="760" style="width:760px;" id="column_content_center">
				<div class="content">
					<table width="730" style="width:730px;" cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td valign="top" align="center" width="260" style="width:260px; padding-right:35px;">
								<?php
									if(!$HTTP_GET_VARS["s"]) { include "php_includes/left_home.php" ; }
									else if($HTTP_GET_VARS["s"]=="approach") { include "php_includes/left_approach.php" ; }
									else if($HTTP_GET_VARS["s"]=="imaging") { include "php_includes/left_imaging.php" ; }
									else if($HTTP_GET_VARS["s"]=="home") { include "php_includes/left_home.php" ; }
									else if($HTTP_GET_VARS["s"]=="ediscovery") { include "php_includes/left_ediscovery.php" ; }
									else if($HTTP_GET_VARS["s"]=="contact") { include "php_includes/left_contact.php" ; }
									else if($HTTP_GET_VARS["s"]=="solutions") { include "php_includes/left_solutions.php" ; }
									else if($HTTP_GET_VARS["s"]=="highvolume") { include "php_includes/left_solutions_highvolume.php" ; }
									else if($HTTP_GET_VARS["s"]=="largeformat") { include "php_includes/left_solutions_largeformat.php" ; }
									else if($HTTP_GET_VARS["s"]=="orderform") { include "php_includes/left_solutions_orderform.php" ; }
								?>

								<!--
								<img src="img/section/home.gif" border="0" alt="" />

								<br /><br />

								<img src="img/_home/printer_01.jpg" border="0" alt="" />

								<div style="width:259px; height:1px;"></div>-->
							</td>
							<td valign="top" width="435" style="width:435px;" align="left">
								<div style="width:435px; height:<?php
									if($HTTP_GET_VARS["s"]) {
										echo section_height($HTTP_GET_VARS["s"]) ;
									} else { 
										echo section_height("home");
									} ?>;" class="content_frame">

									<?php
									if($HTTP_GET_VARS["s"]){
										include "content/" . $HTTP_GET_VARS["s"] . ".php" ;
									} else {
										include "content/home.php" ;
									} ?>
								</div>
							</td>
						</tr>
					</table>
				</div>
			</td>
			<td> </td>
		</tr>
		<tr>
			<td> </td>
			<td align="center" width="760" style="width:760px;" id="column_bottom_center">
				<div style="padding-top:5px;">
					<a href="index.php?s=home">Home</a>
					|
					<a href="index.php?s=approach">Our Approach</a>
					|
					<a href="index.php?s=solutions">Documents Solutions</a>
					|
					<a href="index.php?s=imaging">Document Imaging</a>
					|
					<a href="index.php?s=ediscovery">eDiscovery Services</a>
					|
					<a href="index.php?s=contact">Contact Us</a>
				</div>
				<div style="width:700px; padding:5px 0px 15px 0px;">
					<a href="index.php?s=solutions">Confidential Document Solutions</a>
					|
					<a href="index.php?s=highvolume">High Volume Printing</a>
					|
					<a href="index.php?s=largeformat">Large Format (Color & BW) Printing and Mounting</a>
					|
					<a href="index.php?s=orderform">PDF Order</a>
				</div>
			</td>
			<td> </td>
		</tr>
	</table>
</div>

</body>
</html>

 

(added


tags)

<?php
   include "php_includes/functions.php" ;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
   <title>Default : Default</title>
   
   <link rel="stylesheet" type="text/css" href="/css/main.css" />
   
   <?php if($_GET["s"]=="solutions" || $_GET["s"]=="highvolume" || $_GET["s"]=="largeformat" || $_GET["s"]=="orderform"){ include "php_includes/solutions_subnav.php" ; } ?>
   
</head>
<body style="margin:0px; background-image:url(img/background_middle.gif); background-repeat:repeat-y; background-position:center;">

   <div align="center">
      <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" style="background-image:url(img/background_table.gif); background-repeat:no-repeat; background-position:center top; margin:0px; padding:0px;">
         <tr>
            <td> </td>
            <td width="760" align="center" valign="top" style="width:760px;" id="column_top_center">
               <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="760" height="235" id="navigation" align="middle">
                  <param name="allowScriptAccess" value="sameDomain" />
                  <param name="movie" value="/swf/navigation.swf" />
                  <param name="menu" value="false" />
                  <param name="quality" value="high" />
                  <param name="scale" value="exactfit" />
                  <param name="bgcolor" value="#ffffff" />
                  <embed src="swf/navigation.swf" menu="false" quality="high" scale="exactfit" bgcolor="#ffffff" width="760" height="235" name="navigation" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
               </object>
            </td>
            <td> </td>
         </tr>
         <tr>
            <td> </td>
            <td width="760" style="width:760px;" id="column_content_center">
               <div class="content">
                  <table width="730" style="width:730px;" cellpadding="0" cellspacing="0" border="0">
                     <tr>
                        <td valign="top" align="center" width="260" style="width:260px; padding-right:35px;">
                           <?php
                              if(!$_GET["s"]) { include "php_includes/left_home.php" ; }
                              else if($_GET["s"]=="approach") { include "php_includes/left_approach.php" ; }
                              else if($_GET["s"]=="imaging") { include "php_includes/left_imaging.php" ; }
                              else if($_GET["s"]=="home") { include "php_includes/left_home.php" ; }
                              else if($_GET["s"]=="ediscovery") { include "php_includes/left_ediscovery.php" ; }
                              else if($_GET["s"]=="contact") { include "php_includes/left_contact.php" ; }
                              else if($_GET["s"]=="solutions") { include "php_includes/left_solutions.php" ; }
                              else if($_GET["s"]=="highvolume") { include "php_includes/left_solutions_highvolume.php" ; }
                              else if($_GET["s"]=="largeformat") { include "php_includes/left_solutions_largeformat.php" ; }
                              else if($_GET["s"]=="orderform") { include "php_includes/left_solutions_orderform.php" ; }
                           ?>
                           
                           <!--
                           <img src="img/section/home.gif" border="0" alt="" />
                           
                           <br /><br />
                           
                           <img src="img/_home/printer_01.jpg" border="0" alt="" />
                           
                           <div style="width:259px; height:1px;"></div>-->
                        </td>
                        <td valign="top" width="435" style="width:435px;" align="left">
                           <div style="width:435px; height:<?php
                              if($_GET["s"]) {
                                 echo section_height($_GET["s"]) ;
                              } else { 
                                 echo section_height("home");
                              } ?>;" class="content_frame">
                              
                              <?php
                              if($_GET["s"]){
                                 include "content/" . $_GET["s"] . ".php" ;
                              } else {
                                 include "content/home.php" ;
                              } ?>
                           </div>
                        </td>
                     </tr>
                  </table>
               </div>
            </td>
            <td> </td>
         </tr>
         <tr>
            <td> </td>
            <td align="center" width="760" style="width:760px;" id="column_bottom_center">
               <div style="padding-top:5px;">
                  <a href="index.php?s=home">Home</a>
                  |
                  <a href="index.php?s=approach">Our Approach</a>
                  |
                  <a href="index.php?s=solutions">Documents Solutions</a>
                  |
                  <a href="index.php?s=imaging">Document Imaging</a>
                  |
                  <a href="index.php?s=ediscovery">eDiscovery Services</a>
                  |
                  <a href="index.php?s=contact">Contact Us</a>
               </div>
               <div style="width:700px; padding:5px 0px 15px 0px;">
                  <a href="index.php?s=solutions">Confidential Document Solutions</a>
                  |
                  <a href="index.php?s=highvolume">High Volume Printing</a>
                  |
                  <a href="index.php?s=largeformat">Large Format (Color & BW) Printing and Mounting</a>
                  |
                  <a href="index.php?s=orderform">PDF Order</a>
               </div>
            </td>
            <td> </td>
         </tr>
      </table>
   </div>

</body>
</html>

 

Might do it. Totally untested.

 

I assumed it's because your code was using the depreciated $HTTP_GET_VARS rather than the newer way, $_GET.

 

There might be other things in your code that are stopping it from working too, but that's what jumped out at me, so give the new code a go and see what happens.

Thanks for your responses so far..

 

I have changed the $HTTP_GET_Vars See below.. same issue still

 

<?

include "php_includes/functions.php" ;

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

<title>Exacta : Confidential Legal Document Solutions</title>

 

<link rel="stylesheet" type="text/css" href="/css/main.css" />

 

<?php if($_GET["s"]=="solutions" || $_GET["s"]=="highvolume" || $_GET["s"]=="largeformat" || $_GET["s"]=="orderform"){ include "php_includes/solutions_subnav.php" ; } ?>

 

</head>

<body style="margin:0px; background-image:url(img/background_middle.gif); background-repeat:repeat-y; background-position:center;">

 

<div align="center">

<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" style="background-image:url(img/background_table.gif); background-repeat:no-repeat; background-position:center top; margin:0px; padding:0px;">

<tr>

<td> </td>

<td width="760" align="center" valign="top" style="width:760px;" id="column_top_center">

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="760" height="235" id="navigation" align="middle">

<param name="allowScriptAccess" value="sameDomain" />

<param name="movie" value="/swf/navigation.swf" />

<param name="menu" value="false" />

<param name="quality" value="high" />

<param name="scale" value="exactfit" />

<param name="bgcolor" value="#ffffff" />

<embed src="swf/navigation.swf" menu="false" quality="high" scale="exactfit" bgcolor="#ffffff" width="760" height="235" name="navigation" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

</object>

</td>

<td> </td>

</tr>

<tr>

<td> </td>

<td width="760" style="width:760px;" id="column_content_center">

<div class="content">

<table width="730" style="width:730px;" cellpadding="0" cellspacing="0" border="0">

<tr>

<td valign="top" align="center" width="260" style="width:260px; padding-right:35px;">

<?php

if(!$_GET["s"]) { include "php_includes/left_home.php" ; }

else if($_GET["s"]=="approach") { include "php_includes/left_approach.php" ; }

else if($_GET["s"]=="imaging") { include "php_includes/left_imaging.php" ; }

else if($_GET["s"]=="home") { include "php_includes/left_home.php" ; }

else if($_GET["s"]=="ediscovery") { include "php_includes/left_ediscovery.php" ; }

else if($_GET["s"]=="contact") { include "php_includes/left_contact.php" ; }

else if($_GET["s"]=="solutions") { include "php_includes/left_solutions.php" ; }

else if($_GET["s"]=="highvolume") { include "php_includes/left_solutions_highvolume.php" ; }

else if($_GET["s"]=="largeformat") { include "php_includes/left_solutions_largeformat.php" ; }

else if($_GET["s"]=="orderform") { include "php_includes/left_solutions_orderform.php" ; }

?>

 

<!--

<img src="img/section/home.gif" border="0" alt="" />

 

<br /><br />

 

<img src="img/_home/printer_01.jpg" border="0" alt="" />

 

<div style="width:259px; height:1px;"></div>-->

</td>

<td valign="top" width="435" style="width:435px;" align="left">

<div style="width:435px; height:<?php

if($_GET["s"]) {

echo section_height($_GET["s"]) ;

} else {

echo section_height("home");

} ?>;" class="content_frame">

 

<?php

if($_GET["s"]){

include "content/" . $_GET["s"] . ".php" ;

} else {

include "content/home.php" ;

} ?>

</div>

</td>

</tr>

</table>

</div>

</td>

<td> </td>

</tr>

<tr>

<td> </td>

<td align="center" width="760" style="width:760px;" id="column_bottom_center">

<div style="padding-top:5px;">

<a href="index.php?s=home">Home</a>

|

<a href="index.php?s=approach">Our Approach</a>

|

<a href="index.php?s=solutions">Documents Solutions</a>

|

<a href="index.php?s=imaging">Document Imaging</a>

|

<a href="index.php?s=ediscovery">eDiscovery Services</a>

|

<a href="index.php?s=contact">Contact Us</a>

</div>

<div style="width:700px; padding:5px 0px 15px 0px;">

<a href="index.php?s=solutions">Confidential Document Solutions</a>

|

<a href="index.php?s=highvolume">High Volume Printing</a>

|

<a href="index.php?s=largeformat">Large Format (Color & BW) Printing and Mounting</a>

|

<a href="index.php?s=orderform">PDF Order</a>

</div>

</td>

<td> </td>

</tr>

</table>

</div>

 

</body>

</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.