new to xampp-problem with php files

Problems with the Windows version of XAMPP, questions, comments, and anything related.

new to xampp-problem with php files

Postby paidaki » 20. August 2006 16:29

Hallo eveyone.

I think it is a silly question, but I'm a newbie and I'm having a problem.
I've installed xampp and trying to access my webpage from my pc, locally.
I can open .html files, but when I try to open a .php file, I get the message "Do you want to open or save the file?"
When I access the pages through Dreamweaver, I have no problem.

What's wrong with me???
paidaki
 
Posts: 2
Joined: 20. August 2006 16:13

Postby Wiedmann » 20. August 2006 16:35

I've installed xampp and trying to access my webpage from my pc, locally.

What does you mean with "locally"?
--> There is no difference in opening a webpage on the local or on a remote server. Just the hostname is an other.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby paidaki » 20. August 2006 17:26

Sorry, just that I'm using my pc.
I'm not very familiar and I wasn't sure, if it's the same.
paidaki
 
Posts: 2
Joined: 20. August 2006 16:13

Postby maxnorris » 21. August 2006 15:23

Is it doing this for all PHP pages? Or just certain ones? (Example, a PHP script that generates an RSS feed tends to not open correctly if accessed in a browser, it's meant to be bookmarked with a RSS reader)

Here's a test to see if your Apache configuration is set up correctly to handle PHP.

Open up a text editor (Notepad or whatever), and add this text:

Code: Select all
<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>


Save this file in your web server's document root as info.php, and then in your browser, open http://localhost/info.php (Be careful it doesn't append a .txt to the end of the file name).

If Apache is configured correctly, you should get a nice PHP configuration status screen.. if it's not, it'll ask if you want to save it, and Apache isn't configured right to handle PHP.
maxnorris
 
Posts: 17
Joined: 21. August 2006 06:51


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 33 guests