473,322 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

WAMP5 Problem

106 100+
Hi Guys,

Just installed WAMP5 and placed my project in the WWW folder but whenever i access my project folder it shows me a blank page although my project folder got an index file .
i don't know what's wrong !!

ANy Help
Jan 18 '09 #1
18 6114
Dormilich
8,658 Expert Mod 8TB
which directory is defined as the document root in the httpd.conf file? if you just open http://localhost/ you should see the standard apache "it works"-page (unless you have removed it), did that work for you?
Jan 18 '09 #2
jessy
106 100+
@Dormilich

When i open that page i do not see It works But i see a Lovely page for the Wamp called WAMP5 Homepage containing a list with my projects and some other stuff
Jan 18 '09 #3
Atli
5,058 Expert 4TB
Ok, so it looks like your server is working just like it should.
What is the problem then?
Jan 18 '09 #4
jessy
106 100+
@Atli
:) the Problem is that the project is not working when i access my project directory it shows me a blank page
Jan 18 '09 #5
Atli
5,058 Expert 4TB
Ok. How are you accessing the directory?
I am assuming you are trying to view it in a browser?

If so, using a file path, like "C:\www\mypage.php", will not work.
If you want to have the PHP page displayed as a PHP page, you need to go through the HTTP server, which means using a "http://localhost/..." path.

If you are already doing that, and you are still getting a blank page, check the source. See if you are getting the PHP code sent as plain-text. That would indicate that your HTTP server is not recognizing the .php extension as PHP code.
Jan 18 '09 #6
jessy
106 100+
@Atli
Yes im doing so http://localhost/... but still a blank page
how shall i fix that my HTTP server is not recognizing php extension
Jan 18 '09 #7
Atli
5,058 Expert 4TB
Is the PHP code showing up in the source sent to the browser?

Try going to the web-root and create a file called "phpinfo.php", and put this code into it:
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. phpinfo();
  3. ?>
Then do "http://localhost/phpinfo.php".

If that gives you a blank page, do "View source" (or whatever version of that your browser uses). If you see the code I just posted in the source, then you have a problem.

Then you would have to configure your Apache server so that it recognizes PHP. And how that would work depends on how you installed the server and which version of Apache you use.
Jan 18 '09 #8
jessy
106 100+
@Atli
This phpinfo() function Works Great and shows me all the information regarding my PHP
Jan 18 '09 #9
Atli
5,058 Expert 4TB
That means your server is configured correctly.

There must be a problem with the other page then.
Try enabling error reporting in that code. Just put these two lines at the top of the script:
Expand|Select|Wrap|Line Numbers
  1. error_reporting(E_ALL);
  2. ini_set('display_errors', true);
That should show you if there are any errors in that code.
Jan 18 '09 #10
jessy
106 100+
@Atli

i enabled error reporting but still shows me a blank page !
i have an index.php script in the project ..can this be the problem ? maybe its conflicting with the index.php of the WAMP
Jan 19 '09 #11
Dormilich
8,658 Expert Mod 8TB
@jessy
I don't think so. does your project reside directly in the document root folder or has it a (sub)folder of its own?
Jan 19 '09 #12
Atli
5,058 Expert 4TB
Yea, Dormilich is right. If there was a conflict, you would be seeing the other index file, not a blank page.

What is the exact URL you are using, and where exactly is this index file you want displayed?

Assuming you are using the correct URL, and that the files are in the correct place, then I guess the problem would have to be with your PHP code.
Could we see that?
Jan 19 '09 #13
Dormilich
8,658 Expert Mod 8TB
@Atli
I had this problem once, when my PHP installation had a broken library.... but that's rather rare.
Jan 19 '09 #14
jessy
106 100+
@Atli
D:\wamp\www\Project_1\company this is the path of my project and the index file is in the company folder
and this is the index file as well :
Expand|Select|Wrap|Line Numbers
  1. <?  include("companyval.php");
  2.     include("../include/conf.php"); ?>
  3. <?include("1header.php");?>
  4. <?include("1footer.php");?>
its just some included files
Jan 19 '09 #15
Dormilich
8,658 Expert Mod 8TB
do you have short tags enabled (see phpinfo())? generally, it is best to use the full tag (<?php).

further,
Expand|Select|Wrap|Line Numbers
  1. <?include('file.php');?>
is invalid ("<?include" is not a valid processing instruction), better use
Expand|Select|Wrap|Line Numbers
  1. <?php include 'file.php'; ?>
Jan 19 '09 #16
jessy
106 100+
@Dormilich
GOD BLESS YOU !

Thanks alot
R u married :)
Jan 19 '09 #17
Dormilich
8,658 Expert Mod 8TB
yea..... small cause, big trouble (if it were always that simple)
Jan 19 '09 #18
Atli
5,058 Expert 4TB
So it all boils down to a syntax error. Those things will be the death of us all :]

Still, you should have seen the code in the source of your page. Didn't you check that a few posts back?

In any case, glad it all worked out.
Jan 19 '09 #19

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
8
by: comp.lang.php | last post by:
I installed WAMP5 on my WinXP box which works just fine on its own, and I found a practical way of handling my short-tag PHP script via .htaccess: php_flag short_open_tag on To ensure my...
4
by: Christophe Charron | last post by:
Hi, is there a known bug on php 5.2.4 in wamp5 (http://www.wampserver.com/ en/index.php) about having different kinds of printing for some numeric values. This script works perfectly on an...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.