Nsis PHP return value as webpage content

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Sonicer
    Junior Member
    • Aug 2019
    • 4

    Nsis PHP return value as webpage content

    I have parameters And webpage.
    I need call www.xxx.php?c=parameters And the PHP return value with echo "value"
    Is it possible get this value.. get content of webpage.
    THX.
  • Anders
    Moderator
    • Jun 2002
    • 5643

    #2
    INetC
    IntOp $PostCount $PostCount + 1

    Comment

    • Sonicer
      Junior Member
      • Aug 2019
      • 4

      #3
      I know this plugin. But there Is many samples that show download file and then get the content of filé not content of webpage.

      Can you get mě some sample

      Comment

      • Anders
        Moderator
        • Jun 2002
        • 5643

        #4
        File and content of page is the same thing.
        IntOp $PostCount $PostCount + 1

        Comment

        • Sonicer
          Junior Member
          • Aug 2019
          • 4

          #5
          thx. But still only "OK" return Value.

          I have
          inetc:ost /NOCANCEL /TOSTACK /SILENT "http://www.xxx.com/Addr.php$Parameter$URL" $0 /END
          Pop $0 # return value = exit code, "OK" if OK
          MessageBox MB_OK "info: $0"
          still ok ..also if php return false....Here is the php code:

          if($body==null)
          {

          $query="INSERT IGNORE INTO #__xxx_active (OrderID) VALUES ('".$OrderID."')";
          $db->setQuery($query);
          $db->execute();
          echo "true";
          }
          else
          echo "false";

          Comment

          • JasonFriday13
            Major Dude
            • May 2005
            • 930

            #6
            Try popping the stack a second time?

            netc:ost /NOCANCEL /TOSTACK /SILENT "http://www.xxx.com/Addr.php$Parameter$URL" $0 /END
            Pop $0 # return value = exit code, "OK" if OK
            Pop $1 # maybe it's here?
            MessageBox MB_OK "return: |$0|, info: |$1|"
            "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
            NSIS 3 POSIX Ninja
            Wiki Profile

            Comment

            • Sonicer
              Junior Member
              • Aug 2019
              • 4

              #7
              thx ..it work.
              super.

              Comment

              Working...
              X