apot Posted October 2, 2007 Share Posted October 2, 2007 I had a fully working php page and I was trying to get sessions to work so i was messing around with PHP.ini and the code of the page. now i have to write the code with no spaces after the <?php tag eg: <?phpincludes('file.php'); or it doesnt work. Also the page displays very odd: "; $i=0; while ($row_price = mysql_fetch_array($query_price)) { $i = ++$i; $price_id=$row_price["price_id"]; $start=$row_price["start"]; $end=$row_price["end"]; $cost=$row_price["cost"]; $child=$row_price["child"]; $xpax=$row_price["xpax"]; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo " "; echo " "; echo " Start Date End Date Cost Child Extra Pax Action Delete "; echo " "; echo ""; } echo " "; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo " Does anybody have any idea why it is doing this? Link to comment https://forums.phpfreaks.com/topic/71577-solved-space-after/ Share on other sites More sharing options...
MmmVomit Posted October 2, 2007 Share Posted October 2, 2007 What does the page do if you put a space after the opening php tag? Link to comment https://forums.phpfreaks.com/topic/71577-solved-space-after/#findComment-360360 Share on other sites More sharing options...
ballhogjoni Posted October 2, 2007 Share Posted October 2, 2007 show us the whole code. Link to comment https://forums.phpfreaks.com/topic/71577-solved-space-after/#findComment-360379 Share on other sites More sharing options...
MmmVomit Posted October 2, 2007 Share Posted October 2, 2007 Post your code and see if anyone can find the typo. Link to comment https://forums.phpfreaks.com/topic/71577-solved-space-after/#findComment-360381 Share on other sites More sharing options...
trq Posted October 2, 2007 Share Posted October 2, 2007 You need a space after the <?php tag for your script to be executed as php. Link to comment https://forums.phpfreaks.com/topic/71577-solved-space-after/#findComment-360399 Share on other sites More sharing options...
BlueSkyIS Posted October 2, 2007 Share Posted October 2, 2007 yes, quite obviously this isn't going to work: <?phpincludes('file.php'); Link to comment https://forums.phpfreaks.com/topic/71577-solved-space-after/#findComment-360432 Share on other sites More sharing options...
apot Posted October 3, 2007 Author Share Posted October 3, 2007 I came in this morning with a clear mind and solved the problem. Thanks for your help! It was a problem with a file I had included. Link to comment https://forums.phpfreaks.com/topic/71577-solved-space-after/#findComment-360784 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.