<? <?php document error
Posted by: malwin23 (---.ztpnet.pl)
Date: March 17, 2007 12:41PM

I don't have any knowladge about php but when i'm running some php script with begin <? (not clean <?php) Wamp dosn't support that file and all i have on the screen are just some letter's.
What is going on heh??smiling smiley
PLZ help!smiling smiley


Example of file (part of file test.php)




<?
break;
case 2:
?>
<input type="hidden" name="installProgress" value="step2">

<h3>Datenbank-Informationen</h3>

<br />
<div style="border-bottom:solid 1px #CCCCCC; height:170px; font-size:12px;">
<div style="width:550px; float:left;">
<div style="width:200px; float:left;">DB Benutzername: </div>
<div style="width:200px; float:left;"><input type="text" name="dbUsername" value="<? echo $_POST['dbUsername']; ?>" /></div>
<br />
<div style="width:200px; margin-top:3px; float:left;">DB Passwort: </div>
<div style="width:200px; margin-top:3px; float:left;"><input type="text" name="dbPassword" value="<? echo $_POST['dbPassword']; ?>" /></div>
<br />
<div style="width:200px; margin-top:3px; float:left;">DB Datenbank: </div>
<div style="width:200px; margin-top:3px; float:left;"><input type="text" name="dbDatabase" value="<? echo $_POST['dbDatabase']; ?>" /></div>
<br />
<div style="width:200px; margin-top:3px; float:left;">DB Host: </div>
<div style="width:200px; margin-top:3px; float:left;"><input type="text" name="dbHost" value="<? if ($_POST['dbHost'] != ""winking smiley echo $_POST['dbHost']; else echo "localhost"; ?>" /></div>
</div>

<div style="width:200px; float:left; text-align:left;">
<span style="font-size:10px; color:#808080;">

</span>
</div>
</div>

<div style="border-bottom:solid 1px #CCCCCC; height:120px; margin-top:10px; font-size:12px;">
<h3>Homepage Verzeichnis</h3>
<br />
<div style="width:550px; float:left;">
<div style="width:200px; float:left;"></div>
<div style="width:400px;"><input style="width:360px;" type="text" name="pathABS" value="<? if ($_POST['pathABS'] != ""winking smiley echo $_POST['pathABS']; else echo $pathABS; ?>" /></div>
<br />
<div style="width:200px; float:left;"></div>
<div style="width:400px;"><input style="width:360px; font-weight:bold;" type="text" name="pathREL" value="<? if ($_POST['pathREL'] != ""winking smiley echo $_POST['pathREL']; else echo $pathREL; ?>" /></div>
</div>

<div style="width:200px; float:left;">
<span style="font-size:10px; color:#808080; text-align:left;">
Pr&uuml;fen Sie hier genau ob die ermittelten Pfadangaben mit den tats&auml;chlichen
&uuml;bereinstimmen. Der Absolute Pfad ist in den meisten Fällen korrekt; der
relative Pfad ist jedoch von Ihren System-Einstellungen im Webserver abh&auml;ngig.
<br /><br />
<i>In den meisten F&auml;llen muss noch ein /ostube hinter an den relativen Pfad
angef&uuml;gt werden.</i>
</span>
</div>
</div>

<div style="border-bottom:solid 1px #CCCCCC; height:120px; margin-top:10px; font-size:12px;">
<h3>Administrationszugang</h3>
<br />
<div style="width:550px; float:left;">
<div style="width:200px; float:left;">Admin Benutzername: </div>
<div style="width:200px; float:left;"><input type="text" name="adminUsername" value="<? if ($_POST['adminUsername'] != ""winking smiley echo $_POST['adminUsername']; else echo "ostube"; ?>" /></div>
<br />
<div style="width:200px; margin-top:3px; float:left;">Admin Passwort: </div>
<div style="width:200px; margin-top:3px; float:left;"><input type="text" name="adminPassword" value="<? echo $_POST['adminPassword']; ?>" /></div>
</div>

<div style="width:200px; float:left;">
<span style="font-size:10px; color:#808080; text-align:left;">

</span>
</div>
</div>

<div style="clear:both; text-align:center;">
<br /><br />
<input type="submit" value="Weiter -&gt;">
</div>
<?
break;
case 3:
?>

Options: ReplyQuote
Re:
Posted by: SkY (---.cache.maxonline.com.sg)
Date: March 17, 2007 01:39PM

Try going to your php.ini and set short_open_tag to On

Regards,
SkY

Options: ReplyQuote
Re:
Posted by: malwin23 (---.ztpnet.pl)
Date: March 17, 2007 02:03PM

Thanks! Now everything is working finesmiling smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.