473,766 Members | 2,060 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why are my PHP files are not being executed (PHP keywords/syntax being ignored)

I have been hosting a website on the same server for roughly 2 years.
The entire site is based on a group of PHP scripts. Today, without
changing a thing, the server stopped recognizing all PHP keywords and
syntax. When I use firefox, the page simply displays a text/plain
version of my source code. When I use IE, the page loads as text/html,
however, all lines of PHP code (between "<?" and "?>") are displayed as
text.

My assumption is that my host has stopped providing PHP extensions.
Can anybody confirm this or give me another explanation?

All help is greatly appreciated!

-JR

Sep 13 '05 #1
2 1768
>I have been hosting a website on the same server for roughly 2 years.
The entire site is based on a group of PHP scripts. Today, without
changing a thing, the server stopped recognizing all PHP keywords and
syntax. When I use firefox, the page simply displays a text/plain
version of my source code. When I use IE, the page loads as text/html,
however, all lines of PHP code (between "<?" and "?>") are displayed as
text.

My assumption is that my host has stopped providing PHP extensions.
Can anybody confirm this or give me another explanation?

All help is greatly appreciated!


Your files are not being treated as PHP, but as text. It is possible
that the Apache directive to treat .php files as PHP got lost.
(It's possible this was in one of YOUR .htaccess files, rather than
the Apache config file, but if the host is offering PHP, there's
not a lot of point in making it difficult to use.)

Or PHP is broken (I've managed to do this to myself upgrading some
of the libraries PHP uses.) Or your host upgraded Apache and didn't
configure in PHP. Ask your host what's going on.

Incidentally, it's just this sort of thing that makes it worthwhile
to keep stuff like DB passwords *OUTSIDE* the document tree. If PHP
breaks, as it has apparently in your case, it still won't serve
the passwords. If it's not broken, PHP can get to it, but it will
use it, not display it, assuming the code is written to do that.

Gordon L. Burditt
Sep 13 '05 #2
ja************* @gmail.com wrote:
I have been hosting a website on the same server for roughly 2 years.
The entire site is based on a group of PHP scripts. Today, without
changing a thing, the server stopped recognizing all PHP keywords and
syntax. When I use firefox, the page simply displays a text/plain
version of my source code. When I use IE, the page loads as text/html,
however, all lines of PHP code (between "<?" and "?>") are displayed as
text.

My assumption is that my host has stopped providing PHP extensions.
Can anybody confirm this or give me another explanation?

All help is greatly appreciated!


Don't you use '<?php' to start your code blocks? Maybe the provider has
switched short_open_tag off.

C.
Sep 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2207
by: John Chiurato | last post by:
Yes, I am a newbie to PHP. Worried that using PHP may affect my search engine ranking. Would a script like the one below be adequate? <?php class Page { var $Title; var $Keywords; var $Content;
0
4155
by: R. Rajesh Jeba Anbiah | last post by:
Q: Is PHP search engine friendly? Q: Will search engine spiders crawl my PHP pages? A: Spiders should crawl anything provided they're accessible. Since, nowadays most of the websites are been developed with PHP, you are not supposed to doubt that. As a proof that PHP pages could be crawled and indexed, refer this Google search
31
2438
by: Brian Sabbey | last post by:
Here is a pre-PEP for what I call "suite-based keyword arguments". The mechanism described here is intended to act as a complement to thunks. Please let me know what you think. Suite-Based Keyword Arguments ----------------------------- Passing complicated arguments to functions is currently awkward in Python. For example, the typical way to define a class property winds up polluting the class's namespace with the property's get/set...
0
6137
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug file as folows. I need help to resolve them ASAP: cl /c /nologo /MDd /W3 /Od /GR /GM /Zi /GX /D "_DEBUG" /D " WIN32" /D "_W INDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_USRDLL" /
47
2875
by: rawCoder | last post by:
Hi, Just wanted to know if there is any speed difference between VB conversion Keywords like CInt, Clng, CStr, CDbl, CBool etc. ..NETs Convert.To<...> methods. And which is better to be used and why ? Thanx
21
1990
by: Nicholas Sherlock | last post by:
Hey all, People on my website register to be allowed access to certain downloads. I store these files above the document root so that they can't be accessed by Apache (Only from PHP). I wrote a file serving script which dumps the correct headers for the download and calls readfile(). I thought everything was going swimmingly until I realized that my webhost has Safe Mode turned on, and the script execution time is limited to 30...
7
2575
by: Don NJ | last post by:
First my site name is Sinfullblisslingerie.com. I'm starting this little business to try and make some money on the side. My kids will be going to college in a few years... Anyway, in the past I have had some experience with html but now, my new site runs on php. It's a turnkey site that I purchased on ebay...(Yeah right...turnkey...) I've been submitting my site to search engines. On excite.com, when I bring up my site it shows...
1
5844
by: Kesavan | last post by:
I install apache2 in /usr/local/apache2 and install php5 by ./configure --with-apxs2=/usr/local/apache2/bin/ apxs PHP is successfully installed in my system. But now my .php files inside /usr/local/apache2/htdocs doesn't get phrased. When I run suse-10-2:/home/kesavan # php info.php
12
1745
by: duzhidian | last post by:
failed to open stream: No such file or directory I have the programs like this structure: a.php is locate at . b.php is located at ./lib c.php is located at ./lib/sublib a.php uses a function at b.php while b.php using a function at c.php
0
9568
marktang
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...
0
10008
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9837
tracyyun
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...
0
8833
agi2029
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...
0
6651
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();...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.