🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: austin.internet
Article #156

Re: stupid php question

#156
From: Colin Bloch
Date: Mon, 09 Mar 2009 23:17
31 lines
2833 bytes
> 
> It's pretty tough to say without looking at that specific code, but most
> code should run fine on the PHP5 system.  I would start by browsing what
> is known _not_ to be backwards compatible, and see if anything sticks
> out.  Try here for starters:
> 
> http://us3.php.net/manual/en/migration5.incompatible.php
> 
> Failing that, you could run a diff of the old system php.ini vs the new
> one.  It may seem like a whole lot of output, but the reality is that a
> lot of the changes are just wording in comments, and much of it is still
> alike and applicable.  Might make your head swim for a bit, but there
> might be a directive that specifically applies to the problem you're
> having.
> 


I thought of one other possibility.  If the PHP is being displayed as
actual code instead of executing, then your new Apache server may not
be configured with a handler to recognize that as a PHP script.

For instance, if the file extension is .phtml, you need an AddHandler
directive in the system php.conf (normally in /etc/httpd/conf.d for
Linux systems) to let Apache know when to treat it as script, and not
just display it as HTML.

Anyway, its probably something simple.  Hit me via email if you like,
and I'm reasonably certain I'd be able to figure it out just looking
at the page in a browser.

CAB
Technical Details
Message-ID: <M9ydnYbUffU8PijUnZ2dnUVZ_o-WnZ2d@posted.grandecom>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.posted.grandecom!news.posted.grandecom.POSTED!not-for-mail
References: <gp0ub5$mo3$1@panix2.panix.com> <Z9-dnV84wJw2PCjUnZ2dnUVZ_sfinZ2d@posted.grandecom>

Show Full Headers
Complete Article Headers
X-Google-Thread: 113866,3e309d157fe287e2
X-Google-Attributes: gid113866,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.posted.grandecom!news.posted.grandecom.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 09 Mar 2009 18:17:52 -0500
Date: Mon, 09 Mar 2009 18:17:52 -0500
From: Colin Bloch <colin@NOSPAMgrandecom.com>
User-Agent: Thunderbird 2.0.0.19 (X11/20090105)
MIME-Version: 1.0
Newsgroups: austin.internet
Subject: Re: stupid php question
References: <gp0ub5$mo3$1@panix2.panix.com> <Z9-dnV84wJw2PCjUnZ2dnUVZ_sfinZ2d@posted.grandecom>
In-Reply-To: <Z9-dnV84wJw2PCjUnZ2dnUVZ_sfinZ2d@posted.grandecom>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <M9ydnYbUffU8PijUnZ2dnUVZ_o-WnZ2d@posted.grandecom>
Lines: 31
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 72.48.89.48
X-Trace: sv3-JKX21xNDRUn9O9pwp/6S6Nsq7UsglcrAyiuCZSfEmr4sK7dFt975vqN0ve0v2C8CHJ9ZF2lPIg9PzXd!VVgq9ZD45ucCdhJ0al1ZAcp+1ueriPakZs3TOmvn+i4QJMB22uwWIQ/yWw9dnj+JyIVuRqsi+m1P!xmwOaYAUGsDtrA==
X-Complaints-To: abuse@grandecom.com
X-DMCA-Complaints-To: abuse@grandecom.com
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39