Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > PHP
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 12-29-2006, 09:48 PM   #1
giovannicosta
Junior Guru
 
giovannicosta's Avatar
 
Join Date: Nov 2006
Location: London, UK
Posts: 792
giovannicosta will become famous soon enoughgiovannicosta will become famous soon enough
Default can someone make me a simple php script?

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?
giovannicosta is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 12-29-2006, 10:03 PM   #2
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: can someone make me a simple php script?

Here is a real simple little script for doing that:

Code:
<?php $basetime=1167429446; $mb=time(); $mb-=$basetime; $mb*=10; $mb+=3000000; $mb/=1000000; echo $mb.'MB'; ?>

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.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 12-29-2006, 10:13 PM   #3
giovannicosta
Junior Guru
 
giovannicosta's Avatar
 
Join Date: Nov 2006
Location: London, UK
Posts: 792
giovannicosta will become famous soon enoughgiovannicosta will become famous soon enough
Default Re: can someone make me a simple php script?

how do I slow it down? and is the time in UNIX?
giovannicosta is offline  
Old 12-29-2006, 10:18 PM   #4
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: can someone make me a simple php script?

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.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 12-29-2006, 11:46 PM   #5
giovannicosta
Junior Guru
 
giovannicosta's Avatar
 
Join Date: Nov 2006
Location: London, UK
Posts: 792
giovannicosta will become famous soon enoughgiovannicosta will become famous soon enough
Default Re: can someone make me a simple php script?

Ok script implemented here: http://www.getmyfreehosting.com/
giovannicosta is offline  
Old 12-30-2006, 09:54 PM   #6
giovannicosta
Junior Guru
 
giovannicosta's Avatar
 
Join Date: Nov 2006
Location: London, UK
Posts: 792
giovannicosta will become famous soon enoughgiovannicosta will become famous soon enough
Default Re: can someone make me a simple php script?

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.
giovannicosta is offline  
Old 12-31-2006, 12:45 AM   #7
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: can someone make me a simple php script?

Code:
<?php $basetime=1167429446; $mb=time(); $mb-=$basetime; $mb*=50; $mb+=3000000; $mb/=1000000; if($mb>=1400) { $mb=1400; } echo $mb.'MB'; ?>
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 12-31-2006, 12:48 PM   #8
giovannicosta
Junior Guru
 
giovannicosta's Avatar
 
Join Date: Nov 2006
Location: London, UK
Posts: 792
giovannicosta will become famous soon enoughgiovannicosta will become famous soon enough
Default Re: can someone make me a simple php script?

do i need to add an else echo nothing or something like that?
giovannicosta is offline  
Old 12-31-2006, 03:12 PM   #9
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: can someone make me a simple php script?

That depends on what you mean. When would you not want to echo the results?
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 12-31-2006, 04:21 PM   #10
giovannicosta
Junior Guru
 
giovannicosta's Avatar
 
Join Date: Nov 2006
Location: London, UK
Posts: 792
giovannicosta will become famous soon enoughgiovannicosta will become famous soon enough
Default Re: can someone make me a simple php script?

like, when it got to 14000 it would only echo 14000. Is thats what its doing now?
giovannicosta is offline  
Old 12-31-2006, 06:32 PM   #11
kenni
Registered Member
 
kenni's Avatar
 
Join Date: Dec 2005
Posts: 1,543
kenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to behold
Default Re: can someone make me a simple php script?

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.
kenni is offline  
Old 12-31-2006, 07:28 PM   #12
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: can someone make me a simple php script?

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.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 12-31-2006, 07:29 PM   #13
giovannicosta
Junior Guru
 
giovannicosta's Avatar
 
Join Date: Nov 2006
Location: London, UK
Posts: 792
giovannicosta will become famous soon enoughgiovannicosta will become famous soon enough
Default Re: can someone make me a simple php script?

OK I need it in javascript then any help?
giovannicosta is offline  
Old 12-31-2006, 08:07 PM   #14
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: can someone make me a simple php script?

None from me sorry, I don't know the first thing about JS.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 12-31-2006, 08:44 PM   #15
giovannicosta
Junior Guru
 
giovannicosta's Avatar
 
Join Date: Nov 2006
Location: London, UK
Posts: 792
giovannicosta will become famous soon enoughgiovannicosta will become famous soon enough
Default Re: can someone make me a simple php script?

ok anyone else?
giovannicosta is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

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


All times are GMT. The time now is 01:03 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.