[PHP] preg_replace and regular expressions.

2007-04-14 Thread Travis Moore
Okay, so what I have is a BB code type of thing for a CMS, which I for obvious reasons can't allow HTML. Here's the snippet of my function: function bbCode($str) { $db = new _Mysql; $strOld = $str; $strNew = $str; $getRegexs = $db->query("SELECT `regex`,`replace`,`search` FROM

Re: [PHP] isset

2007-04-14 Thread Jochem Maas
Richard Kurth wrote: > What do you do when isset does not work? If I send data in a > $_REQUEST['var'] like > if (isset($_REQUEST['var'])) { > } > Put var has no data it still says it is set. Because $_REQUEST['var'] = "" > and isset thinks "" is set php -r ' $r = array("foo" => ""); var_dump(iss

[PHP] isset

2007-04-14 Thread Richard Kurth
What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST['var'] = "" and isset thinks "" is set

Re: [PHP] Images again

2007-04-14 Thread Børge Holen
On Saturday 14 April 2007 09:45, you wrote: > On 4/14/07, Børge Holen <[EMAIL PROTECTED]> wrote: > > Before mr lynch starts beating up those already dead and probably long > > since burried horses... > > > > Images in a database! > > > > See I was just wondering, and that at times leads to late nig

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread Robert Cummings
On Sat, 2007-04-14 at 14:58 -0400, tedd wrote: > At 2:25 PM -0400 4/14/07, Robert Cummings wrote: > >A stretchy website stretches it's content area to accomodate the width > >of the browser. I'm quite sure you knew this, either that, or you're not > >reading enough. > > Is my site an example of a

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread tedd
At 2:25 PM -0400 4/14/07, Robert Cummings wrote: A stretchy website stretches it's content area to accomodate the width of the browser. I'm quite sure you knew this, either that, or you're not reading enough. Is my site an example of a stretchy website? It's only two columns, but it could have

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread Robert Cummings
On Sat, 2007-04-14 at 14:19 -0400, tedd wrote: > At 12:37 PM -0400 4/14/07, Robert Cummings wrote: > >but truth be told, the web is still > >evolving into what visionaries see for its potential. > > Agreed, but some are reluctant to listen to visionaries. :-) Not all visionaries talk. Many just d

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread Robert Cummings
On Sat, 2007-04-14 at 14:16 -0400, tedd wrote: > At 11:37 AM -0400 4/14/07, Robert Cummings wrote: > >Sure, but designers head the beck and call of paying customers. Just > >like we coders do. Sometime you just can't win the argument with a > >suit :) > > I didn't know you wore a suit. :-) > > -

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread Robert Cummings
On Sat, 2007-04-14 at 13:57 -0400, tedd wrote: > At 11:12 AM -0400 4/14/07, Robert Cummings wrote: > > > At 9:07 PM -0400 4/13/07, Robert Cummings wrote: > > >I noticed your site isn't a pixel perfect layout. > > >Who said pixel perfect image? > > You did -- pixel perfect image or pixel perfect

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread tedd
At 12:37 PM -0400 4/14/07, Robert Cummings wrote: but truth be told, the web is still evolving into what visionaries see for its potential. Agreed, but some are reluctant to listen to visionaries. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.co

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread tedd
At 11:37 AM -0400 4/14/07, Robert Cummings wrote: Sure, but designers head the beck and call of paying customers. Just like we coders do. Sometime you just can't win the argument with a suit :) I didn't know you wore a suit. :-) --- BTW, why can't a browser window be pixel perfect? What's

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread tedd
At 11:12 AM -0400 4/14/07, Robert Cummings wrote: > At 9:07 PM -0400 4/13/07, Robert Cummings wrote: >I noticed your site isn't a pixel perfect layout. Who said pixel perfect image? You did -- pixel perfect image or pixel perfect layout, what's the difference? Now make pixel perfect stre

Re: [PHP] warning message to hide

2007-04-14 Thread Tijnema !
On 4/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Quoting Alain Roger <[EMAIL PROTECTED]>: > Hi, > > Today i discovered that when my host webserver has some issue with > PostgreSQL database, my code displays the following error message : > *"Warning*: pg_connect() > [function.pg-connect

Re: [PHP] warning message to hide

2007-04-14 Thread siavash1979
Quoting Alain Roger <[EMAIL PROTECTED]>: > Hi, > > Today i discovered that when my host webserver has some issue with > PostgreSQL database, my code displays the following error message : > *"Warning*: pg_connect() > [function.pg-connect]: > Unable to co

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread Robert Cummings
On Sat, 2007-04-14 at 11:28 -0500, Edward Vermillion wrote: > > I think there's a fundamental difference between a web application > and a web page. (That's another one of those areas where folks expect > what they shouldn't. Like a web application must adhere to the web > paradigm and ensure

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread Edward Vermillion
On Apr 14, 2007, at 10:37 AM, Robert Cummings wrote: On Sat, 2007-04-14 at 10:14 -0500, Edward Vermillion wrote: On Apr 13, 2007, at 8:07 PM, Robert Cummings wrote: [snip] I noticed your site isn't a pixel perfect layout. Probably why you haven't had to tear at your face very hard with CSS

Re: [PHP] Protecting individual files/dirs from access

2007-04-14 Thread tedd
At 4:56 PM -0500 4/13/07, Richard Lynch wrote: Put the files outside the webtree, and have a PHP script that controls access and is your gate-keeper. Richard: How secure is this: http://sperling.com/a/pw There are seven files there, namely: http://sperling.com/a/pw/.htaccess http://sperling

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread Robert Cummings
On Sat, 2007-04-14 at 10:14 -0500, Edward Vermillion wrote: > On Apr 13, 2007, at 8:07 PM, Robert Cummings wrote: > [snip] > > > > > I noticed your site isn't a pixel perfect layout. Probably why you > > haven't had to tear at your face very hard with CSS :) That whole > > box-model issue becomes

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread Edward Vermillion
On Apr 13, 2007, at 8:07 PM, Robert Cummings wrote: [snip] I noticed your site isn't a pixel perfect layout. Probably why you haven't had to tear at your face very hard with CSS :) That whole box-model issue becomes a great deal more elastic when you have some fudge room. [snip] I use my

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread Robert Cummings
On Sat, 2007-04-14 at 10:35 -0400, tedd wrote: > At 9:07 PM -0400 4/13/07, Robert Cummings wrote: > >I noticed your site isn't a pixel perfect layout. Probably why you > >haven't had to tear at your face very hard with CSS :) That whole > >box-model issue becomes a great deal more elastic when you

Re: [PHP] sendmail loop

2007-04-14 Thread tedd
At 4:54 PM -0600 4/13/07, John Pillion wrote: I have a sendmail script that loops through an array of email addresses. the problem is, the list can sometimes be fairly long, and the page does not finish loading until the loop has completed. Currently, I have the majority of the page loading, inc

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread tedd
At 9:07 PM -0400 4/13/07, Robert Cummings wrote: I noticed your site isn't a pixel perfect layout. Probably why you haven't had to tear at your face very hard with CSS :) That whole box-model issue becomes a great deal more elastic when you have some fudge room. Rob: My site (http://sperling.c

Re: [PHP] warning message to hide

2007-04-14 Thread Tom Chubb
Look at http://devzone.zend.com/node/view/id/652 It explains it there. On 14/04/07, Alain Roger <[EMAIL PROTECTED]> wrote: Hi, Today i discovered that when my host webserver has some issue with PostgreSQL database, my code displays the following error message : *"Warning*: pg_connect() [funct

[PHP] warning message to hide

2007-04-14 Thread Alain Roger
Hi, Today i discovered that when my host webserver has some issue with PostgreSQL database, my code displays the following error message : *"Warning*: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: could not connect to server

Re: [PHP] how to get var name and value from function?

2007-04-14 Thread Afan Pasalic
Tijnema ! wrote: > On 4/14/07, Afan Pasalic <[EMAIL PROTECTED]> wrote: >> hi, >> this one I can't figure out: >> >> I have to assign value of an array to variable named after key of the >> array several times in my project to , e.g. after I submit a form with >> personal info I have >> $_POST['name

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread David Robley
Stut wrote: > Richard Lynch wrote: >> On Fri, April 13, 2007 1:20 am, Stut wrote: >>> tedd wrote: this ain't the bad old days. >>> That's debatable! >> >> Damnit! >> >> Now I've got that "These are the good ol' days" song stuck in my head, >> and it's your fault! >> >> :-) > > Hey, d

Re: [PHP] Problems installing php with pdflib

2007-04-14 Thread Tijnema !
On 4/14/07, Merlin <[EMAIL PROTECTED]> wrote: Hi there, I am moving to a new box and want to install php with pdflib again. After configure I get an error saying: pdflib.h not found! Check the path passed to --with-pdflib The path is just fine: '--with-pdflib=/usr/local/lib' ls /usr/local/lib/

[PHP] Problems installing php with pdflib

2007-04-14 Thread Merlin
Hi there, I am moving to a new box and want to install php with pdflib again. After configure I get an error saying: pdflib.h not found! Check the path passed to --with-pdflib The path is just fine: '--with-pdflib=/usr/local/lib' ls /usr/local/lib/pdflib.* /usr/local/lib/pdflib.h ls /usr/local

Re: [PHP] Json.php

2007-04-14 Thread Satyam
www.json.org lists all json resources in any language you care to think of. Satyam - Original Message - From: "Otto Wyss" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 14, 2007 10:11 AM Subject: [PHP] Json.php I've seen a json.php file somewhere in a project for c

Re: [PHP] Json.php

2007-04-14 Thread Tijnema !
On 4/14/07, Otto Wyss <[EMAIL PROTECTED]> wrote: I've seen a json.php file somewhere in a project for cases where the json module isn't installed (e.g. PHP4), yet I can't find that project again. Is there an official or unofficial download site for json.php? Why isn't this available in the PHP m

Re: [PHP] Images again

2007-04-14 Thread Tijnema !
On 4/14/07, Børge Holen <[EMAIL PROTECTED]> wrote: Before mr lynch starts beating up those already dead and probably long since burried horses... Images in a database! See I was just wondering, and that at times leads to late nights I used to read the images from two different files; one waterm

Re: [PHP] how to get var name and value from function?

2007-04-14 Thread Tijnema !
On 4/14/07, Afan Pasalic <[EMAIL PROTECTED]> wrote: hi, this one I can't figure out: I have to assign value of an array to variable named after key of the array several times in my project to , e.g. after I submit a form with personal info I have $_POST['name'] = 'john doe'; $_POST['address'] =

[PHP] Json.php

2007-04-14 Thread Otto Wyss
I've seen a json.php file somewhere in a project for cases where the json module isn't installed (e.g. PHP4), yet I can't find that project again. Is there an official or unofficial download site for json.php? Why isn't this available in the PHP manual (http://ch2.php.net/manual/de/ref.json.ph

Re: [PHP] Re: width and height of flash-files

2007-04-14 Thread Tijnema !
On 4/14/07, Heiko Sudar <[EMAIL PROTECTED]> wrote: Hi, thx fort he fast infos. the solution is clear for .swf files. does someone have a workaround for flash-video files .flv? Heiko AFAIK, there's not a direct function for that. So, you have a few options, but depend on what you're going