473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

php5.0.5 strips my css..?

This is 'weird'. I'm trying to port my project to php5 so I can get
tidy support in php [ unless someone knows of a better method for
stripping out in-line javascript: onmouseover, onmouseout, etc from
user posts ..not interested in bbtag style usage ], and its stripping
out my CSS _after_ I do a page reload and each page after that. The
first page visit once the webserver is started outputs correctly. Every
page visit after that strips my css. *boggle*

restart webserver and visit page:
Example from the source of one of my pages:

restart webserver and visit page:
================================================== ==========
<link rel="SHORTCUT ICON" href="/favicon.ico" />
<style type="text/css"><!--
BODY {

font-size: 13px;
}

TD{

font-size: 13px;
}

..bigtitle{
font-size: 105%;
font-weight: bold;
}

hit reload:
=========================
<link rel="SHORTCUT ICON" href="/favicon.ico" />
<style type="text/css"><!--
BODY

TD

..bigtitle

..smallfont

==========================

All my: { data.... } is gone..??

I recompiled php5 without tidy, have changed inumerous settings in
php.ini trying to figure out what the cause is. Here is my configure;
any help is greatly appreciated:
====================configured with =================
Configure Command './configure' '--with-apxs2' '--with-mysql=/usr'
'--enable-sockets' '--enable-gd-native-ttf' '--with-gd' '--with-ttf'
'--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir'
'--with-zlib-dir' '--with-kerberos' '--with-imap-ssl' '-with-openssl'
'--with-xmlrpc' '--enable-inline-optimization' '--disable-debug'
'--enable-exif' '--with-imap'

Sep 24 '05 #1
2 1492
Just an FYI. I found the problem. I was using an outdated version of
phplib's Template class. I just updated it and things are running
peachy...

Kyndig

Sep 24 '05 #2
You could just rule out the things you dont want with regxps...
it's probably quicker and more dynamic

Sep 27 '05 #3

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

Similar topics

7
by: Christoph Nothdurfter | last post by:
Hallo! I was wondering if my PHP4-Scripts will run under PHP5 (Haeven't tried the beta yet). Does anybody know? Thank you, -Christoph
8
by: Rob Ristroph | last post by:
I have tried out PHP 5 for the first time (with assistance from this group -- thanks!). The people I was working with have a site that uses lots of php objects. They are having problems with...
11
by: neur0maniak | last post by:
Hi, I've been eager to try out PHP5, so I've dumped it on my little dev machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the "mappings" page as I'm used to doing with PHP4....
4
by: badbetty | last post by:
Dear Googlers I have installed PHP5 to run on WinXP against Apache 2. It works! ie. I have tested a few simple scripts and a basic xml document parse. I now want to try the XSL extension so I...
5
by: Aziz | last post by:
Hi, I've recently contacted technical service of a web hosting company and asked them wheter or not they're gonna upgrade to PHP5 and MySQL5. Here's a quote from their response which confused me...
4
by: Chuck Anderson | last post by:
I am trying to install Php5 on my WindowsXP machine (at home, not on the 'net). I downloaded the Php Windows binary at php.net, unzipped it to c:/Php5, changed my Apache config file to use Php5...
19
by: McKirahan | last post by:
I am working in two environments neither configuration of which I can change; one's my Web host the other a client. My Web host requires the use of the ".php5" extension to use PHP v5.1.4; where...
3
by: xhe | last post by:
I have just upgraded my php version form php4 to php5. and I met this problem, and don't know if you know the solution. My site was written in PHP4, and most parts can be running smoothly in PHP5,...
8
by: FFMG | last post by:
Hi, I am slowly moving my code to php5. But I would like to make it backward compatible in case something bad happens, (and to make sure I understand what the changes are). The way the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.