Reply
adding text to php from other source
Old 10-20-2003, 06:49 PM adding text to php from other source
coolnyc's Avatar
Skilled Talker

Posts: 97
Location: Queens, NY
is it posible to add text from other place and put in php?

for example
I want to add this text
http://www.x-nr.net/rtb/example.php

to my main page of the site
http://www.x-nr.net/

can i add it? is there like an invisble frame or something


thank
coolnyc is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 10-22-2003, 04:16 PM
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Link 1 is 404...
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
Old 10-22-2003, 07:55 PM
coolnyc's Avatar
Skilled Talker

Posts: 97
Location: Queens, NY
nvm
coolnyc is offline
Reply With Quote
View Public Profile
 
Old 11-25-2003, 01:28 AM
Ultra Talker

Posts: 377
Yeah. first link is 404... By the way, didn't you try to use "include" or "include_once" command???
__________________
andrews_john
www.softwareforhosting.com
andrews_john is offline
Reply With Quote
View Public Profile Visit andrews_john's homepage!
 
Old 11-25-2003, 02:29 PM
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Or it can be done with iframes, but who wants frames?
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
Old 11-25-2003, 04:49 PM
Experienced Talker

Posts: 31
Location: Redondo Beach, CA
If you want to include text from your server it should be easy to just use 'include' (or include_once) or get the text from whatever file or db it is gotten from on the first page.

If you want to include something from a web page outside of your server do
$fp = fopen('http://www.whatever.com/file.html', 'r');
while (!feof($fp)) {
$filecontents .= fgets($fp, 4096); // or just echo it
}
fclose($fp);

for options look up fopen at php.net
__________________
Myrealtypage - Real Estate Web Design
myrealtypage is offline
Reply With Quote
View Public Profile Visit myrealtypage's homepage!
 
Reply     « Reply to adding text to php from other source
 

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12820 seconds with 12 queries