|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Junior Guru Join Date: Nov 2006 Location: London, UK
Posts: 792
![]() ![]() | Hi I would like someone to do this for me as I ahve no knowledge or php if you could, should be easy for someone with the knowledge, I need a script kind of like what google has for gmail where the MB increase gradually, I would like it to start off at 3MB and have 5 decimals, eg. 3.67898 and increase 0.00001 MB per second. Anyone that can help?
__________________ |
| |
|
| |||||||
| | #2 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Here is a real simple little script for doing that: Code:
You just need to change the basetime variable to reflect the actual start time. Right now it is set for about 5 minutes ago. Just so you know, increasing at that rate will increase the size by .864MB per day. In a week you will be at 9.04MB. You should consider slowing it down a bit. |
| |
| | #3 |
| Junior Guru Join Date: Nov 2006 Location: London, UK
Posts: 792
![]() ![]() | how do I slow it down? and is the time in UNIX?
__________________ |
| |
| | #4 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | The time is a unix time stamp. You can slow it down by removing the $mb*=10; line. That'll slow it down to 1 byte per second, but it will have to display the value using 6 decimal places instead of 5. At a rate of 1 byte per second, you will increase by 1MB every 10.66 days. |
| |
| | #5 |
| Junior Guru Join Date: Nov 2006 Location: London, UK
Posts: 792
![]() ![]() | Ok script implemented here: http://www.getmyfreehosting.com/
__________________ |
| |
| | #6 |
| Junior Guru Join Date: Nov 2006 Location: London, UK
Posts: 792
![]() ![]() | Can you speed it up for me, about 5 times as fast as it originally was also can someone make it stop when it reaches 1400MB
__________________ Last edited 12-30-2006 at 10:08 PM. |
| |
| | #7 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Code:
|
| |
| | #8 |
| Junior Guru Join Date: Nov 2006 Location: London, UK
Posts: 792
![]() ![]() | do i need to add an else echo nothing or something like that?
__________________ |
| |
| | #9 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | That depends on what you mean. When would you not want to echo the results? |
| |
| | #10 |
| Junior Guru Join Date: Nov 2006 Location: London, UK
Posts: 792
![]() ![]() | like, when it got to 14000 it would only echo 14000. Is thats what its doing now?
__________________ |
| |
| | #11 |
| Registered Member Join Date: Dec 2005
Posts: 1,543
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I cannot access http://www.getmyfreehosting.com/. And, are you after a javascript version aswell for live counting on the browser?
__________________ Wanna thank someone? Give 'em a rep. More info. |
| |
| | #12 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | The script now will stop at 14000, when it gets above 14000, only 14000 will be displayed. If you need it to update automatically, like gmails does, you will need to use javascript to implement the above script so that it updates without refreshing the page. |
| |
| | #13 |
| Junior Guru Join Date: Nov 2006 Location: London, UK
Posts: 792
![]() ![]() | OK I need it in javascript then any help?
__________________ |
| |
| | #14 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | None from me sorry, I don't know the first thing about JS. |
| |
| | #15 |
| Junior Guru Join Date: Nov 2006 Location: London, UK
Posts: 792
![]() ![]() | ok anyone else?
__________________ |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A simple Google API Tutorial and free script | KC TAN | Google APIs | 4 | 02-07-2007 10:15 AM |
| If I do the job after the deadline you get $500 from me - simple as that ;-) DESIGNER | vip-ip | Advertise your website | 3 | 12-30-2006 11:19 PM |
| Web Proxy Website www.AnonymousCamp.org Simple-Fast-Free | D'Godown | Website Reviews | 2 | 11-06-2006 10:57 AM |
| "Make ... your homepage?" script | Katey | Programming | 1 | 04-15-2006 11:35 AM |
| Simple Machines Forum Got a new Look | compuXP | Tools & Software | 4 | 02-15-2006 12:56 PM |