Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP arrow operator closing tags

Tags:

php

apache

I am writing a php app on the websever I set up at my house. It is a fedora10 machine, running php5 and mysql. I have code like this:

<?php echo $var->function(); ?>

But for some reason the -> is closing the php tag, so the output has 'function(); ?' added to it...is there something I need to change in my php or webserver configuration?


1 Answers

I dont think that you have mod_php enabled in your apache config file, or else you would never see the php code in the output. Here is a good tutorial on setting up php 5 in apache.

like image 130
Shane C. Mason Avatar answered Dec 08 '25 17:12

Shane C. Mason



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!