Hi,

I'm very new to ASP/PHP and really have no idea on programming either! I always use "ready to use" scripts and it works.

I do have one question that a lot of people are telling me is not possible. Here's what it it:

My website is in ASP- it basically has news/reviews of poducts. However, I'm using vBulletin for forums which is in PHP. The forums are running fine- without any problems on the server. What I wanna do know, is, take an already built-in PHP script which basically posts the most-recent topics from the forum, and paste it as a sidebar in all my site's main pages that are in ASP.

If I use the include command, I get all the text-code of the PHP script instead of it actually running and posting the result of the script. What I am being told is that you cannot "parse" a PHP page inside an ASP page coz IIS doesn't do that. Is that correct? Is there a way for me to be able to get the results of the PHP script post on an ASP page besides using frames?

Thanks!
Abbas

    I didn't catch your idea fully, but as I know, you can use frames to do that and post the data from php pages to asp pages. As long as your server pasrs the 2 languages well, it's no problem.

      But I dont want to use frames! Is there any other way of parsing the output of a PHP script in an .ASP page?

      Thanks!

        there's a way.

        I dont know in asp, but you have to query the web server like your browser but inside the ass page. So, the server parses php code and then asp receive it and print it to the screen ...

        I know how to do that in php and its not very simple. You have to open a network connection to your server ...

          Use php.exe and pass it the script name you want the results to. You need to do this as an external command.

          I don't know asp but in asp use the same method to do this as you would to echo out a dir call.

          In php back ticks are used to call external functions...he's the php code for it:

          echo php.exe recentposts.php;

            Write a Reply...