PHP Not working in User Defined Tag or template [solved 1/2]

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Locked
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

PHP Not working in User Defined Tag or template [solved 1/2]

Post by mvandiermen »

below is an PHP example of work works in a normal code php file; But does not work either User Defined Tag or {php} template code within cms-m-s

What works:
Image
Image

What does not work:
Image

Image
Or
Image
Last edited by mvandiermen on Thu May 12, 2011 4:22 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: PHP Not working in User Defined Tag or template !

Post by calguy1000 »

I have done this type of stuff hundreds and thousands of times.
Theproblem lies with your external php script.

Debugging and diagnosing that external php scritp is not a subject for this forum.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

Re: PHP Not working in User Defined Tag or template !

Post by mvandiermen »

well I say it is a compatibility issue not accepting external php script, dont know why it works in any other system but not cms-m-s
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

Re: PHP Not working in User Defined Tag or template !

Post by mvandiermen »

attached is a copy of the external php script
sorry to have to ask for help...

please feel free to move this post to a suitable category
Attachments
sidebox_anywhere_1-3-8.zip
(1.7 KiB) Downloaded 103 times
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

Re: PHP Not working in User Defined Tag or template !

Post by mvandiermen »

i enabled debug and checked error_log. it does not give me any errors. no code is displayed after the php insert. I have tried a few things for compatibility but dont know why it wont take the code
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

Re: PHP Not working in User Defined Tag or template !

Post by mvandiermen »

I got it working by using this:
{php}
include ("http://174.121.133.186/~moojicol/test.php");
{/php}
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: PHP Not working in User Defined Tag or template !

Post by M@rtijn »

calguy1000 wrote:I have done this type of stuff hundreds and thousands of times.
Theproblem lies with your external php script.

Debugging and diagnosing that external php scritp is not a subject for this forum.
Make your community a better place!
Locked

Return to “The Lounge”