Hi You need to check if your Apache is up and running do the following Right click on My Computer and select "manage" Next click on Services and Applications After that Click on Services And check if Apache is running Chetan Dattaram Rane | Software Engineer | Persistent Systems chetan_rane@xxxxxxxxxxxxxxxx | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014 Innovation in software product design, development and delivery- www.persistentsys.com -----Original Message----- From: V S Rawat [mailto:vsrawat@xxxxxxxxx] Sent: Wednesday, August 06, 2008 2:53 PM To: php-general@xxxxxxxxxxxxx Subject: Re: Newbie problem: Php script not running in browser. On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote: > On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat <vsrawat@xxxxxxxxx> wrote: >> I have put the first php script to hello.php file: >> >> <html> >> <head> >> <title>PHP Test</title> >> </head> >> <body> >> <?php echo '<p>Hello World</p>'; ?> >> </body> >> </html> >> >> I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b >> >> http://localhost/ is E:\wamp\www >> >> I put the hello.php file to E:\wamp\www. drag/dropping it to browser >> shows the above source code in ff3/ie6 >> >> putting it to E:\wamp\bin\apache\apache2.2.8\htdocs and drag/dropping it >> to browser shows the same source code. >> >> However, putting it to E:\wamp\www\php_ex but giving >> http://localhost/hello.php shows a blank screen >> >> I have forgotten some situation where it had appeared as >> >> Hello World >> >> '; ?> >> >> on the browser. >> >> E:\wamp\bin\apache\apache2.2.8\conf\httpd.conf file has the lines: >> LoadModule php5_module "e:/wamp/bin/php/php5.2.6/php5apache2_2.dll" >> AddType application/x-httpd-php .php >> AddType application/x-httpd-php .php3 >> >> On double clicking the php file in windows explorer, it opens in notepad >> for edit, instead of getting opened in firefox that is my default. >> >> Please give me the starting push. >> -- V >> > > > If you simply drag-and-drop the file from an explorer window into > Firefox, Firefox will display the page directly from the file system > instead of serving it through your web server. (You can tell this > because your address bar will say file:///E:/wamp/www/hello.php.) Your > browser won't parse the PHP as script; it will just think it is > malformed HTML and it would show the output you listed above. > Double-clicking the file, or dragging it into IE will try to open the > file with whatever program is associated with that extension in > Windows. (If there isn't a file association for *.php files, it will > either prompt you for a program to handle the file or it might do the > same as Firefox. I'm not sure, and I'm not really interested in > changing my file associations to test.) > > IF the file is located at E:\wamp\www\hello.php AND PHP is configured > correctly AND your web server's document root is E:\wamp\www\, THEN > opening http://localhost/hello.php should work. > > Andrew Thanks. k, I will not drag and drop but would open through firefox localhost. giving http://localhost/hello.php is not showing anything at all, just a blank screen. What has gone wrong? -- V -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php