Print Page | Close Window

how to print out contents of a php page using asp

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=21501
Printed Date: 29 March 2026 at 1:44pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: how to print out contents of a php page using asp
Posted By: iSec
Subject: how to print out contents of a php page using asp
Date Posted: 06 October 2006 at 10:04am

I have a php article manager script but my site's main page is of extension aspx as I needed it to be that way... so is it possible that an ASP code can be used to grab the content of a php page?



-------------
"When it gets dark enough, you can see the stars"
-Charles A. Beard



Replies:
Posted By: dj air
Date Posted: 06 October 2006 at 10:54am
you could bring in the source via fso?
 
or is it a dynamic page /out put not the html / code version?


Posted By: iSec
Date Posted: 06 October 2006 at 11:05am
Well, how do I bring it via fso? I'm not that advanced in asp...
 
It is a dynamic page, as content gets updated when a person submits an article.


-------------
"When it gets dark enough, you can see the stars"
-Charles A. Beard


Posted By: dj air
Date Posted: 06 October 2006 at 11:23am
umm so you want the html output thats sent to the browser?


Posted By: iSec
Date Posted: 06 October 2006 at 8:18pm
I have created a separate php page in the article manager folder for the HTML output, I need to place a code (using asp) on the site's homepage that could automatically display new articles using the code I created on that separate php page.

-------------
"When it gets dark enough, you can see the stars"
-Charles A. Beard


Posted By: JonnoB
Date Posted: 06 October 2006 at 11:11pm
how about scraping the screen?


Posted By: iSec
Date Posted: 07 October 2006 at 1:00am
If i knew how to!

-------------
"When it gets dark enough, you can see the stars"
-Charles A. Beard


Posted By: dpyers
Date Posted: 07 October 2006 at 2:20am
For classic asp, use Server.XMLHttp - example at http://www.new2asp.com/Section_Files/PullStrings/PullStrings.asp - http://www.new2asp.com/Section_Files/PullStrings/PullStrings.asp

For .net, check out System.Net.HttpWebRequest and System.Net.HttpWebResponse

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: iSec
Date Posted: 07 October 2006 at 2:42am
Even if the content of my original page is php-based?

-------------
"When it gets dark enough, you can see the stars"
-Charles A. Beard


Posted By: dpyers
Date Posted: 07 October 2006 at 5:51am
Basically, it runs the page and returns the html in a string that you can parse.

An example of retrieving an asp page is here: http://new2asp.com/Section_Files/PullStrings/xmlhttp.asp - http://new2asp.com/Section_Files/PullStrings/xmlhttp.asp
Running  a php page either local or on a remote site would be the same,


-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net