Wrox Programmer Forums
|
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143
This is the forum to discuss the Wrox book Beginning PHP 6, Apache, MySQL 6 Web Development by Timothy Boronczyk, Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz; ISBN: 9780470391143
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 23rd, 2009, 10:42 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation PHP Parsing in the web browser?

Ok,

Now when i create a PHP program i place it in the HTDOCS folder under apache which seems logical and the program parses and works.

But

If i just open a php program which is located in my documents it wont parse and will just display the code as normal text. I have a feeling that i have missed something in the installation. Is it possible to open a php program without saving it into the HTDOCS apache folder?

Thank you

Jack
 
Old January 15th, 2010, 05:58 PM
Registered User
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Server

Hello, I believe a php file must always be processed by a server before it shows in your browser what you want to see.
Apache is your (local) server and will process anything in the HTDOCS folder.
If you just open a php file on your computer without a server processing it for your browser you will just see the (php) code.
You did nothing wrong, just get a bit more acquainted with how php works.
PHP is called a server side language for a reason





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in php xml parsing... caught PHP How-To 0 April 12th, 2007 03:54 AM
PHP Web-browser DOM functionality Philibuster Beginning PHP 1 August 15th, 2006 09:34 PM
Parsing URL with PHP turklet BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 November 27th, 2004 09:24 PM
Hidden redirect but no php parsing klokkie Beginning PHP 2 August 5th, 2004 11:09 AM
Parsing in PHP Walter G Pro PHP 2 August 14th, 2003 01:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.