I’m trying to get PHP working. I have installed a new OpenSuSE 11.2 box. I
have installed all the packages with ‘php’ in the title in YaST, but I can’t
get php to work at all.
I just get the script echoed as if I had typed cat test.php
What the hell am I doing wrong ? this works fine in 10.x, incase it maters I
am logged in as root, though I have also tried as a normal user and get the
same results.
> What the hell am I doing wrong ? this works fine in 10.x, incase it
> maters I am logged in as root, though I have also tried as a normal
> user and get the same results.
Being incredibly stupid should of course have been <?php phpinfo(); ?>
Humm this must be a new change it didn’t used to be that way
You could change the value of "short_open_tag " in php.ini from “Off” to “On”.
Do note that this bad practice and its use is frowned upon as hardly any host ‘out there in the wild’ has it enabled. Resulting in your scripts being far less portable.
My advice is to stick to what you did, use <?php instead of <?. Should you wish to enable it after all, php.ini’s location should be listed in YaST when you select the PHP package and open up the ‘file list’ tab.