problem in httpRequest

Just starting out? Need help? Post your questions and find answers here.
skinkairewalker
Posts: 120
Joined: Tue Jun 14, 2016 7:17 pm

problem in httpRequest

Post by skinkairewalker »

hi everyone m i have problem with execute php file with httpRequest.

this is my SpiderBasic Code :

Code: Select all

ExamineDesktops()

Global deskwidth.i = DesktopWidth(0)
Global deskheight.i = DesktopHeight(0)

OpenWindow(0,0,0,deskwidth,deskheight,"ERP",#PB_Window_Background)
TextGadget(0,0,0,200,200,"---")
SetGadgetColor(0,#PB_Gadget_FrontColor,RGB(255,0,0))
Procedure HttpGetEvent(Success, Result$, UserData)
  Debug Success
  Debug Result$
  If Success
    SetGadgetText(0,Result$)
      Debug Result$
    Else
      Debug "HTTPRequest(): Error"
    EndIf

EndProcedure

HTTPRequest(#PB_HTTP_Get, "/teste.php", "", @HttpGetEvent())



this is my PhpCode :

Code: Select all

<?php 


echo "Olá Mundo"; 


?>

i try use this with Xampp and Webhosting place , but both dont works ...
what can i do to this works ?