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
How do handle my old php-scripts?
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
Re: How do handle my old php-scripts?
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: How do handle my old php-scripts?
old php scripts will work.
just create a udt called "my_old_php_script"
and inside that do an
Then in your page, or template just use
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
at the end of the UDT.
just create a udt called "my_old_php_script"
and inside that do an
Code: Select all
include('my_old_php_script.php');
Code: Select all
{my_old_php_script}
Regarding db stuff, that's easy. do whatever you want, and just call
Code: Select all
adodb_connect();
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.
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.
Re: How do handle my old php-scripts?
Thank you both for answering. Perfect.
Last edited by martinG on Mon Jan 26, 2009 2:11 pm, edited 1 time in total.