1

I am new to PHP web development. Coming from Java/J2EE background, I am trying to understand how apache( Or any webserver ) loads php project files?

In java all classes are loaded in memory by application server. So you could have singletons,global in-memory data structures connection pooling etc. How does it work in php?

1 Answer 1

4

Each time a request to PHP file (after routing done by mod_rewrite) in Apache Httpd is made, server essentially startups new equivalent of JVM.

You use - among others - cookies, database and files to persist any data.

How does it work in php?

Slow

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

Comments

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.