Re: [PHP] PHP newbie question on xslt

2007-03-26 Thread Miguel J. Jiménez
Timothy Murphy escribió: I've been trying some of the programs in the PHP manual at in chapters CLXXXI and CLXXXII to work, for example // Example 2519. Creating an XSLTProcessor load($xsl_filename); $xsl->importStyleSheet($doc); $doc

[PHP] Re: short open tags not working even if enabled - lighttpd + fastcgi

2007-03-26 Thread Tim
Matt Arnilo S. Baluyos (Mailing Lists) schrieb: Hello everyone, I have a working lighttpd + fastcgi + PHP + eaccelerator installation. I have also enabled short tags on the /usr/local/lib/php.ini but I'm having problems with PHP not escaping the short tags. To better illustrate, my phpinfo() fi

Re: [PHP] Performance: While or For loop

2007-03-26 Thread Travis Doherty
Jake Gardner wrote: > He said if you run the /script/ itself 1000 times, not a loop with 1000 > iterations. This is quite possible; I am fairly certain there are > websites > out there that get accessed well over 1000 times a minute, yes? > > So every minute, that website is saving a total of 2.6

[PHP] short open tags not working even if enabled - lighttpd + fastcgi

2007-03-26 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I have a working lighttpd + fastcgi + PHP + eaccelerator installation. I have also enabled short tags on the /usr/local/lib/php.ini but I'm having problems with PHP not escaping the short tags. To better illustrate, my phpinfo() file can be accessed at http://202.171.164.70/phpin

Re: [PHP] Performance: While or For loop

2007-03-26 Thread Jake Gardner
He said if you run the /script/ itself 1000 times, not a loop with 1000 iterations. This is quite possible; I am fairly certain there are websites out there that get accessed well over 1000 times a minute, yes? So every minute, that website is saving a total of 2.6 seconds to do... whatever it is

Re: [PHP] memory management

2007-03-26 Thread Jochem Maas
you hijacked someone else's thread. don't do that. you are making assuptions about references are correct - the engine is cleverer than you think (Sara Golemon has a nice blog post about this kind of reference assuption that you might want to look up) the word is 'because' not 'cos'. 'short rec

[PHP] PHP newbie question on xslt

2007-03-26 Thread Timothy Murphy
I've been trying some of the programs in the PHP manual at in chapters CLXXXI and CLXXXII to work, for example // Example 2519. Creating an XSLTProcessor load($xsl_filename); $xsl->importStyleSheet($doc); $doc->load($xml_filename); echo

Re: [PHP] syntax question

2007-03-26 Thread itoctopus
Escape it, use either htmlentities (with ENT_QUOTES) or addslashes. -- itoctopus - http://www.itoctopus.com ""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, March 26, 2007 9:59 am, Ross wrote: > > Can I put post values directly into insert statements? > > > >

Re: [PHP] usage of flock

2007-03-26 Thread Yvan Strahm
On 3/23/07, Myron Turner <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: > On Fri, March 23, 2007 7:52 pm, Yvan Strahm wrote: > >> I am confused with the flock function and its usage. I have jobs which >> are >> stored in a database, these jobs are run by a series of job_runners >> scripts >> bu

Re: [PHP] usage of flock

2007-03-26 Thread Yvan Strahm
On 3/23/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, March 23, 2007 7:52 pm, Yvan Strahm wrote: > I am confused with the flock function and its usage. I have jobs which > are > stored in a database, these jobs are run by a series of job_runners > scripts > but sometimes the job_runners s

Re: [PHP] usage of flock

2007-03-26 Thread Richard Lynch
On Fri, March 23, 2007 10:34 pm, Myron Turner wrote: >> You can do it with flock, but then you end up sooner or later with a >> locked file from an "exit" or killed script, and then you have to >> know >> to remove locks older than X minutes. >> >> You could also just do a "mkdir" for your lock, an

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread tedd
At 2:56 PM -0500 3/26/07, Richard Lynch wrote: On Sun, March 25, 2007 9:49 am, Jake McHenry wrote: Do I call the image creation file in an html There is no such thing as "inline" image, so just forget that. Yes, you just use a SRC in an IMG tag to point to a PHP script. That PHP script can

Re: [PHP] Re: My own "captcha" from 2 years ago......

2007-03-26 Thread tedd
At 2:53 PM -0500 3/26/07, Richard Lynch wrote: If the code is embedded in the audio filename, or as part of the HTML, the CAPTCHA itself is kinda useless to a serious attack. The attacker will simply read the code from the HTML/URL I have not finished with the blind testing of my audio Captcha

RE: [PHP] Re: My own "captcha" from 2 years ago......

2007-03-26 Thread Jake McHenry
Refresh was at 1 sec... Cause I was just playing with the images... And I just figured it out... And responded to the list... But again... I had it working the entire time, but I didn't have a form to submit something to compare it to, which when I do that, it works, but it will never echo out what

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Jake McHenry
The try again button doesn't work... And geez I had this working ok the entire time When I saw yours it hit me... I don't have a form. It would never echo out the code to match whats in the picture... When the form is submitted it will check.. But I didn't have it on a form... I was j

Re: [PHP] Add New Records Only!

2007-03-26 Thread Rahul Sitaram Johari
DBF is native dbase databases, used by foxpro etcetera. But anyhow, I think what you've suggested is what I'll have to do. Take records from all my mySQL table(s) and put Unique records (based on your unique identifier exception code) into a temp mySQL table and then simply transfer the records in

Re: [PHP] Add New Records Only!

2007-03-26 Thread Richard Lynch
I have no idea what DBF is, but if the data is already in MySQL with duplicates, you'll need to take everything I just said, and "translate" it to DBF. If it cannot be translated to DBF because DBF has no unique indeces, you could, perhaps, create a TEMP table in MySQL, with the unique index, inse

Re: [PHP] Performance: While or For loop

2007-03-26 Thread Richard Lynch
On Sat, March 24, 2007 4:52 am, Tijnema ! wrote: >> That means that at 1000 iterations, you are "saving" how much time? >> >> .00026 seconds? >> .4 seconds? >> >> Puhleaze. > > Well, if you execute this script 1000 times, you would get a > difference of 2.6 seconds? > But if every microseconds

Re: [PHP] Computing and calculating dates

2007-03-26 Thread Richard Lynch
On Sun, March 25, 2007 12:46 pm, Otto Wyss wrote: > Sorry that doesn't work with dates like "1.4.2007". list($d, $m, $y) = explode('.', '1.4.2007'); $unixtime = mktime(1, 0, 0, $m, $d, $y); -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. h

Re: [PHP] Add New Records Only!

2007-03-26 Thread Rahul Sitaram Johari
I'm exporting the data from mySQL table(s) into a dbase DBF table. The unique index you're talking about should be in the DBF end, if I'm not mistaken - but I'm not sure how to do that, and if that will help mySQL to get that error and fail the second insert. Unless I'm not getting this right.

Re: [PHP] Re: combine empty and trim

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 10:50 am, Richard Davey wrote: > Tim wrote: > >> Ross schrieb: >>> I want to trim any whitepace and check if it is empty in the same >>> line this is not working. >>> >>> if (empty(trim($_POST['_createcategory']))) { >> Hi, >> >> try this: >> >> if (isset($_POST['_createcateg

[PHP] memory management

2007-03-26 Thread Stan Kuhn
Hi guys, I work with hierarchical world areas organization in my php script. It consumes a lot of memory so I'm trying to optimize it. The more I try the worse it is ;o) Consider following code: general::debug("make_hierarchy","before hier split"); //lets organize areas by parents foreach ($in

Re: [PHP] Add New Records Only!

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 2:28 pm, Rahul Sitaram Johari wrote: >> Another option would be to just create a UNIQUE INDEX on the fields >> you think "should" be unique, and then your second insert is gonna >> fail, and you can just ignore that. > > Could you possibly elaborate on this? > Things I'm tryi

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-26 Thread Rahul Sitaram Johari
I was actually going through your blogspot on the subject and figured quite a few flaws in my code and am re-writing it as we speak. But believe it or not Richard, at the time I was researching this, and this is about 2 years back, I was provided the code that I have in this very mailing list ami

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 2:49 pm, Rahul Sitaram Johari wrote: > header("Content-Type: application/force-download"); header("Content-type: asfdsgfhrsiu/luhgireughinfibvn"); would work equally well as application/force-download > header("Content-Disposition: attachment; filename=".basename($F)); > @

Re: [PHP] gethostbyname () uses old DNS server

2007-03-26 Thread Tijnema !
On 3/26/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, March 26, 2007 4:21 am, Kent Tong wrote: > We have moved our DNS server from one IP to another. But on a Linux > server, the PHP programs keep using the old DNS server IP. For > example, for a simple php file: > > > > When it is run, i

Re: [PHP] Rewriting urls

2007-03-26 Thread Tijnema !
On 3/26/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, March 26, 2007 12:14 pm, [EMAIL PROTECTED] wrote: > I am having some problems getting my mod_rewrite to work on my > development > server. On my > production server (linux) this works fine. But on my development > server it > woun't wor

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Richard Lynch
On Sun, March 25, 2007 9:02 pm, Jake McHenry wrote: > In image.php is this: > > session_start(); > > ..captcha code.. > $_SESSION['code'] = rand(blahblahblah) to get the random code Arooo? Don't randomize the code you're going to put on the image here. Make up a secret/random/obviou

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Richard Lynch
On Sun, March 25, 2007 9:49 am, Jake McHenry wrote: > Do I call the image creation file in an html bunch of > things, and this is the only way I've been able to display the image > inline > so far, without the image headers blocking the rest of my output There is no such thing as "inline" ima

Re: [PHP] Re: SNMP support on compile from source FastCGI

2007-03-26 Thread Erik Jones
On Mar 26, 2007, at 2:40 PM, Richard Lynch wrote: On Mon, March 26, 2007 1:47 am, Matt Arnilo S. Baluyos (Mailing Lists) wrote: It's strange though because I don't see an SNMP section on the result of a phpinfo(); Almost for sure you still don't have SNMP then. Check config.log to see if PH

Re: [PHP] Re: My own "captcha" from 2 years ago......

2007-03-26 Thread Richard Lynch
If the code is embedded in the audio filename, or as part of the HTML, the CAPTCHA itself is kinda useless to a serious attack. The attacker will simply read the code from the HTML/URL You need the secret code to never actually leave your server for it to stay secret. That said, CAPTCHA can usua

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-26 Thread Rahul Sitaram Johari
Ave, To be honest, I don't think it's OT. I ran into a similar problem quite a while back, working on a File Manager application programmed in PHP/mySQL. I used the following 'fore-download' header in php which assured the user present with a Save Dialog box to download the file, and not open th

RE: [PHP] Re: My own "captcha" from 2 years ago......

2007-03-26 Thread Richard Lynch
On Sat, March 24, 2007 11:00 pm, Jake McHenry wrote: > Index.php > session_start(); > header("Refresh: 1"); I dunno what the heck the "Refresh" header is, but it would not shock me in the least that your sessions are getting "lost" because your browser does the refresh before it processes the coo

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-26 Thread Richard Lynch
On Sun, March 25, 2007 8:41 am, Lorin Lund wrote: > I have a web site where I have posted some programs I have written as > shareware. > > click here to download > > works great with mozilla but with MS IE it tries to display the > program. > What is the simplest way to set it up so that the user j

Re: [PHP] Re: SNMP support on compile from source FastCGI

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 1:47 am, Matt Arnilo S. Baluyos (Mailing Lists) wrote: > It's strange though because I don't see an SNMP section on the result > of a phpinfo(); Almost for sure you still don't have SNMP then. Check config.log to see if PHP found the snmp libs or not. Probably not. -- So

Re: [PHP] gethostbyname () uses old DNS server

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 4:21 am, Kent Tong wrote: > We have moved our DNS server from one IP to another. But on a Linux > server, the PHP programs keep using the old DNS server IP. For > example, for a simple php file: > > > > When it is run, it tries to lookup smtp.cpttm using the old DNS > server

Re: [PHP] Newline and tab characters

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 6:54 am, Arno Kuhl wrote: > I've just noticed that "\r\n" and "\t" characters create a space when > rendered in the browser (tested in IE and Firefox). I'd always thought > the > browser would ignore these characters. No. HTML "collapses" any run of whitespace to a single s

Re: [PHP] Rewriting urls

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 12:14 pm, [EMAIL PROTECTED] wrote: > I am having some problems getting my mod_rewrite to work on my > development > server. On my > production server (linux) this works fine. But on my development > server it > woun't work. > > I have a file basicpage.php that is located in t

Re: [PHP] Add New Records Only!

2007-03-26 Thread Rahul Sitaram Johari
Ave, > Another option would be to just create a UNIQUE INDEX on the fields > you think "should" be unique, and then your second insert is gonna > fail, and you can just ignore that. Could you possibly elaborate on this? Things I'm trying are still not working out the way or want to, or efficientl

Re: [PHP] Re: syntax question

2007-03-26 Thread Richard Lynch
None of the previous posts added any security... They all ONLY provided different syntax to leave your database wide open for abuse. This is much safer: $cat_name_sql = myqsl_real_escape_string($_POST['cat_name']); $query = "insert into categories (category_name) values ('$cat_name_sql')"; You c

Re: [PHP] syntax question

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 9:59 am, Ross wrote: > Can I put post values directly into insert statements? > > $query = "INSERT INTO categories (category_name) VALUES > ('$_POST['cat_name'])"; Sure! If you want your webserver to get hacked by the Bad Guys, just go right ahead and do that. [that was to

Re: [PHP] combine empty and trim

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 10:17 am, Ross wrote: > I want to trim any whitepace and check if it is empty in the same > line this > is not working. > > if (empty(trim($_POST['_createcategory']))) { Define "not working" if you would... Personally, I always use isset() to determine if any POST data was

Re: [PHP] Debugging includes

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 11:31 am, Jonathan Kahan wrote: > I am attmepting to run a php scrip and this is the error i keep on > getting. > The scripts first 4 lines are below the errors. When errors are > returned, > does that mean that the error is local or in one of the include > scripts? I > have

Re: [PHP] converting video formats

2007-03-26 Thread Richard Davey
Bruce Gilbert wrote: Can someoune point me in the right direction as to how (if possible) to convert a video format uploaded to a server to a flash format (.flv) no matter what the orginal format is? We've had good success with automating Sorenson Squeeze directly via batched jobs on the serv

Re: [PHP] Rewriting urls

2007-03-26 Thread Erik Jones
On Mar 26, 2007, at 1:18 PM, Peter Lauri wrote: On Monday 26 March 2007 19:49:48 Erik Jones wrote: Yep, take this to the mod_rewrite forums @ http://www.modrewrite.com/ as this is a php list :) Thanks. This solved it for me: http://forum.modrewrite.com/viewtopic.php?p=10796#10796 /Peter

Re: [PHP] converting video formats

2007-03-26 Thread Tijnema !
On 3/26/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote: Can someoune point me in the right direction as to how (if possible) to convert a video format uploaded to a server to a flash format (.flv) no matter what the orginal format is? thanks -- ::Bruce:: We had a discussion about having video su

Re: [PHP] Rewriting urls

2007-03-26 Thread Peter Lauri
On Monday 26 March 2007 19:49:48 Erik Jones wrote: > Yep, take this to the mod_rewrite forums @ http://www.modrewrite.com/   > as this is a php list :) Thanks. This solved it for me: http://forum.modrewrite.com/viewtopic.php?p=10796#10796 /Peter -- PHP General Mailing List (http://www.php.net/)

[PHP] converting video formats

2007-03-26 Thread Bruce Gilbert
Can someoune point me in the right direction as to how (if possible) to convert a video format uploaded to a server to a flash format (.flv) no matter what the orginal format is? thanks -- ::Bruce:: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Brad Fuller
> From: tedd [mailto:[EMAIL PROTECTED] > At 10:59 AM -0400 3/26/07, Brad Fuller wrote: > > > >echo ''; > > > >This does not "run" or "call" image.php. > > > >This line of code sends this output to the browser. > > Brad: > > Yes, but the browser runs the code by trying to load an image. ... My

Re: [PHP] syntax question

2007-03-26 Thread tedd
At 3:59 PM +0100 3/26/07, Ross wrote: Can I put post values directly into insert statements? $query = "INSERT INTO categories (category_name) VALUES ('$_POST['cat_name'])"; Open to sql injection. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP Ge

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread tedd
At 10:59 AM -0400 3/26/07, Brad Fuller wrote: echo ''; This does not "run" or "call" image.php. This line of code sends this output to the browser. Brad: Yes, but the browser runs the code by trying to load an image. Check this out: http://sperling.com/examples/assorted-captcha/index.php

Re: [PHP] Debugging includes

2007-03-26 Thread Richard Davey
Jonathan Kahan wrote: I am attmepting to run a php scrip and this is the error i keep on getting. The scripts first 4 lines are below the errors. When errors are returned, does that mean that the error is local or in one of the include scripts? I have tried to reverse the order of the includes

Re: [PHP] Rewriting urls

2007-03-26 Thread Erik Jones
On Mar 26, 2007, at 12:14 PM, [EMAIL PROTECTED] wrote: Hi, I am having some problems getting my mod_rewrite to work on my development server. On my production server (linux) this works fine. But on my development server it woun't work. I have a file basicpage.php that is located in the w

[PHP] Debugging includes

2007-03-26 Thread Jonathan Kahan
Hi all, I am attmepting to run a php scrip and this is the error i keep on getting. The scripts first 4 lines are below the errors. When errors are returned, does that mean that the error is local or in one of the include scripts? I have tried to reverse the order of the includes but when i do

[PHP] Rewriting urls

2007-03-26 Thread lists
Hi, I am having some problems getting my mod_rewrite to work on my development server. On my production server (linux) this works fine. But on my development server it woun't work. I have a file basicpage.php that is located in the webroot. I then have a .htaccess file with the following content

Re: [PHP] Re: combine empty and trim

2007-03-26 Thread Tim
Richard Davey schrieb: Tim wrote: Ross schrieb: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { Hi, try this: if (isset($_POST['_createcategory'])) { $value = trim($_POST['_createcategory']); i

Re: [PHP] Re: combine empty and trim

2007-03-26 Thread Richard Davey
Tim wrote: Ross schrieb: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { Hi, try this: if (isset($_POST['_createcategory'])) { $value = trim($_POST['_createcategory']); if (empty($value)) {

Re: [PHP] combine empty and trim

2007-03-26 Thread Robert Cummings
On Mon, 2007-03-26 at 16:23 +0100, Stut wrote: > Ross wrote: > > I want to trim any whitepace and check if it is empty in the same line > > this > > is not working. > > > > if (empty(trim($_POST['_createcategory']))) { > > You can't do this because empty needs the variable - it can't work on

Re: [PHP] syntax question

2007-03-26 Thread Brad Bonkoski
Ross wrote: Can I put post values directly into insert statements? $query = "INSERT INTO categories (category_name) VALUES ('$_POST['cat_name'])"; Yes, although this is not recommended. What is someone puts a single quote in there? Or some other bad characters otherwise... 2 optio

[PHP] Re: combine empty and trim

2007-03-26 Thread Colin Guthrie
Stut wrote: > You could also do something like this... > > $_POST['_createcategory'] = > isset($_POST['_createcategory']) ? > trim($_POST['_createcategory']) : ''; > > if (empty($_POST['_createcategory'])) { > > Still not pretty but slightly better in that you can cleanse your data >

[PHP] Re: combine empty and trim

2007-03-26 Thread Tim
Ross schrieb: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { Hi, try this: if (isset($_POST['_createcategory'])) { $value = trim($_POST['_createcategory']); if (empty($value)) { } } -- PHP

Re: [PHP] combine empty and trim

2007-03-26 Thread Brad Bonkoski
Brad Bonkoski wrote: Ross wrote: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { perhaps try: if( strlen(trim($_POST['...']))) <= 0 ) { ... } don't think empty is the right function for this... -Br

Re: [PHP] combine empty and trim

2007-03-26 Thread Stut
Ross wrote: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { You can't do this because empty needs the variable - it can't work on teh return value. The closest you can get would be... if (isset($_PO

Re: [PHP] combine empty and trim

2007-03-26 Thread Brad Bonkoski
Ross wrote: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { perhaps try: if( strlen(trim($_POST['...']))) <= 0 ) { ... } don't think empty is the right function for this... -Brad -- PHP General M

[PHP] combine empty and trim

2007-03-26 Thread Ross
I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: syntax question

2007-03-26 Thread Ross
thanks. ""Ross"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can I put post values directly into insert statements? > > $query = "INSERT INTO categories (category_name) VALUES > ('$_POST['cat_name'])"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] syntax question

2007-03-26 Thread cajbecu
Ross wrote: > Can I put post values directly into insert statements? > > $query = "INSERT INTO categories (category_name) VALUES > ('$_POST['cat_name'])"; > Yes you can, but it is not secure to do that! use (insecure): $query = "INSERT INTO categories (category_name) VALUES ('{$_POST['cat_na

[PHP] syntax question

2007-03-26 Thread Ross
Can I put post values directly into insert statements? $query = "INSERT INTO categories (category_name) VALUES ('$_POST['cat_name'])"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Brad Fuller
> > -Original Message- > > From: tedd [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 26, 2007 8:49 AM > > To: php-general@lists.php.net > > Subject: RE: [PHP] My own "captcha" from 2 years ago.. > > > > At 10:02 PM -0400 3/25/07, Jake McHenry wrote: > > >Like I said... Even if they h

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Jake McHenry
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Monday, March 26, 2007 8:49 AM > To: php-general@lists.php.net > Subject: RE: [PHP] My own "captcha" from 2 years ago.. > > At 10:02 PM -0400 3/25/07, Jake McHenry wrote: > >Like I said... Even if they have sound t

[PHP] Re: Newline and tab characters

2007-03-26 Thread Al
Browsers ignore \n \r and \t. Look at the resultant html source code in your browser. Something is converting them BEFORE sending the html code to the client browser. Arno Kuhl wrote: I've just noticed that "\r\n" and "\t" characters create a space when rendered in the browser (tested in IE a

Re: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Jochem Maas
Jake McHenry wrote: > Like I said... Even if they have sound turned on.. Which all my sets do... > Most of them don't have speakers... That was put into effect over a year ago > due to some people listening to those damn screaming prank things at full > volume... and didn'tr we all have a fun with

[PHP] Re: OT: firstname-lastname fun - SOLVED :) (was: Re: [PHP] preview string with strlen PHP (help))

2007-03-26 Thread tedd
At 12:29 AM +0200 3/26/07, Zoltán Németh wrote: 2007. 03. 23, péntek keltezéssel 20.36-kor Tijnema ! ezt írta: On 3/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: > 2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: > > YES this works thank nemeth: > > your welcome but pl

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread tedd
At 10:02 PM -0400 3/25/07, Jake McHenry wrote: Like I said... Even if they have sound turned on.. Which all my sets do... Most of them don't have speakers... That was put into effect over a year ago due to some people listening to those damn screaming prank things at full volume... Anyways... I w

Re: [PHP] Newline and tab characters

2007-03-26 Thread Zoltán Németh
2007. 03. 26, hétfő keltezéssel 13.58-kor Zoltán Németh ezt írta: > 2007. 03. 26, hétfő keltezéssel 13.54-kor Arno Kuhl ezt írta: > > I've just noticed that "\r\n" and "\t" characters create a space when > > rendered in the browser (tested in IE and Firefox). I'd always thought the > > browser woul

Re: [PHP] Newline and tab characters

2007-03-26 Thread Zoltán Németh
2007. 03. 26, hétfő keltezéssel 13.54-kor Arno Kuhl ezt írta: > I've just noticed that "\r\n" and "\t" characters create a space when > rendered in the browser (tested in IE and Firefox). I'd always thought the > browser would ignore these characters. This wouldn't normally be a problem > but the w

[PHP] Newline and tab characters

2007-03-26 Thread Arno Kuhl
I've just noticed that "\r\n" and "\t" characters create a space when rendered in the browser (tested in IE and Firefox). I'd always thought the browser would ignore these characters. This wouldn't normally be a problem but the wysiwyg html editor in the cms I'm using tries to be friendly by format

Re: [PHP] Perl find and replace in PHP

2007-03-26 Thread Zoltán Németh
2007. 03. 26, hétfő keltezéssel 21.17-kor [EMAIL PROTECTED] ezt írta: > Hi All > > I am porting some perl to PHP and have struck a small snag. The perl > script has quite a few substitutions that take place so data can be fed > into a html page. > > The script uses the following perl syntax > >

[PHP] Perl find and replace in PHP

2007-03-26 Thread rluckhurst
Hi All I am porting some perl to PHP and have struck a small snag. The perl script has quite a few substitutions that take place so data can be fed into a html page. The script uses the following perl syntax $html = `cat search_results.html`; $html =~ s/%Accom/$accom/g; As I understand perl tha

[PHP] Re: gethostbyname () uses old DNS server

2007-03-26 Thread Kent Tong
Stut gmail.com> writes: > Assuming you're using a web server it's possible PHP is caching the DNS > server details. Try restarting the web server. Alternatively try the > same script on the command line. Wow! You're right! Stopping apache and then starting it (in two steps) solves the problem

Re: [PHP] gethostbyname () uses old DNS server

2007-03-26 Thread Stut
Kent Tong wrote: We have moved our DNS server from one IP to another. But on a Linux server, the PHP programs keep using the old DNS server IP. For example, for a simple php file: When it is run, it tries to lookup smtp.cpttm using the old DNS server (I know it using tcpdump). The new DNS s

[PHP] gethostbyname () uses old DNS server

2007-03-26 Thread Kent Tong
Hi, We have moved our DNS server from one IP to another. But on a Linux server, the PHP programs keep using the old DNS server IP. For example, for a simple php file: When it is run, it tries to lookup smtp.cpttm using the old DNS server (I know it using tcpdump). The new DNS server is specif