[PHP] mod_auth_mysql 2.20 won't compile with newer Apache and alloc.h vs ap_alloc.h

2001-03-29 Thread Daevid Vincent
trying to get Apache to compile with this keeps failing, complaining about "alloc.h" it seems. I notice that apache calls it "ap_alloc.h" now, but the only reference in mod_auth _mysql is in: apMakefile.tmpl: $(INCDIR)/alloc.h $(INCDIR)/buff.h \ but changing that doesn't fix the problem...

[PHP] what exactly are /path/to/blah looking for? .h? .so? .a? what?!

2001-03-30 Thread Daevid Vincent
I'm having difficulties with that line: ./configure --with-openlink=/path/to/openlink/ --with-iodbc=/path/to/iodbc/ so I've tried every combination I can think of related to "iodbc" and "openlink", and none of these are compiling. Every one results in "No such file or directory"!

RE: [PHP] RE: what exactly are /path/to/blah looking for? .h? .so? .a? what?!

2001-03-30 Thread Daevid Vincent
3 Mar 7 14:42 odbcinst.ini -rw-r--r--1 nobody html 1010 Mar 7 14:42 odbc.ini -rw-r--r--1 nobody html 5127 Mar 7 14:42 odbc.doc -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 2:57 PM To: Daevid Vincent; [EMAIL PROTEC

[PHP] RE: [PHP-DB] RE: [PHP] RE: what exactly are /path/to/blah lookingfor? .h? .so? .a? what?!

2001-03-31 Thread Daevid Vincent
e" is just a shell script with make clean, all my --options, make, make install, since I have to compile in mysql, and some other stuff. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 4:00 PM To: Daevid Vincent; [EMAIL PROTECTED]; PHP

[PHP] making cgi and apache module simultaneously?

2001-04-02 Thread Daevid Vincent
Just a suggestion, but it seems like it would be helpful if there were a --make-cgi or some other flag that I could use so that when I compile PHP4, it generates me both the Apache module and also the stand alone cgi. I use both frequently, PHP4 for the web interface things, and then also the

[PHP] RE: [PHP-DB] help with compiling ODBC into PHP4

2001-04-02 Thread Daevid Vincent
/src/WT_Apache_Setup/php-4.0.4/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/data/usr/src/WT_Apache_Setup/php-4.0.4/main' make: *** [all-recursive] Error 1 thank you for your continued help. -Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED]] Sen

[PHP] PHP4.0.4 segfaults with odbc_pconnect

2001-04-02 Thread Daevid Vincent
I've tried this with both PHP4.0.4 and PHP4.0.4pl1 as a module (it's for a daily script eventually). [root=pts/1]7:29pm@content:{/www/html/private/TattooShop} ./odbc-test2.phtml #!/bin/php -q Segmentation fault the relevant part of phpinfo(); is below, so I'm assuming that I finally got odbc

RE: [PHP] mod_auth_mysql 2.20 won't compile with newer Apache and alloc.h vs ap_alloc.h

2001-04-02 Thread Daevid Vincent
ap_alloc.h -Original Message- From: Dennis Moore [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 8:28 PM To: Daevid Vincent; PHP General Subject: Re: [PHP] mod_auth_mysql 2.20 won't compile with newer Apache and alloc.h vs ap_alloc.h I ran into this problem last week. I finally pu

[PHP] How do I split an alphabetical list (array) into A-M and N-Z?

2002-07-03 Thread Daevid Vincent
Anyone have a function that will take an alphabetical list of names (in an array already) and split it into two 'chunks' (arrays) A-M and N-Z? So, let's say I have: Abby Road BobbyCraft Darren's doodads Farenheit 456 generic name MyCom.com

[PHP] Help with example session class

2002-05-29 Thread Daevid Vincent
pages? Do I need to move the class to an include file? Do I need to re-create it on each page somehow? Can someone show me a real working example of this scenario? Daevid Vincent http://daevid.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Help with example session class (second request)

2002-05-30 Thread Daevid Vincent
or is defined now on this page? So my question is basically, how can I use the class and the session variables across multiple pages? Do I need to move the class to an include file? Do I need to re-create it on each page somehow? Can someone show me a real working example of this scenario? Daevid Vincent

RE: [PHP] Help with example session class (second request)

2002-05-30 Thread Daevid Vincent
/include/header.phtml); ? And I get this error: Fatal error: Call to a member function on a non-object in content.phtml on line 4 -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 12:19 PM To: Daevid Vincent; PHP general mailing list

RE: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Daevid Vincent
Okay, now I'm completely confused... I made a very simple test page, and even that doesn't work: http://daevid.com/examples/index.phtml Notice how I have the right session_id, but the variable didn't pass onto the second page. Can someone please explain to me what I am doing wrong? Do I not

RE: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Daevid Vincent
I can't say that I have moved over to the new superglobals yet - I prefer register_globals cos I am lazy ;) Given $myvar = 5; If you use session_register('myvar'); Then on another page, do you just access it via $myvar? And if that's the case, isn't it the same to set

RE: [PHP] Need help with Apache and .htaccess vs. Files directive. -- SOLVED

2002-08-09 Thread Daevid Vincent
) and why the Files directive didn't apply. Just a guess. - Tim -Original Message- On Thu, Aug 08, 2002 at 06:16:03AM -0700, Daevid Vincent wrote: I'm baffled. Using the example I found here: http://www.devarticles.com/content.php?articleId=143page=3 I have a working

[PHP] RE: [PHP-DB] PHP4.0.4 segfaults with odbc_pconnect

2001-04-03 Thread Daevid Vincent
nd FWIW, the PHP example STILL segfaults. I would expect it to through up an error, not segfault... that can't be good can it? daevid.com -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 8:08 PM To: Daevid Vincent; [EMAIL PROTECTED]; PHP General

RE: [PHP] reusing MySQL results -- resetting mySQL pointer with mysql_data_seek()

2001-04-04 Thread Daevid Vincent
Just my two cents here... I could be mistaken, but wouldn't this method hit the database twice? I would suggest you take your results the first time and store them in an array or multidimensional array, then you can get to any element at any time further down the page. -Original

RE: [PHP] PHP Oracle Ebook Request.

2007-10-23 Thread Daevid Vincent
-Original Message- Please I need a book called : Oracle Database 10g Express Edition PHP Web Programming (Osborne Oracle Press Series): Books: by Michael McLaughlin. Please if anyone with the E-Book Version of it should be contact me on my Email NOTE:

RE: [PHP] PHP Oracle Ebook Request.

2007-10-23 Thread Daevid Vincent
-Original Message- Please include the list in replies. Thanks for your message, With regard to your message, the main reason why I want it Electronically is because, Am a PHP Student Who has no enough Cash to buy from Amazon or any bookseller and more over, the book

RE: [PHP] Recommend a wiki?

2007-11-08 Thread Daevid Vincent
I have had 'Trac' thrust upon me by an employee/coworker and while it is not perfect (or even close to it), it does what it does, and it does it pretty well. http://trac.edgewall.org/ Some of my favorite things about it are: Wiki is pretty common tags

[PHP] CLI spinner processing

2007-11-14 Thread Daevid Vincent
Check out this cool little snippet for use in CLI scripts. It shows processing with a spinner. It took me a little while to figure out the magic combination of the cursor array and ternary operator. My main goal was to make it as self contained and efficient as possible. I am importing millions

RE: [PHP] CLI spinner processing

2007-11-14 Thread Daevid Vincent
-Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 14, 2007 1:08 AM Daevid Vincent wrote: I am importing millions of records, and didn't want to waste CPU time on computing modulus on some huge $i value. :) So instead you spend

RE: [PHP] How does the PHP website colorize the code snippets?

2007-11-15 Thread Daevid Vincent
-Original Message- From: T.Lensselink [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 12:05 AM On Wed, 14 Nov 2007 23:45:40 -0800, Daevid Vincent [EMAIL PROTECTED] wrote: I want to put a code snippet section on my site and want to colorize them like the user

[PHP] How does the PHP website colorize the code snippets?

2007-11-15 Thread Daevid Vincent
I want to put a code snippet section on my site and want to colorize them like the user comments on any PHP site page. http://www.php.net/manual/en/language.operators.arithmetic.php What's the easiest way to do that? I've used Geshi, but that seems a lot of overhead just to colorize a wee

RE: [PHP] Open Source BTS?? -- Roach

2007-11-16 Thread Daevid Vincent
You could install the system I wrote called Roach. You can see an older version on my site (and I can post up or email you a newer .tgz file): http://daevid.com I actively develop it for my company. We've used it for 6 years now. I *try* to make my fixes generic, and I repost them periodically

RE: [PHP] Open Source BTS??

2007-11-16 Thread Daevid Vincent
: -Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 6:57 PM To: php-general@lists.php.net Cc: 'TG'; 'Skip Evans' Subject: RE: [PHP] Recommend a wiki? I have had 'Trac' thrust upon me by an employee/coworker and while it is not perfect (or even

RE: [PHP] Open Source BTS?? -- Roach

2007-11-19 Thread Daevid Vincent
http://daevid.com -Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Friday, November 16, 2007 2:23 PM To: php-general@lists.php.net Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Open Source BTS?? -- Roach You could install the system I wrote called Roach. You

RE: [PHP] including parenthesis, space and dashes in a phone number

2007-11-30 Thread Daevid Vincent
The kind of opposite of this, is what I use, in that it ADDs the () and - if ((strlen($phone)) = 14) $phone = preg_replace(/[^0-9]*([0-9]{3})[^0-9]*([0-9]{3})[^0-9]*([0-9]{4}).*/, (\\1) \\2-\\3, $phone); -Original Message- From: afan pasalic [mailto:[EMAIL

RE: [PHP] including parenthesis, space and dashes in a phone number

2007-12-02 Thread Daevid Vincent
-Original Message- From: Warren Vail [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 2:17 PM To: 'Jochem Maas' Cc: 'afan pasalic'; 'Daevid Vincent'; 'php-general' Subject: RE: [PHP] including parenthesis, space and dashes in a phone number I did not know that about

RE: [PHP] including parenthesis, space and dashes in a phone number

2007-12-02 Thread Daevid Vincent
, November 30, 2007 12:03 PM To: Daevid Vincent Cc: 'php-general' Subject: Re: [PHP] including parenthesis, space and dashes in a phone number It's ok to store it this way, but it could be a little PITA when search. E.g., you store (123) 456-7890 and somebody search for 123-456-7890

RE: [PHP] Banned from #php

2007-12-03 Thread Daevid Vincent
ROFL OMG. That's s my new signature! -Original Message- From: Stephen Johnson Remember, when coding, php.net and google are friends. Everyone else hates you. It is not personal, it's just a fact. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Daevid Vincent
-Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Thursday, January 31, 2008 8:19 AM To: [EMAIL PROTECTED] Cc: PHP General List Subject: Re: [PHP] PEAR website and MSIE 6 Richard Heyes schreef: firefox not an option? Nope. or anything else that

RE: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Daevid Vincent
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] IE6 is fast and launches in 1 second. FF takes many seconds. Isn't that because IE6 pre-loads everything during the BOOT process, slowing that down quite a bit?... I guess. I leave my XP box on all the time, so

RE: [PHP] PEAR website and MSIE 6 (M$ forcing IE7)

2008-02-01 Thread Daevid Vincent
-Original Message- From: Richard Heyes [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 3:43 AM To: Daevid Vincent Cc: 'PHP General List' Subject: Re: [PHP] PEAR website and MSIE 6 Daevid Vincent wrote: I will be very sad in 15 days when M$ FORCES everyone to it. WT

RE: [PHP] Security scanner (Lockdown Networks Enforcer)

2008-02-12 Thread Daevid Vincent
-Original Message- From: Emil Edeholt [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 5:17 AM To: php-general@lists.php.net Subject: [PHP] Security scanner I've been trying Nessus to search for sql injections and other security issues. I'm quite sure Nessus is

RE: [PHP] Deleting all rows in a database every 24 hours?

2008-02-25 Thread Daevid Vincent
Or make a 'truncate.sql' file with the tables in it to truncate: TRUNCATE TABLE foo; TRUNCATE TABLE bar; Then in the crontab mysql mydatabase truncate.sql No PHP needed. -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 6:59 AM To:

RE: [PHP] GPS Locator

2008-03-04 Thread Daevid Vincent
While this has deteriorated way off topic from PHP, I will just mention that I've purchased several GPS from these cats and had great luck: http://www.buygpsnow.com You *might* be able to write a custom PHP extension that you compile into PHP that can access the USB/Serial port as well. (and if

[PHP] Tuning LAMP systems: Optimizing Apache and PHP

2007-05-28 Thread Daevid Vincent
I saw this on article on Digg. Reposting here in case anyone is interested or missed it being a holiday today and all... http://digg.com/programming/Optimize_PHP_and_Accelerate_Apache Direct links: http://www.ibm.com/developerworks/linux/library/l-tune-lamp-1/index.html

RE: [PHP] Re: find (matching) person in other table

2007-05-31 Thread Daevid Vincent
Jumping in late so forgive if I'm mistaken, but can't you just use HAVING in place of WHERE select member_id, first_name, last_name, email, ..., (5*(first_name='$first_name) + 2*(first_name='$first_name')) as score from members HAVING score 0 -Original Message- From:

RE: [PHP] customer ids using UUID, MD5, reverse logic, error 1062

2007-06-06 Thread Daevid Vincent
Have you thought of using a UUID: http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html#func tion_uuid While not real pretty, it would save you the extra SELECT. You could also just MD5(UUID()) to make it a bit 'smaller', or some other mechanizm. Even something as simple as

RE: [PHP] php / mysql performance resources

2007-06-13 Thread Daevid Vincent
I'll throw in my suggestion here as to how I implement this. Generally I evaluate how big are the tables and what do I intend to do with them. Sorting is usually a problem. Using the PHP multi_sort seems cumbersome and never seems to be as simple as letting the DB do it. I too use LEFT JOINs

RE: [PHP] Calendar

2007-06-13 Thread Daevid Vincent
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 12:05 PM On Wed, June 13, 2007 12:50 pm, Clint Tredway wrote: Is there a decent free calendar? I just need to show a few events on a calendar. Having looked at a LOT of web

RE: [PHP] London PHP salaries

2007-06-14 Thread Daevid Vincent
How much should be the lower limit to keep a family happy (happy means with enough money for a flat, food, clothes, entertainment, education and something to save for the future) ? $salary = 3 + (sizeof($family) * 1); This may seem obvious, but make sure you get paid in POUNDS.

RE: [PHP] Re: Swear filter ideas

2007-06-28 Thread Daevid Vincent
This problem has been arround since the internet started. rant problem? They're just words! Not sure why some people are so offended by them? My parents have even purchased a little device that sits between their TV and DVD/VHS and bleeps out bad words. And they're in their 60's and have no

RE: [PHP] Social Networking Sites OT

2007-07-17 Thread Daevid Vincent
For what it's worth, LinkedIn has been around for years -- one of the first SNS out there, and it's well written and very useful. It's not a myspace whore thing. It's for professionals. Many employers will look there for recommendations about you and such, just as valuable as a resume,

RE: [PHP] get and post together

2007-08-09 Thread Daevid Vincent
I've done that on occasion, but do be careful what you are sending via the GET. It has a size limit for one (maybe 1k chars?) and it is trivial for someone to modify. I generally use GET when I think it's a page setup the user may wish to bookmark (ie: page.php?orderby=namedescending=1report=69

RE: [PHP] Re: Announcement: Releasing CORE GRASP for PHP. An open source, dynamic web application protection system.

2007-08-22 Thread Daevid Vincent
-Original Message- From: mike [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 1:32 PM I thing a good FAQ entry would be how this patch fits in with Suhosin and what are the comparable/conflicting concepts, are they compatible with each other etc.

RE: [PHP] Re: Releasing CORE GRASP for PHP. An open source, dynamic web application protection system.

2007-08-22 Thread Daevid Vincent
-Original Message- From: mike [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 6:22 PM On 8/22/07, Chris [EMAIL PROTECTED] wrote: I'm agreeing with the ideas behind Grasp Suhosin - I'm just disagreeing with Daevid's comment about them only being for 'newbie'

RE: [PHP] Internet Explorer Caching

2007-08-30 Thread Daevid Vincent
Here are some cache things we do for IE... // workaround for IE bug that prevents downloading files from an httpS site // (see http://support.microsoft.com/default.aspx?scid=kb;en-us;316431 ) session_cache_limiter('public'); // This ensures that most browsers known to human beings won't try to

RE: [PHP] Preventing Access to Private Files

2007-09-06 Thread Daevid Vincent
-Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: Thursday, September 06, 2007 1:04 PM To: php-general@lists.php.net Subject: [PHP] Preventing Access to Private Files I understand how to use PHP with MySQL to have a members table to validate passwords. And to limit

RE: [PHP] Preventing Access to Private Files

2007-09-06 Thread Daevid Vincent
installed, you could also do the .htaccess route, but that's not as elegant. d -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Thursday, September 06, 2007 5:02 PM To: Daevid Vincent; php-general@lists.php.net Subject: RE: [PHP] Preventing Access to Private Files

RE: [PHP] Buxa Coding Guidelines : This is how we do

2007-09-10 Thread Daevid Vincent
Just wanted to see what you think of the strictness of Buxa, according to their PHP guidelines: http://www.buxaprojects.com/en/php_coding_guidelines.htm In their oppinion stuff like the short PHP init ? or inline echo ?= $var ? is forbidden. Do you people code that strict? I like

RE: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Daevid Vincent
-Original Message- From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 5:25 AM To: php-general@lists.php.net Subject: [PHP] Try to find a solution, when restart Apache with PHP Script Hi all... I'm facing a serious problem with my application.

RE: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Daevid Vincent
. -Original Message- From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 1:00 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] Try to find a solution, when restart Apache with PHP Script Hi Daevid, This app keep alive forever as well? When

RE: [PHP] Alternate Colors in Rows

2007-10-03 Thread Daevid Vincent
Add this to your default.css file... Or to the page... style TR.dataRow1 { background-color: #e8f5f7; } /* light */ TR.dataRow2 { background-color: #dce8ea; } /* dark */ /style Then just do this: TR class=?php echo ($r = !$r) ? dataRow1 : dataRow2; ? Forget all that $i++ and (mod) % stuff...

RE: [PHP] Alternate Colors in Rows

2007-10-04 Thread Daevid Vincent
This was a joke right? You don't seriously do this in r.l. just to alternate row colors I hope? -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 6:36 PM To: Jim Lucas Cc: Steve Marquez; PHP eMail List Subject: Re: [PHP] Alternate

RE: [PHP] Alternate Colors in Rows

2007-10-04 Thread Daevid Vincent
, this is a dead horse. D.Vin http://daevid.com -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 1:04 PM To: Daevid Vincent Cc: 'PHP eMail List' Subject: RE: [PHP] Alternate Colors in Rows On Thu, 2007-10-04 at 12:28 -0700, Daevid Vincent

RE: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Daevid Vincent
First, I am flattered for all the elegant comments. Honestly, this is PHP 102 level stuff, so I don't see all the fuss. Yes it is the ternary operator -- I'm a big fan of that one. (http://us.php.net/manual/en/language.expressions.php) In the below example, (while sloppy on my part), by NOT

RE: [PHP] mySQL Results To XML -- my xmltag() functions

2007-10-06 Thread Daevid Vincent
* @paramstring $myArray the array to output in XML format * @author Daevid Vincent [EMAIL PROTECTED] * @version 1.0 * @date 07/19/05 * @todo It would be nice if we could extract the array's variable name and output that as an attribute */ function print_r_xml($myArray

RE: [PHP] Sending lots of emails - 2 choices - choose the best one

2007-10-06 Thread Daevid Vincent
Option 3) setup a dedicated program to handle the mail, such as mailman and then send ONE email from PHP to the listserver which will then dispatch the mail accordingly, properly, in batches. http://www.gnu.org/software/mailman/index.html (at least, that's how I do it currently) -Original

[PHP] How to format CLI tabular data?

2007-10-08 Thread Daevid Vincent
I write many CLI scripts in PHP to clean up DB records, etc via crontab scripts. Often though, I implement command line switches to 'debug' or see various data as a precaution before actually purging. Perl has some neat tools built in to format tabular data:

RE: [PHP] combining 2 arrays

2007-10-16 Thread Daevid Vincent
-Original Message- From: Ladislav Andel [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 16, 2007 1:05 PM To: James Ausmus; PHP List Subject: Re: [PHP] combining 2 arrays Thank you very much! It's exactly the code I was looking for! Lada PS: my previous ungly code is half

RE: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-22 Thread Daevid Vincent
What we do is setup 'sudo' to run certain commands (or a shell/ruby script for example), then have PHP/Apache exec() the script via sudo (or use a DBUS call to a 'root' enabled ruby daemon), which then restarts apache or whatever we want. Be VERY careful with the way you do this or you can give

RE: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-22 Thread Daevid Vincent
/Linux. Best tool for the job and all that stuff... You're just asking for all kinds of headaches and limitations (such as the one you're encountering now) by using the back of a screwdriver to hammer a nail IYKWIM. You'll poke your eye out! :) -Original Message- From: Daevid Vincent [mailto

RE: [PHP] Startinga shell process with a life of its own

2006-07-11 Thread Daevid Vincent
On some machines, on some OSes, in some configurations, with some commands, tacking onto the end of what you exec, will sometimes work... Sadly, in even Linux, this will not work. PHP blocks on the call. I've even tried to call out to a shell script which in turn uses to call a command.

[PHP] How do I prevent a session from rebuilding itself?

2006-07-11 Thread Daevid Vincent
I've noticed a 'feature' that seems to be causing me some pain. When a user logs in, we store various pieces of info and their user class in a $_SESSION variables. This includes a flag saying that they've ben authenticated. I would expect that if I 'rm -rf /tmp/sess_*' that the user would get

RE: [PHP] PHP 5...

2006-07-11 Thread Daevid Vincent
It's silly to have two different environments like that. Either code the thing in PHP4. or upgrade the production environment to PHP5. DÆVID -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 6:08 AM To: php php Subject: [PHP] PHP 5... Hi,

[PHP] RE: How do I prevent a session from rebuilding itself?

2006-07-11 Thread Daevid Vincent
. Regards, Mrs. O'Toole Daevid Vincent wrote: I've noticed a 'feature' that seems to be causing me some pain. When a user logs in, we store various pieces of info and their user class in a $_SESSION variables. This includes a flag saying that they've ben authenticated. I

[PHP] [ANNOUNCE] dumpster :: dumps out all related records in a mySQL InnoDB database

2006-07-12 Thread Daevid Vincent
Hey all. Well I just finished my first version of a little tool I have affectionately dubbed dumpster. I do use my own SQL wrapper functions, but they should map fairly cleanly to a search and replace for the stock PHP mysql_*() ones, or your own ones. Mad props to Peter Brawley [EMAIL

RE: [PHP] How do I prevent a session from rebuilding itself?

2006-07-12 Thread Daevid Vincent
I would expect that if I 'rm -rf /tmp/sess_*' that the user would get prompted to re-login (since the flag is not set). Does it say someplace in the manual that you should be able to do that? Or is this a case of what you expect is not what the rest of the world expects? This is how

RE: [PHP] RE: How do I prevent a session from rebuilding itself?

2006-07-12 Thread Daevid Vincent
Just to be clear, what exactly are you trying to do? Are you trying to logout a user No. We write enterprise level software probably far surpassing what PHP was ever intended for. However, our GUI is web based (LAMP). We have fail over cluster nodes. If a user is logged into one via a

RE: [PHP] RE: How do I prevent a session from rebuilding itself?

2006-07-12 Thread Daevid Vincent
We write enterprise level software probably far surpassing what PHP was ever intended for. However, our GUI is web based (LAMP). so the GUI uses php but the rest doesn't? kind of nullifies the statement aboveif thats the case. Not really. We use DBUS calls to Ruby and C/C++ code. We

RE: [PHP] How do I prevent a session from rebuilding itself?

2006-07-12 Thread Daevid Vincent
Sequence of events: script starts you rm -rf /tmp/sess_* script writes out data script ends Exactly WHAT do you think should happen in this case?... I expect this to work like it USED TO WORK! Bug or not. I expect: Script starts Calls session_start(1234) No existing sess_1234 file.

[PHP] What good are constants if you can't use them in an array?

2006-08-02 Thread Daevid Vincent
*sigh* Why is PHP so lame... ?php class PHPISLAME { const STOP = 0; const START = 1; const PAUSE = 2; public static $STATES = array( STOP = 'Stopped', START = 'Started', PAUSE = 'Paused'

RE: [PHP] What good are constants if you can't use them in anarray? [solved] I'm a jerk.

2006-08-02 Thread Daevid Vincent
Why is PHP so lame... Why are you trolling on the PHP list? Not trolling. Just frustrated. Apologies. Furthermore, you aren't even using them properly. The documentation clearly shows the following usage: ClassName::constant This is how you have to use it. self::constant

[PHP] I need an array of state abbrev to names...

2006-08-17 Thread Daevid Vincent
B/c I'm too busy (and lazy) to hand type it all in, wondering if someone has an array of state abbreviations to names like so... $states = array( ... 'NY' = 'New York', 'WA' = 'Washington', ... ); ÐÆ5ÏÐ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] I need an array of state abbrev to names...

2006-08-17 Thread Daevid Vincent
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Thursday, August 17, 2006 2:54 PM To: Daevid Vincent; php-general@lists.php.net Subject: Re: [PHP] I need an array of state abbrev to names... At 12:58 PM -0700 8/17/06, Daevid Vincent wrote: B/c I'm too busy (and lazy

RE: [PHP] I need an array of state abbrev to names... [solved]

2006-08-17 Thread Daevid Vincent
-Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, August 17, 2006 1:26 PM To: Daevid Vincent; php-general@lists.php.net Subject: RE: [PHP] I need an array of state abbrev to names... Daevid Vincent mailto:[EMAIL PROTECTED] on Thursday, August

[PHP] What is the smallest, fastest web server to run PHP and SSL (on a soekris box)

2006-10-18 Thread Daevid Vincent
I need to run a httpd server that can serve up PHP, SQL Lite, and SSL on a little Soekris box (ie. a 486 with 32MB RAM and 32MB CF storage). Can anyone recommend something? How small can Apache get? AppWeb? http://www.mbedthis.com http://www.appwebserver.org/ What about lighthttpd?

[PHP] [funny] The state of Java Development

2006-10-27 Thread Daevid Vincent
"The state of Java Development"Afriendsnapped this picture at the Barnes Noble in Woodinville, WA...

[PHP] How do I get ini_set('output_handler', '') to work?!

2006-10-27 Thread Daevid Vincent
What am I doing wrong... In my php.ini I have this for my web pages (and I want it): output_handler = ob_gzhandler But this causes my command line script to not show output until the very end. I thought I could disable it at the top of a script, but it's not working!?! #!/usr/bin/php -q

RE: [PHP] [funny] The state of Java Development

2006-10-27 Thread Daevid Vincent
UGH This stupid list server stripped out the inline image. WTF!? Here, I put it on my site http://daevid.com/junk/Java_Dev.jpg DÆVID From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 1:58 PM To: php

RE: [PHP] How do I get ini_set('output_handler', '') to work?!

2006-10-30 Thread Daevid Vincent
Lynch [mailto:[EMAIL PROTECTED] Sent: Sunday, October 29, 2006 9:25 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] How do I get ini_set('output_handler', '') to work?! On Fri, October 27, 2006 3:46 pm, Daevid Vincent wrote: What am I doing wrong... In my

RE: [PHP] How do I get ini_set('output_handler', '') to work?!

2006-10-31 Thread Daevid Vincent
There is nothing to re-compile here. The command line has an existing flag for you to specify the php.ini file, or to override any setting[s] within the php.ini file. Mebbe so, but that's equally obnoxious to pass this command line parameter to a lot of existing scripts. It's just easier to

[PHP] Microsoft Partners With Zend

2006-11-01 Thread Daevid Vincent
No comments? http://it.slashdot.org/it/06/10/31/2047209.shtml Personally I'm unsure. I would like to think that Zend is smart enough to realize M$ tactics of embrace/extend and will not allow that to happen. But everyone has a price, and you through enough money at something and you can make

RE: [PHP] Microsoft Partners With Zend

2006-11-01 Thread Daevid Vincent
-Original Message- From: Ed Lazor [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 12:05 PM Cc: Daevid Vincent; PHP General Subject: Re: [PHP] Microsoft Partners With Zend ps... I wonder if .NET will ever support PHP *GRIN* I guess that's sorta what I'm afraid

RE: [PHP] open source zip code geographical drill down

2006-11-03 Thread Daevid Vincent
If you've got several more hours to spare, providing a Google map as an alternative is also quite do-able, though not as quick-n-easy as you have to walk the XML output in Javascript by hand instead of letting a built-in function do it for you. Then you just need to spend a day or two

RE: [PHP] Trying to create an encryption method

2006-11-06 Thread Daevid Vincent
-Original Message- (strlen(trim($normalAlphabet[$k])) === 0)); Not sure if this is it, but be careful with the === vs == DÆVID -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Preventing users from inserting malicious HTML into comments

2006-11-06 Thread Daevid Vincent
-Original Message- From: Dotan Cohen [mailto:[EMAIL PROTECTED] Sent: Monday, November 06, 2006 3:24 PM I'm setting up a comments system on a site, with the comments stored in a mysql database. To prevent sql-injection, I run mysql_real_escape_string() on ingoing data. This should

RE: [PHP] Simple logic but can't get it right

2006-11-08 Thread Daevid Vincent
Since you don't declare variables in PHP, they are preinitialized for you as 'false' or '0' So since $b is not set initially, it is 0 therefore second elseif passes. -Original Message- From: Choy, Wai Yew [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 9:34 PM To:

RE: [PHP] Staff log-in

2006-11-10 Thread Daevid Vincent
-Original Message- From: Google Kreme [mailto:[EMAIL PROTECTED] Is that *really* your name?! :) The trouble comes when you need to time-out a session because someone never logged out properly. That can be hairy. Yeah, it's so hard to do that subtraction...

[PHP] Need tool to graphically show all includes/requires

2007-01-19 Thread Daevid Vincent
We have a fairly complex product that is all PHP based GUI. We're in need of some kind of graphical tool (web, stand alone, windows, linux, osx whatever) that will take a directory tree, recursively traverse all the files, look for 'includes' and 'requires' (and the _once versions too) and then

[PHP] What is the practical use of abstract and interface?

2008-04-15 Thread Daevid Vincent
I've had at least three job interviews in the past two weeks, and each one has asked me this rather text book academic question regarding the difference between abstract vs. interface. I've been coding for nearly 20 years, and at least 10 of those have been in PHP and another 3 in J++. I have

RE: [PHP] What is the practical use of abstract and interface?

2008-04-16 Thread Daevid Vincent
-Original Message- From: Larry Garfield [mailto:[EMAIL PROTECTED] If your code doesn't have an API and clear separation of parts, then neither abstract classes nor interfaces are useful to you. If you're coding anything of respectable size, vis, more than a one-off 1000

RE: [PHP] What is the practical use of abstract and interface?

2008-04-16 Thread Daevid Vincent
All that extra code for absolutely no benefit! It is possible to define an interface (as in API) without actually using the term interface, so IMHO the term interface is totally redundant and a waste of time. While I agree that Interfaces are mostly a lot of extra code, I have to

RE: [PHP] Xampp question, pretty much 0T

2008-04-30 Thread Daevid Vincent
just can't do without. Daevid Vincent http://daevid.com -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 6:06 AM To: Ryan S; php php Subject: RE: [PHP] Xampp question, pretty much 0T Top posting from my cell... 1. Format hard drive 2

Re: [PHP] Netbeans 6.5 WAS: phpDesigner 2008?

2008-11-26 Thread Daevid Vincent
On Tue, 2008-11-18 at 10:32 +, Holografix wrote: Hi I tried PHPDesigner some time ago. It's not bad but now I'm using Netbeans and it's a good editor: http://www.netbeans.org/ (it's free!) I watched the little movie demo and was impressed, so I just installed and tried the Netbeans 6.5

Re: [PHP] how do i allow more than 2 threads of php to run?

2008-12-09 Thread Daevid Vincent
Assuming this is in-fact your issue, I ALWAYS do this registry hack on my Windows computers: http://support.microsoft.com/kb/282402 On Tue, 2008-12-09 at 22:10 +0200, Krister Karlström wrote: Hi! Please note that most browser follows the RFC:s and does not allow more than two connections

Re: [PHP] Import files from directory

2009-01-05 Thread Daevid Vincent
On Tue, 2009-01-06 at 01:01 +0100, Merlin Morgenstern wrote: Hi everybody, I am running a real estate portal and would like to allow users to upload their listing from their existing software. They do this with a XML file which they will upload on a ftp server that places this xml file

Re: [PHP] switch vs elseif -- switchtable

2009-01-12 Thread Daevid Vincent
On Mon, 2009-01-12 at 15:31 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak blindspot...@comcast.net wrote: I've googled, and found some confusing answers. I've tried searching the history of the news group, and only found info on switch or elseif seperately.

  1   2   3   4   5   6   >