![]() |
Some php help please....
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 :thumbsup |
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 |
Quote:
|
No. 1234
|
Quote:
|
Quote:
Code:
<?php |
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 |
Quote:
|
Quote:
Worked perfect... http://www.freepornation.com/test/index3.php Thank you very much :thumbsup |
Quote:
|
Quote:
|
Quote:
|
Quote:
http://www.freepornation.com/test/index2.php Thanks :thumbsup Now which one is better to use.... I plan on haveing several groups on one php page if that makes a difference :upsidedow |
Damn, I didn't get to play :(
|
Quote:
I thank you too :thumbsup |
Quote:
You are more then correct and it is in my plans, but managing the designers, clients and working on this new program I hardly have time for anything at all :( |
Quote:
|
Quote:
I am sure there will be a next time... I am a total newb at alot of things and I am not scared to ask for help :winkwink: |
Quote:
|
Quote:
|
Quote:
Thanks Bob... I will play around with them both and see which ends up working best for my application :thumbsup |
:)
way to go jon, work the php! |
Quote:
Thanks Kaylum, I am trying :) |
The only gracious way to accept an insult is to ignore it.
|
| All times are GMT -7. The time now is 08:54 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123