Fucking suse and php5 problem
I'm trying to setup a new server with a new apache, php and mysql.
Copying the same php development files must be enough, but I've spend two hours with this stupid error.
When connecting to the website, I've got a dump of php code, initially I though that it was the full code of the file referenced but investigating for a long time make me realize that it was the code of a single file included in the initial file.
The problem was finally that I've wrongly started some files with:
<?
instead of the full
<?php
Problem solved, but a lot of more white hair growing from my skull :(
UPDATED: Finally I've activated the short_open_tag in the php.ini file because is used in other places (correctly) when I wanted to display variables in template files. Thanks Oriol.
At least I've changed the wrong php files with the short open tag at the beginning.
1 comentario:
Hi!
An easy solution for this problem is to change the 'short_open_tag' directive, turning it on.
I know two ways to do it:
- In your .htaccess file: "php_flag short_open_tag on"
- Or in your php.ini file: "short_open_tag = on"
See you!
Publicar un comentario