User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 26

Thread: How would I get data from a php script?

  1. #11
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How would I get data from a php script?

    I think it depends on the get/post method that you're using, or some other small factor - it's definitely possible to get a plain PHP script to return a simple easily-parsed string without having to pare off a heap of tags, as the tutorial covers that.

  2. #12
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How would I get data from a php script?

    I'm fairly sure you get a plain return if you use "GET /file.php" without a http version number or headers. It's a left-over from http 0.9 iirc and web servers don't all support it, so it's kind of stupid to use.

  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    England
    Posts
    820
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How would I get data from a php script?

    Oh... should I change it then? Or not as it's already working on my web server?

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    England
    Posts
    820
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How would I get data from a php script?



    Is that code not right then?

  5. #15
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How would I get data from a php script?

    I hope not, as I've just taught people to use something remarkably similar.

  6. #16
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: How would I get data from a php script?

    Quote Originally Posted by Steven
    Is that code not right then?
    Doesn't look right to me. It never connects, and for some reason it attempts to host a server. If I were coding it, it'd also fully adhere to the HTTP 1.1 standard. I'm sure there are many examples on the old CT forum at least.
    .:::.Joshtek.:::.

  7. #17
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: How would I get data from a php script?

    I see a listen command up above, I have never needed that to send or recieve from a PHP page using MooSock.

  8. #18
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    England
    Posts
    820
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How would I get data from a php script?

    Doesn't look right to me. It never connects, and for some reason it attempts to host a server.
    I see a listen command up above, I have never needed that to send or recieve from a PHP page using MooSock.
    How comes it works in my game? :confused: It actually works flawlessly. I've heard that some people have lots of trouble with Moosock, but I haven't had 1 after following DavidN's tutorial.

    Would you guys like to upload a .mfa of it working? Might help me to see if it works on everyones PC.

  9. #19
    No Products Registered

    Join Date
    Oct 2006
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How would I get data from a php script?

    Quote Originally Posted by Joshtek
    Quote Originally Posted by Steven
    Is that code not right then?
    Doesn't look right to me. It never connects, and for some reason it attempts to host a server. If I were coding it, it'd also fully adhere to the HTTP 1.1 standard. I'm sure there are many examples on the old CT forum at least.
    I'm quite familiar with networking terminology. Listening on a port means that your application is waiting for another computer to connect to yours on that port, just like a server program. So that line is completely unnecessary.

  10. #20
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How would I get data from a php script?

    It seems that's right - I saw that in the first MooSock tutorial I ever read and just assumed that it meant "wait for a response coming back on port 80". This requires quite a major edit.

Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. Replies: 17
    Last Post: 10th July 2013, 01:46 PM
  2. exchange data with HTTP server - sending/receiving values from a php script
    By Chokito in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th November 2012, 08:58 PM
  3. retrieve data from python script
    By cel in forum Python Scripting
    Replies: 2
    Last Post: 8th July 2010, 09:40 PM
  4. how I can use the VB .NET with .net script
    By FARAWAY_HELP in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd May 2009, 04:22 AM
  5. Dot Net Script
    By danjo in forum Extension Development
    Replies: 44
    Last Post: 16th October 2008, 10:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •