D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Programs which start on login

 

On Sun, 13 May 2007 17:47:30 +0100
Neil Winchurst <neil@xxxxxxxxxxxxxxxxx> wrote:

> > > I also have all three programs on my own computer (running Kubuntu
> > > Edgy). At the moment I have not worked out if it is possible to test
> > > any php files which I create, on my own computer.

In most cases, simply copying or symlinking the PHP files to /var/www
is sufficient for you to view the results at http://localhost/ - an
alternative is to create ~/public_html and put the files there. Again,
in most cases, /home/*/public_html is a preset Apache location and it
is referenced using, in your case, http://localhost/~neil/ - as I
mentioned in another email.

> > > So I upload them  to
> > > my web site and test them there. Well that's OK if there is no other
> > > way.

It's actually a very bad way to test - it's long winded, it's prone to
error and it means that 90% of the time, your website is just plain
broken.

> If I create a php file on my computer and want to run it to see if it
> does what I expect, how do I do that? I mean without using my web-site,
> or can't it be done?

Apache, mysql etc. are installed and running, all you need to do is put
the files in a place that apache can find them and ensure you have
database access via mysql -p.

--


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpQTizW7G2vX.pgp
Description: PGP signature

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html