Ryan, you are right ..

Thinking about it, the only issue I find is 'time() - 2419200'
followed by the date("W", $mytime) ..
I assume that 2419200 is 7 days in seconds ... if you do a date('W',
xxxx)  on the day of summer time at 2 o'clok, you might loose  a
week ...



On Apr 14, 3:48 am, Ryan Schmidt <[email protected]> wrote:
> I don't see anything in the original post that has anything to do with 
> that....
>
> On Apr 13, 2011, at 19:46, francky06l wrote:
>
> > Seems you break the 2,147,483,647 (INT_MAX) of the a 32 bits system.
> > Try to convert everything in float and then cast in integer..
>
> > On Apr 11, 5:57 pm, Spar Pater <[email protected]> wrote:
> >> I'm trying to make a php script.
> >> First of all I thought it was a logical number.
> >> But the problem just started today.
>
> >> Spar in the Netherlands have visual magazine online. I like to copy
> >> that on mine.
> >> Thats not the problem so far.
>
> >> Every week there is another magazine.
> >> They started in week 4 (magazine 1)
> >> Until week 14 (magazine 10) it was not a problem.
> >> <?php
> >> $mytime = time() - 2419200;
> >>         $url="http://voorbeeld.nl/";.(int)date("W", $mytime);
> >>         $url2="/magazine.php";
> >>         header( "Location: $url$url2" );
> >> ?>
>
> >> But in week 15 is just jumped to magazine 13 So I missed one.
>
> >> Maybe it's just one time, but I like to be a step ahead of that.
>
> >> So onhttp://spar.nl/Theyalways have the right link. Named
> >> "Weekaanbeidingen"
>
> >> Is it possible to make a script that copy that link to use as my own
> >> or do I need to check it now and then?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to