Grimmy's Recent Forum Activity

  • FIXED!

    The reason PHP stopped was because I was messing with folder (not file) permissions and infact this WAS the root cause of the initial problem.

    For some reason, once I messed with the folder permissions the AJAX calls now work from inside the html page.

    Got there in the end. Hopefully this will help someone in the future too.

    Thanks again!

    <img src="smileys/smiley32.gif" border="0" align="middle" />

  • Hmm, I'm using Chrome & no weird extensions. :)

    For some reason even the php file has stopped working although I haven't changed it.

    Does it matter that I am using the free trial version?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • okay thanks. I'll keep looking and post here when I figure it out.

    Thanks for your help!

  • The html file is on myserver.com/Uploader01 and the php file is in myserver.com/UploadTest.

    Can't see why there would be a security issue. DO they need to be in the same folder too?

  • The data file does contain the TEST1234 string so I do have permission and the PHP is fine.

    When I try the same with Construct 2 calling the php file it doesn't work. I even removed the & but still no success.

  • Here is the dropbox link to the file. The php on it's own works fine.

    dropbox.com/s/nnpq4aixls3hyz6/NoUpload.capx

  • Yeah, I already have a data.txt file there (in the same folder as the test.php file) but it doesn't update.

    I don't have any error information other than I am receiving an AJAX:On error message.

  • Cool, but i still cant get it working. (It still errors on the server)

    My path is:

    "http://myserver.com/test.php?myVar="&URLEncode(TextBox.Text)

    Is something wrong with that?

    Cheers

  • I saw a tutorial on reading data from a web server, but nothing on saving data to an online server.

    I tried using the AJAX Post To URL but I keep getting an error. (I am uploading my build to the same server so crossdomain security shouldn't be the issue)

    All I am trying to do is to upload some text from a form to a text file. From that I hope then to be able to upload images too. The Construct 2 form bit is easy enough, I just need to know to know what the AJAX parameters should be and/or what PHP do I need to call?

    Cheers

Grimmy's avatar

Grimmy

Member since 20 Nov, 2012

Twitter
Grimmy has 2 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

17/44
How to earn trophies