Article View: austin.internet
Article #155Re: stupid php question
From: Colin Bloch
Date: Mon, 09 Mar 2009 23:09
Date: Mon, 09 Mar 2009 23:09
39 lines
3208 bytes
3208 bytes
the wharf rat wrote:. > > Client has complicated web app written in PHP. Runs on old > systems, php4 apache 2 etc. Part of project is new colo, so moved > to modern software, php5, http 2 etc. All works fine except: > > Certain pages include inline graphics (image maps) generated by > including the call to the php script that generates the image in the template > of the page. When the page is rendered the href's are resolved and we get > graphics. But for some reason when these scripts execute in the new > environment the output (the <map>...</map><img>...) stuff appears at the > TOP of the page outside the <body> instead of in the middle where the > template actually has the...call?...tag?..whatever. (Is that clear?) > > I've played with php output buffering options, inserting various > tags such as table and object around the offending maps, and they still > output at the top of the page. However, <b>stupid graph goes here</b> ends > up in the right place so it's a problem with the way these scripts get > executed when the page is rendered... > 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. Good luck! CAB
Technical Details
Message-ID:
<Z9-dnV84wJw2PCjUnZ2dnUVZ_sfinZ2d@posted.grandecom>Path:
arc1-ca.pugleaf.net!g2news2.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-mailReferences:
<gp0ub5$mo3$1@panix2.panix.com>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!g2news2.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:09:31 -0500 Date: Mon, 09 Mar 2009 18:09:31 -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> In-Reply-To: <gp0ub5$mo3$1@panix2.panix.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <Z9-dnV84wJw2PCjUnZ2dnUVZ_sfinZ2d@posted.grandecom> Lines: 40 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 72.48.89.48 X-Trace: sv3-F5Uom08T5cA1qyYCzK2YUOZa66A6Yur0AofWsXjVE5F6eTXqsYZRr1vYmt7EM4qwjJXpKG7/+GYxwNV!xShR0qC7O/brPC2FjprA+SfwZmoGxrc85L6uGwZP7LiUAY1/3BsZz5c16YUdi84T+11DMCuWU3ex!cDapFqQq9jpuAQ== 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