Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8736115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:13:49+00:00 2026-06-13T10:13:49+00:00

using Documentation on IIS; <?php $key = ‘**********’; $value = ‘**********’; session_start ( );

  • 0

using Documentation on IIS;

<?php 
    $key = '**********';
    $value = '**********';
    session_start ( );

    $code = $_REQUEST [ 'code' ];
    if ( empty ( $code ) )
    {
        $_SESSION [ 'state' ] = md5 ( uniqid ( rand ( ) , true ) );
        $dialog_url = 'https://www.facebook.com/dialog/oauth?client_id=' . $key . '&redirect_uri=' . urlencode ( $value ) . '&state=' . $_SESSION [ 'state' ];
        echo('<script> top.location.href=' . $dialog_url . ';</script>');
    }
?>

Result:

top.location.href=' . $dialog_url . ';'); } ?> 

Please try your suggestion before posting it as I have tried more than 40 suggestions, reviewed all similar questions and searched it for last 2 hours.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:13:52+00:00Added an answer on June 13, 2026 at 10:13 am

    Your server do not parse your file as php. That’s the symptom.

    See how to configure your IIS server for parse html file as PHP.

    EDIT for completeness:

    As mentioned by other answers you should add double quotes around $dialog_url for prevent javascript error

    echo('<script> top.location.href="' . $dialog_url . '";</script>');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using compression with WCF in IIS I can find documentation for, but its oriented
So I installed RavendDB on a Win2003 server using these instructions: http://old.ravendb.net/documentation/docs-deployment-iis And i
When I generate documentation using Doxygen I get several empty packages representing system namespaces
I am using XML documentation headers on my c# files to pass the StyleCop
I am currently writing some extensive documentation using Sphinx for a rather complex Django
Our company publishes our software product's documentation using a custom-built content management system using
I am currently in the process of creating API documentation using Microsoft Word 2007
I'm totally new to django, and I'm using its documentation to get help on
I am using reading the documentation for app domains in .net 3.5 and came
we are using the Flowplayer ( Documentation ) in one of our webprojects. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.