|
|
|
||||
|
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 |
|
North Coast Pimp
Join Date: Dec 2005
Location: 304-534-757
Posts: 9,395
|
I know that if I want to include a file on a page I put the line...
Code:
<? @include("http://www.domain.com/file.html"); ?>
Thanks in advance for any help you give |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Aug 2005
Location: Las Vegas, NV
Posts: 1,099
|
one quick way you could do that is create an array of all your links, and then generate a random number between 0 and the number of links - 1 and use that number.
so like this if you had 3 Code:
<?php $url[0] = 'http://www.fuck.you/fuckoff.html'; $url[1] = 'http://www.suckmyballs.com'; $url[2] = 'http://www.lickmynuts.com'; $fuckingNumber = strval(rand()%3); include($url[$fuckingNumber]); ?>
__________________
Spunky Dollars | Need Content? Paysite Owners: Protect Your Members Area with Strongbox 361-574-229 |
|
|
|
|
|
#3 | |
|
North Coast Pimp
Join Date: Dec 2005
Location: 304-534-757
Posts: 9,395
|
Quote:
|
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Apr 2006
Location: USA
Posts: 900
|
No. 1234
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Aug 2005
Location: Las Vegas, NV
Posts: 1,099
|
you would replace the 3 with the number of files you have.
__________________
Spunky Dollars | Need Content? Paysite Owners: Protect Your Members Area with Strongbox 361-574-229 |
|
|
|
|
|
#6 | |
|
Old school
Industry Role:
Join Date: Nov 2002
Location: Kettering, OH
Posts: 4,327
|
Quote:
Code:
<?php $url[] = 'http://www.test1.com'; $url[] = 'http://www.test2.com'; $url[] = 'http://www.test3.com'; $x= strval(rand()%count($url)); include($url[$x]); ?>
__________________
Need a programmer? (Desktop/Web Applications) --- Skype: napoleande |
|
|
|
|
|
|
#7 |
|
North Coast Pimp
Join Date: Dec 2005
Location: 304-534-757
Posts: 9,395
|
OK, I have tried to lines of code... Neither are working for me...
First one is located at http://www.freepornation.com/test/index.php Code:
<? $sl = rand(1,5);include ('1.htm'.$sl.'2.htm'.$sl.'3.htm'.$sl.'4.htm'.$sl.'5.htm'); ?>
Code:
<?php $url[0] = '1.htm'; $url[1] = '2.htm'; $url[2] = '3.htm'; $url[3] = '4.htm'; $url[4] = '5.htm'; $no. 01234 = strval(rand()%5); include($url[$no. 01234]); ?> |
|
|
|
|
|
#8 | |
|
Old school
Industry Role:
Join Date: Nov 2002
Location: Kettering, OH
Posts: 4,327
|
Quote:
__________________
Need a programmer? (Desktop/Web Applications) --- Skype: napoleande |
|
|
|
|
|
|
#9 | |
|
North Coast Pimp
Join Date: Dec 2005
Location: 304-534-757
Posts: 9,395
|
Quote:
Worked perfect... http://www.freepornation.com/test/index3.php Thank you very much |
|
|
|
|
|
|
#10 | |
|
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: US
Posts: 5,326
|
Quote:
__________________
. . Arguing with a troll is a lot like wrestling in the mud with a pig, after a couple of hours you realize the pig likes it. |
|
|
|
|
|
|
#11 | |
|
Old school
Industry Role:
Join Date: Nov 2002
Location: Kettering, OH
Posts: 4,327
|
Quote:
__________________
Need a programmer? (Desktop/Web Applications) --- Skype: napoleande |
|
|
|
|
|
|
#12 | |
|
Confirmed User
Join Date: Aug 2005
Location: Las Vegas, NV
Posts: 1,099
|
Quote:
__________________
Spunky Dollars | Need Content? Paysite Owners: Protect Your Members Area with Strongbox 361-574-229 |
|
|
|
|
|
|
#13 |
|
North Coast Pimp
Join Date: Dec 2005
Location: 304-534-757
Posts: 9,395
|
And so did that....
http://www.freepornation.com/test/index2.php Thanks Now which one is better to use.... I plan on haveing several groups on one php page if that makes a difference ![]() |
|
|
|
|
|
#14 |
|
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,144
|
Damn, I didn't get to play
__________________
All cookies cleared! |
|
|
|
|
|
#15 |
|
North Coast Pimp
Join Date: Dec 2005
Location: 304-534-757
Posts: 9,395
|
|
|
|
|
|
|
#16 |
|
North Coast Pimp
Join Date: Dec 2005
Location: 304-534-757
Posts: 9,395
|
|
|
|
|
|
|
#17 | |
|
Confirmed User
Join Date: Aug 2005
Location: Las Vegas, NV
Posts: 1,099
|
Quote:
__________________
Spunky Dollars | Need Content? Paysite Owners: Protect Your Members Area with Strongbox 361-574-229 |
|
|
|
|
|
|
#18 |
|
North Coast Pimp
Join Date: Dec 2005
Location: 304-534-757
Posts: 9,395
|
|
|
|
|
|
|
#19 |
|
Let's do some business!
Industry Role:
Join Date: Sep 2004
Location: Austin, TX
Posts: 31,348
|
For starters, you can't have a space in variable names.
__________________
Vacares - Web Hosting, Domains, O365, Security & More - Paxum and BTC Accepted Windows VPS now available Great for TSS, Nifty Stats, remote work, virtual assistants, etc. Click here for more details. |
|
|
|
|
|
#20 |
|
Confirmed User
Join Date: Aug 2005
Location: Las Vegas, NV
Posts: 1,099
|
no prob. one of the very basic things about PHP is you can't have spaces in your variable names or periods and certain other special characters that are used as operators.
__________________
Spunky Dollars | Need Content? Paysite Owners: Protect Your Members Area with Strongbox 361-574-229 |
|
|
|
|
|
#21 |
|
North Coast Pimp
Join Date: Dec 2005
Location: 304-534-757
Posts: 9,395
|
|
|
|
|
|
|
#22 |
|
Confirmed User
Industry Role:
Join Date: Aug 2005
Location: Costa Rica
Posts: 465
|
way to go jon, work the php!
__________________
-- "You can't stop ingenuity, trust me.."
|
|
|
|
|
|
#23 |
|
North Coast Pimp
Join Date: Dec 2005
Location: 304-534-757
Posts: 9,395
|
|
|
|
|
|
|
#24 |
|
Ask me about negative cash flow
Join Date: May 2006
Posts: 539
|
The only gracious way to accept an insult is to ignore it.
|
|
|
|