There is such a function

header("Location: ".$urlToDialogAuth); 

For example, in the first case $urlToDialogAuth will be http://ru.stackoverflow.com/ redirection will go off with a bang. In the second case, the same variable will be https://oauth.vk.com/authorize?client_id=500004&redirect_uri=http://i0l0o0h0i00nn.ru.s106.h00h0os.ru/backend/auth/auth.php&response_type=code&display=page&scope=nohttps,groups,photos,offline

No redirection happens, but! I thought the URI was broken, but no. If the pens go on it, then everything is ok. What is the trouble? Zeros specially hammered, while I hide from prying eyes :)

  • maybe there are some conditions for output and before the header suddenly appears in the output something. For the query should work this way and that - Alexey Shimansky
  • try adding die(); after header("Location: ".$urlToDialogAuth); - Alex

0