Webmaster Forums 101 - Free Help and Discussions
 
 
 

MEMBER REWARDS - Earn free advertising by participating in these forums! Click here for details.

Welcome to Webmaster Forums 101!

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st July 2003, 03:29 PM   #1
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default PHP Trick

Do some of you have information which you need to pull from one site to another? For example information from a MySQL Database? Well, I found this little trick that will help a lot!

Code:
<?php // The page you wish to pull the data from $lines = file('http://www.yourdomain.com/index.html'); // Display the code foreach ($lines as $line_num => $line) { echo $line; } ?>

Hope it help!
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 25th September 2003, 07:58 AM   #2

Username: Reactor
Rank: WF101 Newbie
Join Date: Aug 2003
Location: Oregon
Posts: 22
Points: 0.00
Default

Very good code, did you test it?
Reactor is offline   Reply With Quote
Old 25th September 2003, 08:34 AM   #3

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default

I was looking for something like that! Sweet!
metguitarist is offline   Reply With Quote
Old 27th September 2003, 01:11 PM   #4
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

Quote:
Originally Posted by Reactor
Very good code, did you test it?

Of course :cheesygr:

But only use it for linking to another site. it is faster if you use include(); for including pages on your website. :wink:
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 5th March 2004, 12:48 AM   #5

Username: buchard
Rank: WF101 Newbie
Join Date: Mar 2004
Posts: 6
Points: 0.00
Send a message via Yahoo to buchard
Default yup but ...

Useless for the site wich have optimize the html content so there's no \n in their html code and report as one line.
But anyway that's nice too
__________________
<b>Buchard</b>
buchard is offline   Reply With Quote
Old 28th February 2005, 08:34 PM   #6
Darksat's Avatar

Username: Darksat
Rank: Tech Master
Join Date: Feb 2005
Posts: 122
Points: 17.77
Default

Handy little code, I was looking for something like that.
__________________
-==New Computer Security Forum==-
--{Time to get Tech}--
Darksat is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP and PHP... Ben Server-Side Scripting & Databases 2 21st February 2005 05:57 PM
PHP Authentication and Search Engines Ben Server-Side Scripting & Databases 4 31st January 2005 03:00 PM
PHP: How To Hide Your JavaScript With PHP! Mr. Tech Tutorials 2 24th January 2005 08:15 AM
PHP: How To Upload Files Using PHP Mr. Tech Tutorials 0 17th January 2005 02:23 PM
[tip] \ and PHP Mr. Tech Server-Side Scripting & Databases 0 7th February 2003 06:04 PM

Login
User Name
Password


Featured Members


Featured Links


Useful Resources
Webmaster Resources
Developers Tools
Developer Tutorials


Partners

All times are GMT +10. The time now is 08:18 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.3.2
 
 
WEBMASTER FORUMS 101
ARCHIVE
CONTACT US
TOP
   
© Webmaster Forums 101 2005. All Rights Reserved.
Design by: vBCore