This is a discussion on very basic question on function within the PHP Language forums, part of the PHP Programming Forums category; <?php function h() { echo 'hello'; } ?> BIG <? h(); ?> Result with PHP4.3.10/Apache1.3.33 => ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Jun 26, 2:07 pm, Personne <cpdiv...@gmail.com> wrote:
> <?php > function h() > { > echo 'hello';} > > ?> > BIG > <? h(); ?> > > Result with PHP4.3.10/Apache1.3.33 => BIGBIGhello > Result with PHP5.2.6/Apache2.2.3 => BIG > > with PHP 5.2.6 > hello is not displayed > why? > how can I fix this? > > Thank you maybe change <? h(); ?> to <?php h(); ?> short_open_tag may not be enabled on the PHP5.2.6 install |
|
|||
|
Personne wrote: > I figured this out 1 minute after I posted !!! > > Any I have more problem now, pages are renderer differently > > Thank you anyway, for this fast answer well, Personne, why don't you share with all of us what your solution was so that the whole user community can learn from it as this is what I thought was one of the sole purposes of this great online community. I guess I could be wrong here... Thanks, Gene Kelley |
|
|||
|
On 28 Jun, 14:15, phpCodeHead <phpcodeh...@gmail.com> wrote:
> Personne wrote: > > I figured this out 1 minute after I posted !!! > > > Any I have more problem now, pages are renderer differently > > > Thank you anyway, for this fast answer > > well, Personne, why don't you share with all of us what your solution > was so that the whole user community can learn from it as this is what > I thought was one of the sole purposes of this great online community. > > I guess I could be wrong here... > > Thanks, > > Gene Kelley I think you are wrong here. If you read carefully: 1) Personne posted the question 2) baker posted teh answer 3) Personne said that he also worked this out (1 minute after I posted) and thanked baker for his fast answer. |