viewing php includes
Posted: Wed, 2008-05-14 09:14
hi,
i am developing a site that uses various php includes for the different nav bars. i am coding by hand in notepad.
when i preview pages in internet explorer I am unable to see the include content on the preview.
Is there an easy way to preview this? I have read somewhere about creating a local server. I have no experiance of this.
In adition my site files are stored on a usb stick and i tend to write/amend code ona couple of different pc's a day so if there is a quick and portable way for me to preview the content on the fly i'd be grateful to find out how!
many thanks in advance.


Moderator
Posts: 12314
Joined: 2004-06-06
Location: London
Thread moved to 'Off Topic'
Posted: Wed, 2008-05-14 11:49
Thread moved to 'Off Topic' - not a CSS matter!
Have a google for 'xampp' download the package version suited to your computer install and you'll have a working dev server complete with mySQL and PHP.
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me
newbie
Posts: 2
Joined: 2008-02-17
Setting up a local server is
Posted: Mon, 2008-05-26 13:04
Setting up a local server is pretty easy.
http://www.en.wampserver.com/
I assume you're using Windows. The linked program installs the entire WAMP Solution Stack (Windows Apache MySQL PHP) for you. Install it and you will have a folder called htdocs. It is the root folder for your HTML files. Open up IExplore and point it at http://localhost, and you can see your files with PHP working.
There may be some security issues, though, you are basically setting up a server on your computer. I'm not an expert on that so um... you may want to check on how to turn off the actual ability of others to access your server, or at least keep the services off when you're connected to the internet.
Guru
Posts: 2528
Joined: 2005-12-14
Location: Victoria British Columbia
I have used both and prefer
Posted: Mon, 2008-05-26 15:05
I have used both and prefer xampp as being much more compact and less bloated, and with it's directory structure making more sense and similar to unix servers with the localhost address being in the htdocs directory.
But either works and if you want to do anything at all complex with development you really do want your own server running on http://localhost.
I could change my plea to guilty,
but I don't think it would stick.
Ed Seedhouse