-1

I have developed a web application in php. And i need to host it in the server. But before that i have convert the source code into build. How can i achieve this..

Gnanendra
  • 61
  • 1
  • 3
  • 7
  • 3
    PHP apps run just fine as-is, they don't need to be compiled. Can you clarify what you mean by "convert into build"? – deceze Mar 28 '11 at 06:35
  • 2
    I have never heard about PHP source code build. – Shakti Singh Mar 28 '11 at 06:35
  • I dunno, tools like [phing](http://www.phing.info/trac/) that adopt practices from other languages can sure make it *look* like you're "build"ing something. Maybe we can hold the close party for a bit while we let the asker explain? – Charles Mar 28 '11 at 06:37
  • I am new to Php.. I know ASP.Net, in Asp.net we were Using "BUILD" option. That means, the IDE(Framework) will compile the code and it wil ignore the .aspx.cs file and it will show only .aspx file in that build folder... Is there any options like that in php... – Gnanendra Mar 28 '11 at 07:07
  • AFAIK php can be compiled into bytecode just for deploy desktop application... maybe this can explain it better: http://www.php.net/manual/en/intro.bcompiler.php or, if you need to "protect" your sources... http://www.ioncube.com/ but it's a professional solution. – MiPnamic Mar 28 '11 at 07:08
  • @Gnanendra: PHP is a scripting language, it doesn't need to be built like ASP. – Hoàng Long Mar 28 '11 at 07:14

1 Answers1

2

in Asp.net we were Using "BUILD" option. That means, the IDE(Framework) will compile the code and it wil ignore the .aspx.cs file and it will show only .aspx file in that build folder... Is there any options like that in php

No, nothing like that is necessary for PHP. You just upload your folder full of .php files to the server and that's it.

deceze
  • 510,633
  • 85
  • 743
  • 889
  • Is it...??? Then that can be hack by the hackers right..? In asp.Net no one can able to see the server side scripts...... So its difficult to hack also.. – Gnanendra Mar 28 '11 at 07:21
  • 1
    @Gnanendra, .Net bytecode is [trivial to decompile back into workable source](http://stackoverflow.com/questions/179741/how-do-i-decompile-a-net-exe-into-readable-c-source-code). Visibility of source code has zero to do with being "hacked." If you are truly concerned about others seeing your code or interfering with your data in any way, then you need to be on dedicated hosting, not shared hosting. – Charles Mar 28 '11 at 07:25
  • 1
    @Gnanendra If somebody has access to your server to such an extend that they can access your source code, compiled or not, you're already screwed. The format of the executable files is irrelevant. – deceze Mar 28 '11 at 07:30