943,552 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 87881
  • PHP RSS
You are currently viewing page 1 of this multi-page discussion thread
May 16th, 2004
0

Compile PHP

Expand Post »
Hi friend!
I would compile my file php under under Linux.
Have you got an idea of this? (free solution...)

Thanks a lot
[Gnomix]
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gnomix is offline Offline
4 posts
since May 2004
May 16th, 2004
0

Re: Compile PHP

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.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
May 16th, 2004
0

Re: Compile PHP

well but there is "zend encoder" to compile php page... but it's have a hight price... do you know a free solution? or a good obfuscator

thanks
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gnomix is offline Offline
4 posts
since May 2004
May 16th, 2004
0

Re: Compile PHP

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.
Team Colleague
Reputation Points: 63
Solved Threads: 6
Supreme Evil Overlord
Roberdin is offline Offline
282 posts
since Feb 2003
May 17th, 2004
0

Re: Compile PHP

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
Team Colleague
Reputation Points: 36
Solved Threads: 2
PFO Founder
big_k105 is offline Offline
308 posts
since May 2003
May 17th, 2004
0

Re: Compile PHP

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
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
May 18th, 2004
0

Re: Compile PHP

Quote 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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gnomix is offline Offline
4 posts
since May 2004
May 18th, 2004
0

Re: Compile PHP

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
Team Colleague
Reputation Points: 36
Solved Threads: 2
PFO Founder
big_k105 is offline Offline
308 posts
since May 2003
May 19th, 2004
0

Re: Compile PHP

You dont' understand my question...
I have create a software web in php and I commercialize it.. so I would protect my php file!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gnomix is offline Offline
4 posts
since May 2004
May 19th, 2004
0

Re: Compile PHP

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).
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: How to populate Combox on checkbox ??
Next Thread in PHP Forum Timeline: redirect in PHP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC