![]() |
#1 |
Junior Member
Join Date: Aug 2019
Posts: 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. |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,332
|
INetC
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Aug 2019
Posts: 4
|
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 |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,332
|
File and content of page is the same thing.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Aug 2019
Posts: 4
|
thx. But still only "OK" return Value.
I have inetc: ![]() 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 INTO #__xxx_active (OrderID) VALUES ('".$OrderID."')"; $db->setQuery($query); $db->execute(); echo "true"; } else echo "false"; |
![]() |
![]() |
![]() |
#6 |
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 893
|
Try popping the stack a second time?
netc::post /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 |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Aug 2019
Posts: 4
|
thx ..it work.
super. |
![]() |
![]() |
![]() |
|
Tags |
php |
Thread Tools | Search this Thread |
Display Modes | |
|
|