Closed Thread
Results 1 to 2 of 2

Thread: 403 Error when writing from php file to XML file

  1. #1
    Join Date
    Oct 2011
    Posts
    1

    403 Error when writing from php file to XML file

    I have a handler file (manageme.x10.mx/xml/handler.php) that is called by a XMLHttpRequest from manageme.x10.mx/web/userHome.html. The redirected url is in XMLHttpRequest params. What I want to happen is I want the handler file to open an XML file and save the update to that file. What is happening is I get a HTTP 302 for the GET call to the handler and then an attempted load of [12:15:49.732] GET http://x10powered.com/errors/403.shtml [HTTP/1.1 200 OK 249ms] which I believe is a HTTP 403 Access Denied result. As far as I've researched it, it sounds like x10hosting uses an Apache server and thus I need to create a .htaccess file at the root of my domain (manageme.x10.mx publichtml/). I wanted to know if I'm on the right track and if you had a sample .htaccess file I could use.

    Thanks
    Tyler

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: 403 Error when writing from php file to XML file

    Step 1 is make sure handler.php has proper permissions, 0644 (and the directory xml set to 0755 )
    Nothing is always absolutely so.

Closed Thread

Similar Threads

  1. Perl/CGI: Help writing form data to a file
    By danni.bayn16 in forum Programming Help
    Replies: 4
    Last Post: 08-26-2010, 04:40 PM
  2. Line break while writing txt file using php & form data
    By vaibhavy in forum Programming Help
    Replies: 3
    Last Post: 03-31-2010, 11:28 AM
  3. PHP writing to a file outside a directory
    By NightFox in forum Programming Help
    Replies: 3
    Last Post: 01-23-2009, 05:22 PM
  4. Created and writing form data a to CSV file
    By HeavyMetalMan in forum Free Hosting
    Replies: 0
    Last Post: 12-05-2007, 02:55 PM
  5. Problem writing to a file (php)
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 06-06-2006, 02:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers