| | |
Compile PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
PHP code doesn't really get compiled as you would compile a C++ program, for example. Rather the code is executed by your web server client when someone accesses the php page. I don't know the technical term for what it's called ... but you need a web server such as Apache (comes with most linux distributions otherwise www.apache.org) that can server your php scripts to clients connecting to it.
•
•
Join Date: Feb 2003
Posts: 282
Reputation:
Solved Threads: 6
www.php.net
Go to downloads... downlaod what you need... absolutely free and open source.
PHP is compiled at run time. The Zend Optimiser merely cleans up the code to make it compile faster... but it is always compiled at run time; ie, when a user accesses the webpage.
Go to downloads... downlaod what you need... absolutely free and open source.
PHP is compiled at run time. The Zend Optimiser merely cleans up the code to make it compile faster... but it is always compiled at run time; ie, when a user accesses the webpage.
yeah as said before you dont need a compiler to say, for php. all you do is name it .php file and put it in your web directory and access it with a browser and the server with parse the code and show the output. but you will need php on your system and the module compiled into apache to do this so go to php.net as said and download it so you can install it to make it work
good luck and have fun
good luck and have fun A free alternative to Zend is Turck mmCache. According to their website:
Turck MMCache is a free open source PHP accelerator, optimizer, encoder and dynamic content cache for PHP. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. Also it uses some optimizations to speed up execution of PHP scripts. Turck MMCache typically reduces server load and increases the speed of your PHP code by 1-10 times.
To be perfectly honest, Daniweb has always used mmCache
Turck MMCache is a free open source PHP accelerator, optimizer, encoder and dynamic content cache for PHP. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. Also it uses some optimizations to speed up execution of PHP scripts. Turck MMCache typically reduces server load and increases the speed of your PHP code by 1-10 times.
To be perfectly honest, Daniweb has always used mmCache
•
•
Join Date: May 2004
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Roberdin
www.php.net
Go to downloads... downlaod what you need... absolutely free and open source.
PHP is compiled at run time. The Zend Optimiser merely cleans up the code to make it compile faster... but it is always compiled at run time; ie, when a user accesses the webpage.
My question isn't how compile php from his tar.gz (download from www.php.net) but compile a my script in php so others people can't view my code in my .php page, also if open .php with a text editor
you dont have to worry about that cause the min your access a php script from a browser it will parse the information and all the person viewing the site could see is html. like if you go and look at a php page using any browser and then go view source code all you will see is the html output of the php program
i hope this helps if not im not quite sure what you are looking for
i hope this helps if not im not quite sure what you are looking for I don't actually think this is possible.
And everyone, PHP is never compiled. It is a scripting language; therefore it is interpreted (at runtime). A web language like ASP.NET is fully compiled (at the page's first view or at design time into a managed dll file).
And everyone, PHP is never compiled. It is a scripting language; therefore it is interpreted (at runtime). A web language like ASP.NET is fully compiled (at the page's first view or at design time into a managed dll file).
-Ryan Hoffman
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
![]() |
Similar Threads
Other Threads in the PHP Forum
- Previous Thread: can I have more than one htaccess file in a site? as in inside subdirectories...
- Next Thread: mysql error
| Thread Tools | Search this Thread |
.htaccess alexa apache api array beginner beneath binary broadband broken cakephp checkbox class cms code convert cron curl database date display dynamic echo email emptydisplayvalue encode error fcc file files folder form forms function functions google howtowriteathesis href htaccess html image images include insert ip javascript joomla key keywords limit link login mail mail() memberships menu mlm multiple multipletables mysql mysql_real_escape_string network oop open passwords paypal pdf php provider query radio random redirect remote rss script search securephp server sessions smtp source space sql strip_tags syntax system table template tutorial update upload url user validator variable video voteup web youtube






