[PHP] form validation wih html input FILE

2004-05-05 Thread Vincent DUPONT
FILE component I can get and display the default value in a label or text input, but how could I upload that file then? Will I be limited to display a warning message indicating that the user will have to select his/her file again?? thank you vincent -- PHP General Mailing List (http://www.ph

[PHP] textarea and quotes

2004-05-05 Thread Vincent DUPONT
Hi, I can't remember the name of the function to remove the escaping of quotes when submitting a textarea example : becomes : stripslashes and stripcslashes seem not to work... vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] extracting quoted text in string

2004-06-01 Thread Vincent DUPONT
maybe there is something more convenient? Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] text search in database

2004-06-02 Thread Vincent DUPONT
search (create the appropriate SQL query) Do you known of any existing package that could parse such a syntax and /or generate some kind of sql query? tank you, vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] sessions handling

2004-06-02 Thread Vincent DUPONT
server instance and trying to print($_SESSION['foo'] when the user enters the HTTPS (443) pages However, i believe this could be a security issue if both secure and non secure sites use the same cookie. keep us informed. Vincent -Original Message- From: Dmitry Ruban

[PHP] multiple php.ini

2004-06-09 Thread Vincent DUPONT
ded a php.ini with a new include_path in the document root of version1 site, but this had no effect : the include_path remains the same... We run PHP as a ISAPI module. If you know one solution, please answer. thank you Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] ISAPI vs CGI

2004-06-23 Thread Vincent DUPONT
Hi, I have a script that need to run on ISAPI module on one server and on CGI on anther server. I would like my code to be able to react differently depending on the CGI/ISAPI mode. How can I detect the running mode of PHP?? is there a $_SERVER variable or anything?? vincent -- PHP General

[PHP] Tab panels

2004-06-30 Thread Vincent DUPONT
Hi, does anyone knowns of a good PEAR of other free TabPanels container? I would like to be able to constumize the tabs and insert as many panels as needed. PHP and/or Javascript is ok Thank you, Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Is PEAR worth the effort?

2004-06-30 Thread Vincent DUPONT
it does REALLY worth it! Install is easy, download only thoses packages you need, extendable, stable... The doc is sometimes a bit poor, but the basic are always easy Vincent -Original Message- From: Will Merrell [mailto:[EMAIL PROTECTED] Sent: mercredi 30 juin 2004 21:22 To: [EMAIL

[PHP] problem with embeded objects and reference

2004-06-30 Thread Vincent DUPONT
Hi, could anyone help on this 'by reference' problem. I have 2 classes. The main class as a child class. The child class has properties (array) I would like to be able to manipulate the child's properties even after the child has been inserted into the main class. Does this make sense? I can do

[PHP] problems linking a DLL to Zend symbols like _compiler_globals_id

2004-07-05 Thread Vincent Graux
where (in which detailed list) should I ask a question about problems linking a DLL to Zend symbols like _compiler_globals_id ? thks O volupté calme et profonde Des amours qui sont nés sans pleurs, Volupté saine comme une onde Qui chante sur un lit de fleurs. -Poésies, Sully Prud'homme René Franç

RE: [PHP] PHP5 Windows not built with Soap Enabled?

2004-07-15 Thread Vincent Jansen
Did you adjust your php.ini file? > -Original Message- > From: Sean Malloy [mailto:[EMAIL PROTECTED] > Sent: donderdag 15 juli 2004 3:50 > To: [EMAIL PROTECTED] > Subject: [PHP] PHP5 Windows not built with Soap Enabled? > > > Am I the only one experiencing this: > > Fatal error: Class

[PHP] PHP5 and pass by reference bug.

2004-07-16 Thread Daevid Vincent
So, I'm getting all these errors/warnings in PHP5 now saying that I have to put the & on the function and not in the passing (which sorta makes sense and puts the burden on the function rather than the user, which I like too). So I spend the time to go and fix several thousand lines of code. Then

RE: [PHP] Re: PHP5 and pass by reference bug.

2004-07-16 Thread Daevid Vincent
in your script you get > the altered one? > > ONLY variables can be passed by referenze ! > > -- red > > Daevid Vincent wrote: > > So, I'm getting all these errors/warnings in PHP5 now > saying that I have to > > put the & on the function and not

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 t

RE: [PHP] Preventing Access to Private Files

2007-09-06 Thread Daevid Vincent
u. If it's 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]

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 " inline echo " $var ?>" is forbidden. > Do you people code that strict? I like so

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 app

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

2007-09-17 Thread Daevid Vincent
JS / AJAX. > -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 Dae

RE: [PHP] Alternate Colors in Rows

2007-10-03 Thread Daevid Vincent
Add this to your default.css file... Or to the page... TR.dataRow1 { background-color: #e8f5f7; } /* light */ TR.dataRow2 { background-color: #dce8ea; } /* dark */ Then just do this: > Forget all that $i++ and (mod) % stuff... And NEVER hardcode the colors in the page. Use CSS ! Adjust t

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] Alte

RE: [PHP] Alternate Colors in Rows

2007-10-04 Thread Daevid Vincent
ple... Anyways, 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 R

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
if ( is_bool($value) ) $value = ($value === true)?'true':'false'; $tmp .= '<'.$key.'>'.$value.'<'.$key."/>\r\n"; }

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) > -Origin

[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: http://www.usenix.org/publications/perl

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 i

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 cr

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

2007-10-22 Thread Daevid Vincent
d invented Unix/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 Me

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 > >

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,

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 (http://trac.edgewall.

[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

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

[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 bit-

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
are both really really good imo. > > - Tul I user Trac for my Wiki my personal SVN repos. Here's an email I posted this list a couple weeks ago about the topic: -Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 6:57 PM To: p

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

2007-11-19 Thread Daevid Vincent
uld get you going. D.Vin 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 > > Y

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 PRO

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,

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

2007-12-02 Thread Daevid Vincent
:[EMAIL PROTECTED] > Sent: Friday, 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

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

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 ti

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 s

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 i

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 >

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 yo

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

2008-04-14 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 h

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

2008-04-15 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

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

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

2008-04-30 Thread Daevid Vincent
ory mode = 0777 force user = daevid WIN+R and \\askeet and you'll connect to that directory to start coding in your favorite PHP editor. Works like a f'n champ! :D I'll also suggest SQLYog and SecureCRT as my two other tools I just can't do without. Daevid Vincent http://daevid.co

RE: [PHP] Find MAC Address in PHP

2007-04-23 Thread Daevid Vincent
This may help you (find .tgz file at the page bottom): http://daevid.com/examples/dhcp/ This is a little web tool I use to see who is on my LAN D.Vin > -Original Message- > From: Nathaniel Hall [mailto:[EMAIL PROTECTED] > Sent: Friday, April 20, 2007 1:00 PM > To: php-general@lists.ph

RE: [PHP] Standard Address Book?

2007-04-23 Thread Daevid Vincent
You might look into vCards -- most mail clients load/import them. http://en.wikipedia.org/wiki/VCard > -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Monday, April 23, 2007 8:48 AM > To: [EMAIL PROTECTED] > Cc: php-general@lists.php.net > Subject: Re: [PHP] Stan

RE: [PHP] [ANNOUNCE] TODO parser

2007-04-28 Thread Daevid Vincent
> -Original Message- > From: Gregory Beaver [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 28, 2007 1:03 PM > To: Edward Vermillion > Cc: Daevid Vincent; 'PHP' > Subject: Re: [PHP] [ANNOUNCE] TODO parser > > Edward Vermillion wrote: > >

RE: [PHP] [ANNOUNCE] TODO parser

2007-04-28 Thread Daevid Vincent
; Sent: Saturday, April 28, 2007 12:52 PM > To: Daevid Vincent > Cc: 'PHP' > Subject: Re: [PHP] [ANNOUNCE] TODO parser > > Personally, I always spell it 'todo' and then a simple grep works > pretty well... > > I suppose I sometimes find a bunch of stuff wi

RE: [PHP] Re: [ANNOUNCE] TODO parser

2007-04-28 Thread Daevid Vincent
> -Original Message- > From: Alexander Elder [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 28, 2007 10:30 AM > To: php-general@lists.php.net > Subject: [PHP] Re: [ANNOUNCE] TODO parser > > Daevid Vincent wrote: > > For a long time I've wanted a tool

RE: [PHP] What does "<<<" mean?

2007-04-30 Thread Daevid Vincent
> echo "BROWSER: " . $_SERVER['HTTP_USER_AGENT'] . "\n"; I've always had problems with heredoc when I try using arrays like that. I will either pull them into a straight $foo, or use the ${} thing. > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated

RE: [PHP] sloppy use of constants as strings. WAS: What does "<<<" mean?

2007-04-30 Thread Daevid Vincent
> > > echo << > > BROWSER: $_SERVER[HTTP_USER_AGENT] > > > EOF; > > > > Isn't that form (sans quote marks) deprecated and frowned upon? > > > error_reporting( E_ALL ); > > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; > > Why would cleaner, perfectly error free code be frowned upon? http:

RE: [PHP] Discussion of bug #39062

2007-05-02 Thread Daevid Vincent
While I'm not using this particular function, I do agree with you, it's kinda sucky that they just dismissed their broken-ass method. It should return -2G..2G as advertised and as all other POSIX systems do. And you are also correct about the "work around" that is erroneous too. IMHO, this is a ge

RE: [PHP] Looking for an Architectural Guru

2007-05-03 Thread Daevid Vincent
> This is a seriously risky attempt at creating a business as > we're creating a > team, where there is no initial compensation/salary. This is > basically a > group of highly skilled guys getting together, to build what > should be a > couple of successful consumer/business oriented apps. The

RE: [PHP] WSDL Generator class

2007-05-10 Thread Daevid Vincent
I'm no big fan of SOAP and certainly think it's silly that I have to use like 8 million lines of WSDL to describe a 20 line function in PHP. I don't know WSDL - at all - don't want to know it -- shouldn't have to know it. Grrr. Sadly I had the same frustrating experience you did and ultimately e

[PHP] What is the best way to protect the PHP page that returns the AJAX data?

2007-05-10 Thread Daevid Vincent
Like most sites, someone needs to join up to use mine. I'm using a wee-bit-o-AJAX to pull some results from a database and display them dynamically. For the AJAX to work, it has to hit a script that's accessible from the htdocs tree right? Effectively it's just a (JavaScript initiated) GET U

RE: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-10 Thread Daevid Vincent
essage- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 10, 2007 8:28 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] What is the best way to protect the PHP > page that returns the AJAX data? > > That's a hu

[PHP] WTF is wrong with the PEAR site forcing me to register to submit a bug, yet doesn't provide any way to!?

2007-05-17 Thread Daevid Vincent
I wanted to submit a bug that the Spreadsheet_Excel_Writer-0.9.1 is still broken. http://pear.php.net/bugs/bug.php?id=6584 &thanks=3 "[2007-05-17 22:59 UTC] User who submitted this comment has not confirmed identity If you submitted this note

[PHP] PHP needs better funtion organization, naming and parameter specifications. WAS: Form Validation Issues

2007-05-23 Thread Daevid Vincent
ers to learn. I'm still confused and always referencing the docs for function names and parameter orders. If there needs to be a governing body for the naming, etc as mentioned, I'm happy to volunteer my time / talent. Contact me off list for resume, etc and set me up an SVN account and I'll bring my machette and get this fixed. :) Daevid Vincent http://daevid.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP needs better funtion organization, naming and parameter specifications. WAS: Form Validation Issues

2007-05-23 Thread Daevid Vincent
> > Send this all to the developer's list > > Too late now. The damage has been done. Fixing all the > inconsistencies > would either break backward compatibility or introduce a > whole raft of yet more aliases. That's what I suggest: We rename th functions to proper names. Then we make ali

[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 http://www.ibm.com/develo

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-

Re: [PHP] Error logging

2007-06-04 Thread Vincent Tumwijukye
t;error_log", "logs/error_log"); Parse errors are not being written to their personal log file, though. Why not?? About the only going in there are NOTICE level entries. Thanks. Clark W. Alexander -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

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 MD5(UN

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

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 i

RE: [PHP] Re: Swear filter ideas

2007-06-28 Thread Daevid Vincent
> This problem has been arround since the internet started. "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 k

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, cover-lett

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=name&descending=1&report=

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

2006-07-10 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 comm

[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 pr

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... >

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

2006-07-11 Thread Daevid Vincent
at this 'bug' was 'fixed' in PHP 5 or something and so in a 'helpful' way, PHP restores the session from memory. I do NOT want that to happen. > Regards, > Mrs. O'Toole > > Daevid Vincent wrote: > > I've noticed a 'feature' that

[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 PROTEC

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? Th

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 vi

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++

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 fil

[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... 'Stopped', START => 'Started', PAUSE => 'Paused' ); public static $STATESHACK = array( 0 => 'Stopped', 1 => 'Star

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::con

[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: h

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

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:[EM

[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? http://ww

[PHP] [funny] The state of Java Development

2006-10-27 Thread Daevid Vincent
"The state of Java Development"A friend snapped 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
ailto:[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 w

<    2   3   4   5   6   7   8   9   >