How do handle my old php-scripts?

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
martinG
Forum Members
Forum Members
Posts: 14
Joined: Sun Jan 25, 2009 9:23 pm

How do handle my old php-scripts?

Post by martinG »

Hello,

I've been working with Joomla before but now when I've tried this CMS I have to say I'm very impressed over its simplicity and construction.

My new CMSMS site is now beginning to take form but what are my options if I want to use my old php-scripts (with connections towards another DB and stuff)? Can I just upload them and start using them within a "Content"-page in some how or what?

Thanks for answering! / Martin
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

Re: How do handle my old php-scripts?

Post by Ziggywigged »

You can use UDTs (user defined tags) or place php right in your content in {php}foo{/php} after you enable it in config.
Take a penny, leave a penny.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How do handle my old php-scripts?

Post by calguy1000 »

old php scripts will work.

just create a udt called "my_old_php_script"

and inside that do an

Code: Select all

include('my_old_php_script.php');
Then in your page, or template just use

Code: Select all

{my_old_php_script}
the only thing you have to worry about is conflicting variable names... (there shouldn't be many, but just to be on the safe side, don't use $db)

Regarding db stuff, that's easy. do whatever you want, and just call

Code: Select all

adodb_connect(); 
at the end of the UDT.
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.
martinG
Forum Members
Forum Members
Posts: 14
Joined: Sun Jan 25, 2009 9:23 pm

Re: How do handle my old php-scripts?

Post by martinG »

Thank you both for answering. Perfect.
Last edited by martinG on Mon Jan 26, 2009 2:11 pm, edited 1 time in total.
Locked

Return to “[locked] Installation, Setup and Upgrade”