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

  • SEARCH
  • Home
  • 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 8066261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:55:44+00:00 2026-06-05T11:55:44+00:00

im trying to access my localhost i.e. localhost/app and trying to get back some

  • 0

enter image description hereim trying to access my localhost i.e. localhost/app and trying to get back some data back in json, this is the php script

<?php


 header('Access-Control-Allow-Origin: *'); 

//test if a post request came


if(isset($_POST)) {


    //return a json request

    $contactDetails = array(
  "email" => "some@some.com",
  "twitter" => "@example",

);

echo json_encode($contactDetails);



 }


?>

this php file is located at index.php

im trying to access this page using localhost/app page but im getting 301 error in firebug, i dont know why, any help appreciated

IT WORKS ON THE WEB BROWSER, but not when i try to request the information from somehere else

  • 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-05T11:55:46+00:00Added an answer on June 5, 2026 at 11:55 am

    You’re trying to access a localhost URL from an external (i.e. a live) website? That website would have no way of accessing your localhost unless you’ve given it a public IP, which I’m assuming you haven’t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

when user allow my app i receive this type of success url: http://localhost/fbapp/app.php#access_token=AAAAALY8OpPABAM67auStdfgdfOdfgdfgdenqEt9QZCGD2a1h3iWFrhmNWqOf8l4a9RQ8tAJCM9y5QbYpsP6sT1g0ZCXDhtZCECZApGb&expires_in=6604 i
I am trying to access localhost on my xampp via the Chrome browser but
Could you help me with my problem? I am trying to access localhost to
I'm trying to access list data using SSRS 2008. I have created an XML
I am trying to access a control inside a Repeater. The control is inside
I'm trying to access a member structs variables, but I can't seem to get
I'm trying to setup elmah on my web app,I changed web.config,executed Sql script on
I'm trying to get a node.js app that uses mysql to work. I run
I'm trying to understand why this ajax called doesn't work $.ajax({ type: 'GET', url:
I am trying to get Propel to work in my Zend app, it seems

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.