PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Running PHP script from windev application
Running PHP script from windev application
Started by Rudi Werner, Feb., 20 2016 1:12 PM - 6 replies
Connect yourself…
Rudi Werner
#1
Posted on February, 20 2016 - 1:12 PM
Hello,
I need to run a PHP script from a windev application
When i run it from the browser with :
https://Xxxxx.com/test.php
It runs
when i use : HTTPrequest("
https://Xxxxx.com/test.php
")
It is not running en it don't give a error ???
What am i missing ???
Thanks
Report
0
0
Fabrice Harari
#2
Posted on February, 20 2016 - 1:38 PM
Hi Rudi
as a PHP script runs on the server side, the only thing I can think of is that it does not like the default httpheader sent by the httprequest.
Have a look at the help for that function and you'll find how to send a header that pretends to be IE instead of a windev application.
Best regards
Report
0
0
Rudi Werner
#3
Posted on February, 20 2016 - 2:24 PM
Hello Fabrice,
I added a httpheader and now it works but only one time !
When i restart the app it works again for one time ???
Best regards,
Report
0
0
Allard
#4
Posted on February, 20 2016 - 4:17 PM
Hi,
Maybe it keeps 1 session?
Report
0
0
Rudi Werner
#5
Posted on February, 20 2016 - 4:28 PM
And what can i do about that ???
Best regards,
Report
0
0
Attlebax
#6
Registered member
33 messages
Popularité : +2 (2 votes)
Posted on February, 24 2016 - 2:48 PM
I think I had something like this before with PHP. I had to push the address into a variable and then do the HTTPRequest on that.
smystring=NoSpace(Website)+"vehicle.php?"
smystring2 = "action=list"
sTempstring = smystring+smystring2
IF HTTPRequest(sTempstring) THEN
sMyresult = HTTPGetResult()
END
No idea why.
It doesn't matter if it's to a http or https site.
--
Regards,
Norman
Report
0
0
Jarod SAM
#7
Registered member
2 messages
Posted on February, 25 2017 - 5:05 PM
thank's Attlebax its worked for me verry well
Website, smystring, smystring2, sTempstring,sMyresult est une chaîne
Sablier(Vrai)
Website = "http://localhost/GestioPharmBackup_Restore/Dropbox_Upload/"
smystring=NoSpace(Website)+"index.php?"
smystring2 = "action=list"
sTempstring = smystring+smystring2
IF HTTPRequest(sTempstring) THEN
sMyresult = HTTPGetResult()
END
Sablier(Faux)
Info(sMyresult)
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text