[PHP] Re: help for memcached Segmentation fault

2011-06-27 Thread xucheng
sorry, the right $config['memcached'] variable is $config['memcached']=array(array('host'=>'localhost', port=11211, persistent=1,weight=1)); 2011/6/28 xucheng : > Hi all, >       I wrap pecl-memcache into a class used as a sigleton class . > the code is : > ===

[PHP] Re: help with _get error

2011-03-23 Thread Shane Rutter
On 23/03/2011 17:46, Jack wrote: Hello All, I'm having a problem with this line of code which worked fine for years: $l_url2 = ".".$_GET[SERVER_NAME]; Here is the error: [Wed Mar 23 13:33:49 2011] [error] [client 16.139.201.61] PHP Notice: Use of undefined constant SERVER_NAME - assumed

Re: [PHP] Re: Help! Made a boo-boo encrypting credit cards

2011-03-04 Thread David Hutto
Maybe I missed something here, but aren't the cc's held by the merchant account provider, and just an id by you to recharge(recurring or once), which can be disputed. I ask because it's been a while since I had to look at this. So let the OP's question take precedence, and mine secondary if necessa

Re: [PHP] Re: Help! Made a boo-boo encrypting credit cards

2011-03-04 Thread Richard Quadling
2011/3/4 Nisse Engström : > On Fri, 11 Feb 2011 14:42:18 -0800, Brian Dunning wrote: > >> Hey all - >> >> I'm using mcrypt to store credit cards into MySQL. About 90% >> of them decrypt fine, but about 10% decrypt as nonsense >> ("b1�\�JEÚU�A���" is a good example). Maybe there is a >> character th

[PHP] Re: Help! Made a boo-boo encrypting credit cards

2011-03-04 Thread Nisse Engström
On Fri, 11 Feb 2011 14:42:18 -0800, Brian Dunning wrote: > Hey all - > > I'm using mcrypt to store credit cards into MySQL. About 90% > of them decrypt fine, but about 10% decrypt as nonsense > ("b1�\�JEÚU�A���" is a good example). Maybe there is a > character that appears in about 10% of my encr

[PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-18 Thread WalkinRaven
On 01/08/2011 04:55 PM, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z] (?:[a-z]|[0-9]|\-){1,61} (?:[a-z]|[0-9]) ) # One label (?:\.(?1))*+ # More labels \.? #

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Ashley Sheridan
On Tue, 2011-01-11 at 14:44 -0500, Steve Staples wrote: > On Tue, 2011-01-11 at 19:00 +, Ashley Sheridan wrote: > > On Tue, 2011-01-11 at 17:07 +0100, Michelle Konzack wrote: > > > > > Hello Ashley Sheridan, > > > > > > Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: > > > > Also, ea

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Steve Staples
On Tue, 2011-01-11 at 19:00 +, Ashley Sheridan wrote: > On Tue, 2011-01-11 at 17:07 +0100, Michelle Konzack wrote: > > > Hello Ashley Sheridan, > > > > Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: > > > Also, each label is checked to ensure it doesn't run over 63 characters, > > >

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
Michelle Konzack wrote: > Hello Ashley Sheridan, > > Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: >> Also, each label is checked to ensure it doesn't run over 63 >> characters, and the whole thing isn't over 253 characters. Lastly, >> each label is checked to ensure it doesn't complete

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Ashley Sheridan
On Tue, 2011-01-11 at 17:07 +0100, Michelle Konzack wrote: > Hello Ashley Sheridan, > > Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: > > Also, each label is checked to ensure it doesn't run over 63 characters, > > and the whole thing isn't over 253 characters. Lastly, each label is > >

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
tedd wrote: > At 11:54 AM +0100 1/11/11, Per Jessen wrote: >>tedd wrote: >> >>> At that time, I registered almost 30 names. >>> Fortunately, all of my names passed and I was >>> permitted to keep them. Unfortunately, all >>> browser manufactures (except Safari) negated some >>> of the work do

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread tedd
At 11:54 AM +0100 1/11/11, Per Jessen wrote: tedd wrote: At that time, I registered almost 30 names. Fortunately, all of my names passed and I was permitted to keep them. Unfortunately, all browser manufactures (except Safari) negated some of the work done by the IDNS WG and as a result P

[PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Michelle Konzack
Hello Ashley Sheridan, Am 2011-01-08 17:09:27, hacktest Du folgendes herunter: > Also, each label is checked to ensure it doesn't run over 63 characters, > and the whole thing isn't over 253 characters. Lastly, each label is > checked to ensure it doesn't completely consist of digits. Do you know

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
tedd wrote: > At that time, I registered almost 30 names. > Fortunately, all of my names passed and I was > permitted to keep them. Unfortunately, all > browser manufactures (except Safari) negated some > of the work done by the IDNS WG and as a result > PUNYCODE is shown instead of the actual > c

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-10 Thread tedd
At 11:57 AM -0500 1/10/11, Steve Staples wrote: On Mon, 2011-01-10 at 11:39 -0500, tedd wrote: > >>>For example -- >>> >>>http://xn--19g.com >>> > >>>-- is square-root dot com. on my Ubuntu box, I can copy and past the ˆ (square-root) character and it displays properly in he address bar

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-10 Thread Steve Staples
On Mon, 2011-01-10 at 11:39 -0500, tedd wrote: > At 11:41 AM -0600 1/9/11, Donovan Brooke wrote: > >Daniel Brown wrote: > >>On Sun, Jan 9, 2011 at 11:58, tedd wrote: > >>> > >>>For example -- > >>> > >>>http://xn--19g.com > >>> > >>>-- is square-root dot com. In all browsers except Safari... > > >

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-10 Thread tedd
At 11:41 AM -0600 1/9/11, Donovan Brooke wrote: Daniel Brown wrote: On Sun, Jan 9, 2011 at 11:58, tedd wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari... but yes, the actual square root character appears in safari only. Interesting! Donov

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-10 Thread tedd
At 12:23 PM -0500 1/9/11, Daniel Brown wrote: On Sun, Jan 9, 2011 at 11:58, tedd wrote: For example -- http://xn--19g.com > -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown in the address bar, but in Safari it's shown as –.com Not sure if that's a typo

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Ashley Sheridan
On Sun, 2011-01-09 at 12:38 -0500, Daniel Brown wrote: > On Sun, Jan 9, 2011 at 12:32, Ashley Sheridan > wrote: > > > > ^ is to the power of, not square root, which is √, which does translate to > > Tedds domain > > Thanks for the math lesson, professor, but I already knew that. ;-P > >

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Ashley Sheridan
On Sun, 2011-01-09 at 12:23 -0500, Daniel Brown wrote: > On Sun, Jan 9, 2011 at 11:58, tedd wrote: > > > > For example -- > > > > http://xn--19g.com > > > > -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown > > in the address bar, but in Safari it's shown as ˆ.com > >

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Donovan Brooke
Daniel Brown wrote: On Sun, Jan 9, 2011 at 11:58, tedd wrote: For example -- http://xn--19g.com -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown in the address bar, but in Safari it's shown as ˆ.com Not sure if that's a typo or an issue in translation while

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Daniel Brown
On Sun, Jan 9, 2011 at 12:32, Ashley Sheridan wrote: > > ^ is to the power of, not square root, which is √, which does translate to > Tedds domain Thanks for the math lesson, professor, but I already knew that. ;-P My point is, and as you can see in the quoted text from my email, that

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Daniel Brown
On Sun, Jan 9, 2011 at 11:58, tedd wrote: > > For example -- > > http://xn--19g.com > > -- is square-root dot com. In all browsers except Safari, PUNYCODE is shown > in the address bar, but in Safari it's shown as ˆ.com Not sure if that's a typo or an issue in translation while the email was

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread tedd
At 12:15 PM +0100 1/9/11, Per Jessen wrote: Tamara Temple wrote: > I'm wondering what mods to make for this now that unicode chars are allowed in domain names You're talking about IDNs ? The actual domain name is still US-ASCII, only when you decode punycode do you get UTF8 characters.

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Per Jessen
Tamara Temple wrote: > On Jan 8, 2011, at 2:22 PM, Al wrote: > >> >> >> On 1/8/2011 3:55 AM, WalkinRaven wrote: >>> PHP 5.3 PCRE >>> >>> Regular Express to match domain names format according to RFC 1034 >>> - DOMAIN >>> NAMES - CONCEPTS AND FACILITIES >>> >>> /^ >>> ( >>> [a-z] | >>> [a-z] (?:[a

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-08 Thread Tamara Temple
On Jan 8, 2011, at 2:22 PM, Al wrote: On 1/8/2011 3:55 AM, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z] (?:[a-z]|[0-9]|\-){1,61} (?:[a-z]|[0-9]) ) # O

[PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-08 Thread Al
On 1/8/2011 3:55 AM, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z] (?:[a-z]|[0-9]|\-){1,61} (?:[a-z]|[0-9]) ) # One label (?:\.(?1))*+ # More labels \.? #

[PHP] RE: Help with variable variables not being set for a multi-dimensional array

2010-11-09 Thread Daevid Vincent
> -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: Tuesday, November 09, 2010 6:55 PM > To: 'php-general@lists.php.net' > Subject: Help with variable variables not being set for a > multi-dimensional array > > I've used variable variables before but for som

Re: [PHP] Re: Help with exec.

2010-03-03 Thread Paul Halliday
and its that easy! it took me a minute to figure out; but all I had to do was: if (is_resource($process)) { for ($i = 0; $i < sizeof($src_ip); $i++) { fwrite($pipes[0], "$sig_desc[$i],$src_ip[$i],$dst_ip[$i]\n"); } fclose($pipes[0]); fclose($pipes[1]); proc_close($pr

[PHP] Re: Help with exec.

2010-03-03 Thread Ian
On 03/03/2010 13:01, Paul Halliday wrote: > I need to pipe some data to an external application. > > I have this: > > while ($row = mysql_fetch_array($theData[0])) { > $src_ip[] = $row[0]; > $dst_ip[] = $row[1]; > $sig_desc[] = $row[2]; > > $rec ++; > if ( $rec == $recCount )

[PHP] Re: help, please, understanding my problem

2010-02-23 Thread Stan
Thanks all. I rediscovered DIFF, compared the source for the first and second rendering. Besides the unique variable names there was also the message ... which contained imbedded single quote marks. When I changed them to imbedded double quote marks the problem went away. ""Stan"" wrote in mess

Re: [PHP] Re: help, please, understanding my problem

2010-02-23 Thread Rene Veerman
On Tue, Feb 23, 2010 at 1:03 PM, Ashley Sheridan wrote: > Are you maybe modifying it in > a way that breaks the javascript? > that would be my guess too... firefox + firebug will often give accurate error messages for badly formed js. the error itself is known to be caused by malformed js unable

Re: [PHP] Re: help, please, understanding my problem

2010-02-23 Thread Ashley Sheridan
On Tue, 2010-02-23 at 05:55 -0600, Stan wrote: > It works like it is ... once. What I don't understand is why the client > browser(s I have tried it with Firefox and IE 6) can't find the Javascript > function the second time. > > > I've had a look, but I'm not sure what you're trying to achi

[PHP] Re: help, please, understanding my problem

2010-02-23 Thread Stan
It works like it is ... once. What I don't understand is why the client browser(s I have tried it with Firefox and IE 6) can't find the Javascript function the second time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help with regex (search/replace) please

2010-02-06 Thread Ryan S
@Al, > have you looked at the Pear html_QuickForm2 set? Actually nope, whats it about? just did a google search and found it on the php site but no example code around so dont really have a clue. @Ash, Pastebin! Of course, why didnt i think of that... will do! Actually, just did so that i wou

[PHP] Re: Help with regex (search/replace) please

2010-02-06 Thread Al
have you looked at the Pear html_QuickForm2 set? On 2/6/2010 9:43 AM, Ryan S wrote: Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form

[PHP] Re: Help needed with calculation

2009-11-15 Thread Ben
Chris Payne wrote: Hi everyone, I'm not sure of the correct formula for this, if I have a file - just for example, that is 10245458756 bytes long and the download speed is 60KB a second, what formula would I use to calculate how many seconds/minutes/hours it would take to download the file? Mat

RE: [PHP] RE: Help with my first recursion menu

2009-11-02 Thread MEM
From: Lex Braun [mailto:lex.br...@gmail.com] Sent: segunda-feira, 2 de Novembro de 2009 02:58 To: MEM Cc: php-general@lists.php.net Subject: Re: [PHP] RE: Help with my first recursion menu Hi, On Sat, Oct 31, 2009 at 11:07 AM, MEM wrote: From: Lex Braun [mailto:lex.br...@gmail.com] Sent

Re: [PHP] RE: Help with my first recursion menu

2009-11-01 Thread Lex Braun
Hi, On Sat, Oct 31, 2009 at 11:07 AM, MEM wrote: > > > *From:* Lex Braun [mailto:lex.br...@gmail.com] > *Sent:* sábado, 31 de Outubro de 2009 14:05 > *To:* MEM > *Cc:* php-general@lists.php.net > *Subject:* Re: [PHP] RE: Help with my first recursion menu > > > >

RE: [PHP] RE: Help with my first recursion menu

2009-10-31 Thread MEM
From: Lex Braun [mailto:lex.br...@gmail.com] Sent: sábado, 31 de Outubro de 2009 14:05 To: MEM Cc: php-general@lists.php.net Subject: Re: [PHP] RE: Help with my first recursion menu Hi, On Wed, Oct 28, 2009 at 5:22 PM, MEM wrote: I've been told that stack is the way to go, so I'm

Re: [PHP] RE: Help with my first recursion menu

2009-10-31 Thread Lex Braun
Hi, On Wed, Oct 28, 2009 at 5:22 PM, MEM wrote: > I've been told that stack is the way to go, so I'm trying to understand > the > following code: > http://pastebin.com/m5616c88f > I've commented every line so that any of you could see if I'm interpreting > something wrong: > > > I have two ques

[PHP] RE: Help with my first recursion menu

2009-10-28 Thread MEM
> -Original Message- > From: MEM [mailto:tal...@gmail.com] > Sent: quarta-feira, 28 de Outubro de 2009 15:55 > To: 'php-general@lists.php.net' > Subject: Help with my first recursion menu > > Hello all, > > Please have a look here: > http://www.nuvemk.com/c_categoria/seccao/1 > > > When

[PHP] Re: Help on pregreplace

2009-08-19 Thread tedd
At 10:51 AM -0400 8/18/09, Al wrote: Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find a fix. Can someone help?

[PHP] Re: Help on pregreplace

2009-08-18 Thread Vladan Stefanovic
You should check out preg_quote() function which puts a backslash in front of characters (escapes them) that have a special meaning in regular expressions. Regards, Vladan Stefanovic "Merlin Morgenstern" wrote in message news:12.62.22194.004ba...@pb1.pair.com... Hi there, I am highlightin

[PHP] Re: Help on pregreplace

2009-08-18 Thread Al
Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find a fix. Can someone help? Here is the code: $patte

Re: [PHP] Re: Help: PHP version not up to date after "apt-get install php5-dev"

2009-06-19 Thread Thodoris
Why not just compile it yourself? Why not let the ports system compile it for you and then have the choice to remove it as package whenever you like... You get it compiled and packaged the same time... :-) I guess BSD is the way to make your life easier... -- Thodoris -- PHP Genera

Re: [PHP] Re: Help: PHP version not up to date after "apt-get install php5-dev"

2009-06-17 Thread Eddie Drapkin
Why not just compile it yourself? On Wed, Jun 17, 2009 at 3:34 PM, Shawn McKenzie wrote: > Philipp Schaffner wrote: >> Dear PHP [hard]core expert >> >> After  "apt-get install php5-dev" on Linux (Debian, Ubuntu, Hardy Heron) >> with an already existing and functioning PHP5 interpreter "phpinfo()"

[PHP] Re: Help: PHP version not up to date after "apt-get install php5-dev"

2009-06-17 Thread Shawn McKenzie
Philipp Schaffner wrote: > Dear PHP [hard]core expert > > After "apt-get install php5-dev" on Linux (Debian, Ubuntu, Hardy Heron) > with an already existing and functioning PHP5 interpreter "phpinfo()" > still shows "PHP Version 5.2.4-2ubuntu5.6". BUT at the same time > phpinfo() shows "Build Dat

Re: [PHP] Re: Help with scandir()

2009-04-27 Thread Simon
I lack experience with windows, but my experience in linux tells me this *might* be related to the permissions the PHP or webserver has to access that remote drive? Ie. like the drives might be mapped just for your user? Not sure, but you might want to check this, permissions are common problems

Re: [PHP] Re: Help with scandir()

2009-04-27 Thread Jan G.B.
2009/4/26 Nathan Rixham : > Deivys Delgado Hernandez wrote: >> >> Hi, >> I'm having problems when i try to use the function scandir()  in a Novell >> Netware Volumen or a Windows Shared Folder >> they both are mapped as a windows network drive, so i suppose i could >> access them as local drive, bu

[PHP] Re: Help with scandir()

2009-04-26 Thread Nathan Rixham
Deivys Delgado Hernandez wrote: Hi, I'm having problems when i try to use the function scandir() in a Novell Netware Volumen or a Windows Shared Folder they both are mapped as a windows network drive, so i suppose i could access them as local drive, but i can't. instead i receive this message:

[PHP] Re: Help me debug this

2009-04-21 Thread Patrick Moloney
Patrick Moloney wrote: Some months ago I downloaded and installed Apache, PHP and MySql. With only light use they seem to be working. I have downloaded a Test Script from the VBulletin vendor that is supposed to determine if your setup could run their product. The Test Script is php and appears

[PHP] Re: Help with MySQL

2009-02-13 Thread Shawn McKenzie
James Colannino wrote: > Hey everyone. I've been reading the list for a long time, but have only > really posted to the mailing list a few times. I just had a quick > question about MySQL. I'm not sure if this is exactly relevant to PHP, > but it is for a PHP application I'm writing, so hopefull

Re: [PHP] Re: help with end of line charater

2009-01-31 Thread Jim Lucas
tedd wrote: > At 11:58 AM -0600 1/30/09, Adam Williams wrote: >> yeah just a second ago a big lightbulb went off in my head > > > Try a bigger light-bulb and store the email addresses in a database. > Then you can use them as you want regardless if the user hit return or not. > > Cheers, > > te

Re: [PHP] Re: help with end of line charater

2009-01-31 Thread tedd
At 11:58 AM -0600 1/30/09, Adam Williams wrote: yeah just a second ago a big lightbulb went off in my head Try a bigger light-bulb and store the email addresses in a database. Then you can use them as you want regardless if the user hit return or not. Cheers, tedd -- --- http://sper

Re: [PHP] Re: help with end of line charater

2009-01-30 Thread Jim Lucas
Adam Williams wrote: > Shawn McKenzie wrote: >> This may be best handled in your sorting code. What does it look like? >> > > yeah just a second ago a big lightbulb went off in my head and i fixed > my code to add a \r\n on saving, and strip it on viewing. I sort on > viewing, not sort on sav

Re: [PHP] Re: help with end of line charater

2009-01-30 Thread Konstantin S. Kurilov
Hello Adam! $list2 = explode("\n", $list); // "\n" not "\r\n" $list = implode("\r\n", $list2); foreach ... - not need with the best regards - Konstantin Kurilov Shawn McKenzie wrote: Adam Williams wrote: I have staff inputting email addresses into a named $list on a form and when they c

Re: [PHP] Re: help with end of line charater

2009-01-30 Thread Adam Williams
Shawn McKenzie wrote: This may be best handled in your sorting code. What does it look like? yeah just a second ago a big lightbulb went off in my head and i fixed my code to add a \r\n on saving, and strip it on viewing. I sort on viewing, not sort on saving. The viewing code looks lik

[PHP] Re: help with end of line charater

2009-01-30 Thread Shawn McKenzie
Shawn McKenzie wrote: > Adam Williams wrote: >> I have staff inputting email addresses into a named $list on >> a form and when they click submit, my php script sorts the email >> addresses and writes to disk. The problem is, lets say they enter the >> email addresses >> >> b...@mdah.state.ms.us

[PHP] Re: help with end of line charater

2009-01-30 Thread Shawn McKenzie
Adam Williams wrote: > I have staff inputting email addresses into a named $list on > a form and when they click submit, my php script sorts the email > addresses and writes to disk. The problem is, lets say they enter the > email addresses > > b...@mdah.state.ms.us > ama...@mdah.state.ms.us > s

Re: [PHP] Re: -help

2008-10-22 Thread Nathan Rixham
Yeti wrote: Well maybe it is because he has register_globals on why he is not printing a list of valid arguments. imagine something like this .. @php-generals$ [PHP] -help List of valid arguments: -c, --make-me-forget erases the built-in mainframe's short term memory -f, --flush-me erases the e

Re: [PHP] Re: -help

2008-10-22 Thread Yeti
Well maybe it is because he has register_globals on why he is not printing a list of valid arguments. imagine something like this .. @php-generals$ [PHP] -help List of valid arguments: -c, --make-me-forget erases the built-in mainframe's short term memory -f, --flush-me erases the entire memory o

Re: [PHP] Re: -help

2008-10-22 Thread Jay Moore
Yeti wrote: -help: invalid argument I like the way you handle input errors in your php-general subroutines David. I don't. It says nothing about what a valid argument is. Horrible newsgroup coding, imo. I wouldn't be surprised if he has register_globals on. -- PHP General Mailing List

Re: [PHP] Re: -help

2008-10-22 Thread Yeti
>-help: invalid argument I like the way you handle input errors in your php-general subroutines David. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: -help

2008-10-22 Thread David Robley
devta singh wrote: -help: invalid argument Cheers -- David Robley I used to have a handle on life, then it broke. Today is Setting Orange, the 3rd day of The Aftermath in the YOLD 3174. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: help - php script - no interaction

2008-10-16 Thread Nathan Rixham
John Smtih wrote: http://www.site1.com http://www.site2.com http://www.site3.com I have 3 sites above in a html. I do not want to create click each site, one at a time to see 1 page info. I want to write a script to go get all 3 sites, and bring it back into 1 page (the content of 3 pages c

[PHP] Re: Help with preg_match_all regex for alt tags

2008-04-29 Thread Shawn McKenzie
Joe Harman wrote: Hey y'all ... i am having alittle trouble with this regex for finding ALT tags for images... Here is my statement preg_match_all("'alt[^>]*?>.*?[^>]

Re: [PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-18 Thread Richard Heyes
A link causes 'index.php/use1' to be appended to the full url [http://localhost/~donn/template-dev/routertest/] and at first, it's fine but after a few clicks, it keeps appending. Amazingly things still work, but the URL is out of control! Links that don't start with a / are taken to be relat

Re: [PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-18 Thread Donn
On Tuesday, 18 March 2008 12:02:14 Richard Heyes wrote: > You can use $_SERVER['PHP_SELF'] which will give you the path to the > script or $_SERVER['REQUEST_URI'] (you will probably have to remove the > query string with this), along with either dirname(). The problem is that the URL does not stay

Re: [PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-18 Thread Richard Heyes
The thing that would help here is if I could get a reliable way to extract the working 'path' (from an http:// pov) from the $_SERVER array somehow. Each of them gives a result tantalizingly close to the base, but they get it wrong in various ways. You can use $_SERVER['PHP_SELF'] which will giv

[PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-18 Thread Donn Ingle
Shawn McKenzie wrote: > Does seem strange.  Try: > > http://localhost/~donn/blah/index.php"; /> > > Then just use /home, /use1 etc...  Might work. Right, I'll give it a go. It's not much different from wiring-in a php var naming the base with {$base}/use1 being the form. The thing that would hel

[PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-17 Thread Shawn McKenzie
Donn Ingle wrote: > Shawn McKenzie wrote: >> Use /index.php instead of index.php maybe... > I assume you meant in the tag. I tried that and the URL (when you > mouse-over the link) becomes [http://localhost/index.php] which is not > anywhere near where the files live. > > I must say I am rather c

[PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-17 Thread Donn Ingle
Shawn McKenzie wrote: > Use /index.php instead of index.php maybe... I assume you meant in the tag. I tried that and the URL (when you mouse-over the link) becomes [http://localhost/index.php] which is not anywhere near where the files live. I must say I am rather confused by this situation, but

[PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-17 Thread Shawn McKenzie
UsDonn Ingle wrote: > Hi, > I have been trying to get a little templating thing going and I want > everything to pass through a single index.php file which then decides what > page is wanted and includes them. > > The scheme is to go to a url like [http://localhost/~donn/blah/] which > serves ind

Re: [PHP] Re: Help with preg_replace

2007-11-08 Thread Robin Vickery
On 08/11/2007, Jochem Maas <[EMAIL PROTECTED]> wrote: > Al wrote: > > Delimiters needed. Can use about anything not already in your pattern. > > "/" is very commonly used; but I like "#" or "%" generally; but, you > > can't use "%" because your pattern has it. > > > > $html = preg_replace("#%ResI

Re: [PHP] Re: Help with preg_replace

2007-11-07 Thread Jochem Maas
Al wrote: > Delimiters needed. Can use about anything not already in your pattern. > "/" is very commonly used; but I like "#" or "%" generally; but, you > can't use "%" because your pattern has it. > > $html = preg_replace("#%ResID#",$bookid,$html); wont a str_replace() do just fine in this ca

[PHP] Re: Help with preg_replace

2007-11-07 Thread Al
Delimiters needed. Can use about anything not already in your pattern. "/" is very commonly used; but I like "#" or "%" generally; but, you can't use "%" because your pattern has it. $html = preg_replace("#%ResID#",$bookid,$html); Richard Luckhurst wrote: Hi I am in the process of portin

Re: [PHP] Re: Help with OOPHP (SOLVED)

2007-11-01 Thread Andrew Peterson
I've figured it out :) Thanks for the help, I just need to walk away for a minute and come back to it. all I need to do is this: myClass.php -- Now I can create/edit/maninpulate/etc new and old instances of "mySecondClass" */ } ?> mySecondClass.php

[PHP] Re: Help with OOPHP

2007-11-01 Thread Sebastian Hopfe
Dear Andrew, I think normaly it isn't possible to use another class in a class, without using extends. But you should use your array as a container. After you use as a container, you can make new instance into a array field. Now you can use the content of the container to administrate the ins

Re: [PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Colin Guthrie wrote: > > LKSunny wrote: > >> >> $a="1+1"; //variables(string) > >> > >> //how can arithmetic variables(string) ?? > >> //N ROW > >> > >> //output > >> echo $a //i need output "2" not "1+1" > >> //Please Help, T

Re: [PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread Jochem Maas
Colin Guthrie wrote: > LKSunny wrote: >> > $a="1+1"; //variables(string) >> >> //how can arithmetic variables(string) ?? >> //N ROW >> >> //output >> echo $a //i need output "2" not "1+1" >> //Please Help, Thank You Very Much !! >> ?> >> > > You can do: > > eval("echo $a;"); you

[PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread LKSunny
Thank You ! "Colin Guthrie" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D:[EMAIL PROTECTED] > LKSunny wrote: >> > $a="1+1"; //variables(string) >> >> //how can arithmetic variables(string) ?? >> //N ROW >> >> //output >> echo $a //i need output "2" not "1+1" >> //Please Help, Thank You Very M

[PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread Colin Guthrie
LKSunny wrote: > $a="1+1"; //variables(string) > > //how can arithmetic variables(string) ?? > //N ROW > > //output > echo $a //i need output "2" not "1+1" > //Please Help, Thank You Very Much !! > ?> > You can do: eval("echo $a;"); But be warned, this has "Injection Attack"

[PHP] Re: Help setting up php

2007-07-12 Thread Joker7
In news: [EMAIL PROTECTED] - "Karl Schmitt" wrote : > Can someone please help me? > > > > I am new to installing and working with php and webservers. I am > using IIS 6. > > > > I can not get php to load the ini file. > > > > I have followed multiple guides including those listed on the install >

[PHP] Re: help curl followlocation

2007-07-05 Thread Gowranga
Hello, Thanks for your mail. However, I am not clear on how to use curl for my purpose. Kindly help me. In order to authenticate myself on a remote server, I have tried the following two ways: Method I http://remote.site.address";); ?> On the resulting html page containing a form, I am able to

Re: [PHP] Re: help curl followlocation

2007-07-02 Thread Richard Lynch
When your PHP script does "curl" it does not interact in any way, shape, or form with the Location bar of the browser... That's kinda the whole POINT of curl, to be able to snarf down content from inside your script, instead of pushing the user off to some other site. If you just want to send the

[PHP] Re: HELP - I have tried to unsubscribe from this list mutiple times but cannot.

2007-06-29 Thread Jonesy
On Fri, 29 Jun 2007 09:03:53 +0200, Paul Scott wrote: > On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: >> I no longer have a need for this list and My mailbox is getting flooded, >> Can someone assist ? > > Read the footer on every single mail posted to this list to unsubscribe And, a really

Re: [PHP] Re: help curl followlocation

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 16:33 +0530, Gowranga wrote: > Hello, > > I have the following installed on a Redhat ES4 system: > > curl 7.12.1 (i686-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a > zlib/1.2.1.2 libidn/0.5.6 > Protocols: ftp gopher telnet dict ldap http file https ftps > Features: GSS-Ne

[PHP] Re: help curl followlocation

2007-06-27 Thread Gowranga
Hello, I have the following installed on a Redhat ES4 system: curl 7.12.1 (i686-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6 Protocols: ftp gopher telnet dict ldap http file https ftps Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz Server version: Apache/2.

Re: [PHP] Re: help with multi dimensional arrays

2007-05-24 Thread Navid Yar
Hello Everyone, I have a problem with GET strings. I use $_SERVER["REDIRECT_QUERY_STRING"] to get the value-pairs in the URL. The problem is that there is a cID variable that keeps amending itself to the string continuously everytime someone clicks on a different category link on the website. For

[PHP] Re: help with multi dimensional arrays

2007-05-24 Thread Jared Farrish
Also, when I get PHP errors, if not obvious, I check the previous line also... If says something like "error on line 7" I will look at both line six and seven. I used the notepad-error-of-death method: 1. Use only notepad for php scripting (or some BASIC text editor, with exactly ONE undo). 2.

[PHP] Re: Help with php server and sockets

2007-05-23 Thread Darren Whitlen
Adz07 wrote: i want to set up a php server that can communicate with a client (CLI PHP Script). I can setup the server socket fine. What i need to know is whether it is possible for the client to call a function in the servers php code and the server return the data ready for the client to proces

RE: [PHP] Re: Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Jevos, Peter
> > > > Hi > > I'd like to ask you for the help > > I'm using Squirellmail with plugin Shared calendar. This is simple > > nice plugin written by Paul Lesniewski But I found the bug in this > > plugin. The bug seems to be related with variable and memory. > > The scripts are really slow and so

[PHP] Re: Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Mark
Jevos, Peter wrote: > > Hi > I'd like to ask you for the help > I'm using Squirellmail with plugin Shared calendar. This is simple nice > plugin written by Paul Lesniewski > But I found the bug in this plugin. The bug seems to be related with > variable and memory. > The scripts are really slow a

[PHP] Re: Help with sessions on Log in and Log out

2007-02-18 Thread Haydar TUNA
Hi, Firstly , you should unset all of session variables an then you should destroy the session variables. After this process, redirect the page to HTML file (for example quit.html). By the way , you should use the GET variables or POST variables to quit. if (isset($_GET['quit'])) { se

Re: [PHP] Re: Help with matching numbers 0-100

2007-02-07 Thread Jochem Maas
frank wrote: > better make a switch statement: with case such as > switch($x): that should be : switch (true) { // bla } otherwise you would be testing the boolean cast of the value of $x against the result of the expression given in the case statement ... in practice it would probably d

[PHP] Re: Help with matching numbers 0-100

2007-02-03 Thread frank
better make a switch statement: with case such as switch($x): case ($x >= 16 && $x <= 30): break; case set* ""Chilling Lounge Admin"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi. > > I need help with matching a variable. The variable would be e.g. 0-15 > , 16

[PHP] Re: Help converting C to PHP

2006-09-21 Thread Tom Atkinson
I have solved the problem. The variables are declared as and forced to remain integers in C but PHP converts them to float during division. This messed up the maths. Also there was a slight difference in formatting for printf(). Tom Atkinson wrote: Hello, I am attempting to convert this c

[PHP] Re: help - outputting a jpeg

2006-08-29 Thread Ivo F.A.C. Fokkema
On Tue, 29 Aug 2006 09:52:20 +0100, Ross wrote: > I just get all the binary data output > > include("includes/config.php"); > $link = mysql_connect($host, $user, $password) or die ('somethng went > wrong:' .mysql_error() ); > mysql_select_db($dbname, $link) or die ('somethng went wrong, DB er

Re: [PHP] Re: Help with some clever bit operations

2006-07-20 Thread Paul Novitski
Niels schrieb: The problem: A function tries to update an existing value, but is only allowed to write certain bits. There are 3 variables: A: the existing value, eg. 10110101 B: what the function wants to write, eg. 01011100 C: which bits the function is allowed to write, eg. With the

  1   2   3   4   5   >