Re: [PHP] Mysqli Extension

2013-08-19 Thread Daniel P. Brown
On Aug 19, 2013 2:32 PM, "Ethan Rosenberg" wrote: > > Dear List - > > My mysqli extension seems to have gone away. > (REACTED) Remember: avoid putting passwords - especially for root users - on a public mailing list, which is also permanently archived. > echo "hello2"; > var_dump(function_ex

Re: [PHP] Session Vars not staying active

2013-08-03 Thread Daniel P. Brown
On Aug 3, 2013 3:03 PM, "dealTek" wrote: > > Hi all, > > > I am having trouble with session vars. > > I'm trying to implement the credit card direct pay method outlined here... > > http://developer.authorize.net/api/dpm/ > > - Basically, page 1 is my form that goes outside my site to the cc gatewa

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Daniel P. Brown
On Tue, Oct 16, 2012 at 2:02 PM, Richard S. Crawford wrote: > The value of date.timezone in php.ini is set to "America/Los_Angeles". > > The local time is 11:02 a.m. Yet the output of date("h:i a e") is: > > 02:02 pm America/Los_Angeles > > which is three hours ahead of the real time. > > Why is t

[PHP] Re: A Question of SESSION

2012-06-07 Thread Daniel P. Brown
On Thu, Jun 7, 2012 at 11:20 AM, Daniel P. Brown wrote: > On Thu, Jun 7, 2012 at 11:15 AM, Tedd Sperling wrote: >> >> 3. Looking for an explanation, I came across Daniel's post to the PHP >> manual, which follows: >> >> http://www.webbytedd.com/b/sessions3

[PHP] Re: A Question of SESSION

2012-06-07 Thread Daniel P. Brown
On Thu, Jun 7, 2012 at 11:15 AM, Tedd Sperling wrote: > > 3. Looking for an explanation, I came across Daniel's post to the PHP manual, > which follows: > > http://www.webbytedd.com/b/sessions3 > > Now I am totally bonkers. > > What am I not getting? Anything. Because that page 404's. ;-P

Re: [PHP] cyberweaponry

2012-06-03 Thread Daniel P. Brown
On Jun 3, 2012 12:05 PM, "Tedd Sperling" wrote: > > On May 31, 2012, at 7:45 PM, Ross McKay wrote: > > >> He said that this was unusual because typically such viruses are > >> written in languages like Ruby-on-Rails and such. > > > > Um, really? I very much doubt that. AFAIK, most true viruses are

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Daniel P. Brown
On Thu, Mar 15, 2012 at 11:30, Larry wrote: > Hello, when I pass a variable whose value originally came from $_GET > or $_REQUEST to fwrite, fwrite behaves as if it was passed an empty > string. Note that the file is successfully opened and written to by > the script, but the variable that origina

Re: [PHP] Error in portuguese translation of substr_compare

2011-12-31 Thread Daniel P. Brown
Forwarded to the proper address. Docs PT/PT-BR folks, please see the below email. Thanks, and happy new year! On Fri, Dec 30, 2011 at 14:35, QI.VOLMAR QI wrote: > I was read substr_compare description in portuguese language, an I > asked myself to test it, so after several test, I foun

Re: [PHP] RE: php-general Digest 9 Dec 2011 20:09:28 -0000 Issue 7604

2011-12-12 Thread Daniel P. Brown
On Mon, Dec 12, 2011 at 16:06, David Savage wrote: > I thought I posted this in the php.net web site under the "ksort" user notes, > but I don't know if it would be approved to be placed in the web site. > > Would "ksort($sortarr,SORT_STRING)" on a 1 dimensional array with a key > comprised of >

Re: [PHP] php on my pc, no go, FUBAR, thank you Bill Gates?

2011-10-04 Thread Daniel P. Brown
On Tue, Oct 4, 2011 at 09:47, Kirk Bailey wrote: > I installed it in a Windows XP PC with a cgi capable server in it. No dice, > nothing happens. I also installed python in the same computer. Works > perfect. NEITHER language modified the http server. > > So, what do I have to do to get php to pla

Re: [PHP] PHP installations, usage, and popularity

2011-09-19 Thread Daniel P. Brown
On Mon, Sep 19, 2011 at 17:08, Tedd Sperling wrote: > > As such, I need information regarding how wide-spread PHP is (i.e., number of > installations), who's using it (i.e., companies, organizations), and how it > compares with other Web Languages (i.e., ASP, Ruby, etc.). There's no really

Re: [PHP] Dreaded Premature end of script headers

2011-08-27 Thread Daniel P. Brown
On Sat, Aug 27, 2011 at 01:01, Jim Lucas wrote: > > Well, you might have to go about this the long way. I suggest you cut larger > sections of code out until you get a working script.  Then start putting it > back together. If possible, I'd also try running it from the production box CLI. It

Re: [PHP] Please help to unsubscribe

2011-08-27 Thread Daniel P. Brown
On Sat, Aug 27, 2011 at 15:45, Eli Orr wrote: > The advised email to unsubscribe does not work: > php-general-unsubscr...@lists.php.net It should work just fine, but I had checked and I don't even see any subscribers to the General mailing list with 'logodial' anywhere in their address. Are

Re: [PHP] form validation

2011-08-14 Thread Daniel P. Brown
On Sun, Aug 14, 2011 at 18:19, Ford, Mike wrote: > > The last part of that test is redundant, since if $_POST['market'] is > NULL isset($_POST['market'] will be FALSE. Good catch. Didn't even notice I typed that. Not that it would've done any damage, but a good reminder why code here is not

Re: [PHP] form validation

2011-08-12 Thread Daniel P. Brown
On Fri, Aug 12, 2011 at 11:42, Chris Stinemetz wrote: > I have a select menu created by a foreach loop. I am trying to > validate that there was a selection made before it is submitted to the > database. But I am not doing something correctly. Try using a combination of isset, empty, and is_n

Re: [PHP] text insertion

2011-08-10 Thread Daniel P. Brown
On Wed, Aug 10, 2011 at 17:37, Chris Stinemetz wrote: > No luck. Thanks. Per list rules, please don't top-post. If the situation you're describing is accurate and correct, then is indeed what you want. -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-43

Re: [PHP] text insertion

2011-08-10 Thread Daniel P. Brown
:On Wed, Aug 10, 2011 at 16:02, Chris Stinemetz wrote: >> Are you sure its not preserved? When you output text in a browser, by >> default its output as html, not plain text. Html ignores extraneous >> whitespace, and doesn't use a monospaced font, so formatting text into >> columns in a textar

Re: [PHP] form hidden value

2011-08-08 Thread Daniel P. Brown
On Mon, Aug 8, 2011 at 17:23, Chris Stinemetz wrote: > > You should drop the quotes around the $id[] array, and also figure out how you want to extract the element from the array. For example: -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321

Re: [PHP] A php bug or?..

2011-08-08 Thread Daniel P. Brown
On Mon, Aug 8, 2011 at 16:41, Andre Polykanine wrote: > >      For sure. But I'm asking: why it doesn't return 0 if it is not an array? > Logically: no array - no items! No, actually, if it's a string, it's a single item --- thus, 1. The documentation should probably reflect that as well. I

Re: [PHP] A php bug or?..

2011-08-08 Thread Daniel P. Brown
On Mon, Aug 8, 2011 at 16:20, Andre Polykanine wrote: > Hi everyone, > >                            As we all know, count() returns 1 if the variable > is not an array. > Question is: why in the world does it this? If a variable is *notA* an array, > it contains *zero* array elements. > You can

Re: [PHP] help with an array if its possible!

2011-06-22 Thread Daniel P. Brown
On Wed, Jun 22, 2011 at 18:43, Adam Preece wrote: > Hi Gang! > > i have 2 assoc arrays from 2 querys, > > first one is page categorys it consists of: >        id >        name > > second is pages >        name >        cat_id > > now, i am using smarty, so i pass arrays into the view. this i would

Re: [PHP] URL Rewriting

2011-06-22 Thread Daniel P. Brown
On Wed, Jun 22, 2011 at 17:22, Silvio Siefke wrote: > Hello, > > is there a chance with php to use rewriting? > > Like Example: > > mysite.com/theme.php?id=1 to theme.php theme2.php etc. > > I have ask on the nginx list, but there they say i should use the power > language php. > > When i search i

Re: [PHP] Odd Apache2/PHP Problem

2011-06-03 Thread Daniel P. Brown
On Fri, Jun 3, 2011 at 15:12, Floyd Resler wrote: > I am having a really odd Apache2/PHP problem.  My employer set up a new Web > server to migrate our Web sites to.  One site requires a log in and I have > the ability to log in a someone else.  However, when I do this, Apache throws > a Segmen

Re: [PHP] Does requesting $_SERVER variables need to query the server

2011-02-23 Thread Daniel P. Brown
On Wed, Feb 23, 2011 at 14:00, Marc Guay wrote: > This question will probably reveal my lacking knowledge of the > fundamentals, but I'm a go for it anyway: > > When you use a $_SERVER variable, is a query made to the server to get > the information or is it just sitting in a variable all ready to

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Daniel P. Brown
On Wed, Feb 16, 2011 at 09:41, David Hutto wrote: > On Wed, Feb 16, 2011 at 9:41 AM, David Hutto wrote: >> Only those who live in glass houses, should hide their errors. >> > > > if that makes sense. Did you even bother to read the whole of what I said? I wasn't advocating it as a solution,

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Daniel P. Brown
On Wed, Feb 16, 2011 at 09:37, David Hutto wrote: > > What was the intended purpose again? The hiding of errors. -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Daniel P. Brown
On Wed, Feb 16, 2011 at 07:15, Richard Quadling wrote: > On 16 February 2011 11:25, Andre Polykanine wrote: >> Hello Fotoo, >> >>           > error_reporting(0); > > Really? > > You consider shoving your head in the sand a REALISTIC option? Well, at the least, it would shut the errors up in

Re: [PHP] Regex for telephone numbers

2010-12-31 Thread Daniel P. Brown
On Fri, Dec 31, 2010 at 19:09, Jim Lucas wrote: > > Actually... > > Specified here [1] it says that the {1,} is the same as '+'.  I think you > should > drop the comma.  If you don't this would be valid 844-2345-123456 > > ^[2-9]{1,}[0-9]{2,}\-[2-9]{1,}[0-9]{2,}\-[0-9]{4,}$ > > should be > > ^[2-

Re: [PHP] Regex for telephone numbers

2010-12-31 Thread Daniel P. Brown
On Fri, Dec 31, 2010 at 11:04, Per Jessen wrote: > > AFAIK, they too vary from country to country.  Swiss mobile numbers are > 07[6789] NNN, the latter usually written as NNN NN NN, but also > often in a way that will help remembering the number. > Danish mobile#s are the same as land line num

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-30 Thread Daniel P. Brown
On Thu, Dec 30, 2010 at 11:27, Omega -1911 <1911...@gmail.com> wrote: > Which topic ashley do u wish to discuss. With the eccouncil.org being in > your neck of th woods, learning/reading what hackers are using/doing > shouldn't be hard... Really, this entire thing has gone on for far too long.

Re: [PHP] Regex for telephone numbers

2010-12-29 Thread Daniel P. Brown
On Wed, Dec 29, 2010 at 19:12, Ethan Rosenberg wrote: > Dear List - > > Thank you for all your help in the past. > > Here is another one > > I would like to have a regex  which would validate that a telephone number > is in the format xxx-xxx-. Congrats. People in Hell would like ice

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-29 Thread Daniel P. Brown
On Wed, Dec 29, 2010 at 18:38, Omega -1911 <1911...@gmail.com> wrote: > Etiquette went out the window a while ago. As Rambo said, "He drew > first blood..." If you could not PROVE ME WRONG, you could have kept > your mouth shut. You jumped in head first. And you have YET to prove > me wrong. Then t

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-29 Thread Daniel P. Brown
On Wed, Dec 29, 2010 at 18:20, Omega -1911 <1911...@gmail.com> wrote: > AHHH... Searching by by an email is REALLY what you call hacking? Oh > wait, you said that with all your knowledge in forensics you can find > people all over the world. Thank God for Go0GlE. Please don't top-post. Ne

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-29 Thread Daniel P. Brown
On Wed, Dec 29, 2010 at 15:16, Omega -1911 <1911...@gmail.com> wrote: > Sound silly? Why Daniel? It's all documented and public knowledge. What I > thought was silly was a entire thread about which ASCII combination was > best.. convert to a higher range above the 255 character range... > > There i

Re: [PHP] File-Upload per Drag-N-Drop?

2010-12-29 Thread Daniel P. Brown
On Wed, Dec 29, 2010 at 13:23, Michelle Konzack wrote: > Hello, > > my users have an Online-File-Store with nearly anything  they  need  but > one feature is missing:  Drag-D-Drop. > > I like to implement Drag-D-Drop so users can Drag a file  from  a  File- > Manager and Drop it on the Upload-Icon

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-29 Thread Daniel P. Brown
On Wed, Dec 29, 2010 at 11:57, Omega -1911 <1911...@gmail.com> wrote: > Those were some pretty confident statements there. "You doubt the government > would want to hack your computer..." Well, the U.S. tries to prevent over 1 > million attacks per day as documented and has admitted to having been

Re: [PHP] Re: Need code like

2010-12-27 Thread Daniel P. Brown
On Mon, Dec 27, 2010 at 19:51, Michelle Konzack wrote: > > OK, I was a little bit working on it, but a  GPLed  code  which  include > AdWords and GoogleAnalytics is already suspect. > > Then the whole code is spagetti... > > And I do not know what Paul was smoking, when he has written layout.php.

Re: [PHP] Need code like

2010-12-27 Thread Daniel P. Brown
On Sat, Dec 25, 2010 at 12:32, Michelle Konzack wrote: > Hello, > > before I reinvent the weehl, I ask here: > > In my webinterface "My Space" I wan t include a section where users  can > upload files and have them proposed like  on  .  Also  for > source codes it would be nice, if users could cho

Re: [PHP] Server response very poor again

2010-12-22 Thread Daniel P. Brown
On Wed, Dec 22, 2010 at 13:07, Steve Staples wrote: >> > whoa... wait a sec there...  i seem to recall this statement... ;) > > "This seems to be the most likely, and considering how all messages > are permanently and independently archived and propagate throughout > the Internet, it might be a go

Re: [PHP] Re: Warning when calling session_start()

2010-12-22 Thread Daniel P. Brown
On Wed, Dec 22, 2010 at 11:43, Ravi Gehlot wrote: > session_start (); should be before everything...first thing in the page. Unlike the body of your email, Ravi, which is why I've asked you before not to top-post. Please follow the formats as outlined in the list rules. -- Dedicated Serve

Re: [PHP] Server response very poor again

2010-12-22 Thread Daniel P. Brown
On Wed, Dec 22, 2010 at 12:17, Nicholas Kell wrote: > > I am with Steve. Well, what I mean is, on this topic I am in agreement with > Steve. My connection, etc. seems to be quite responsive. Oh, that's what you mean! Several of us were speaking about it the other day and thought you two wer

Re: [PHP] Server response very poor again

2010-12-22 Thread Daniel P. Brown
On Wed, Dec 22, 2010 at 10:19, Al wrote: > It was fixed about 3 or 4 weeks ago; but, has reverted to poor again.  Many > times outs etc. > > Took me 4 tries to post this. Al, are you using NNTP? -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www

Re: [PHP] Problem with Include

2010-12-21 Thread Daniel P. Brown
On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot wrote: > My point is that you tried to take code from one page and put it all > "organized" in another page and the include that page of includes back into > the pages that you want it to feed off from. If stuff works the way that it > does then there a r

Re: [PHP] Performance Improvement on Calling C++ executable from PHP

2010-12-20 Thread Daniel P. Brown
On Sun, Dec 19, 2010 at 15:35, Shiplu wrote: > === > Recently I  my this php-general doesn't accept my mail for some > reason. So I send it again from anther email >

Re: [PHP] Problem with Include

2010-12-20 Thread Daniel P. Brown
On Mon, Dec 20, 2010 at 02:49, Simcha Younger wrote: > > Since it is being included by PHP, and not served by Apache, the extension is > not important. Correct, but keep in mind that it will likely be served as plain text if accessed directly, if the web server is not properly configured (wh

Re: [PHP] Problems w/ goto

2010-12-17 Thread Daniel P. Brown
On Fri, Dec 17, 2010 at 12:22, Robert Cummings wrote: > > I was one of the people that argued in favour of GOTO on the Internals list > a few years ago. GOTO has a use, and a very good one at that. It is by far > the most efficient construct when creating parsers or other similar types of > logic

Re: [PHP] Where is my array?

2010-12-15 Thread Daniel P. Brown
On Wed, Dec 15, 2010 at 17:21, Don Wieland wrote: > Hello, > > I originally had a line that built a static array: > > $instruments = > array('Leader','Singer','Piano','Synth','A-Guitar','E-Guitar','Bass','Drums','Perc','Sax','Flute','Sound/AV','Pastor','Producer'); > > Then I decided I wanted this

Re: [PHP] Error Querying Database

2010-12-15 Thread Daniel P. Brown
On Wed, Dec 15, 2010 at 13:42, Gary wrote: > I cant seem to get this to connect.  This is to my local testing server, > which is on, so we need not worry that I have posted the UN/PW. > > This is a duplicate of a script I have used countless times and it worked. > The error message is 'Error query

Re: [PHP] PHPInfo disabled due to security

2010-12-15 Thread Daniel P. Brown
On Wed, Dec 15, 2010 at 09:57, Paul S wrote: > > Warning: phpinfo() has been disabled for security reasons in > /home/.../php/phpinfo.php on line 2 > > My ISP has disabled phpinfo and has not answered my tech requests on this > for over a month. > > They seem to never have a thing to do but play g

Re: [PHP] empty() in email message

2010-12-13 Thread Daniel P. Brown
On Mon, Dec 13, 2010 at 12:47, Gary wrote: > I have an email message > > $msg =  'Name: $fname ' . ' $lname\n' > . "Phone: $phone\n" > . "Email: $email\n" > > and it works fine, however in this message there are about 30 variables that > are being called...as such > > . "Order: beefschnitzel $beef

Re: [PHP] sending emails

2010-12-09 Thread Daniel P. Brown
On Thu, Dec 9, 2010 at 13:36, Marc Fromm wrote: > We have web forms that send the user an email confirmation after submission, > like most forms do. > The emails are being delivered to the users' junk folder. The main campus IT > staff claim it is because our server is sending the emails. > The

Re: [PHP] new keyword combined with other things...

2010-12-07 Thread Daniel P. Brown
On Tue, Dec 7, 2010 at 10:40, Alexandru Patranescu wrote: > > but is there any way to write it directly? and if not, why isn't this > implemented yet and when will it be? That kind of chaining has not yet been implemented in PHP --- but it's being discussed and voted now, as a matter of fact.

Re: [PHP] Barcode Reader

2010-12-06 Thread Daniel P. Brown
On Mon, Dec 6, 2010 at 14:18, fakessh @ wrote: > > http://search.cpan.org/dist/GD-Barcode/ Your point? The OP never asked about a barcode generator. -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List

Re: [PHP] Barcode Reader

2010-12-06 Thread Daniel P. Brown
On Mon, Dec 6, 2010 at 12:07, Floyd Resler wrote: > They're 2d barcodes.  I did a Google search and really couldn't find > anything.  After talking with my boss, though, we decided that this project > would probably take too much time and be frustrating for the users.  We're > trying to decode

Re: [PHP] code quest

2010-12-04 Thread Daniel P. Brown
On Sat, Dec 4, 2010 at 15:58, Kirk Bailey wrote: > > And it works! >   BUT! > Where is the "1" coming from?!? No need to see the page. You're echo'ing an include. No need to do that; including the file is enough, and that's what's working. Adding the echo makes it print the status retur

Re: [PHP] Pass a value as hidden to PHP

2010-12-03 Thread Daniel P. Brown
On Fri, Dec 3, 2010 at 12:12, Larry Sandwick wrote: > How do I get the document.tstest.timestamp.value from the JS and pass it as > a hidden value on the resultsHistory.php page ? [snip!] There are tons of issues with that code, but not one bit of it has to do with PHP. You should ask on a n

Re: [PHP] Iterators.

2010-12-03 Thread Daniel P. Brown
On Fri, Dec 3, 2010 at 08:09, Richard Quadling wrote: > > Now I know someone could supply a solution not using the SPL. I've got > one of those. But trying to use the SPL just seems to awkward. Too > many choices. Too many things with the same name I put an example up on the list this week, a

Re: [PHP] php mail() and sendmail/smtp

2010-12-02 Thread Daniel P. Brown
2010/12/2 Michael Crowl : > > Possible solutions?  I'm a little frazzled and a little undereducated here. Use the under-appreciated fifth paramter in mail() to pass the -f flag to sendmail, like so: -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http:

Re: [PHP] code quest

2010-12-02 Thread Daniel P. Brown
On Wed, Dec 1, 2010 at 23:13, Kirk Bailey wrote: [snip!] > > Can this be improved to exclude anything with a '.' or a '-' in it's name? > This will exclude the smileys and cgi-bin and such. If it can be persuaded > to read a 1 line description from each subdirectory it could then use THAT > as the

Re: [PHP] Re: $_POST issues

2010-12-01 Thread Daniel P. Brown
On Wed, Dec 1, 2010 at 16:32, Nadim Attari wrote: > > Thank you Daniel for this detailed post of yours. Really appreciated. Quite welcome. > Saving the $_POST data (in response.php) in a file will serve nothing. - And > you said this was an unnecessary step from the payment gateway - All i n

Re: [PHP] Re: $_POST issues

2010-12-01 Thread Daniel P. Brown
On Wed, Dec 1, 2010 at 12:15, Nadim Attari wrote: > > where does receipt.php gets the $_GET data ? Isn't it from response.php > where the $_POST data are being http_build_query()'ed ?? > > $param = http_build_query($_POST); <- According to cURL, it's never even hitting response.php to

Re: [PHP] Re: $_POST issues

2010-12-01 Thread Daniel P. Brown
On Wed, Dec 1, 2010 at 11:56, Nadim Attari wrote: >> >> My problem is not the redirection; but all I want is to get the data in >> $_POST Again: there is no $_POST data. Why does receipt.php work while response.php doesn't? THERE IS NO $_POST DATA. Your code in receipt.php even use

Re: [PHP] $_POST issues

2010-12-01 Thread Daniel P. Brown
On Wed, Dec 1, 2010 at 09:50, Bundhoo M Nadim wrote: > > If I just put only this piece of code: > >    var_dump($_POST); > ?> > > i get nothing. But the above codes is successfully redirecting me to > page.php with a properly constructed query string -> which means that $_POST > was never empty.

Re: [PHP] PHP shows nothing

2010-11-30 Thread Daniel P. Brown
On Tue, Nov 30, 2010 at 16:51, Mohammad Taghi Khalifeh wrote: > it seems that the problem is in pg_connect(). Do you have PostgreSQL support compiled into PHP? Command line: php -i | egrep -i 'postgres|pgsql' Web: -- Dedicated Servers, Cloud and Cloud Hybrid Solu

Re: [PHP] Form Processing

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 18:54, Ron Piggott wrote: > > $new_email = mysql_escape_string ( $_POST['referral_$i'] ); Because you're using literal quotes, so PHP is literally looking for the POST reference 'referral_$i'. Instead of using the style of field names you're using, why not use a v

Re: [PHP] mySQL query assistance...

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 14:40, Daniel P. Brown wrote: >    For your convenience, both have been CC'd on this email. Actually, PHP-DB (php...@lists.php.net) was accidentally BCC'd. -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www

Re: [PHP] mySQL query assistance...

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 14:35, Don Wieland wrote: > Hi all, > > Is there a list/form to get some help on compiling mySQL queries? I am > executing them via PHP, but do not want to ask for help here if it is no the > appropriate forum. Thanks ;-) Yes. For MySQL queries, write to the MySQL

Re: [PHP] Poor newsgroup server performance

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 09:14, Al wrote: > Recently the response on our php.general php.pear.general have become > horribly slow. > > At first I thought the problem was a time-of-day overload; but, it seems to > be happening at all times. > > All other websites I visit are normal. > > Just getting

Re: [PHP] I have a question about MLM

2010-11-28 Thread Daniel P. Brown
On Sun, Nov 28, 2010 at 15:54, Tommy Pham wrote: > > Which MLM are you referring you? ;)  Multi-Level Marketing?  Mid-Level > Manager? Medicare Learning Network? Marxism-Leninism-Maoism? It's likely SPAM-testing or email harvesting. The exact same vague email was sent to the php-db@ list dur

Re: [PHP] Strange Query Error...

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 14:45, Don Wieland wrote: > Pretty please - I just want to get this working and move on ;-) At this point, can you just send the whole related snippet? The cases keep changing and there's a lot of other suggestions that you said you've tried. Just doing that on my lo

Re: [PHP] Strange Query Error...

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 14:30, Don Wieland wrote: > > Strange...  I have no idea what to do. I got to run it via PHP. Don, on which table is the column `member_year` located? Is that on `Members`? -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://

Re: [PHP] Problem with RegEx for BBCode

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 14:05, Daniel P. Brown wrote: > On Sat, Nov 27, 2010 at 13:55, Asmann, Roland wrote: >> >> $s = preg_replace("/\[i\]((\s|.)+?)\[\/i\]/", "\\1", $s); > >    This is exactly what I meant when I erroneously said, "library.&q

Re: [PHP] Problem with RegEx for BBCode

2010-11-27 Thread Daniel P. Brown
Please be sure to hit Reply-All so that the list is CC'd on each response as well. On Sat, Nov 27, 2010 at 13:55, Asmann, Roland wrote: > > I'm currently running this on a default XAMPP installation on my PC, > because I was told something similar is running on the server. I thought > this ha

Re: [PHP] Strange Query Error...

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 13:18, Don Wieland wrote: > On Nov 27, 2010, at 10:07 AM, Bastien wrote: > >> Try removing the backticks around the table names. If you do use them, >> then all values (field names and table names) need it. > > I tried that and still chokes... > > select m.* from Members m

Re: [PHP] Strange Query Error...

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 12:30, Don Wieland wrote: > Hi gang, > > I am executing a query via PHP that gives me a PHP error: > > 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 'AND > m.`Preferred_First_Name` LIK

Re: [PHP] Problem with RegEx for BBCode

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 12:50, Asmann, Roland wrote: > > Besides, what I don't really understand is WHY does this happen? Any > other language that has RegEx doesn't match a thing in my example and > just returns the original input. Why is PHP different in this regard? All we've seen is your

Re: [PHP] code quest

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 12:36, Daniel P. Brown wrote: > >   If you want something more powerful - and often quicker - check > into SPL: specifically FilesystemIterator[1], DirectoryIterator[2], > and RecursiveDirectoryIterator[3].  A quick example to link all child > files and d

Re: [PHP] code quest

2010-11-27 Thread Daniel P. Brown
On Fri, Nov 26, 2010 at 19:03, Kirk Bailey wrote: > > I need a routine that will return a list of every directory immediately > under the current directory- but nothing else, just a list of directories, 1 > level deep, NO FILES, no listing of current dir or prior dir either. Simple: '.$d

Re: [PHP] Problem with RegEx for BBCode

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 08:57, Asmann, Roland wrote: > Hi all, > > I am playing around with PHP and BBCodes and have found some regex's > that should transform my BBCode into correct HTML when rendering. > However, I have found that if the BBCode is not correct (eg missing > closing tag), the rege

Re: [PHP] Suppressing error from displaying

2010-11-24 Thread Daniel P. Brown
On Wed, Nov 24, 2010 at 14:13, Ron Piggott wrote: > > I am using this syntax to check for a valid e-mail address > > list($userName, $mailDomain) = split("@", $buyer_email); > if (checkdnsrr($mailDomain, "MX")) { > > if no domain is provided ( ie e-mail address is something like “ron” with no > @

Re: [PHP] is this thing on??

2010-11-23 Thread Daniel P. Brown
On Tue, Nov 23, 2010 at 14:52, Steve Staples wrote: > tap tap tap... testing testing... 1, 2, 3 > > Hello?    No activity since yesterday at like 6pm EST... am i not > getting messages, or has there not been any activity? > > Just curious... carry on about your business... :P Some of the

Re: [PHP] Procedural Autoloader?

2010-11-22 Thread Daniel P. Brown
On Mon, Nov 22, 2010 at 16:31, Nathan Nobbe wrote: > > Shrug, if you want to really be dirty about it, you could just put a 'class' > atop each file of functions. > class IWishTheseFunctionsWereOOInstead {} // :P > function firstProceeduralFunc() { >  // .. > } > ?> That's not going to be ec

Re: [PHP] Procedural Autoloader?

2010-11-22 Thread Daniel P. Brown
On Mon, Nov 22, 2010 at 15:37, Jason Pruim wrote: > Hey Everyone! > > Fresh off my problem with functions and arrays I come across something that > I can't seem to find currently... The autoloader function that is in PHP 5+ > works on classes... But I'm not finding anything that would do the same

Re: [PHP] Procedural Autoloader?

2010-11-22 Thread Daniel P. Brown
On Mon, Nov 22, 2010 at 15:37, Jason Pruim wrote: > Hey Everyone! > > Fresh off my problem with functions and arrays I come across something that > I can't seem to find currently... The autoloader function that is in PHP 5+ > works on classes... But I'm not finding anything that would do the same

Re: [PHP] Can't find existing file

2010-11-22 Thread Daniel P. Brown
On Mon, Nov 22, 2010 at 14:52, Dee Ayy wrote: > There are 2 separate issues numbered 1) and 2). > > #1 deals with getimagesize operating on definitely existing files > verified by "ls". > > #2 deals with escaping spaces in the name of the file and using the > exec command, which an example was giv

Re: [PHP] Can't find existing file

2010-11-22 Thread Daniel P. Brown
On Mon, Nov 22, 2010 at 14:36, Dee Ayy wrote: > Thes two lines means that they exist by using quoted and unquoted commands: > ls ./photos/HPR-130-260_HD-3070-1.jpg > ./photos/HPR-130-260_HD-3070-1.jpg > > ls "./photos/HPR-130-260_HD-3070-1.jpg" > ./photos/HPR-130-260_HD-3070-1.jpg Please use

Re: [PHP] Can't find existing file

2010-11-22 Thread Daniel P. Brown
On Mon, Nov 22, 2010 at 14:24, Dee Ayy wrote: > 1) > Warning: getimagesize("./photos/HPR-130-260_HD-3070-1.jpg"): failed to > open stream: No such file or directory in ... on line ... > > ls ./photos/HPR-130-260_HD-3070-1.jpg > ./photos/HPR-130-260_HD-3070-1.jpg > > ls "./photos/HPR-130-260_HD-307

Re: [PHP] How to protect the source code.

2010-11-19 Thread Daniel P. Brown
On Fri, Nov 19, 2010 at 17:07, Tamara Temple wrote: > > Perhaps it's just me, but I'm completely missing the point of this. How is > someone going to get your code off of a server? It's more likely that he's interested in learning how to protect code he will be distributing or otherwise deliv

Re: [PHP] Secure PHP Code

2010-11-18 Thread Daniel P. Brown
On Thu, Nov 18, 2010 at 12:12, Kaushal Shriyan wrote: > Hi, > > Can the php source code be secured ? When you say "secured," what do you mean? Obfuscated? Encoded? Compiled? Tightened against attack? Regardless, the answer is yes. You just need to be specific about your definition of

Re: [PHP] protecting email addresses on a web site

2010-11-16 Thread Daniel P. Brown
On Tue, Nov 16, 2010 at 16:29, a...@ashleysheridan.co.uk wrote: > Sorry for top post on phone. > > Depending on the type of site and location an email address might be legally > required. For example, a business website in the UK requires a value email > address to be made accessible to all your

Re: [PHP] Template engines

2010-11-11 Thread Daniel P. Brown
On Thu, Nov 11, 2010 at 08:51, Robert Cummings wrote: > > Yeah, that and some Gateway with a Common Interface. My point was that there is now and never was any such PHP project known as pre-hypertext preprocessor. It originated as Personal Home Page Tools (PHP Tools) and Forms Interpreter (F

Re: [PHP] Template engines

2010-11-10 Thread Daniel P. Brown
On Wed, Nov 10, 2010 at 20:59, Nathan Rixham wrote: > > I went back to using a pre hypertext processor, seemed like a really > powerful templating engine that was v familiar to use :p Pre-hypertext preprocessor? Perl? -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (8

Re: [PHP] Basic question

2010-11-09 Thread Daniel P. Brown
On Tue, Nov 9, 2010 at 02:55, Tseveendorj Ochirlantuu wrote: > Hello, > > I would like to know what is the difference between follows. > > PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46) > > > and > > PHP 5.1.6-pl6-gentoo (cgi-cgi) They are completely and totally d

Re: [PHP] Template engines

2010-11-08 Thread Daniel P. Brown
On Mon, Nov 8, 2010 at 16:41, Hansen, Mike wrote: > I really like the idea of using a templating engine. Which one do you use? > Why? For those that don't use templating engines, why don't you use them? I chose to write two of my own over the years: one procedural, one OOP. That said, the m

Re: [PHP] Newbie looking for a project

2010-11-08 Thread Daniel P. Brown
On Mon, Nov 8, 2010 at 06:29, Ashim Kapoor wrote: > > Writing apps on my own is fun but it's fruit is only for me to benefit > from,but yes if nothing else I should do that. Not at all, many others can benefit from it as well. Tedd's examples have been referenced on this list many times, and

Re: [PHP] List-Unsubscribe

2010-11-07 Thread Daniel P. Brown
To unsubscribe, send a blank email to php-general-unsubscr...@lists.php.net from the email address that is subscribed to the list. Alternatively, you may use the form at http://php.net/mailinglists . -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http:/

Re: [PHP] suhosin simulation blocks script

2010-11-04 Thread Daniel P. Brown
On Thu, Nov 4, 2010 at 12:08, David Oros wrote: > Hi, > > I am just wondering if anybody have the same experience. Yes, I noticed that > the Suhosin forum is down for maintenance, as soon as possible I will write > them too. > > Answer to the question about apache, yes I did restart it. It just do

Re: [PHP] php-general-digest-unsubscr...@lists.php.net not working?

2010-11-04 Thread Daniel P. Brown
On Thu, Nov 4, 2010 at 12:33, Daniel P. Brown wrote: > >    If you continue to have issues, let me know and I will remove you. From the list, that is, to be clear. Not the Earth. -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasa

Re: [PHP] php-general-digest-unsubscr...@lists.php.net not working?

2010-11-04 Thread Daniel P. Brown
On Thu, Nov 4, 2010 at 12:00, Marc Abramowitz wrote: > The bottom of my daily digest email says to unsubscribe, I should email > php-general-digest-unsubscr...@lists.php.net > > I've done this several times -- sometimes with various combinations of blank > and "unsubscribe" in the subject line and

Re: [PHP] suhosin simulation blocks script

2010-11-04 Thread Daniel P. Brown
2010/11/4 David Oros : > > I have scripts that need for example exec() functions, but in general conf - > suhosin.ini the exec function is disabled, so I turned on suhosin simulation > mode. Now it is logging ALERT-SIMULATION messages in syslog, but it also > blocks the scripts with exec() function

  1   2   3   >