Short answer: no.
Putting your application to the production environment (the server) can be complicated process (usually called "deployment"). Shared hosts are limiting your control indeed, but most of them provide you enough flexibility to run a "common" PHP application. Things you will probably need:
- Find out where is the php.ini on the host
- Compare it with your local php.ini
- Use the
__DIR__
magic constant (that always gives you the directory of the file where you wrote it). Use it for includes and file copy/delete path.
If you use a general include file at the top of all your scripts, then you can write this in there: define('MY_ANCHOR', dirname(__DIR__));
. (well, they usually call it BASE_PATH or ROOT_PATH, but you get the idea). After that you can use it for every other include and file/directory path like this:
include( MY_ANCHOR.'/CoolThings/GimmeThis.php' );
If you are using an index.php
and route all requests through that (single entry point), then put that MY_ANCHOR thingy on top of that file.