Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 1 Hour, 57 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

php issues
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: php issues
#3900
php issues 2 Years, 6 Months ago  
Just upgraded to the newest version of sourcerer. I have no problem using JavaScript, and it all works like a charm. However I have big problems getting php to work, and I have two questions.

A simple statement like echo "hello World"; is working properly. But the following does not generate any output:
{source}
[[?php
$currentYear = (int) date("Y");
echo $currentYear."*";
?]]
{/source}

This code does generate output, but only the "*" character, not "2009*" as expected. Am I missing something here?

The second issue is that I have not been able to get the debugger to work. I turned on the debugging in the plugin, and when I get the statement that sourcerer removed php because of an error, it tells me that I must be logged in "in the front end". I am logged in to Joomla, as a super admin, and I look at the source using the same browser, but it still tells me that message. Is there another meaning to "front end" that I am not aware off? What are exact steps to take to see debugging code?

Thanks

T
torvald
Posts: 1
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#3904
php issues 2 Years, 6 Months ago  
The php is working fine in my setup.

To see the php debugging you have to log in to the front end as administrator. So not in the administrator, but in the site itself.

If you have no ligin option in your website, just go to:
index.php?option=com_user&view=login
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#3942
php issues 2 Years, 5 Months ago  
I've also a problem to get the 'php' on the screen. A second emtpty php-tack was the way to manage it.
Rhoenbussard
Posts: 1
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Peter van Westen
Open Source Training | Online Joomla! Training and Support
hosting joomla
MaxCDN | Content Delivery Network | Accelerate your site to the max