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 on http://spar.nl/ They always 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?

Thanks a lot.

Dennis

Sorry for my English.

-- 
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