![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content 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 us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
php quesiton - loading multiple url based queries using script
Basically, I need to load a few url based commands using a php script. Example=
http://www.test.com/command.php?test=1&test1=1 http://www.test.com/command.php?test=2&test2=2 http://www.test.com/command.php?test=3&test3=3 etc. etc. This url is on an external site Hope I explained this right |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
58008 53773
Industry Role:
Join Date: Jul 2005
Location: Australia
Posts: 9,864
|
php.net is your friend
__________________
TripleXPrint on Megan Fox "I would STILL suck her pussy until her face caved in. And then blow her up and do it again!" |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
i'm not sure what you mean, but file_get_contents is probably what you are looking for...
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
My php is very week.
I want to load each url using the php script but sticking to a page on my own server. Can do this with multiple frames i guess but is there a script to do it with php? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
<?php $string = file_get_contents('http://www.url.goes/here'); echo $string; ?>
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Aug 2007
Posts: 128
|
If you have fopen wrapper enabled, this should load all the urls, and populate $result with the page outputs.
PHP Code:
__________________
230-699 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
thanks that worked, one more question, anyone know how to set a referesh command at the bottom of the page so when the urls finish loading it automatically refreshes?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Aug 2007
Posts: 128
|
Quote:
Code:
<meta http-equiv="refresh" content="0" />
__________________
230-699 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
I guess using the php include command works just as good as get file contents no?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
I want it to refresh after all the urls are loaded, would this do that or could it do it faster/slower.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Aug 2007
Posts: 128
|
You could, but I'd only do it if it was your site. If one of the URLs returned php code, you script would execute it and who knows what could happen from there.
__________________
230-699 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Aug 2007
Posts: 128
|
Quote:
PHP Code:
__________________
230-699 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
thanks so much!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: Aug 2007
Posts: 128
|
__________________
230-699 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Sep 2004
Posts: 1,341
|
great way to 0wn some surfers machine.
but who am I to bitch? botnets are were its at. just leave your machine on all night. we will take care of it. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
i think you are looking for this
<html> <body> <? @readfile("http://www.test.com/command.php?test=3&test3=3") ?> </body> </html>
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |