I've built a website and some of the pages are php pages (e.g. SomePage.php). It all works fine; both the html pages and the php pages come up and work just fine.
I then made a change to the main index.html file and made it so that it's an index.php file instead, and it has some php code embedded in it, not much different than any of the other php pages on my site.
But when I try to go to that index.php file, as the first file to bring up for the site, it fails to bring up the page but instead pops up an Open File dialog, asking if I want to Open or Save the index.php file. It's as if the server is not recognizing index.php as being a php file that needs the normal php pre-processing on the server side. I used to get similar problems (popping up the Open File dialog) with the other php pages before I had my server properly set up with Apache and php and such. But all of that is indeed properly set up. The OTHER php pages come up OK. It's just the very first, index.php page, that doesn't come up correctly.
What am I doing wrong?
Is there a standard way for making it bring up the first page as a php file?
[ I had posted this yesterday but somehow it disappeared from the forum.]
3 2003 ronnil 134
Recognized Expert New Member
have you checked that there are no whitespaces in the .php extension? (know this sounds stupid, but sometimes they sneak in anyways)
You're running apache and php right?
i guess you have setup index.php in the DirectoryIndex setting in httpd.conf....
Motoma 3,237
Recognized Expert Specialist
Do you have PHP installed on the server?
Care to post your PHP code?
pbmods 5,821
Recognized Expert Expert
Make sure you have the following lines in your httpd.conf file: -
LoadModule php5_module modules/libphp5.so
-
AddType application/x-httpd-php .php
-
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: R. Gregg Reed |
last post by:
I'm trying to intergrate a cgi affiliate tracking system into a php
website. When someone pays using PayPal it's supposed to direct them to one
page if the payment is a success or another if payment failed. This is the
code:
if($action == order && $order_n != "")
{
include "engine/card_process.pml";
|
by: Vic Spainhower |
last post by:
Hello, I'm just getting starting in php and MySQL and I've got my
application working correctly on my local windows XP computer. Now, when I
publish to my ISP it's not going so well, which is also a Windows server.
I'm using form variables to control navigating to different pages when a
page is reloaded. As I said no problem on my machine but on the ISP server
I'm getting the following messages snd of course it's not working. Both...
|
by: Lars Eighner |
last post by:
I suppose this is a meta-html question, but it seems to go
directly to an authoring issue.
Which order of next, home (menu, index, main, contents), prev links do you
prefer, and why?
1. next | home | prev
or
|
by: Charlie King |
last post by:
As I understand it, the use of FIR* to replace heading tags with
images in visually enabled CSS browsers is now frowned upon on the
basis that some screen readers will *nor* read back text that is
marked up by CSS to be invisible or hidden.
So...
If I want to replace headings with images (because my client wants to
use his specific font for headings where possible), what's the best
way to do it?
|
by: NewbieSupreme |
last post by:
I installed Apache 2.0.58, tested it, got the "working" page. Installed
MySQL 5.0.22, and didn't really see how to test that, but there is a mysql
process running in the task manager. Ran through the PHP 5.1.4 installation
directions, and that seems to work, since I can use phpinfo() and get all
the information on a test php page.
Then I installed (really just unzipped and placed some files according to
the directions) PHPMyAdmin; did...
| |
by: hornedw |
last post by:
I have been working on a ecommerce website for myself. What I needed
some assistance on was when i was trying to display the
categories/subcategories for the different products.
I decided to use the modified preorder tree transversal algorithm. What
I wanted was on the first page is to display the catogories as follows
Books (35)
Electronics(23)
The number inside the parenthesis being the number of products in that
|
by: Trammel |
last post by:
Hi, Im just about to start developing a new website for personal / friend
use that may be accessed by other people all over the web. I was sitting
thinking through designs for the pages, etc when I came across a thought....
....why show the visitor loads of junk just because Im using A-href type
links?
Is there a way to create a text-link that will request a page using POST
instead of GET?
|
by: Bill H |
last post by:
When I do website design I have my screen (on a PC) set for 1600 x
1200 or greater resolution so that I can have as many windows open as
I need and not have to flip between them. The issue I have is the the
IE7 window is never a consistant size because I resize it as I am
using it.
I would like to be able to open up a blank IE 7 window and have it set
to a specific size each time so that I can see the pages I am working
on in the same...
|
by: renfri |
last post by:
I am learning Frontpage 2002 by teching myself. My employment had a very old website. I have created a new website to replace the old one. I published it. I am having a problem with the home page. When I check the files that are loaded it shows one index.htm file which is the new home page. When you go to the website it brings up the old home page. When you start clicking on the different pages, it will then bring up the right home page. ...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |