#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    4
    Rep Power
    0

    How to avoid permission Denied Error in browser using xml/http(php) request?


    Hi All,
    we have get some xml value in thirdparty website using ajax xml/http(php) request. when running the page in local (ie, Apache installed system) its working fine.
    When accessing the page other than local, apache not allowing to execute ajax accessing the 3rd party website. it's "Permission Denied" Error alert is displayed in browser.what i do further.


    Please let me know any possible way...


    Thanks,
    Pandiyan N
  2. #2
  3. Confused badger
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2009
    Location
    West Yorkshire
    Posts
    1,047
    Rep Power
    487
    Originally Posted by PANDIYANN07
    Hi All,
    we have get some xml value in thirdparty website using ajax xml/http(php) request. when running the page in local (ie, Apache installed system) its working fine.
    When accessing the page other than local, apache not allowing to execute ajax accessing the 3rd party website. it's "Permission Denied" Error alert is displayed in browser.what i do further.


    Please let me know any possible way...


    Thanks,
    Pandiyan N

    It could be that when you moved the pages from your local server to the remote webserver, the permissions of the PHP scripts were messed up.

    Ensure that your WWW User (check your apache config for that info) has read permission to the folder where the scripts are kept and also to the scripts themselves.

    To help more, we'd really need to see the error message as it appears on screen, does it say "403 - Error permission denied" or something like that??
    "For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
    - George Orwell, 1984
  4. #3
  5. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,301
    Rep Power
    7170
    You can't issue an AJAX request to a domain that is different from the one serving the page.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

IMN logo majestic logo threadwatch logo seochat tools logo