You are here: Re: Curious situation « PHP Programming Language « IT news, forums, messages
Re: Curious situation

Posted by Geoff Berrow on 11/14/31 11:22

I noticed that Message-ID: <oq2dndVvafIpRETfRVn-og@comcast.com> from
Shelly contained the following:

>Why do the php code lines show up in the output?

At a guess you haven't put <?php and ?> around the code in decomp.inc

When doing an include or a require you effectively drop out of php. So
what you really have is:

?>
$num = $_SESSION['num'];
$var1 = $_SESSION['var1'];
<?php

hence the code is simply treated as plain html

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация