i've got a small file which gives the urlencoded variables with values in comma separated pattern(given below), i want to read it as working seperated string variable from given separated comma pattern as a list of urls, how does it make?
how to get file included data as string?
Collapse
X
-
Originally posted by charith7788 View Posti've got a small file which gives the urlencoded variables with values in comma separated pattern(given below), i want to read it as working seperated string variable from given separated comma pattern as a list of urls, how does it make?
PHP Code:$file = file_get_contents('get_.txt');
PHP Code:$urls = explode(',', $file);
unset($file);
PHP Code:foreach($urls as $url) {
echo $url . "\n";
}
I need some facebook likes, can you please help me
http://facebook.com/softwarefreakin
I noticed social media is really powerful
Well DONE is better than well SAID
-
Originally posted by softwarefreak View PostGet the contents of the file in a variable
PHP Code:$file = file_get_contents('get_.txt');
PHP Code:$urls = explode(',', $file);
unset($file);
PHP Code:foreach($urls as $url) {
echo $url . "\n";
}
Comment
-
Originally posted by charith7788 View Postthanks bro. I'll check that, will the file open if it is in a remote location? I got get.text from www.youtube.com/get_video_info?video_id=xxxx does the file_get_contents function work with the url?I need some facebook likes, can you please help me
http://facebook.com/softwarefreakin
I noticed social media is really powerful
Well DONE is better than well SAID
Comment
-
Originally posted by charith7788 View Postthanks bro. I'll check that, will the file open if it is in a remote location? I got get.text from www.youtube.com/get_video_info?video_id=xxxx does the file_get_contents function work with the url?
Comment
-
Originally posted by charith7788 View Postcan we send our IP to the youtube? it is sending my server IPI need some facebook likes, can you please help me
http://facebook.com/softwarefreakin
I noticed social media is really powerful
Well DONE is better than well SAID
Comment
-
Originally posted by softwarefreak View PostThe thing you want to do is known as IP spoofing, you can pass user ip via curl but that wont work cuz your server is the bridge between the user & youtube, youtube will send the data back to ip who sends the request, if its not your server ip, then you'll never get the data
Added after 20 minutes:
Originally posted by softwarefreak View PostThe thing you want to do is known as IP spoofing, you can pass user ip via curl but that wont work cuz your server is the bridge between the user & youtube, youtube will send the data back to ip who sends the request, if its not your server ip, then you'll never get the data
Added after 2 minutes:
Originally posted by softwarefreak View PostThe thing you want to do is known as IP spoofing, you can pass user ip via curl but that wont work cuz your server is the bridge between the user & youtube, youtube will send the data back to ip who sends the request, if its not your server ip, then you'll never get the dataLast edited by charith7788; 14.09.13, 02:11.
Comment
Comment