[SOLVED] Reading output.

This is a discussion on "[SOLVED] Reading output." within the PHP Forum section. This forum, and the thread "[SOLVED] Reading output. are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 30th, 2007, 00:04
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
[SOLVED] Reading output.

Is there a way to read the output of a PHP file rather than it's contents?
Another words I want to use
Code: Select all
fread()
but getting the HTML output rather than the PHP code.

Thanks.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote

  #2 (permalink)  
Old Oct 30th, 2007, 00:29
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Reading output.

You can use

Code: Select all
file_get_contents($file);
It takes care of all the wrappers for you so you can enter a url as the file and it will return the HTML output.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #3 (permalink)  
Old Oct 30th, 2007, 00:41
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Reading output.

Worked perfectly
Thanks
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fread only reading 78 characters CloudedVision PHP Forum 2 Apr 7th, 2008 20:50
[SOLVED] Reading a remote XML source in JavaScript jonbritton JavaScript Forum 2 Jan 25th, 2008 13:01
[SOLVED] PHP/MySQL Sorted Output Stuart PHP Forum 5 Nov 21st, 2007 21:31
[SOLVED] Reading as text file backwards eon201 PHP Forum 4 Nov 8th, 2007 10:53
[SOLVED] form output in CSS dhossai Web Page Design 4 Nov 6th, 2007 00:22


All times are GMT. The time now is 05:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43