The simplest answer: You may be trying to open it directly in the browser by sending the browser to the local path it is stored, instead of the HTTP virtual address.
If it is anything more complicated than that, you'll haft wait for someone else to answer 🙂
BTW: It might be helpful to provide your server details, php configuration, stuff like that.