Phalanger install issue
Posted: June 21st, 2016, 8:43 pm
I installed the latest Phalanger and PHP tools from the Visual Studio Gallery. However I get
"Call to undefined function: 'strpos'" when I try to run even a simple web app:
default.php :
Other PHP functions like define also give an undefined error, the echo alone works.
Aany ideas?
"Call to undefined function: 'strpos'" when I try to run even a simple web app:
default.php :
- Code: Select all
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
echo 'You are using Internet Explorer.<br />'; }
?>
</body>
</html>
Other PHP functions like define also give an undefined error, the echo alone works.
Aany ideas?