Newbie in more ways than one
-
Hello to all :o)
I am a newbie on many levels (and I will just leave it at that for now) and was wondering if it might be possible to use WP for the following scenarios (even if plug / hacks and custom coding needs to be done as long as it is not too extensive). I work at a company who is revamping their current Intranet site that has pages that are custom coded in PHP and currently connect to an ODBC compliant database which will eventually be converted over to connect to an MSSQL database. We have no problem of running a *nix server and having the WP database stay in its native myssql formatted database. We are also planning on using WP more as CMS site than a blogging site.
So here are some of the specs we are looking to do with WP.
1) A framework (in this case WordPress) to work within to minimize custom code (which we currently have 40,000+ lines of code)
2) Can handle 100% php calls from within pages listed on the site (currently have been trying to get the php-exec plugin to work without success)
3) Being able to make calls within the php code to external databases that are not the wordpress database(ie , postgres or mssql).
Here is a sample of the code we need to be able to run within a page in WP:
$conn_remote=odbc_pconnect('gupta2','',''); if (!$conn_remote){ odbc_close($conn_remote); die("Could not open Connection! Line 46");} $material=array(); $test=array(); //$theMaterial= $engine[($row-1)]; $selMaterial= "SELECT WORK_ORDER.BASE_ID, WORK_ORDER.ACT_MATERIAL_COST AS Material FROM WORK_ORDER WHERE ". "WORK_ORDER.BASE_ID LIKE 'E%' AND WORK_ORDER.ACT_LABOR_COST > 0 AND WORK_ORDER.PART_ID IS NOT NULL ". "ORDER BY WORK_ORDER.BASE_ID DESC"; $execMaterial = odbc_exec($conn_remote,$selMaterial); while(odbc_fetch_row($execMaterial)) { $material[]=odbc_result($execMaterial,"Material"); //$test[]=odbc_result($execMaterial,"WORK_ORDER.BASE_ID"); }
These are a few of the main hangups we have ran into so far. We were originally going to use Joomla, but the current code was too complex to use and not enough plug-ins or hacks (especially running php natively within the pages) was available.
Any help or advise that someone is well versed in the CMS world would be greatly appreciated. If this post is in the wrong group, I apologize, and if you need to move the post, I understand. I will not double post.
Sincerely,
Shawn
- The topic ‘Newbie in more ways than one’ is closed to new replies.