Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
03-22-2009, 03:51 PM | #1 |
Guest
Posts: n/a
|
Whats wrong with my php code?
I get this error" Parse error: parse error, unexpected '=', expecting ')' in /home/content/g/h/o/ghostingadmin/html/arktos/plugins/system/comments.php on line 34
here is the code. anyone know? class ContactController extends JController { /** * Display the view */ function display() { $document =& JFactory::getDocument(); $viewName = JRequest::getVar('view', 'category', 'default', 'cmd'); $viewType = $document->getType(); // in |
03-22-2009, 03:54 PM | #2 |
Guest
Posts: n/a
|
this is in joomla btw
|
03-22-2009, 04:10 PM | #3 |
Guest
Posts: n/a
|
line 34 is function display()
|
03-22-2009, 04:12 PM | #4 |
So Fucking Banned
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
|
$document =& JFactory::getDocument();
-> $document = JFactory::getDocument(); |
03-22-2009, 04:16 PM | #5 |
Guest
Posts: n/a
|
|
03-22-2009, 04:22 PM | #6 |
Guest
Posts: n/a
|
that code didnt work. but thanks though ;/
|
03-22-2009, 05:06 PM | #7 | |
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
teh ghey, I won't bore you with the technical details, but you are probably using PHP 4. Time to upgrade. As an aside: when asking for help, give the whole bloody file. Seriously.
__________________
/(bb|[^b]{2})/ |
|
03-22-2009, 05:12 PM | #8 | |
Guest
Posts: n/a
|
Quote:
thanks |
|
03-22-2009, 05:45 PM | #9 | |
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
Your problem is this: function onGetComments($mode, &$item, &$params=null) Which is valid in PHP 5 but not in 4, since in 5 default values can be passed by reference, which they can't in 4.
__________________
/(bb|[^b]{2})/ |
|
03-22-2009, 05:52 PM | #10 |
Guest
Posts: n/a
|
wow you sound good. thanks
|