PDA

View Full Version : Newbie needs to know Best way to integrating a php/mysql site


bindi
04-01-2008, 07:14 PM
Okay, I'm a newbie, and I looked and looked but nowhere could i see the answer to my problem.

I have a php-based site, which is used to submit data into a MySQL database. The site also has pages to present some results obtained by running SQL queries on the database. All the site files are located within the same domain as the vB install. (I have separate folders for CMPS, dynamics and forum.)

The site is working well as a "standalone" entity

All I want to do is integrate this site into my vBadvanced website...but it's not obvious to me the best way to do this?
How do I do this? Create a module and then add that to the page? Can I integrate just the php page?

(I guess the even more fundamental question is should I even have posted this in the Dynamics Forum, or have gone to the CMPS Forum ;-) )

Can anyone who has experience in this please point me in the right direction for solving this, (it's a critical project for me.)

Regards
Bindi

Brian
04-02-2008, 02:04 PM
Can you link me to the current page you're trying to integrate so I can get a better idea of what might be involved?

Our Sponsors
 

bindi
04-02-2008, 02:50 PM
http://axialit.net/harlequin/dsr/restaurants/ashoka_ashton_lane/index.php

Brian
04-03-2008, 12:56 PM
You could integrate the main index.php file of that page by adding a new PHP CMPS page that includes that file. Integrating the rest might take a good bit of work though in order to change the links and such so they will point to a CMPS page instead of the default files.

Our Sponsors
 

bindi
04-04-2008, 03:42 AM
Hi Brian
There are no links from this page to other pages, though this index.php file calls upon various other files via relative (and absolute) directory paths to the relevant *.php files.

Referring to http://www.vbadvanced.com/forum/showthread.php?t=28262, I've gone through the relevant site files and believe that i have fixed path references. However,
I still can't get the first page to appear - I get the "Internet Explorer cannot display the webpage" message.

Do other files that are called by this index.php, need to be "integrated" somehow into CMPS even if they are not site "pages"?

Bindi

Brian
04-04-2008, 11:43 AM
There's not any reason I'm aware of that you would have a problem with the script requiring other files if you've added the code from post #2 in the thread you linked me to and have the paths set correctly.