Re: [PHP] I2C and PHP

2009-06-16 Thread Daniel Brown
On Tue, Jun 16, 2009 at 01:02, Tobias Krieger wrote: > Hi, > > I'm working on a interface between the I2C Bus (Hardware) and PHP - to use > the PHP as webinterface to control an I2C Device. [snip!] Welcome to the list, Tobias. For future reference, please don't re-send the same email to the l

Re: [PHP] Link to .php page with session

2009-06-16 Thread Daniel Brown
On Tue, Jun 16, 2009 at 08:23, Stuart wrote: > > I may have interpreted your problem incorrectly, but I think your > problem is due to the session data not being saved until the script > has finished running, including the system call. To get around this > you can save and close the session before

Re: [PHP] Form Process Question

2009-06-16 Thread Daniel Brown
On Tue, Jun 16, 2009 at 11:03, Gary wrote: > I have a client that I have made some forms for.  On one of the forms, their > customers are to registar for a class.  The cost of the class is 195 per > person.  She would like to have the people be able to have the total cost > calculated for them befo

Re: [PHP] Form Process Question

2009-06-16 Thread Daniel Brown
On Tue, Jun 16, 2009 at 12:34, Gary wrote: > > I was thinking/hoping there was some mechanism that would calculate the > amount without hitting the submit button, something like a OnExit command. > Something that I would not have to work around the validation feilds being > lost and without having

Re: [PHP] about locale settings

2009-06-16 Thread Daniel Brown
On Tue, Jun 16, 2009 at 12:51, Per Jessen wrote: > > Am I the only one to run into these oddball problems?  Doesn't anyone > else use different locales?  I think the above is a bug - php _should_ > respect the LC_ALL setting without being specifically poked. Per; Sorry, I meant to get bac

Re: [PHP] about locale settings

2009-06-16 Thread Daniel Brown
On Tue, Jun 16, 2009 at 15:33, Per Jessen wrote: > > Environment > > Variable => Value > LC_ALL => de_DE.utf8 > > Is that what you were after? Sure is. Unfortunately, that means it's not an environment-import issue as I had originally suspected. I'll take a look on one of my servers and see

Re: [PHP] Disclaimer

2009-06-17 Thread Daniel Brown
On Wed, Jun 17, 2009 at 10:24, Jay Blanchard wrote: [snip!] > > P.S. I though about typing a missive long enough to make this a number > of lines of code divisible by 42, but I got over it. I wonder if all of > this could be squeezed into 42 lines of code (and not those really long > lines either)?

Re: [PHP] Disclaimer

2009-06-17 Thread Daniel Brown
On Wed, Jun 17, 2009 at 10:37, Jay Blanchard wrote: > > Whoa! Totally unintentional dude! DON'T PANIC! -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1 -- PHP General Mai

Re: [PHP] Disclaimer

2009-06-17 Thread Daniel Brown
On Wed, Jun 17, 2009 at 20:15, Stuart wrote: > 2009/6/18 Ashley Sheridan : >> On Thu, 2009-06-18 at 01:06 +0100, Stuart wrote: >>> 2009/6/17 Daniel Brown : >>> > On Wed, Jun 17, 2009 at 10:37, Jay Blanchard wrote: >>> >> >>> >>

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread Daniel Brown
On Wed, Jun 17, 2009 at 17:11, tedd wrote: > Hi gang: > [snip!] > > Is there a slick way to do that? Hacked together in the two minutes before I go to bed, so don't complain about its inelegance. ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://w

Re: [PHP] Multi-Sort -- how to do this?

2009-06-18 Thread Daniel Brown
On Thu, Jun 18, 2009 at 05:11, Ford, Mike wrote: > > array_multisort($d, $a, $b, $c) should do what you want, That'll actually hit it right on the head, too, Mike. My example from last night sorted and combined the arrays to be keyed and sortable by $d --- which, re-reading this morning, is n

Re: [PHP] Re: Can someone tell me why this is not working?

2009-06-18 Thread Daniel Brown
On Thu, Jun 18, 2009 at 12:22, Gary wrote: > Thanks...Now I get NULL > > I have another set of these if($) echo, and the all work, it is just this > one that refuses to give it up. Gary, if you can, send the link to the live development copy on which you're working. Even if it's just a tempor

Re: [PHP] about locale settings

2009-06-18 Thread Daniel Brown
On Thu, Jun 18, 2009 at 14:52, Per Jessen wrote: > > Now Dan, I hate to be a pest, but them minutes of yours seem to be > running a teeny bit slow? :-) It's the uhh time difference between Zurich and Scranton...? [*blushes*] Sorry about that. Let me finish this one final task a

Re: [PHP] Calendar

2009-06-18 Thread Daniel Brown
On Thu, Jun 18, 2009 at 18:16, salmarayan wrote: > > Does Any body please have the code of A Java Script Calendar that works with > a PHP Html  Form.. No. > if yes can you please send it as i have one but does not work that > Efficiently. No. -- daniel.br...@parasane.net || danbr...@p

Re: [PHP] 500 Internal Error

2009-06-19 Thread Daniel Brown
On Thu, Jun 18, 2009 at 22:05, Shawn Simmons wrote: > > Wrote a small script to connect to the MySql database.  Tried to run the > script (http://localhost/dbscript.php) and I get a 500 Internal Server > error.  I have been up and down the web for two days looking for a solution > and I am complete

Re: [PHP] PHP MySQL 500 Internal Error

2009-06-19 Thread Daniel Brown
On Thu, Jun 18, 2009 at 22:10, Shawn Simmons wrote: > Greetings Gurus! Also, please keep new threads on the list limited to one at a time, except in extenuating circumstances. And as a developer, there certainly are and will be more of those circumstances. ;-P -- daniel.br...@parasane.net

Re: [PHP] How to read excel sheet and display it's contents.

2009-06-19 Thread Daniel Brown
On Fri, Jun 19, 2009 at 09:17, jadhavpradip wrote: > > Hi, > > There is oleread.inc file in Excel Folder. > > Please rename that file to oleread.php it will work.. =) Please check the dates before posting on third-party sites to this list. That thread is over a year-and-a-half old. -

[PHP] This Friday's OT Thread

2009-06-19 Thread Daniel Brown
Hey, folks; It's been a while since we've launched a Friday OT thread, so here ya' go. Feel free to post nonsense, babble, share links, blow off some steam, bitch and complain about a colleague, whatever. Just remember that you're live to the world and are being archived and preserved fo

Re: [PHP] This Friday's OT Thread

2009-06-19 Thread Daniel Brown
On Fri, Jun 19, 2009 at 15:05, Robert Cummings wrote: > > I'm self-employed. I don't plan on ever laying myself off. Mind out of the gutter, Rob. Words like "self," "laying," and "off" will get you flagged. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http:/

Re: [PHP] This Friday's OT Thread

2009-06-19 Thread Daniel Brown
On Fri, Jun 19, 2009 at 15:00, Jason Pruim wrote: > Wow dan, must be nice to have the time to read all that :P > > I could rant about how hard it is to find a job when you don't have much > verifiable experience But instead I put together a website which has > links to everywhere that I'm watch

Re: [PHP] This Friday's OT Thread

2009-06-19 Thread Daniel Brown
On Fri, Jun 19, 2009 at 15:22, Jason Pruim wrote: > > I just had my interview with them today. They are starting the background > check right now. Ahh, fantastic! Let me know the area code from which they'll be calling so that, if they do, I'll make it a priority to answer it rather than lett

Re: [PHP] about locale settings

2009-06-19 Thread Daniel Brown
On Fri, Jun 19, 2009 at 15:40, Per Jessen wrote: > > http://bugs.php.net/bug.php?id=48612 See my email to you a moment ago on the impeccability of your timing, as well. ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Sha

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Daniel Brown
On Tue, Jun 23, 2009 at 04:12, Per Jessen wrote: > Manuel Aude wrote: > >> I'm giving a PHP course next semester (3 hours all saturdays for 22 >> weeks) and I just realized that PHP 5.3 is coming very soon (2 days >> now!). So, my plans of teaching PHP 5.2 are starting to change, and I >> think it'

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-24 Thread Daniel Brown
On Wed, Jun 24, 2009 at 13:24, Robert Cummings wrote: > > I prefer "proceed with caution" :) Robjects in mirror are closer than they appear? -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Us

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-24 Thread Daniel Brown
On Wed, Jun 24, 2009 at 17:19, Michael A. Peters wrote: > > Jane, a non technical person [...] > > Betty's webmail account is compromised [...] Bottom line: hax0r5 hate g1rls. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All S

Re: [PHP] require_once failure

2009-06-25 Thread Daniel Brown
On Thu, Jun 25, 2009 at 07:26, ste.paole...@tiscali.it wrote: > > Someone can help me? Why on Mac Os there are no problems? Start by making sure that the file is there and is readable by the user as which you are logged in. Execute the command: ls -l /usr/share/php/PHPUnit/Extensions

Re: [PHP] PHP doesn't use php.ini

2009-06-25 Thread Daniel Brown
On Wed, Jun 24, 2009 at 09:47, Tir wrote: > When i installed PHP, I had written to my httpd.conf PHPIniDir "c:/php". But > phpinfo() returns "C:\WINDOWS" in "Configuration File (php.ini) Path" row > and right path to my php.ini in "Loaded Configuration File". It looks like > php.ini really isn't us

Re: [PHP] Re:Re:require_once failure

2009-06-25 Thread Daniel Brown
On Thu, Jun 25, 2009 at 12:31, ste.paole...@tiscali.it wrote: > The file I wanna include exist and is in the corrent location: > > > s...@debian:~$ ll /usr/share/php/PHPUnit/Extensions/Database/TestCase. > php > -rw-r--r-- 1 root root 8818 31 mar 23:35 What is the output when running the targe

Re: [PHP] This Friday's OT Thread

2009-06-26 Thread Daniel Brown
On Fri, Jun 26, 2009 at 09:43, Tom Worster wrote: > On 6/26/09 9:20 AM, "Michelle Konzack" > wrote: > >> ...and no one care about the foreign (european) sniper WHO  killed  Neda >> in Iran. > > i don't know why you'd think that. the story is all over the news. american > pols have been exploiting

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread Daniel Brown
On Fri, Jun 26, 2009 at 00:32, Gautam Bhatia wrote: > hello all, >             Is there anyway in php by which i can get the total play > time of a mp3 , I found some information while doing the google thing > using some 3rd party plug ins like getID3 but without any luck, Any help > in this case w

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread Daniel Brown
On Fri, Jun 26, 2009 at 10:43, tedd wrote: > > I think that play time would be proportional to file size, right? > > If so, then take two files and play them. Note the play times and file sizes > of both and work out a algorithm. That would be the way I would try to solve > it. The compression

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread Daniel Brown
On Fri, Jun 26, 2009 at 11:17, tedd wrote: > > I stand corrected. Actually, I stand leaning a little to the right. And your mother dresses you funny. ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Ask me about our fully-managed ser

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread Daniel Brown
On Fri, Jun 26, 2009 at 11:42, tedd wrote: > > Well, at least I had a mother.  :-) Mrs. Sperling, Tedd's hurting my feelings -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Ask me about our fully-managed servers and proactive managem

Re: [PHP] fixing new lines from in an email?

2009-06-26 Thread Daniel Brown
On Fri, Jun 26, 2009 at 12:27, Adam Williams wrote: > I have staff fill out a form that contains a with their problem > description and emailed to me when they click submit.  Staff will press > enter in the text area, but I'm having problems converting the \r\n into a > new line in the email that

[PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Hello, When a MySQL table is locked a php call of mysql_query() that requires that table will hang as the request blocks at the MySQL server until the table is unlocked. Is there a way to stop a mysql_query from hanging (by setting a time limit)? The php.ini directive max_execution_time does not

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Daniel Kolbo wrote: > Hello, > > When a MySQL table is locked a php call of mysql_query() that requires > that table will hang as the request blocks at the MySQL server until the > table is unlocked. Is there a way to stop a mysql_query from hanging > (by setting a tim

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Ashley Sheridan wrote: > On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: >> Hello, >> >> When a MySQL table is locked a php call of mysql_query() that requires >> that table will hang as the request blocks at the MySQL server until the >> table is un

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Ashley Sheridan wrote: > On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: >> Ashley Sheridan wrote: >>> On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: >>>> Hello, >>>> >>>> When a MySQL table is locked a php call of mysql_query()

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Tom Worster wrote: > On 6/27/09 3:15 PM, "Daniel Kolbo" wrote: > >> When a MySQL table is locked a php call of mysql_query() that requires >> that table will hang as the request blocks at the MySQL server until the >> table is unlocked. Is there a way to stop

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Bastien Koert wrote: > Why issue/do a lock at all? Shouldn't need a large lock at read > > bastien > > On Saturday, June 27, 2009, Daniel Kolbo wrote: >> Ashley Sheridan wrote: >>> On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: >>>> Ashley

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Phpster wrote: > > > Bastien > > Sent from my iPod > > On Jun 27, 2009, at 4:13 PM, Daniel Kolbo wrote: > >> Ashley Sheridan wrote: >>> On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: >>>> Ashley Sheridan wrote: >>>>> O

Re: [PHP] Problems with an extension

2009-06-28 Thread Daniel Brown
On Sun, Jun 28, 2009 at 10:56, Eric A. Boney wrote: > So I am developing a custom extension and I am having a issue. I have a header > file that I need included in the project. If I #include the header file > everything compiles and makes just fine, but after restarting the web server > the extensi

Re: [PHP] guide me please

2009-06-29 Thread Daniel Brown
On Mon, Jun 29, 2009 at 05:40, Suresh Gupta VG wrote: > Hi List, > > I am newb to this PHP. I am using "AIX Version 5.3" OS and "PHP version > 4.3.9" by default version and "Oracle Application Server 10g Release 2". > Configured properly and I am getting the phpinfo.php on browser properly. But

Re: [PHP] Socket error

2009-06-29 Thread Daniel Brown
On Mon, Jun 29, 2009 at 02:42, Luke wrote: > Hey guys, getting an odd error here... The code involved: [snip!] Luke, Just a friendly reminder: for future reference, please don't start a second thread on the list until the first is closed out --- particularly if it's the same subject. Som

Re: [PHP] Managed job chains

2009-06-30 Thread Daniel Brown
On Tue, Jun 30, 2009 at 09:42, Suresh Gupta VG wrote: > Hi List, > > Please find the error message below when I logged into managed jobs. Please > advice me to get rid of this. Get rid of this. >         The PHP-Extension domxml is needed to display job scheduler > informations > Please ad

Re: [PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Daniel Brown
On Thu, Jul 2, 2009 at 12:40, Govinda wrote: > > Can someone point me to this? Wrong list. ;-P In fact, check Google for .htaccess MIME aliasing. It's nothing to do with PHP, nor cPanel, really. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.

Re: [PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Daniel Brown
On Thu, Jul 2, 2009 at 13:38, Govinda wrote: > > I must not have mod-rewrite installed (I am 98% uneducated about > apache/server admin). > I will save your post though MIchael, for when I get more to that level.. >  you gave a good lead. You've got mod_rewrite on there. If you're getting an

Re: [PHP] Sessions

2009-07-02 Thread Daniel Brown
On Thu, Jul 2, 2009 at 23:27, Jason Carson wrote: > Hello all, > > Do I have to add session_start() at the beginning of every page so that > the $_SESSION variables work on all pages or do I use session_start() on > the first page and something else on other pages? Yes, unless you're using ses

Re: [PHP] Writing to a file

2009-07-03 Thread Daniel Brown
On Fri, Jul 3, 2009 at 06:01, Jason Carson wrote: > Hello everybody, > > How would I go about writing stuff to a file but in between the > tags? The current industry standard is a combination of text editor and keyboard, but there are many options. More specifically, are you trying to wr

Re: [PHP] Writing to a file

2009-07-03 Thread Daniel Brown
2009/7/3 Sándor Tamás (HostWare Kft.) : > The classic method is: > 1.) read the whole file into an array of strings. > 2.) search for the last line > 3.) insert a string BEFORE the last line. > 4.) write back the whole file to the same name > > Classic file handling does allow you to append to the

Re: [PHP] apc breaks pear::mdb2

2009-07-03 Thread Daniel Brown
On Fri, Jul 3, 2009 at 07:00, Michael A. Peters wrote: >> >> Fatal error:  Class 'PEAR' not found in >> /usr/share/pear/MDB2/Driver/mysql.php on line 876 Have you installed PEAR's PEAR module? I know it sounds a bit redundant, but see if that works for you. From the command line: pe

Re: [PHP] php-general mail server on blackhole list

2009-07-03 Thread Daniel Brown
On Fri, Jul 3, 2009 at 10:52, The Doctor wrote: >  13 RCVD_IN_JMF_BL         RBL: Sender listed in JMF-BLACK >                        [216.92.131.4 listed in hostkarma.junkemailfilter.com] > > truns up in my spamc test. > > Please fix! I've processed the removal from their erroneous blacklist,

Re: [PHP] Love luxury? Buy a fashionable watch.

2009-07-04 Thread Daniel Brown
On Sat, Jul 4, 2009 at 15:47, Eddie Drapkin wrote: > I bought one, these are AWESOME. General policy on the list is not to respond to these, even as a joke. It just confirms to the jackasses who send this crap that the message was read by someone. -- daniel.br...@parasane.net || danbr...@p

Re: [PHP] 64 bit binary ?

2009-07-05 Thread Daniel Brown
On Sun, Jul 5, 2009 at 15:43, loki wrote: > Hello > > Is it plane to release 64 bit binary for php on windows ? Pierre? -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedicated server deals at http://twit

Re: [PHP] 64 bit binary ?

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 06:21, loki wrote: > no Not you. ;-P Note that I forwarded the message to the appropriate list --- the php-windows@ mailing list --- where Pierre Joye hangs out. He'd be the one to help you. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.n

Re: [PHP] Off Subject / Feedback Needed

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 03:03, Karl James wrote: > Team, > > http://www.theufl.com/css/corners.css > > http://www.theufl.com/indexb.htm > > I am trying to get the rounded corners to show in the first row in the HTML > table. > Can someone review the code for me? No, Karl, and please don't ask s

Re: [PHP] Advise on starting a web store site

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 08:15, Matthew Croud wrote: [snip!] > > Is there a way to create the site *without* having each product have a > physical separate page ? > > Is there a method of web design which makes creating new pages simple if > they all follow the same pattern. i.e thumbnail, descriptio

Re: [PHP] Simple login form with cookies

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 02:19, Jason Carson wrote: >> > ok, I have two sets of scripts here. One uses setcookie() for logging into > the admin panel and the other uses session_start(). Both are working fine, > is one more secure than the other? $_COOKIE data is written to a file that is readabl

Re: [PHP] Lookup domain in directories VS database

2009-07-06 Thread Daniel Brown
2009/7/5 Martin Zvarík : > Imagine you are hosting 10.000 subdomains. Consider it done. [snip!] > > Everytime visitor hits the page you do: > > @include('t/test-subdomain.freehosting.com/conf.php') > > if (!isset($CONF)) die('such a subdomain does not exist'); vs > Everytime vi

Re: [PHP] What is this called?

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 10:48, Miller, Terion wrote: > Ok, say you have a database with 16000 records in it, but you only want to > call out say 2000 records at a time as the search/query is performed, then > store the first 2000 in a session and then retrieve the next 2000 etc etc as > a way to min

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 11:04, Govinda wrote: > > Kim, this is exactly what I was looking for.  I had been over $_SERVER in > the docs..  but somehow missed that basic obvious param.  Thanks! And now I'll throw a monkey wrench into the gears and tell you that, yes, it works, but don't always re

Re: [PHP] What is this called?

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 11:15, Miller, Terion wrote: > > It seems like Pagination except I already have that in place for all records, > so maybe I'm just looking for a way to page the search results... > Boss kept referring to "partitioning results" By definition, yes, but if you use the term

Re: [PHP] un-de-re-deprecation

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 13:29, Christoph Boget wrote: [snip="facts"] > > Ok, so I'm curious, why was is_a() added back in when it was tossed > out on it's head in 5.0? This is just how things operate with the core folks. In actuality, that's not just PHP that does it: most projects (and indeed

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 18:16, Govinda wrote: > > this is great, but then I still do not have a solution that will work for > any level deep of dir/ . > I.e. this- > dirname(dirname(__FILE__)) > gives the correct first part of the path to document root like > $_SERVER['DOCUMENT_ROOT'] does > only wh

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Daniel Brown
On Tue, Jul 7, 2009 at 11:03, Jeff Weinberger wrote: > > This seemed like it would be the perfect solution...but alas it did not > work. 22527 seems right, but after changing php.ini to that and restarting > php and apache, I am still getting "Deprecated..." messages. Dumb question, Jeff: are

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Daniel Brown
On Tue, Jul 7, 2009 at 17:46, Jeff Weinberger wrote: > > One question - that I for some reason have not found - is there a list of > the numerical values of the E_* constants somewhere? You bet: http://php.net/manual/en/errorfunc.constants.php -- daniel.br...@parasane.net || danbr...@php.ne

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
First, a reminder to several (including some in this thread) that top-posting is against the law here. On Wed, Jul 8, 2009 at 09:48, Martin Scotta wrote: > $sql = 'SELECT * FROM your-table WHERE username = \''. $username .'\' > and passwd = md5( concat( \'' . $username .'\', \'@\', \'' . $pass

Re: [PHP] Host that allows edit of php.ini

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 04:27, Matthew Croud wrote: > Apologies if this type of question is frowned upon in the mailing list, > however I would like to pop the question to those in the know. > > Can anyone recommend a UK host that allows you to edit ( or a copy of ) the > php.ini file, > allowing me

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 12:14, Tony Marston wrote: > No it isn't. That's just your personal preference. Mine is different. Uhh Tony, if that's in response to me, you're wrong. Please read the rules before posting what you believe to be fact. ;-P -- daniel.br...@parasane.net || danbr...

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 12:38, Tony Marston wrote: > What rules? I never agreed to abide by any rules before I started posting to > this group. My newsreader assumes top posting by default, so I have been top > posting for the past 10 years. If you don't like it then it is your problem, > not mine.

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 13:02, Tony Marston wrote: > I do not regard that as a concrete rule, and certainly not one worth > bothering about. Lots of newsgroups I visited before coming here allowed top > posting, so it is arrogant for someone to say "I personally don't like top > posting, so I'll mak

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Daniel Brown
On Thu, Jul 9, 2009 at 09:54, Tony Marston wrote: > > I called him "intolerant" because he jumps on issues which other people just > don't care about. Point #1: You're obviously wrong, as this thread has already received more replies than most on-topic, PHP-centric threads. > I called him "sm

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Daniel Brown
On Thu, Jul 9, 2009 at 11:57, Tony Marston wrote: > > Violating a license agreement is against the law, top posting is not. Laws are rules set forth by mortal man. I have the right by your own word to choose not to obey this particular one. Your arguments hold no water, your experience h

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Daniel Brown
On Thu, Jul 9, 2009 at 16:55, tedd wrote: > > Now, do I remember email? No not really. As I understand it, email came > about under ARPANET and converted to the Internet in the early 80's. So > unless he has been doing email and participating on something other than > what's known, I would have to

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Daniel Brown
On Thu, Jul 9, 2009 at 16:47, Bastien Koert wrote: >> >>        My sincerest apologies.  I have been a complete jackass this entire >> time and every single one of you has been correct.  From this point >> forward I vow to keep my God damned mouth shut unless spoken to. Heh. Methinks there be

Re: [PHP] open source event calendar

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 03:13, Joey wrote: > Hello All! > > Does anyone know of a good open source calendar app? > > Hopefully one that has ongoing development etc. > > ( sorry asked this before, but can't find a web list to search for the > previous results, php.net has a list that is not searchab

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Daniel Brown
Chris; From my understanding of your question, your message (included below in its entirety) is better sent to the MySQL General list, which I've CC'd on this reply. If you haven't yet, please subscribe there at mysql-subscr...@lists.mysql.com to follow the thread for responses. If I

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 12:59, Andrew Ballard wrote: > > I understood the question to be how to improve performance by caching > MySQL results into an XML document (which, given that it was posted > here) within a PHP script. Perhaps this is not the correct > interpretation, but if so it would be r

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 13:07, workerho...@studysite.eu wrote: > hi andrew i think you understand my problem a little, > but if 100 user load this query at the same time, the two mysql server had a > lot to do! > so i think to cache this query as xml to the application server local make > thinks fa

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 13:23, workerho...@studysite.eu wrote: > hmm, the infrastructure ist good, this is just this query > so to solve my problem i could run mysql on the application server and store > just this table > and read the query from them, it could solve my problem litte, i hope so!

[PHP] Re: [PHP-WEBMASTER] Show Source QUESTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 02:47, David Lee wrote: > I was wanting to have a page called source.php like you guys, and have it > display the source code for the pages, but I've looked at the source code for > you guys source.php page and I can't seem to make it work on my server. > > Like how do you

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 15:48, Chris Payne wrote: > Hi everyone, > > My server appears to be the victim of a chinese hack-attack and I > believe they managed to change pages via SQL Injection, do any of you > have any ideas how to lock down my forms so MySQL cannot be used from > my forms? Fir

Re: [PHP] PHP not running properly

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 15:44, Togrul Mamedbekov wrote: > Hello Sir or Madam, > > We just updated our PHP 5.2 software. And when I try to run the php info > script! I get a blank screen! What do you see when you view the source of the page with phpinfo() ? -- daniel.br...@parasane.net || da

Re: [PHP] php.ini directive include_path variables

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 16:56, J.P. Trosclair wrote: > I'm wondering if there is a way to dynamically set the absolute path of an > include directory based on the document root of the site via htaccess or > some other method other than in the scripts themselves within the site. Please check th

Re: [PHP] php.ini directive include_path variables

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:24, J.P. Trosclair wrote: > > I've spent the better part of this afternoon looking through google and the > archives for different variations on terminology before resorting to > subscribing and posting to this list. Will go back to digging based on your > suggestion. Tha

Re: [PHP] php.ini directive include_path variables

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:28, Govinda wrote: > > yes, look for posts with this subject line: > Re: [PHP] best way to properly build an include path *regardless*  from > where I am calling the include? > > (just don't ask me to explain everything that those good souls were trying > to teach me in t

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:37, Chris Payne wrote: > Hi everyone, > > Hmmm i'm not sure it is an SQL Injection now, done a lot more checking > and it is inserting code at the end of every index.htm index.html > default.html and index.php pages on my site. > > Ooooh what fun :-) Wouldn't happen

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:48, Chris Payne wrote: > Hi, > > Yes their IP is from Russia by Chinese in origin. > > How can this be prevented? > > Thank you all SO much for your help, it is very appreciated. So would be your move to bottom-posting (with nods to the jihad that was the longest thr

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 18:11, Chris Payne wrote: > > Sorry I post at the top because i'm legally blind and it's easier but > i'll try to post at the bottom :-) > > This is the main site on my server: > > http://www.oxyge.net > > I just took out the offending code at the end of the index page to ge

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 20:25, Govinda wrote: > How do I  get > basename(__FILE__) > or > htmlentities($somevar) > to be evaluated  in a heredoc? You don't. Instead, you have to store the output from those in a variable (or array), then place it into the HEREDOC it. basename(__FILE__), 'siz

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 10:42, Ashley Sheridan wrote: > > The braces ensure that PHP doesn't stop parsing the variable name once it > reaches the [. By default, it will only match a variable name up to the [ > sign, so you couldn't access arrays without the braces. Couldn't have said it better

Re: [PHP] Re: How to authnticate and use contents from ${HOME}

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 10:52, wrote: > Hi Isaac, > >> Installing LAMP is not a good idea for productive servers. Always stick >> with >> the Packages of your distribution to get all upgrades. No offense toward the poster of this information, but this is probably the most ludicrous advice I'v

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 11:05, tedd wrote: > > Side note: Paul Novitski showed me using an underscore for heredocs: > > $html =<<<_ > whatever > _; > > That I thought was kind of neat. To me it makes heredocs stand out and are > more uniform. I used $html =<< daniel.br...@parasane.net || danbr

[PHP] Re: [PHP-DB] Checking Special Characters

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 02:41, Manu Gupta wrote: > Dear All, > I have to design a databse where I need to check for date > using date as datatype in mysql I am having problems while inserting it > > Can you help me with it?? Google. > Also I am having problems with eregi(), erege(); This

Re: [PHP] XAMMP-Mysql Crashing

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 11:47, Gary wrote: > I have an issue that Mysql will not start on my local machine. I noticed a > few days ago on a restart that I got an error saying that Mysqld had > encountered a problem and had to close. I did not pay any attention to it > because I was not working in i

Re: [PHP] XAMMP-Mysql Crashing

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 13:07, Gary wrote: > Ahh the list of responses is endless > > 1. Its just you My wife keeps telling me the same thing, so you're in good company, Gary. > 2. Please, if you want to see people bite, go over the the adobe/dreamweaver > group, there are some people ove

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 13:45, Eddie Drapkin wrote: > > If that's true, then we've found an error reporting bug! I've never > seen an error/warning raised, even with my usual > "error_reporting(E_ALL | E_STRICT | E_DEPRACATED)"!  The warning is > raised here, though: > $foo = $bar[hello]; > > but n

Re: [PHP] XAMMP-Mysql Crashing

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 13:30, Gary wrote: > It is a bit freindlier here, those folks over at dreamweaver have a lot in > common with pipe-smokers, fly fisherman and sail boat captains... > > I dont really recall where I got the XAMMP from, so I dont really understand > the german reference.  I did

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
t; > $foo = << $bar[hello] > EOT; > > echo $foo;  //echos out goodbye > ?> It works fine because you're forcing PHP to cast 'hello' in your array from a simple boolean TRUE to the string equivalent. Bad, Eddie! Stay off the couch! > Something this s

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 13:35, Daniel Brown wrote: > >    It works fine because you're forcing PHP to cast 'hello' in your > array from a simple boolean TRUE to the string equivalent. sed "s/string equivalent/literal 'hello' string/g" (The wa

<    10   11   12   13   14   15   16   17   18   19   >