redirecting page - WeOnlyDo Discussion board

redirecting page (General questions)

by alexandreo, Thursday, January 15, 2009, 22:19 (5790 days ago)

I was wondering : Is it possible to get a php page that will redirect to the proper html page where the .txt file will be?
ie : Let's say I have 2 server containing the same txt file (as might happen with cache server). Can I have a central php file, which will redirect to either page sitting in between?

ie :
My C++ file look like this :
[code]m_oWodAppUpdate.Check( localhost/test.php );[/code]

test.php contains something like this :
[php]<?php header('Location: http://CacheServer/config.txt'); ?>[/php]

Re: redirecting page

by wodSupport, Thursday, January 15, 2009, 23:18 (5790 days ago) @ alexandreo

Hi.

Currently wodAppUpdate will not handle redirects, it expects to receive full text as result.

However, to solve your PHP problem, why don't your server fetch resource from 3rd party server using simple include statement, such as

include 'http://www.example.com/file.php?foo=1&bar=2';

in which case server would fetch the TXT and pass it to wodAppUpdate?

Kreso