Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

19325 Posts in 2529 Topics- by 913 Members - Latest Member: InFlames20
Pages: [1]   Go Down
Print
Author Topic: Plugin za PHP5!?  (Read 388 times)
vlado85
Newbie
*
Offline Offline

Posts: 10


View Profile
« on: 25.08.2008; 20:06:45 PM »

Plugin UniversalPlayground - Flickr slideshow plug-intrazi PHP 5 i ne mogu da ga pokrenem jer ja imam PHP4.
Sad, posto sam ja pocetnik nemam pojma sta treba odraditi i kako instalirati PHP5.

U helpu pise sledece:

When you get a parse error like this:

 

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /..../..../plugins/content/flickrslideshows.php on line 36

 

Your website is running on PHP4. Please install PHP5 and add the following to the .htaccess file in the main directory of Joomla:

 
AddHandler application/x-httpd-php5 .php

 

This should solve the problem.

 

What if you cannot get PHP5 in any way:

 I'm sorry, but we don't support php4. You are allowed to make changes to the plugin to make it compattible to PHP4. The changes required are the result of differences in object oriented progamming in php4 and php5.

Object oriented programming in PHP4
http://www.php.net/manual/en/language.oop.php

Object oriented programming in PHP5
http://www.php.net/manual/en/language.oop5.php

Hope this helps.
Logged
Tomislav
Sr. Member
****
Offline Offline

Posts: 280



View Profile
« Reply #1 on: 25.08.2008; 20:17:47 PM »

2 načina, biraj koji hoćeš.

1) otvori .htaccess i dodaj liniju
AddHandler application/x-httpd-php5 .php

2) otvori cpanel -> PHP Configuration, pronađi pri vrhu
The ".php" file extension will be processed by
i postavi na PHP 5 u padajućem izborniku.
Logged

vlado85
Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #2 on: 26.08.2008; 04:49:03 AM »

Hvala majstore  Grin Thumb up
Logged
Pages: [1]   Go Up
Print
Jump to: