John wrote:

I have a real dumb question, but gotta be sure...are you saving the
files with the .php extension?


John,

Not a dumb question at all!  In fact, you were on the right track in
that I was making a VERY basic mistake.  I've got the solution...and I
am so dumb...I'm embarrassed.

Yes, I was saving the files with the .php extension and saving them
into c:\xampp\htdocs......but...

when I was trying to open the files in Firefox I was clicking
FILE|OPEN and navigating to c:\xampp\htdocs and selecting
filename.php.  This, I know now, is NOT the way to do it...if you want
the PHP code to work.

Today I learned that I must open the files by typing into the Firefox
address bar: http://localhost/filename.php 

Now all is well and my PHP code is running great!  

Thanks very much for your help.

Joe




--- In [email protected], John Magee <[EMAIL PROTECTED]> wrote:
>
> , Jul 15, 2008 at 9:13 AM, emailme992000 <[EMAIL PROTECTED]>
> > wrote:
> > 
> >>   Hi,
> >> 
> >> I'm a total newbie to XAMPP.
> >> 
> >> I downloaded XAMPP onto my Win XP Pro SP2 machine.
> >> 
> >> It installs ok. Everything seems to work. Apache server is running.
> >> MySQL is running. PHP is running. PHPmyAdmin works fine. I can
> >> create databases and tables etc. using phpMyAdmin ok.
> >> 
> >> But, when I use Notepad or Wordpad to create a little test file, any
> >> HTML statements in the file come up in Firefox ok but...none of the
> >> PHP code between the <?php and ?> tags executes at all. No error
> >> messages are given...nothing...as if the PHP code was not there
at all.
> >> 
> >> I'm saving the test file into c:\xampp\htdocs if that makes any
> >> difference.
> >> 
> >> Anybody have any idea what is going wrong here? This is driving me
> >> crazy. I'd appreciate any help anyone can give.
> >> 
> >> Many thanks.
> >> 
> >> Joe
> I have a real dumb question, but gotta be sure...are you saving the
files
> with the .php extension?
>


Reply via email to