friky.com
← Back to archive

Post

Fucking suse and php5 problem

2008-08-28 Agustí Pons Original post

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.