Forum Moderators: phranque

Message Too Old, No Replies

Integrating SSI's and PHP's - SER's

I'm in a fine mess now.

         

knowledgepower

9:34 pm on Jun 24, 2004 (gmt 0)

10+ Year Member



I have a multi-part problem.

1. My site is doing well now. (My first site, 6 mo. old, $5 a day adsense, in my spare time, many thanks to webmasterworld)

2. It was originally built and is now indexed around about 90 unique .shtml pages. These and my root index.shtml are indexed respectably by google and other engines.

3. I have recognized a need to form a community aspect for my site, and have invested in vBulletin to handle this.

4. I'd like to connect the forum to existing content in shtml pages, i.e. "Comment on this article (3 Comments)" Clicking this comment link takes you to the forum topic and discussion.

Certain aspects of the forum I'd like to use on the main page. For instance the number of replies to a discussion on given piece of content is a dynamic fetch using a command from the vB software.

5. I'm faced with the problem of using php code in pages that are currently being dynamically built in .shtml.

I read somewhere else in these forums that you can't mix php and shtml in the same file. I've also read that it can be done by modifying the .htaccess file. I'm a bit confused as to how to proceed. Anyone have some suggestions for options to explore?

I want to maintain maximum search placement, and avoid changing the extensions on pages I currently have, i.e. avoid converting the entire site to php. It would be great to stick with SSI's but I could change over to php on new pages if absolutely necessary.

Rob

knowledgepower

6:19 am on Jun 26, 2004 (gmt 0)

10+ Year Member



Ok, I made some progress here:

I'm hoping to simply change my top level index.shtml.

Ideally, I could just change my top level index.shtml file to contain only php code, and have the nested shtml files parsed by apache using include(). My understanding is that since suPHP was installed, apache processing using php is no longer possible.

Can anyone tell me how I can have shtml files first parsed by apache then included into a php file?

Am I better off just converting the 90 page site into PHP?

I'm really trying to get this straightened out and I appreciate any help or advice.

Thanks,

rob

knowledgepower

6:20 am on Jun 26, 2004 (gmt 0)

10+ Year Member



I meant virtual() not include. I'm getting fatal errors using virtual() with suPHP.

Sorry for the confusion.

r