Another PHP include issue -


i've gone through archives , read bunch of questions relating why php include won't work. i've tried fix problem using answers other questions, still having issues.

this code:

<!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"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>fuel status map</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head>  <body> <div id="main">     <div id="map">     <?     require 'maplink.php';     ?></div>     <div id="title"><img src="title.png" width="400" height="200" />     </div>     <div id="links">      <a href="statusbyzone.php"><img src="fuelstatuslink.png" width="400" /></a>      <br />     <a href="selectoffice.php"><img src="nwsofficelink.png" width="400" /></a>     <br />     <a href="login1.php"><img src="fuelspecialistlink.png" width="400"  /></a>     <br />     <img src="adminlink.png" width="400" />     <br />      </div>     <div id="legend"><img src="legend1.png" width="400">     </div>     <div id="logos">     <img src="pslogo.png" width="140" height="150" />     <img src="gblogo.png" width="250" height="150"/>     </div> </div> </body> </html> 

the page supposed this: http://www.directdocuments.com/gacc/gbsite/predictive/fuelstatus/fuelstatusmap.php looks this: http://gacc.nifc.gov/gbcc/predictive/fuelstatus/fuelstatusmap.php maplink.php in same directory, , works correctly. i'd post link well, can't post more links.

it looks don't have short open tags enabled in php configuration, require line being output literally (use view source see this). use full tag.

<?php  require 'maplink.php'; ?> 

from documentation:

php allows short open tag <? (which discouraged since available if enabled using short_open_tag php.ini configuration file directive, or if php configured --enable-short-tags option).

see are php short tags acceptable use?


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -