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

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

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

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

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

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

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()"

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

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

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

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

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

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

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

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

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

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

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

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

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

RE: [PHP] Re: Help with query

2006-02-21 Thread Duffy, Scott E
> SELECT * FROM exams LEFT JOIN results ON exams.id_test=results.id_test WHERE > results.id_test IS NULL AND id_student=".$user exams.id_test=results.id_test results.id_test IS NULL think those are preventing this from happening. Wouldn't you want this Results.id_student IS NULL Since if the s

RE: [PHP] Re: help register domain name

2006-01-09 Thread Jim Moseby
> > > Want to know why i call for help? > for in this god damned country , anything and everything you want to > do, you find you are facing the wall. > Would that be the "great" wall? JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: help avoid multiple login

2005-11-30 Thread Jochem Maas
Mark Rees wrote: the normal way of doing session 'closing' is by way of 'garbage collection' - every now and then a script/process/function is run that 'closes' any sessions which are (according to your criteria) inactive. php has stuff built it that will do this for you to a degree. - I

Re: [PHP] Re: Help with a regular expression for 0,1 or 2 decimal places

2005-10-25 Thread John Nichel
Phillip Oertel wrote: hi, i'm not a regex guru myself, but the following regex should work - tabke a look at my regex test setup ... Escape the decimal point. $regex = '/^\d+(\.\d{1,2})?$/'; -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (

Re: [PHP] Re: Help with a regular expression for 0,1 or 2 decimal places

2005-10-25 Thread Florent Monnier
Phillip Oertel a écrit : > hi, > > i'm not a regex guru myself, but the following regex should work - tabke > a look at my regex test setup ... > > > $test = array( > "1", > "1.", > "1.2", > "1.23", > "1.234", > > "1234", > "1234.", > "1234.5", > "1234.56", >

Re: [PHP] Re: Help recognizing bots?

2005-06-24 Thread Dotan Cohen
On 6/24/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Thu, June 23, 2005 3:37 am, JamesBenson said: > > http://www.funender.com/phpBB2/about18577.html > > Call me crazy, but... > > A) > Doesn't robots.txt have to be in public_html? How the hell can the robots > read it if it's in the root fo

Re: [PHP] Re: Help recognizing bots?

2005-06-23 Thread Richard Lynch
On Thu, June 23, 2005 3:37 am, JamesBenson said: > http://www.funender.com/phpBB2/about18577.html Call me crazy, but... A) Doesn't robots.txt have to be in public_html? How the hell can the robots read it if it's in the root folder, as they suggest in that forum? B) Are the Bad Bots really goin

[suspicious - maybe spam] [PHP] Re: [suspicious - maybe spam] Re: [PHP] Re: Help with dates

2005-03-06 Thread Kevin
Greetings Mr Mattias, I wish it was so simple. Because the dates that may need calculating can be before 1970. THis function I have.. and it's semi-working, but I've noticed irregularities during the conversion. Thanks for your suggestion!! Yours, Kevin "Mattias Thorslund" <[EMAIL PROTECTED]>

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Re: Help with dates

2005-03-06 Thread Mattias Thorslund
M. Sokolewicz wrote: well, you can simply use the unix timestamp, since the amount of days / seconds since 0 AD/BC will be a constant (it won't change, trust me), you can simply add it to that, and add a wrapper function to php's time(). You'll be working with VERY big numbers in that case, so

Re: [PHP] Re: help with adding

2005-02-26 Thread Guillermo Rauch
You really don't have to put the index in a single dimension input array. Just put qty[] And you'll get it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- Graham Cossey <[EMAIL PROTECTED]> wrote: > Hi Stuart > > Not sure what's happening with the $Ind variable, > maybe check the $_POST > array as you enter the script to ensure that the > form is passing the data > correctly. It is almost as if you are appending it > to itself at some point. > Y

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Graham Cossey
From: Stuart Felenstein [mailto:[EMAIL PROTECTED] > Sent: 13 November 2004 13:31 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: Help: Database Search > > > > --- Jason Wong <[EMAIL PROTECTED]> wrote: > > Yes, that was apparent from your previous post. So > > did

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
On Saturday 13 November 2004 22:14, Stuart Felenstein wrote: > > Summary: the missing single-quotes are the > > show-stopper. > > I see that , but I'm not sure how that is happening. > > Here is the sql: > > $sql = 'SELECT PostStart, JobTitle, Industry, > LocationState, VendorID > FROM Ven

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- James Kaufman <[EMAIL PROTECTED]> wrote: > Right here, print the contents of $sql. That is the > most important thing to > know right now. > SELECT PostStart, JobTitle, Industry, LocationState, VendorID FROM VendorJobs WHERE VendorJobs.Industry IN(1','2','3','4','5','6','7','8','9','10','1

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > See the "Array" (also missing a single-quote), > that's element [30] mentioned > above. > > Summary: the missing single-quotes are the > show-stopper. > I see that , but I'm not sure how that is happening. Here is the sql: $sql = 'SELECT PostStar

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread James Kaufman
Stuart, On Sat, Nov 13, 2004 at 05:31:06AM -0800, Stuart Felenstein wrote: > > It was not apparent whatsoever. Let me show the code > again , but I'll include the print_r returns inline > code. > > $sql = 'SELECT PostStart, JobTitle, Industry, > LocationState, VendorID > FROM VendorJob

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
On Saturday 13 November 2004 21:31, Stuart Felenstein wrote: > It was not apparent whatsoever. Let me show the code > again , but I'll include the print_r returns inline > code. > > $where = array(); > $Ind[] = ""; Not sure why you're adding an empty element to $Ind? > print_r($Ind); > //Array

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > Yes, that was apparent from your previous post. So > did you print out your > query and examine it for any obvious mistakes? And > if you couldn't spot any > obvious mistakes then the least you could have done > was to copy and paste the > full query

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
On Saturday 13 November 2004 21:10, Stuart Felenstein wrote: > Okay, took your advice, but it seems to be a sql error > as the message says. > > Query failed: You have an error in your SQL syntax. > > Check the manual that corresponds to your MySQL server > > version for the right syntax to use n

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > Uhmm, you could try some debugging of your own > instead of relying on the list. > Liberally douse your code with print_r() and > var_dump() of all your important > variables. Do they contain what you expected? If not > try and figure out why > not.

Re: [PHP] Re: Help: Database Search

2004-11-13 Thread Jason Wong
On Saturday 13 November 2004 20:41, Stuart Felenstein wrote: > Sorry, I fixed Ind , since the element is named Ind[]. > Now I get a different error: > > Query failed: You have an error in your SQL syntax. > Check the manual that corresponds to your MySQL server > version for the right syntax to use

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
Sorry, I fixed Ind , since the element is named Ind[]. Now I get a different error: Query failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '','','Array)' at line 3 > $where = array(); > $Ind[] = ""; > $

RE: [PHP] Re: Help: Database Search

2004-11-13 Thread Stuart Felenstein
I think I'm almost there :) Only right now I'm getting an error message: "Query failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3" 1) { $IndStr = implode("','", $Ind); $where[] = "V

RE: [PHP] Re: Help: Database Search

2004-11-12 Thread Graham Cossey
tends to run faster as well. Graham > -Original Message- > From: Stuart Felenstein [mailto:[EMAIL PROTECTED] > Sent: 12 November 2004 14:13 > To: Graham Cossey; Sebastian Mendel; [EMAIL PROTECTED] > Subject: RE: [PHP] Re: Help: Database Search > > > &

RE: [PHP] Re: Help: Database Search

2004-11-12 Thread Stuart Felenstein
--- Graham Cossey <[EMAIL PROTECTED]> wrote: > This should result in: > > WHERE vendorjobs.Industry IN (2,3,5) > > OR > > WHERE vendorjobs.Industry = 2 > > HTH > Graham Not sure what you mean by the above ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

RE: [PHP] Re: Help: Database Search

2004-11-12 Thread Graham Cossey
= 2 HTH Graham > -Original Message- > From: Stuart Felenstein [mailto:[EMAIL PROTECTED] > Sent: 12 November 2004 12:42 > To: Sebastian Mendel; [EMAIL PROTECTED] > Subject: Re: [PHP] Re: Help: Database Search > > > > --- Sebastian Mendel <[E

Re: [PHP] Re: Help: Database Search

2004-11-12 Thread Stuart Felenstein
--- Sebastian Mendel <[EMAIL PROTECTED]> wrote: > > $where = array(); > > if ( isset($_POST['Ind']) ) { > $where[] = 'vendorjobs.Industry = ' . (int) > $_POST['Ind']; > } > if ( isset($_POST['Days']) ) { > $where[] = 'Date_Sub(Curdate(), interval ' . > (int) $_POST['Days'] . > ' day)

Re: [PHP] Re: Help with Regular Expressions

2004-08-15 Thread Octavian Rasnita
From: <[EMAIL PROTECTED]> > Hi all, > > I am working on a small php script which should do the > following. I want all the links in the page to be > preceded by first character and first two characters > of the link.Please look into the example below for > more > clarification. > > eg. > link here

RE: [PHP] Re: Help Formatting String into URL

2004-07-10 Thread Ryan Schefke
Hi Frank, Thanks, you got me started. I modified your function a bit. I'm testing for 3 cases now and the appearance of http://, https://, or ftp:// in front of the string. Let me know if you advise any changes. http://$url";; } else { $result = "http://www.$u

Re: [PHP] Re: help with mysql

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 18:01:40 -0500 "Tom Flood" <[EMAIL PROTECTED]> wrote: > Martin, > > Thank you for the insight when I ran the php file you > suggested, nothing appeared to be related to mysql. I > installed both the php and mysql packages onto my Linux box > through a rpm installer. Whe

Re: [PHP] Re: help with mysql

2004-01-27 Thread daniel
My honest advice, dont use rpm's, you need to compile php via source if you want to do anything out of the ordinary like adding extensions, yes adding mysql is out of the ordinary for a standard rpm lol. Thats just my experience anyway. so ./configure --with-mysql=/usr/local/mysql or whereever you

Re: [PHP] Re: help with mysql

2004-01-27 Thread Tom Flood
Martin, Thank you for the insight when I ran the php file you suggested, nothing appeared to be related to mysql. I installed both the php and mysql packages onto my Linux box through a rpm installer. Where can I obtain mysql support for php? Tom "Martin Luethi" <[EMAIL PROTECTED]> wrote i

Re: [PHP] Re: help with mysql

2004-01-27 Thread Martin Luethi
line 16: mysql_connect("tflood", "thomas91"); I think you mean: mysql_connect("localhost", "tflood", "thomas91"); otherwise mysql_connect takes "tflood" as Server and "thomas91" as Username (if so, its better to replace passwords with * before posting) -> http://ch.php.net/mysql_connect after

Re: [PHP] Re: HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread John W. Holmes
Astron of BrOnX wrote: Hi, here is the steps, 1 . Copy all php_*.dll from extentions dir to c:\windows\system32 2 . Copy phpîsapi.dll to c:\windows\system32 3 . Copy php4ts.dll to c:\windows\system32 4 . Copy php.ini to c:\windows\system32 5. go ISAPI Filters and add .php (c:\windows\system32\php

Re: [PHP] Re: Help! the Error_Reporting doesn't work

2003-09-25 Thread Curt Zirzow
* Thus wrote Raquel Rice ([EMAIL PROTECTED]): > On Thu, 25 Sep 2003 08:32:03 -0500 > "Shawn McKenzie" <[EMAIL PROTECTED]> wrote: > > > "Luckyeagle" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > I have set the PHP.INI as follow: > > > > > > error_reporting = E_ALL & ~E_NOTIC

RE: [PHP] Re: help with php

2003-07-29 Thread Chris W. Parker
DvDmanDT on Tuesday, July 29, 2003 5:06 PM said: > I agree to Parker's post, but I think I understand you... Whoops... I should apologize. I missed the keyword "email" and read it as "another page". Sorry Billy. Chris. -- PHP General Mailing List (http://www.php.

Re: [PHP] RE: help with explode.....

2003-07-25 Thread John W. Holmes
The threading is messed up on this message, so sorry for the top post. Actually, the method that Shaunak gave is the best method to use. If you took your questions and had them formatted from this: > What color are you eyes? > >Blue >Green > to this: What color are you eyes?

RE: [PHP] RE: help with explode.....

2003-07-25 Thread Ford, Mike [LSS]
> -Original Message- > From: Joe Harman [mailto:[EMAIL PROTECTED] > Sent: 25 July 2003 06:12 > > The name of the set of radio buttons is the QuestionID (so it's a > number)... And the options are the AnswerID (they are also > numbers)... This is technically invalid for PHP -- all your f

Re: [PHP] Re: Help?

2003-07-22 Thread Ivo Fokkema
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): > > I want to warn you though, PHP depricates the use of register_globals = On, > > so it would be recommendable to use your modified script and keep coding > > using $_POST, $_

Re: [PHP] Re: Help?

2003-07-21 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): > I want to warn you though, PHP depricates the use of register_globals = On, > so it would be recommendable to use your modified script and keep coding > using $_POST, $_GET and these kind of global variables. So php is removing that feature? Curt

Re: [PHP] Re: Help needed

2003-06-30 Thread Pete Morganic
Where does thejavascript fit ? Nirmala P wrote: Hi Pete Morganic , Thanks for reply. But the code is not solving my problem. May be I did not epress my problem clearly. Actually I wanted to store the returned value so that I can write it on page like { test = '); document.write(test); } and mor

Re: [PHP] Re: Help needed

2003-06-30 Thread Nirmala P
Hi Pete Morganic , Thanks for reply. But the code is not solving my problem. May be I did not epress my problem clearly. Actually I wanted to store the returned value so that I can write it on page like { test = '); document.write(test); } and moreover the value I am passing is "material" and

Re: [PHP] Re: Help please!

2003-06-26 Thread Nadim Attari
> We always send the mail to [EMAIL PROTECTED], and not using "reply to group" function,I think there's no easy way to do this.If you really have problems with PHP,sending mail is not the important thing,the more important thing is to get a good reply!Sorry,it's my own opinion:) - Yea for

Re: [PHP] Re: Help with my code

2003-06-18 Thread Terje Torkelsen
-Mailer: Ximian Evolution 1.2.3 > Content-type: text/plain > Content-transfer-encoding: 7BIT > References: <[EMAIL PROTECTED]> > <[EMAIL PROTECTED]> > Subject: Re: [PHP] Re: Help with my code > From: [EMAIL PROTECTED] (Lars Torben Wilson) > > On Wed, 2003-06-18 a

Re: [PHP] Re: Help with my code

2003-06-18 Thread Lars Torben Wilson
On Wed, 2003-06-18 at 08:23, Terje Torkelsen wrote: > To echo multiple lines you have to write > > echo << > > > > > > ... > .. > > END; No offense, but this is completely false. Double-quotes will work just fine. -- Torben Wilson <[EMAIL PROTECTED]>+1.604

  1   2   >