Page 1 of 1

SOLVED PHP problem

Posted: Mon Dec 13, 2010 12:13 pm
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

Re: PHP problem

Posted: Mon Dec 13, 2010 4:55 pm
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

Re: PHP problem

Posted: Mon Dec 13, 2010 7:58 pm
by chrisbar
Thanks Rolf! This is what I needed! I'm learning.  :D
I will put SOLVED at my Post.

kind regards
Chris