Results 1 to 8 of 8
-
31st May 2011, 11:03 PM #1OPMemberWebsite's:
ps3games.ORG[$10] Code this for me. (Pick number from txt file and display it on site)
I need someone to code this for me.
I want to upload a txt file to the root of my website. There will be roughly 40,000 lines of five digit numbers in that text file. The code I want developed will pick ONE number randomly out of that text file and display it on the users screen. I don't think this would be hard at all to do. But I want to be able to place the code anywhere in my wordpress templates and wherever I place it, the random-picked number will display.
Please post here or PM me if you can do this, I will not pay upfront. I want this developed ASAP, but if you have any questions, please post here or PM me as well.
Regards,
-thizzthizzladen Reviewed by thizzladen on . [$10] Code this for me. (Pick number from txt file and display it on site) I need someone to code this for me. I want to upload a txt file to the root of my website. There will be roughly 40,000 lines of five digit numbers in that text file. The code I want developed will pick ONE number randomly out of that text file and display it on the users screen. I don't think this would be hard at all to do. But I want to be able to place the code anywhere in my wordpress templates and wherever I place it, the random-picked number will display. Please post here or PM me Rating: 5
-
1st Jun 2011, 06:39 AM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comyou will write those numbers?
you can use mt_rand(10000,99999) if you want to show random numbers
-
1st Jun 2011, 07:23 AM #3MemberWebsite's:
EastsideHosting.com MediaONAIR.com ImgWiz.com cPadmin.net EastsidePCWorks.com HostedTalk.comFirst, Download and Install this plugin for WordPress;
Upload text file to a directory, such as;
wp-content/uploads/list/
PHP Code:<?php
$file = "list.txt";
$random = file($file);
echo $random[array_rand($random)];
?>
PHP Code:$file = "list.txt";
PHP Code:$file = "wp-content/uploads/list/list.txt";
EastsideHosting - (Web Hosting, Proxy Hosting, Reseller Program)
MediaONAIR - (SHOUTcast Servers, ICEcast Servers, Reseller Program)
Server Administrator - (Dedicated Servers, VPS Management, One Time Services)
ImgWiz - (Free Image Hosting)
-
1st Jun 2011, 07:08 PM #4
-
1st Jun 2011, 08:44 PM #5OPMemberWebsite's:
ps3games.ORG
-
2nd Jun 2011, 07:12 AM #6MemberWebsite's:
EastsideHosting.com MediaONAIR.com ImgWiz.com cPadmin.net EastsidePCWorks.com HostedTalk.comJust wrap this into a div or any html code;
PHP Code:echo $random[array_rand($random)];
PHP Code:echo "<div class='define-class'>".$random[array_rand($random)]."</div>";
PHP Code:echo "<div style='size: 14px; color: red;'>".$random[array_rand($random)]."</div>";
PHP Code:<?php
$file = "list.txt";
$random = file($file);
$genRandom = $random[array_rand($random)];
?>
PHP Code:echo "<div class='define-class'>$genRandom</div>";
PHP Code:echo "<div style='size: 14px; color: red;'>$genRandom</div>";
PHP Code:<?php
$file = "list.txt";
$random = file($file);
$genRandom = $random[array_rand($random)];
echo "<div class='define-class'>$genRandom</div>";
?>EastsideHosting - (Web Hosting, Proxy Hosting, Reseller Program)
MediaONAIR - (SHOUTcast Servers, ICEcast Servers, Reseller Program)
Server Administrator - (Dedicated Servers, VPS Management, One Time Services)
ImgWiz - (Free Image Hosting)
-
8th Jun 2011, 05:53 PM #7OPMemberWebsite's:
ps3games.ORG
-
8th Jun 2011, 06:06 PM #8
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
My Pick For The Best File & Image Host
By DJboutit in forum File Host DiscussionReplies: 0Last Post: 23rd Sep 2012, 09:19 AM -
help me pick a new file host
By byubi in forum File Host DiscussionReplies: 1Last Post: 25th Apr 2011, 01:54 AM -
[Hiring] Just Post File Maker (Text file BB-Code) $3
By elpirata in forum Completed TransactionsReplies: 0Last Post: 11th Jan 2011, 06:46 PM -
Giving away domain - Pick number 1-30
By CyberHacK in forum General DiscussionReplies: 35Last Post: 8th Dec 2010, 09:30 PM -
Pick A Number And Win Anti-Virus
By CyberAff in forum General DiscussionReplies: 48Last Post: 28th Oct 2010, 05:28 PM
themaLeecher - leech and manage...
Version 5.02 released. Open older version (or...