How to host only precompiled dll file for running wp on IIS?
3 posts
• Page 1 of 1
How to host only precompiled dll file for running wp on IIS?
Referring to Article on setting up wp on IIS using phalanger (http://www.php-compiler.net/blog/2012/w ... langer-3-0), I wonder is it possible to run build file to pre-compile the application in webpages.dll and then remove all of or some of wp php source file file, and still able to run wordpress?
My objective behind this is to host only pre-compiled dll files and not php code on server.
I need your help and guidance on how to do it..
thanks
My objective behind this is to host only pre-compiled dll files and not php code on server.
I need your help and guidance on how to do it..
thanks
- Dharmik
- Posts: 2
- Joined: February 23rd, 2012, 6:11 am
Re: How to host only precompiled dll file for running wp on
Hello,
WordPress is designed the way that it needs to have an access to its source code. It reads it as a data through file system functions(e.g. it needs plugin information header which is just text in plugin source file).
We have the feature that can solve this in our task list, but currently it's not implemented.
WordPress is designed the way that it needs to have an access to its source code. It reads it as a data through file system functions(e.g. it needs plugin information header which is just text in plugin source file).
We have the feature that can solve this in our task list, but currently it's not implemented.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
Re: How to host only precompiled dll file for running wp on
Hi,
It is possible to compile whole PHP web site (or only a part of it) into a single DLL. All the inclusion statements (include, requires, include_once, require_once) will then include scripts from the DLL. Script not found in the DLL will be included from file system.
This method only cannot work for file system functions (fopen, file_exists, file_get_contents etc). So I think plugins (at least the main plugin script, themes and similar parts of WP, that are checked whether they exist using file system functions, have to be present on file system). Files can be in DLL only, on filesystem only, or in both.
Take a look at http://wiki.php-compiler.net/Phpc.exe where is explained the syntax of phpc.exe tool, that compiles scripts into DLL. It will be something like
It is possible to compile whole PHP web site (or only a part of it) into a single DLL. All the inclusion statements (include, requires, include_once, require_once) will then include scripts from the DLL. Script not found in the DLL will be included from file system.
This method only cannot work for file system functions (fopen, file_exists, file_get_contents etc). So I think plugins (at least the main plugin script, themes and similar parts of WP, that are checked whether they exist using file system functions, have to be present on file system). Files can be in DLL only, on filesystem only, or in both.
Take a look at http://wiki.php-compiler.net/Phpc.exe where is explained the syntax of phpc.exe tool, that compiles scripts into DLL. It will be something like
- Code: Select all
phpc.exe /target:web root:. recurse:.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 12 guests