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
18 6114
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?
@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
Atli 5,058
Expert 4TB
Ok, so it looks like your server is working just like it should.
What is the problem then?
@Atli
:) the Problem is that the project is not working when i access my project directory it shows me a blank page
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.
@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
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:
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.
@Atli
This phpinfo() function Works Great and shows me all the information regarding my PHP
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: -
error_reporting(E_ALL);
-
ini_set('display_errors', true);
That should show you if there are any errors in that code.
@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
@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?
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?
@Atli
I had this problem once, when my PHP installation had a broken library.... but that's rather rare.
@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 : - <? include("companyval.php");
-
include("../include/conf.php"); ?>
-
<?include("1header.php");?>
-
<?include("1footer.php");?>
its just some included files
do you have short tags enabled (see phpinfo())? generally, it is best to use the full tag (<?php).
further,
is invalid ("<?include" is not a valid processing instruction), better use - <?php include 'file.php'; ?>
@Dormilich
GOD BLESS YOU !
Thanks alot
R u married :)
yea..... small cause, big trouble (if it were always that simple)
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
by: Peter Olcott |
last post by:
www.halting-problem.com
|
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();...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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
|
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...
| |