SOLVED PHP problem

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
chrisbar
Forum Members
Forum Members
Posts: 162
Joined: Tue Oct 26, 2010 7:36 pm

SOLVED PHP problem

Post by chrisbar »

Hello everybody with PHP knowledge within CMSMadeSimple

where do I have to place this herlp question??

I have a problem with a get file contents script. I have received the script from a collegue webmaster of the site I would like to get some information from straight into our own website.

I have put the following script in one of our pages, but it does not result in information on the page.





Beneath you find the system information on our CMS. Maybe een upgrade on the version will help, but it should work without that don't you think?


Cms Version: 1.6.7

Installed Modules:

CMSMailer: 1.73.14
FileManager: 1.0.2
MenuManager: 1.6.2
ModuleManager: 1.3.2
News: 2.10.4
nuSOAP: 1.0.2
Printing: 1.0.4
Search: 1.6.1
ThemeManager: 1.1.1
TinyMCE: 2.6.2
Album: 0.9.3
Calendar: 0.8.2
FCKeditorX: 1.1.0


Config Information:

php_memory_limit:
process_whole_template: false
max_upload_size: 2000000
default_upload_permission: 664
assume_mod_rewrite: false
page_extension:
internal_pretty_urls: false
use_hierarchy: true


Php Information:

phpversion: 5.2.8
md5_function: Aan (Waar)
gd_version: 2
tempnam_function: Aan (Waar)
magic_quotes_runtime: Uit (Onwaar)
memory_limit: 16M
max_execution_time: 30
safe_mode: Uit (Onwaar)
session_save_path: /tmp (1777)
session_use_cookies: Aan (Waar)


Server Information:

Server Api: cgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.77


----------------------------------------------


Thanks for the help
Chris
Last edited by chrisbar on Mon Dec 13, 2010 7:59 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: PHP problem

Post by Rolf »

Hello Chrisbar,

You better use an User Defined Tag here
Put the code in it without the php tags, like

Code: Select all

echo  file_get_contents('http://www.nijb.nl/result.ajax.php?TeamID=56');
You can call this UDT in a page like {your_udt_name}


Grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
chrisbar
Forum Members
Forum Members
Posts: 162
Joined: Tue Oct 26, 2010 7:36 pm

Re: PHP problem

Post by chrisbar »

Thanks Rolf! This is what I needed! I'm learning.  :D
I will put SOLVED at my Post.

kind regards
Chris
Post Reply

Return to “The Lounge”