0

I'd like to basically turn a php website with database into a .net executable file. I'd like everything to be internal. Is this possible or will I have to rewrite the entire project into C#?

6
  • 1
    It MAY be possible. PHP can be compiled into an executable under some, but NOT ALL circumstances. You'd be better off rewriting. Commented Jul 23, 2012 at 16:08
  • It is possible but not recommended, rewritting to C# would be your best/easiest option. Commented Jul 23, 2012 at 16:09
  • Curious to see how the webpages would be transformed into winforms Commented Jul 23, 2012 at 16:10
  • 1
    Your "solution" is "put everything in an .exe". What's the actual "goal"??? I'd strongly urge you to revisit your requirements and re-think other possible solutions. I honestly think you'll find much more reasonable "solutions". IMHO... Commented Jul 23, 2012 at 16:10
  • @Snuffleupagus: why winforms? use MVC4.... Commented Jul 23, 2012 at 16:11

1 Answer 1

3

You have to (should) rewrite the project in C#.

Of course, it is technically possible to integrate everything you need into one executable .NET file, but this solution will make use of lots of unsupported stuff, temp files or PInvoke calls, which you do not want to have in a managed environment.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the suggestion. I was told that the computers using the app were ancient and it needs some vb5 type of application to assure that it ran on all systems.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.