file:///C:/Program%20Files/xampp/htdocs/borderMaker.html
This will
never load the php file through the server, which it must do to parse the php content.
Start your Apache server and load the file in your browser using:
http://localhost/borderMaker.htmlThis will have the php file parsed through the server and if the php code only produces the heading,
Your Output, and nothing else then you will have to look at the reason your php code is not doing what it should.
You will just have to wait until someone who knows php code to spot your post and come up with an answer or contact your book's author or read the php manual.
In the mean time I will take a look at the book you mention and see if I can spot anything that might help.
...And just to prove that php is working as it should be on your XAMPP installation go to the
XAMPP Welcome Page at:
http://localhostMost of the pages are php coded - look at the files in the
xampp\htdocs\xampp director, test all the menu items to confirm all is working.
[EDIT]OK, I have found what is wrong - your code requires register_globals to be on, which is a code security issue that needs to be addressed so register_globals is not required to be on, see the php documentation about how to do this.
http://php.net/manual/en/security.globals.phpphp.net wrote:Warning
This feature is DEPRECATED and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.
To turn on register_globals for your test go to:
xampp\apache\bin
and open
php.ini in your text editor and find this line and change it to On:
- Code: Select all
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = Off
to
register_globals = On
Save the file and restart Apache to have this change recognized.
Now try your
http://localhost/borderMaker.html - note the case as Apache is case sensitive.
Make a backup of conf and ini files before editing.
[/EDIT]
===========================================
1. The new
DeskTopXampp Launch Control for
XAMPP / XAMPPlite
Posted by
Ridgewood available from Ridgewood's
DTX web site
2. Build Rich
AJAX Applications - Faster
TIBCO General Interface Pro Edition but
FREE and
Open Source
Fully working with
NO donations required to get a user/password
===========================================