php 5

If you've downloaded the FAF sourcecode, and have question, please leave them here.
Post Reply
Mr President
Advanced Member
Posts: 33
Joined: Tue Dec 18, 2007 1:11 am

Post by Mr President »

I asked about php5 in another thread and someone had mentioned that is was working for them but he didn't test it in depth yet.

I want to test in depth... but i cannot manage to get it working at all..

I have enable php5 for the prom folder (and subfolders)
the files are however completly not parsed by PHP(5) after a certain line in the index.php file:

code: Select all

<?
define("PROMISANCE", true);
ob_start("ob_gzhandler");

// These three must be included from our own code, so as to make the rest work
include("find-server.php");        // Should be absolutely no need to modify
include("conf-proc.php");        // This below file manually tries to see if local/config.php exists, so no worries there
require_once("server-env.php");        // This makes 'local' work

// From here on they can all be local
include("ip.php");
require_once("theend.php");

include("smarty/Smarty.class.php");
global $tpl;
$tpl = new Smarty;
$tpl->caching = false;
$tpl->compile_dir = './cache/templates/';
as you can see by accessing the page above everything after $tpl = new Smarty; is not parsed by php anymore, the code is just printed as html..
accessing single files directly are parsed (you get php erros, like forbidden etc etc



PHP4 will be available until they keep bringing out security patches.. after it is not longer considered safe to use anymore it will be removed from the server! (within short period, that is from all hosting companies on the internet then!)

anyone have a suggestion? *laughs*
User avatar
bjornredtail
Warbands Admin
Posts: 821
Joined: Tue Apr 20, 2004 12:07 am
Contact:

Post by bjornredtail »

PHP Version 5.2.3.. I seem to have no problems of this nature...

Though, we are using an older version of Smarty.... Regardless if it is the cause of this nature, it might be a good idea to update it for our distributable package.
0===)=B=j=o=r=n==R=e=d=t=a=i=l==>
Warbands Admin

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Yes, we should update. Maybe that'll fix the problem.

It's still rather strange. Accessing individual pages should print just a space, for instance.
:wq
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members