11
ghia
Re: Publisher module
  • 2010/9/16 3:57

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Some hosters have the possibility to switch to PHP 5 with a directive in the .htaccess

AFAIK Publisher has been written /updated from module Smartsection with PHP 5 in mind.
It is possible to rewrite some statements to be PHP 4 compatible, but that would be a tedious task and a waste of time.
EG the (..)-> construct can be broken in two statements using an intermediate variable.

Let your client inform at his hoster for the possibilities of upgrading to PHP 5. If there are none, instruct him to look out for another hoster. Else he has to be content with a more simple and less fancy module and dito functions on his website.

12
bjuti
Re: Publisher module
  • 2010/9/16 15:38

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Some hosts require you to add AddType x-mapp-php5 .php as first line in you .htaccess to turn on php5.

If you don't have .htaccess, make it, and add "AddType x-mapp-php5 .php" in it.

13
ghia
Re: Publisher module
  • 2010/9/16 21:13

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Check your hosters documentation, because the directives to use may vary. Eg.
AddHandler application/x-httpd-php52 .php .php5 .php4 .php3

AddType x-mapp-php5 .php
AddHandler application
/x-httpd-php5 .php
AddHandler cgi
-php5 .php
If the wrong directives are used, you may have a 500 - server error as result.

Login

Who's Online

439 user(s) are online (323 user(s) are browsing Support Forums)


Members: 0


Guests: 439


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits