PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
PHPExecute() always empty result
PHPExecute() always empty result
Started by Sebastian Arnold, Jan., 10 2011 2:04 PM - 1 reply
Connect yourself…
Sebastian Arnold
#1
Posted on January, 10 2011 - 2:04 PM
Has anyone tried to use the PHPExecute() function in WebDev?
Whatever I try I always get an empty result.
This is my button click code in WebDev:
s
Phpres is
string
IF
fFileExist
(
"phptest.php"
)
s
Phpres
=
PHPExecute
(
"phptest.php"
)
Info
(
"sPhpres: "
+
s
Phpres
)
ELSE
Info
(
"File missing!"
)
END
And these are my unsuccessfull trials with phptest.php:
FUNCTION
phptest
(
)
{
$res
= '
abc
'
;
RETURN
(
$res
)
;
}
{
$res
= '
abc
'
;
RETURN
(
$res
)
;
}
{
$res
= '
abc
'
;
echo $res
;
}
$res
= '
abc
'
;
RETURN
(
$res
)
;
Any help appreciated
TIA
Sebastian
Report
0
0
Sebastian Arnold
#2
Posted on January, 12 2011 - 7:15 PM
I got help from PCSoft Support:
According to Patrick the PHP-Code should look like this:
<
?
php
echo
"Hello PHP !"
;
?
>
I tried this and it worked ok if I call it from localhost:
s
MyScript is
string
=
"http://localhost/script.php"
s is
string
s
=
PHPExecute
(
s
MyScript
)
Info
(s)
But if I change the script source to a path on one of my servers I get this error message
s
MyScript is
string
=
"http://mydomain.tld/mypath/script.php"
Strange thing is that although the error message says the script can't be found it runs perfectly when I enter the same link in the browser.
If I simply change the path to
s
MyScript is
string
=
"script.php"
I only get an empty result.
Is there anybody out there working with PHP and WebDev?
TIA
Sebastian
Report
0
0
→ Go back to WEBDEV 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