PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm thinking that this code keeps adding onto itself inside of the loop, instead of doing a new check on each iteration through the loop. What this code is doing is checking that a person has not gone over their space limit when uploading multiple pictures. I allow 6 MB of space, and during each iteration of the loop, it should check to make sure they have not gone over that limit. However, I'm only at 30% of myspace usage, and even when adding small pictures it tells me I have gone over my limit. Does anyone see any problems?
Last edited by s.dot on Mon Dec 05, 2005 11:52 pm, edited 1 time in total.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
1656317
3323122
5006604
6723156
You're over your allowed space limit. Consider deleting some pictures.
The first one is correct, but the second one nearly doubles just by adding one picture (32 KB in size)? Third one is way off, 4th one is way off.
So I think it's adding the variables onto themselves instead of getting new numbers each time.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
hmm I fixed it. Not exactly how I wanted to fix it.. it feels like im "hacking" the script to make it work right
but I put
$stotal = 0;
$atotal = 0;
at the beginning of each iteration and it works good now. thanks burrito
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.