I'm planning to develop a PHP app and deploy it at a free server (http://www.110mb.com...php?un=cesarakg - PHP and PDO_SQLite) but I have some quirks to deal with:
- In my computer I have shell acess (Linux), but no shell in http://www.110mb.com...php?un=cesarakg, so all work needed to do in command line must be done in one computer, and the result transfered via FTP to the server.
- In my computer, the web root of the app will be something like /home/user/public_html/myapp/ and in the http://www.110mb.com...php?un=cesarakg it will be /www/110mb.com/c/e/s/a/r/a/k/g/cesarakg/htdocs/ - under this scheme, the URL to the app will be http://localhost/~user/myapp in my computer, but will be http://cesarakg.110mb.com/ in the Internet (the site is working, but have only a stub page). If all goes right, I will change it to a domain under .com.br, something like http://www.myapp.com.br (e.g.)
- I want to "install" /framework under /home/user/public_html/myapp/ in my computer, so it will be under /www/110mb.com/c/e/s/a/r/a/k/g/cesarakg/htdocs/ in http://www.110mb.com...php?un=cesarakg.
The first problem is to install the app after the command:
So, you an see I have some conversion to do before transfer, like changing the base dir of the database from /home/user/public_html/myapp/protected/data/myapp.db to /www/110mb.com/c/e/s/a/r/a/k/g/cesarakg/htdocs/protected/data/myapp.db, but I think there's a better way to do this, something like don't using full paths, but relative paths. So I was starting thinking how to change this line.
But it is only part of the problem.
What about the scaffolding?
Will this work? And can be safely transferred "as-is" or I will have to use a script to change references in the source code? Any ideas?

Help












