简体   繁体   中英

PHPinfo returns blank page

I am totally new to programming.. Was installing the wampserver.. I'm using windows, and I have a file called test.php inside the folder C:\\wamp\\www . Inside the test.php file, I have this code

<?php phpinfo(); ?>

Then I opened the firefox browser and then entered the statement below but it returns a blank page. Is the url below right? http://localhost/www/test.php

Am I doing the right thing? Tried using the search function but couldn't get it to work. Thanks!

Your URL should be http://localhost/test.php

The "www" folder is your DocumentRoot folder by default. The URL http://localhost/ will point to that folder. Everything after that works like a normal document path.

A blank page means that an error occurred before output began, and you have error display disabled. Check your web server error log.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM