| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| New Member | Randomize code? Sorry to ask a simple question, but I'm looking to randomise a display of content, which are called up with basic PHP include files. So if there are 5 images, I'm calling them up as: Code:
<!-- site content above -->
<?PHP include("/home/user/public_html/section1.php"); ?>
<?PHP include("/home/user/public_html/section2.php"); ?>
<?PHP include("/home/user/public_html/section3.php"); ?>
<?PHP include("/home/user/public_html/section4.php"); ?>
<?PHP include("/home/user/public_html/section5.php"); ?>
<!-- footer below -->
How would I randomise with a script within the body itself? Many thanks for any replies. |
| |
| | #2 (permalink) |
| Senior Member | do you want to randomize the section1, section2, section3, etc? or do you want to randomize something INSIDE section1, section2, etc? here's a link to the php random manual anyway: http://us3.php.net/rand
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #5 (permalink) |
| Senior Member | Something like that maybe... PHP Code: |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CorePimps Code Is For Sale! | contemptx | For Sale / Advertising Board | 2 | 07-20-2004 09:24 AM |
| Free Source Code Protector! | getthis | For Sale / Advertising Board | 7 | 05-10-2004 03:14 PM |