[PHP] Compiling Apache Module, missing Header files?

2004-01-22 Thread Thaddeus J. Quintin
I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I have apache unzipped/untarred and I ran the ./configure script for it (per the instructions in the PHP install). I then configured php with the following line- $ ./configure --with-mysql=/usr/local/mysql \

Re: [PHP] Compiling Apache Module, missing Header files?

2004-01-22 Thread Thaddeus J. Quintin
Brad Pauly wrote: On Thu, 2004-01-22 at 09:43, Thaddeus J. Quintin wrote: I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I have apache unzipped/untarred and I ran the ./configure script for it (per the instructions in the PHP install). I then configured php

[PHP] Some cookies are being set, some aren't

2003-08-28 Thread Thaddeus J. Quintin
I've got a problem with cookies failing. Here's the setup- A staging server, RedHat Linux, with php 4.3 Main server, FreeBSD, also php 4.3 Running identical Apache setups and Identical php setups. The staging server is only accessible behind our local firewall and does not run https. The Main

[PHP] Quotes in regular expressions

2003-08-21 Thread Thaddeus J. Quintin
Lets say I'm trying to extract some data from an HTML document. I want to get the values of the 'src' attributes of various tags. For example- img src=http://www.yahoo.com; here's the pattern I've been trying- /\bsrc=(['|])[^\\1]*[\\1]/im Basically, match the 'src=' followed by some type of

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Thaddeus J. Quintin
including the quotes, so I'm really not sure what's failing. Thanks- Thaddeus Ford, Mike [LSS] wrote: On 21 August 2003 17:03, Thaddeus J. Quintin wrote: Lets say I'm trying to extract some data from an HTML document. I want to get the values of the 'src' attributes of various tags. For example- img

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Thaddeus J. Quintin
. not the prettiest answer, but I put good comments around it! Thaddeus Scott Fletcher wrote: Try parsing it as a string where the double quote would become a string. See if that help. (Parse the whole characters into strings then find the double quote.) Thaddeus J. Quintin [EMAIL PROTECTED] wrote

[PHP] Iterative regular expression replacement

2003-08-19 Thread Thaddeus J. Quintin
I'm looking to replace the 'nth' instance of an expression within a string. Example (very simple)- $string=My mom can beat up your mom and your mom's dog; $pattern=mom; $replacement=dad; I want to be able to replace any particular instance of the pattern within that string. I was getting ready

[PHP] iterative regular expression replacement

2003-08-19 Thread Thaddeus J. Quintin
I'm looking to replace the 'nth' instance of an expression within a string. Example (very simple)- $string=My mom can beat up your mom and your mom's dog; $pattern=mom; $replacement=dad; I want to be able to replace any particular instance of the pattern within that string. I was getting ready

Re: [PHP] Iterative regular expression replacement

2003-08-19 Thread Thaddeus J. Quintin
Perfect solution. Thanks, I don't know how I overlooked the preg_replace_callback function. That's exactly what I needed. Thaddeus CPT John W. Holmes wrote: From: Thaddeus J. Quintin [EMAIL PROTECTED] I'm looking to replace the 'nth' instance of an expression within a string. Example (very

[PHP] htmlspecialchars() and HTML code

2003-08-14 Thread Thaddeus J. Quintin
Hello- I'm working on a site where users have the option to type HTML code into a textarea, or upload HTML code from a local file which is then displayed in the text area. The obvious problem is that an uploaded file that contains a closing tag for a textarea can wreak havoc and eat up the

Re: [PHP] htmlspecialchars() and HTML code

2003-08-14 Thread Thaddeus J. Quintin
. Holmes wrote: From: Thaddeus J. Quintin [EMAIL PROTECTED] I'm working on a site where users have the option to type HTML code into a textarea, or upload HTML code from a local file which is then displayed in the text area. The obvious problem is that an uploaded file that contains a closing tag

Re: [PHP] htmlspecialchars() and HTML code

2003-08-08 Thread Thaddeus J. Quintin
Thanks everybody! Looks like I was just thinking about the problem too hard. Thaddeus John W. Holmes wrote: Thaddeus J. Quintin wrote: CPT John W. Holmes wrote: --SNIP-- Try this: textarea name=textThis is lt;somegt; text/textarea If you submit that text and then print $_REQUEST