Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 01-06-2010, 06:27 PM Need little help...
Experienced Talker

Posts: 31
Trades: 0
This code displays links from my data.txt file


What i want is to add this code (modified) to my other websites, but without coping the source files & the data.txt & without i iframe .How can i do that? Please help!
Thank you!

Sorry for bad english

PHP Code:
<?php


$data 
$_SERVER['DOCUMENT_ROOT'] . "/linkspider/admin/data.txt";     
$sites file($data);



    foreach(
$sites as $lines) {
list(
$sites$myLink) = explode("|"$lines);
echo 
"<center><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='red'>$sites</font><br></center>";
}
?>
__________________

Please login or register to view this content. Registration is FREE

Last edited by tokivoki; 01-06-2010 at 07:34 PM..
tokivoki is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-06-2010, 08:08 PM Re: Need little help...
Stephen.'s Avatar
Average Talker

Posts: 22
Name: Stephen
Trades: 0
Presuming you set your permissions correctly, you purely just need to change

/linkspider/admin/data.txt

To
www.siteHostingThatFile.com/linkspider/admin/data.txt

Obviously with your URL
Stephen. is offline
Reply With Quote
View Public Profile
 
Old 01-06-2010, 08:16 PM Re: Need little help...
Experienced Talker

Posts: 31
Trades: 0
I tried that already, this error comes:


Warning: file(/home/watchfor/public_html/moviedigg.infohttp://www.moviedigg.info/linkspider/links.php/linkspider/admin/data.txt) [function.file]: failed to open stream: No such file or directory in /home/watchfor/public_html/moviedigg.info/linkspider/links.php on line 5

Warning: Invalid argument supplied for foreach() in /home/watchfor/public_html/moviedigg.info/linkspider/links.php on line 9
__________________

Please login or register to view this content. Registration is FREE
tokivoki is offline
Reply With Quote
View Public Profile
 
Old 01-06-2010, 08:18 PM Re: Need little help...
Stephen.'s Avatar
Average Talker

Posts: 22
Name: Stephen
Trades: 0
Change

$data
= $_SERVER['DOCUMENT_ROOT'] . "/linkspider/admin/data.txt";

To the URL. Sorry, that was my mistake, didn't read it all fully

Last edited by Stephen.; 01-06-2010 at 08:20 PM..
Stephen. is offline
Reply With Quote
View Public Profile
 
Old 01-06-2010, 08:27 PM Re: Need little help...
Experienced Talker

Posts: 31
Trades: 0
Doesn't work!Try for yourself

file :http://moviedigg.info/linkspider/admin/data.txt

http://moviedigg.info/linkspider/links.php
__________________

Please login or register to view this content. Registration is FREE
tokivoki is offline
Reply With Quote
View Public Profile
 
Old 01-06-2010, 08:43 PM Re: Need little help...
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Stephen meant
PHP Code:
$data "http://www.moviedigg.info/linkspider/admin/data.txt"
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 01-06-2010, 09:00 PM Re: Need little help...
Experienced Talker

Posts: 31
Trades: 0
Sorry stephen and thank you!Big thanks to you to lizciz!
Problem solved.
__________________

Please login or register to view this content. Registration is FREE

Last edited by tokivoki; 01-06-2010 at 09:02 PM..
tokivoki is offline
Reply With Quote
View Public Profile
 
Old 01-07-2010, 05:25 AM Re: Need little help...
Stephen.'s Avatar
Average Talker

Posts: 22
Name: Stephen
Trades: 0
Haha, always here to help or at least try.
Stephen. is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need little help...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





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



Page generated in 0.26702 seconds with 12 queries