FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
Running PHP script from windev application
Running PHP script from windev application
Débuté par Rudi Werner, 20 fév. 2016 13:12 - 6 réponses
Connectez-vous…
Rudi Werner
#1
Posté le 20 février 2016 - 13:12
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
Signaler
0
0
Fabrice Harari
#2
Posté le 20 février 2016 - 13:38
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
Signaler
0
0
Rudi Werner
#3
Posté le 20 février 2016 - 14:24
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,
Signaler
0
0
Allard
#4
Posté le 20 février 2016 - 16:17
Hi,
Maybe it keeps 1 session?
Signaler
0
0
Rudi Werner
#5
Posté le 20 février 2016 - 16:28
And what can i do about that ???
Best regards,
Signaler
0
0
Attlebax
#6
Membre enregistré
33 messages
Popularité : +2 (2 votes)
Posté le 24 février 2016 - 14:48
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
Signaler
0
0
Jarod SAM
#7
Membre enregistré
2 messages
Posté le 25 février 2017 - 17:05
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)
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte