Compile PHP

Reply

Join Date: May 2004
Posts: 4
Reputation: gnomix is an unknown quantity at this point 
Solved Threads: 0
gnomix gnomix is offline Offline
Newbie Poster

Compile PHP

 
0
  #1
May 16th, 2004
Hi friend!
I would compile my file php under under Linux.
Have you got an idea of this? (free solution...)

Thanks a lot
[Gnomix]
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,036
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Compile PHP

 
0
  #2
May 16th, 2004
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.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 4
Reputation: gnomix is an unknown quantity at this point 
Solved Threads: 0
gnomix gnomix is offline Offline
Newbie Poster

Re: Compile PHP

 
0
  #3
May 16th, 2004
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 282
Reputation: Roberdin will become famous soon enough Roberdin will become famous soon enough 
Solved Threads: 6
Team Colleague
Roberdin Roberdin is offline Offline
Supreme Evil Overlord

Re: Compile PHP

 
0
  #4
May 16th, 2004
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.
Reply With Quote Quick reply to this message  
Join Date: May 2003
Posts: 307
Reputation: big_k105 is an unknown quantity at this point 
Solved Threads: 2
Team Colleague
big_k105's Avatar
big_k105 big_k105 is offline Offline
PFO Founder

Re: Compile PHP

 
0
  #5
May 17th, 2004
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,036
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Compile PHP

 
0
  #6
May 17th, 2004
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
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 4
Reputation: gnomix is an unknown quantity at this point 
Solved Threads: 0
gnomix gnomix is offline Offline
Newbie Poster

Re: Compile PHP

 
0
  #7
May 18th, 2004
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
Reply With Quote Quick reply to this message  
Join Date: May 2003
Posts: 307
Reputation: big_k105 is an unknown quantity at this point 
Solved Threads: 2
Team Colleague
big_k105's Avatar
big_k105 big_k105 is offline Offline
PFO Founder

Re: Compile PHP

 
0
  #8
May 18th, 2004
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
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 4
Reputation: gnomix is an unknown quantity at this point 
Solved Threads: 0
gnomix gnomix is offline Offline
Newbie Poster

Re: Compile PHP

 
0
  #9
May 19th, 2004
You dont' understand my question...
I have create a software web in php and I commercialize it.. so I would protect my php file!!
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 898
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Solved Threads: 28
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: Compile PHP

 
0
  #10
May 19th, 2004
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).
-Ryan Hoffman

.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC