How to use php with ssi

Discussion in 'PHP' started by aka.snowball, Jun 22, 2010.

  1. #1
    So say that I want a ceartain number, etc 237 on linenumber 2 on the following line

    <tr><td>237</td>
    Code (markup):
    in html file located in example folder "testRuns\testRun45\Sumary.html". How do I get it using php? im only interested in the number, not the html code :)

    Say also that you have other testruns contanined in other folders, for example

    "testRuns\testRun46\Sumary.html" and "testRuns\testRun47\Sumary.html" etc. and also each testrun folder are containing an index.shtml

    for example "testRuns\testRun46\index.shtml" and "testRuns\testRun47\index.shtml"

    I want the overview.shtml to read the numbers from the summary.html file as the index.shtml is contained in.

    So for example

    If "testRuns/testRun46/index.shtml" does the following

    "<!--#include file="testruns\include\overview.shtml" --> "
    Code (markup):

    I want the "testruns\include\overview.shtml" to use the "testRuns/testRun46/summary.html" as a source file.


    Im new at php as you might notice, but I hope somebody out there has a clue of what im talking about and can get me in the right direction :)
     
    aka.snowball, Jun 22, 2010 IP