Newbie Question
Posted by: Keelie (---.zone5.bethere.co.uk)
Date: October 08, 2009 09:41PM

I've just installed WampServer without any apparent problems.
All I want to do is to be able to create or change pages and check them at those times I have no internet access to upload files.

Copied my website into the 'www' folder and can access the pages via the 'www directory' option in the control panel BUT, the index sidebar is not being displayed.
These *are* .php pages !

I'm using :
<?php
require("sidebar.txt"winking smiley
?>
to call this file and everything works OK once pages are uploaded to my ISP's server.

Looks like I need to configure 'something' . . . but what ?

Any assistance appreciated

Options: ReplyQuote
Re: Newbie Question
Posted by: yfastud (Moderator)
Date: October 09, 2009 12:22AM


Options: ReplyQuote
Re: Newbie Question
Posted by: Keelie (---.zone5.bethere.co.uk)
Date: October 09, 2009 01:25AM

My apologies, I think you misunderstood my question.

I've already got the website (around 90 pages).

As an example of the problem I'm experiencing.
The page at : [www.ian-stewart.eu] has a sidebar menu.
This sidebar menu does NOT (at present) dislay in WAMP !

The header, footer and left-hand column DO display as they should.
Obviously a single column page, which has no PHP script, (these are HTML) does dislay fully in WAMP.

Options: ReplyQuote
Re: Newbie Question
Posted by: technoman (---.acanac.net)
Date: October 09, 2009 02:14AM

sidebar displays for me when i clicked on your website but it wont display in the control panel for wamp since this is your website you must have a admin panel in your website ?

correct me if Im wrong

Options: ReplyQuote
Re: Newbie Question
Posted by: Keelie (---.zone5.bethere.co.uk)
Date: October 09, 2009 12:23PM

'sidebar wont display in the control panel for wamp since this is your website'

Looks like I may be misunderstanding something here.

The point of my installing WAMP (with the Apache and PHP support) on my local machine was to *exactly replicate*
a webpage as it would be rendered once uploaded to my ISP's server. That page would include a sidebar menu.

Are you saying that it is not possible to configure WAMP to do this ?

Options: ReplyQuote
Re: Newbie Question
Posted by: toumimi (---.11.115-78.rev.gaoland.net)
Date: October 09, 2009 01:38PM

- Look at the source page in the browser
- Make sure you don't use short open tags like <? instead of <?php
- Check path to the file => in the same folder

"Control panel ... www directory"
Do you mean wamp menu with www directory option ?

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Newbie Question
Posted by: Keelie (---.zone5.bethere.co.uk)
Date: October 09, 2009 02:22PM

As I said upthread, I'm using :

<?php
require("sidebar.txt"
?>

in the webpages to call the script.

I'd stress that these pages all display correctly once uploaded and all validate at W3C.
It's therefore not a problem with the page content.


'Do you mean wamp menu with www directory option ?'

Yes, the WAMP menu box which has WAMPSERVER 2.0 on the left and shows :

localhost (shows server configuration)
phpMyAdmin (shows My SQL localhost)
www directory (opens C:\wamp\www folder on my hard drive)
Apache
PHP
My SQL

As I said, on opening a page on this machine (using the www directory as above) the header, footer and main (left hand) panel render correctly (just as they do if I open them directly with FF).
As all this information is HTML and is contained within the page, it should.

The php 'require' command is being ignored (as it is if opening the page directly with FF on my local machine).


The point of my installing WAMP (with the Apache and PHP support) on my local machine was to *exactly replicate* a webpage as it would be rendered once uploaded to my ISP's server. That page would include a sidebar menu.

Is it possible to configure WAMP to do this ?
If so, what do I need to add / change in the configuration ?

Options: ReplyQuote
Re: Newbie Question
Posted by: toumimi (---.11.115-78.rev.gaoland.net)
Date: October 09, 2009 02:30PM

Quote

Is it possible to configure WAMP to do this ?

Yes, it's done by default on any webserver, so you must do something wrong...

Are you sure you are loading your page using 'localhost' url and not 'file://c:/...' ?
Click on localhost on wamp menu
Look into projects section for your project (folder) you created in www folder
Click on it and it will launch www/your_project/index.php

If it is just a problem with a local include (or require), then no problem with wamp.
Problem is how you load your project....

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Newbie Question
Posted by: Keelie (---.zone5.bethere.co.uk)
Date: October 11, 2009 03:11PM

Thank you !

Problem solved. I was not loading the pages as you describe.

I had an idea it was something I was doing (or had not done).


There was no problem with the PHP 'include' in my pages, I only included those comments in my original post to show that the HTML was correct and that pages were rendered correctly once uploaded.

I'm not sure why that led us down a blind alley.

Thanks again for the help.

Options: ReplyQuote


Sorry, only registered users may post in this forum.