RE: [PHP] Check for well formed html

2007-08-05 Thread Kathleen Ballard
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

[PHP] regex to remove NL and CR

2004-08-17 Thread Kathleen Ballard
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

[PHP] regex to remove NL and CR

2004-08-17 Thread Kathleen Ballard
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

RE: [PHP] Re: regex help needed -- Solved! Thanks!

2004-08-01 Thread Kathleen Ballard
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

[PHP] regex help needed

2004-08-01 Thread Kathleen Ballard
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

[PHP] regex help

2004-08-01 Thread Kathleen Ballard
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

[PHP] Access Violation at 02B80AFD

2004-06-14 Thread Kathleen Ballard
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

[PHP] finding text strings in html code

2004-06-12 Thread Kathleen Ballard
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

[PHP] asp.net vs. php

2004-06-06 Thread Kathleen Ballard
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

[PHP] single quote escape questions

2004-04-20 Thread Kathleen Ballard
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

[PHP] session var puzzle

2004-04-18 Thread Kathleen Ballard
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

[PHP] session var problems

2004-04-18 Thread Kathleen Ballard
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

[PHP] unicode and php

2004-04-08 Thread Kathleen Ballard
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

[PHP] php & ms sql

2001-02-19 Thread Kathleen Ballard
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