Phalanger install issue
2 posts
• Page 1 of 1
Phalanger install issue
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?
- RobertMcCabe
- Posts: 1
- Joined: June 21st, 2016, 8:37 pm
Re: Phalanger install issue
Hi,
You have to add reference to PhpNetClasslibrary.dll within your web.config. It should be added by default when creating new web project.
Add following into your web.config, into <configuration> section:
You have to add reference to PhpNetClasslibrary.dll within your web.config. It should be added by default when creating new web project.
Add following into your web.config, into <configuration> section:
- Code: Select all
<phpNet><classLibrary><add assembly="PhpNetClassLibrary, Version=4.0.0.0, Culture=neutral, PublicKeyToken=4af37afe3cde05fb" /></classLibrary></phpNet>
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 13 guests