PDA

View Full Version : viewing a pages source code in php


AN-net
12-31-2004, 02:48 PM
how would i be able to view a page's source code that is located on another server?

lasto
12-31-2004, 02:50 PM
u cant cause if u could then u could read everyones config php files etc and see what data is in there.

Guy G
12-31-2004, 03:10 PM
how would i be able to view a page's source code that is located on another server?
you coded all those hacks and you dont know this?

My Hacks:Vb3 Affiliate Version 1:vB Affiliates v.2:vB Journal 1.0.0:Quick Attachment Approval System:
UnBannable Ips:Text Message on PM:Selected Files Not Closed:New Thread/Post Image Verification for Guests:
vB Stocks 1.0.0

Dean C
12-31-2004, 03:18 PM
Do you mean you want to view the output html of a php page from another server? Or you want to read the PHP contents of a file from another server?

AN-net
12-31-2004, 04:11 PM
i want to view the html source and in response to zorbz im always learning new things and im always forgetting old things...

Dean C
12-31-2004, 05:34 PM
http://forums.devshed.com/archive/t-212034

Just one of many ways :)

AN-net
12-31-2004, 06:11 PM
well the i want the html from is not an html file and its still showing page as formatted/parsed... and i also want to be able to search the html source of the page

JamesFrost
01-01-2005, 10:58 AM
well the i want the html from is not an html file and its still showing page as formatted/parsed... and i also want to be able to search the html source of the page

Not fully sure I understand - is the 'view->Page Source' option in Firefox (install if you dont have it - its miles better than IE!) what you are looking for here?

I'd also load the Web Development Tools with Firefox - these let you view a whole lot of HTML info on the page and do things like edit CSS files 'on the fly' even on others web sites (it's just a local cache, but is kind of cool for viewing Microsoft.com in sky blue pink!). You can also view the POST and GET info being published to web sites, which is quite useful.

https://addons.update.mozilla.org/extensions/moreinfo.php?application=firefox&version=1.0&os=Linux&category=Developer%20Tools&numpg=10&id=60

AN-net
01-01-2005, 11:47 AM
yes i want something like view source where i could search the pages html code but instead i want php to do it;)

Dean C
01-01-2005, 12:43 PM
Take a look here :):

http://uk2.php.net/fopen