Tedd,
Finally, I can give you an answer! :)
You can use html tidy. I did this before the php tidy function was fully
implemented, so I don't know the syntax for that. But using tidy from the
command line you can set have it either correct errors (probably not what
you want) or just have it retu
I am extracting text from a text datatype field of a
database. The target text is marked (beginning and
end) by html comments that have a known--but not
uniform--format. Unfortunately, the web-based
interface used to maintain the data inserted hard line
breaks in the text.
I initially tried remo
I am extracting text from a text datatype field of a
database. The target text is marked (beginning and
end) by html comments that have a known--but not
uniform--format. Unfortunately, the web-based
interface used to maintain the data inserted hard line
breaks in the text.
I initially tried remo
mething like:
> $return = preg_replace('#(.*)#Uie',
'str_replace(" />", "", "$1")');
>
>
> - Tul
>
> Kathleen Ballard wrote:
>
>> Sorry,
>> Here is the code I am using to match the tags:
>>
>> .*
I th
Sorry,
Here is the code I am using to match the tags:
.*
I have removed all the NL and CR chars from the string
I am matching to make things easier. Also, I have run
tidy on the code so the tags are all uniform.
The above string seems to match the tag well now, but
I still need to remove the b
I am at the tailend of a project that involves moving
legacy data from one dbms to another. The client has
added a new requirement to the data manipulation that
is required. I need to remove all tags (there
may be more that one) that appear within all
tags.
I am not very familiar with buildin
I am developing a php app on a win 2003 server with
iis6. Unfortunately, I don't know the version of sql
server or php.
I have been testing code since last Thursday and just
started getting this error:
PHP has encountered an Access Violation at 02B80AFD
This error doesn't happen every time, e
I am beginning a project that will involve moving data
from an mssql table to xml files.
In addition to fixing non-xml compliant html in the
text fields and outputting the data to a new xml
format, I need to find certain chunks of text marked
by standard html comments at the start and end,
comment
I have been asked to make a fact based comparison of
the pros and cons of asp.net and php. I am not trying
to start a war and apologize if this is too off topic,
but I know make of the list members work in other
coding languages.
Three areas of concern are robustness, scalability and
development
I would like some advice on special/reserved chars in
strings, especially single quotes.
I am developing an application that requires using a
Name field in the url for navigation. I have a case
where "Toni's" in the url is returned in
$_SERVER['PATH_INFO'] as "Toni\'s" eventhough the
address bar
Dear list,
I am sorry for the second posting, but this is going
to drive me to drink something other than lattes!
I have one page, index.php. when it calls mod_sub, a
directory type of page is printed. Here I am trying
to set a session var of the most recently selected
category to allow the use
Dear list,
I am trying to set a simple session variable on PageA.
$_SESSION['CategoryID'] = intval($Data['ID']);
if I print after setting the value on PageA, I will
get the expected ID number.
go on to PageB and $_SESSION['CategoryID'] is '0'.
If I hard code in a value for $_SESSION['CategoryID
I am trying to translate a site to Simplified Chinese.
I was told the pages needed to be saved as unicode
files. However, the unicode files do not process as
php on my host server. ie. if you view source on a
page saved as unicode, all the php code is there.
My hosting company says that unicode
Dear List,
I am trying to advise a client on the feasiblity of using php with an
external SQL server. Has anyone had experience with this? Pros? Cons?
Kathleen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
14 matches
Mail list logo