anuj Posted February 3, 2006 Share Posted February 3, 2006 I've been trying to run a stats system for BF2 for the past few days. I installed EasyPHP, and everything seemed to work fine until it completely shat itself while trying to run. So I installed xampp. Everything is working fine. BF2 can write to the database perfectly. To read from the DB, BF2 calls a couple of pages. For simplicity, I'll just talk about one: getplayerinfo.aspx. The usage is getplayerinfo.asp?pid=YOURPIDHERE It works fine in EasyPHP. It outputs what I expect it to output. When I try it using xampp, though, it just shows the source of the page. Technically, it's a PHP script with an alternate extension, mainly because we can't change what BF2 calls to in order to get data. So why are ASPx extensions working in EasyPHP and not xampp? Any help? Link to comment Share on other sites More sharing options...
segosa Posted February 3, 2006 Share Posted February 3, 2006 It'll depend on your webserver software. Both xampp and EasyPHP come with Apache, so you'll need to add a handler for .aspx so that it's associated with the php binary (or mimetype or something, dunno). AddType application/x-httpd-php .aspx You'll need to add that to your httpd.conf file, which is the configuration for Apache. You'll find that in Apache's folder, wherever it was installed by xampp. Possibly in C:\Program Files\xampp\apache\conf Link to comment Share on other sites More sharing options...
anuj Posted February 3, 2006 Author Share Posted February 3, 2006 It... worked. Thanks segosa. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now