Apache helper

Monkey Targets Forums/HTML5/Apache helper

Suco-X(Posted 2011) [#1]
Hi Guys.

If you want to use the Apache server (Which supports PHP) for Ajax things, take a look at my post.

The Problem: Marks Mini-Server doesnīt support PHP (because heīs not god) and if you want to work with PHP and Apache, you have to copy your project into your local htdocs folder and you have to Copy the http://localhost/... Url into your browser. Everytime if you want to execute your Monkey Program. Hard thing, I know, but hereīs the solution.

Starting BlitzMax, execute the following code:



or use this exe file [url=http://www.blitzforum.de/upload/file.php?id=10754[/url]

Name this file apache_helper.exe and copy it to your monkey/bin folder. Same folder within Mini-Server exists.
Create in the same folder the file config.apache.txt and add one line to your htdocs folder. In my case and as an example for the path, C:\xampp\htdocs\ .
Then open config.winnt.txt and change HTML_PLAYER="${TRANSDIR}\mserver_winnt.exe" to HTML_PLAYER="${TRANSDIR}\apache_helper.exe". Now start your Apache Server and everytime you execute a monkey program, apache_helper will copy the files into your htdocs folder and execute it. If you work with php scripts, please create them in the data folder and use it with data/phpscript.php.

Mf Suco


Difference(Posted 2011) [#2]
Suco-X just told me he made this, but heres my take on the same thing: