Forum Moderators: coopster
1. I preview a simple index.php page locally (from Dreamweaver) and it works okay. When I click a link on the index.php page to another file (contact.php) in the same local directory I get a 404. I suspect the problem is with how I defined the site in Dreamweaver but have tested variations with no luck. Any ideas?
2. Second problem is like the first, only this time I try to include a 'header.inc.php' file in the index.php from a folder called 'includes'. I get a two fold error as follows:
Warning: include(includes/header.inc.php) [function.include]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\TMPeds49f9i9l.php on line 6
Warning: include() [function.include]: Failed opening 'includes/header.inc.php' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\TMPeds49f9i9l.php on line 6
I'm going around in circles with this. I've tried numerous sites and help topics that seem to say different things in a language that if I understood in the first place I'D probably be the guy giving the answers.
Any help would be greatly appreciated at this stage. Thanks!
What it might be an idea doing is downloading an all in one installation of Apache, MySQL and PHP and installing that (something like XAmp). This way you can have your sites running locally, exactly the same as it would remotely, and preview them through your browser keeping all file structures etc intact.
It took a load of the headache out of it for me.
Ally
My problem could be as simple as having [localhost...] in the remote directory in Dreamweaver instead of something else.
Do you preview from Dreamweaver, was that problem solved with the single point installation of all three?
Ally
there are a couple threads in the PHP Library [webmasterworld.com] that may help as well
Installing a new web server: Apache2, PHP5, MySQL4 and PHPmyAdmin. [webmasterworld.com]
Installing PHP5 Under Windows XP and Apache [webmasterworld.com]
I installed Xampp which was easy to do. I've also been able to edit one of my PHP sites locally which saves me so much time. I'm still having problems setting up the virtual host but expect to have that cracked soon enough. It seems the more attempts I make at setting up apache the more I begin to understand the lingo too which is a pleasent side effect :) Thanks for all your help!
It seems the more attempts I make at setting up apache the more I begin to understand the lingo too which is a pleasent side effect
Necessary, if you ask me! The more you know about the HTTP server you are using the easier it becomes to resolve issues. The pleasant side effect there is that you also begin to analyze and design code in the light of that knowledge.
Nice work.