Re: [PHP] whoami explanation

2009-03-04 Thread Peter Ford
PJ wrote: Per Jessen wrote: PJ wrote: forgot to add: What's the difference between back ticks or quotes and regular single quotes? text in back ticks is executed via a shell, text in single quotes isn't. Ok, but how does this relate to a command passed from a php Web page? I

[PHP] Conclusion of use strict...

2009-03-04 Thread Hans Schultz
Concluding,  and one idea...I think I received satisfying advices on everything but first question (Detection of typos and other simple mistakes). And we were talking also about being able to catch them at compile time, then if php at all has compile time etc. Today one thing crossed my mind --

Re: [PHP] ruby / rails within a php site

2009-03-04 Thread Kyohere Luke
Would this work? $contents = file_get_contents(' http://localhost/path_to_ruby_installation/rubyfile'); then print out the contents wherever you want to? or something similar, basically, we get the html output of the ruby file over http, since this will run your ruby/rails installation the

[PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread Jochem Maas
..not an internals question me thinks ... redirecting to generals mailing list mike schreef: I am trying to figure out a strategy for multiple output formats on a site, and it seems like I can have functions defined by default, but have them defined -after- I've included the targetted format

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Robert Cummings
On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be

Re: [PHP] Strange charecters

2009-03-04 Thread Bastien Koert
On Wed, Mar 4, 2009 at 2:10 AM, Paul Scott psc...@uwc.ac.za wrote: On Wed, 2009-03-04 at 10:09 +0530, Chetan Rane wrote: I am using ob_start() in my application. However I am getting this error about headers already sent. _Any_ output will set that error off. Check for Notices, Warnings,

Re: [PHP] whoami explanation

2009-03-04 Thread Michael A. Peters
Peter Ford wrote: PJ wrote: Per Jessen wrote: PJ wrote: forgot to add: What's the difference between back ticks or quotes and regular single quotes? text in back ticks is executed via a shell, text in single quotes isn't. Ok, but how does this relate to a command passed from a

Re: [PHP] Re: compiling php with libjpg64

2009-03-04 Thread Jochem Maas
google is your friend (and with friends like that who needs enemies): try what's mentioned here: http://www.linuxquestions.org/questions/linux-software-2/compiling-php-on-rhel-5-64-bit-685606/ otherwise: http://www.google.com/search?q=compile+php+64+bit+libs Merlin Morgenstern schreef: Hi

[PHP] $_FILES empty, trouble with uploading

2009-03-04 Thread Karl St-Jacques
Hello people. I have some trouble with an upload script. It was working until the last 2 weeks. Whenever I tried to upload a file to a remote server, the $_FILES array is empty. I print global at start of the script there's nothing. Here's the form form

RE: [PHP] whoami explanation

2009-03-04 Thread Boyd, Todd M.
-Original Message- From: PJ [mailto:af.gour...@videotron.ca] Sent: Tuesday, March 03, 2009 5:56 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] whoami explanation Boyd, Todd M. wrote: -Original Message- From: Ashley Sheridan

Re: [PHP] Re: compiling php with libjpg64

2009-03-04 Thread Merlin Morgenstern
Hello JOchem, thank you for your help. That worked out. Regards, Merlin Jochem Maas wrote: google is your friend (and with friends like that who needs enemies): try what's mentioned here: http://www.linuxquestions.org/questions/linux-software-2/compiling-php-on-rhel-5-64-bit-685606/

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
[Inhales] On Wed, Mar 4, 2009 at 01:01, PJ af.gour...@videotron.ca wrote: Ok. You asked for it... I have to rant a bit get this off my chest as it has been bugging me for a while and this is not directed at anyone in particular. I'm noting for a while here I do not

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Daniel Brown wrote: [Inhales] On Wed, Mar 4, 2009 at 01:01, PJ af.gour...@videotron.ca wrote: Ok. You asked for it... I have to rant a bit get this off my chest as it has been bugging me for a while and this is not directed at anyone in particular. I'm noting for a

Re: [PHP] Re: whoami explanation

2009-03-04 Thread Jochem Maas
Robert Cummings schreef: On Tue, 2009-03-03 at 11:27 -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote: This really needs some explanation I found this on the web: ?php echo `whoami`; ? with it there was the comment the direction of those single-quotes matters (WHY ?) and it works

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on.  Good comments. No offense taken and none intended. I am enoying the list and will continue to participate, if i may. I have learned a great deal already and really do appreciate the help. So you mentioned your

Re: [PHP] whoami explanation

2009-03-04 Thread Robert Cummings
Daniel Brown wrote: The way I see it, life is little more than a game played in a dream; win or lose, it's still going to end, so enjoy it while it lasts. Speak for yourself THERE CAN BE ONLY ONE!!! *chops off Dan's head* *runs away while lightning bolts strike him over and

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 10:52, Robert Cummings rob...@interjinn.com wrote: *runs away while lightning bolts strike him over and over* Would the sound to accompany this mental image be one of a Daffy Duck or Woody Woodpecker nature? -- /Daniel P. Brown daniel.br...@parasane.net ||

Re: [PHP] Conclusion of use strict...

2009-03-04 Thread 9el
You got it all wrong. As explained, php dont have real compile time like other languages. And if you want to learn a language, you have to start the way it acts. the E_STRICT setting will tell you most of the errors possible from a php script. At production level programmers keep the errors away

RE: [PHP] whoami explanation

2009-03-04 Thread Boyd, Todd M.
-Original Message- From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel Brown Sent: Wednesday, March 04, 2009 10:16 AM To: Robert Cummings Cc: PJ; Boyd, Todd M.; php-general@lists.php.net Subject: Re: [PHP] whoami explanation On Wed, Mar 4, 2009 at 10:52,

Re: [PHP] whoami explanation

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 11:15 -0500, Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:52, Robert Cummings rob...@interjinn.com wrote: *runs away while lightning bolts strike him over and over* Would the sound to accompany this mental image be one of a Daffy Duck or Woody Woodpecker nature?

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 11:20, Boyd, Todd M. tmbo...@ccis.edu wrote: I think it's a Queen song, actually... Mama-mia. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use

Re: [PHP] whoami explanation

2009-03-04 Thread Stuart
Cracking response Dan, and I agree fully with most of it. A while back I was a far more active contributor to the PHP lists than I am now (promotion == more responsibility == less spare time) and the reason I do it is because it never seems like work - it's fun!! But I feel I must correct you on

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 11:31, Stuart stut...@gmail.com wrote: The results returned by Google are not constant. They vary based on your location, which domain you're using, which index instance you hit and a number of other things, most of which are not public. It is more than possible that PJ

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Shawn McKenzie
Robert Cummings wrote: On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template

Re: [PHP] whoami explanation

2009-03-04 Thread Stuart
2009/3/4 Daniel Brown danbr...@php.net On Wed, Mar 4, 2009 at 11:31, Stuart stut...@gmail.com wrote: The results returned by Google are not constant. They vary based on your location, which domain you're using, which index instance you hit and a number of other things, most of which are

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 12:28, Stuart stut...@gmail.com wrote: As I understand it, and like you I certainly don't claim to know for sure, clusters within the Google infrastructure sometimes fall behind with their copy of the the index which can mean different results even between page reloads.

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content

Re: [PHP] whoami explanation

2009-03-04 Thread Thodoris
This really needs some explanation I found this on the web: ?php echo `whoami`; ? with it there was the comment the direction of those single-quotes matters (WHY ?) and it works But this (_*FROM THE PHP MANUAL***_ * - exec()* executes the given /command/ ) does not, COPIED AND PASTED:

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken and none intended. I am enoying the list and will continue to participate, if i may. I have learned a great deal already and really do appreciate the help.

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Stuart wrote: Cracking response Dan, and I agree fully with most of it. A while back I was a far more active contributor to the PHP lists than I am now (promotion == more responsibility == less spare time) and the reason I do it is because it never seems like work - it's fun!! But I feel I

[PHP] Sending multipart/form-data request with PECL.

2009-03-04 Thread Jason Cipriani
I am trying to submit a request to an HTTP server with multipart/form-data encoded data. I'm using PECL's HttpRequest (although I'm open to alternatives). I am using PHP5. I noticed that if you call addPostFile to add a file, PECL will send the file, and all other post parameters, with

Re: [PHP] whoami explanation

2009-03-04 Thread Shawn McKenzie
PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken and none intended. I am enoying the list and will continue to participate, if i may. I have learned a great deal already and really do appreciate the

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 13:31, PJ af.gour...@videotron.ca wrote: am I vindicated  ;-) Eh. Whether or not it is true in practice, in theory it certainly sounds plausible to have varying results. However, your argument, verbatim, wasn't entirely with merit. ;-P All in all, sure. At

Re: [PHP] whoami explanation

2009-03-04 Thread Shawn McKenzie
Thodoris wrote: Didn't have the time to read the whole thread. Sorry for being so lame. Obviously, or you would have known that this thread has very little if anything to do with whoami! :-) -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 12:46 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of

Re: [PHP] whoami explanation

2009-03-04 Thread Stuart
2009/3/4 PJ af.gour...@videotron.ca Stuart wrote: Cracking response Dan, and I agree fully with most of it. A while back I was a far more active contributor to the PHP lists than I am now (promotion == more responsibility == less spare time) and the reason I do it is because it never

[PHP] Re: Sending multipart/form-data request with PECL.

2009-03-04 Thread Shawn McKenzie
Jason Cipriani wrote: I am trying to submit a request to an HTTP server with multipart/form-data encoded data. I'm using PECL's HttpRequest (although I'm open to alternatives). I am using PHP5. I noticed that if you call addPostFile to add a file, PECL will send the file, and all other post

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Nathan Nobbe
On Wed, Mar 4, 2009 at 11:51 AM, Robert Cummings rob...@interjinn.comwrote: On Wed, 2009-03-04 at 12:46 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie

Re: [PHP] whoami explanation

2009-03-04 Thread Thodoris
Thodoris wrote: Didn't have the time to read the whole thread. Sorry for being so lame. Obviously, or you would have known that this thread has very little if anything to do with whoami! :-) Indeed nonetheless it will be something useful for the archives (at least I think

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 12:15 -0700, Nathan Nobbe wrote: On Wed, Mar 4, 2009 at 11:51 AM, Robert Cummings rob...@interjinn.comwrote: On Wed, 2009-03-04 at 12:46 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote: Robert

[PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread mike
On Wed, Mar 4, 2009 at 4:01 AM, Jochem Maas joc...@iamjochem.com wrote: ..not an internals question me thinks ... redirecting to generals mailing list Actually, I do think it is somewhat internals related. I want to know from the internals/experts angle if this is a good function to be relying

Re: [PHP] Strange charecters

2009-03-04 Thread Ashley Sheridan
On Wed, 2009-03-04 at 08:02 -0500, Bastien Koert wrote: On Wed, Mar 4, 2009 at 2:10 AM, Paul Scott psc...@uwc.ac.za wrote: On Wed, 2009-03-04 at 10:09 +0530, Chetan Rane wrote: I am using ob_start() in my application. However I am getting this error about headers already sent.

Re: [PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 11:45 -0800, mike wrote: On Wed, Mar 4, 2009 at 4:01 AM, Jochem Maas joc...@iamjochem.com wrote: ..not an internals question me thinks ... redirecting to generals mailing list Actually, I do think it is somewhat internals related. I want to know from the

Re: [PHP] whoami explanation

2009-03-04 Thread Ashley Sheridan
On Wed, 2009-03-04 at 10:23 -0500, Daniel Brown wrote: Secondly, if you are getting a different response from Google, Sally, then you didn't use the same input I'd beg to differ. It's well known that Google gives out different results based on geographical location and previous search history.

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 15:03, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2009-03-04 at 10:23 -0500, Daniel Brown wrote: Secondly, if you are getting a different response from Google, Sally, then you didn't use the same input I'd beg to differ. It's well known that Google gives

Re: [PHP] whoami explanation

2009-03-04 Thread Ashley Sheridan
On Wed, 2009-03-04 at 15:02 -0500, Daniel Brown wrote: On Wed, Mar 4, 2009 at 15:03, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2009-03-04 at 10:23 -0500, Daniel Brown wrote: Secondly, if you are getting a different response from Google, Sally, then you didn't use the same

[PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-04 Thread Alice Wei
Hi, I am working on a series of long files that contain 4 or 5 MB each, each of them is encoded in UTF-8 saved as .dat format. However, I have noticed that when I do insert statements, the file only reads up to around 1MB and then would stop. If I split the file into 3 or 4 files, that

Re: [PHP] $_FILES empty, trouble with uploading

2009-03-04 Thread Ashley Sheridan
On Wed, 2009-03-04 at 09:02 -0500, Karl St-Jacques wrote: Hello people. I have some trouble with an upload script. It was working until the last 2 weeks. Whenever I tried to upload a file to a remote server, the $_FILES array is empty. I print global at start of the script there's

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 15:07, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Yeah, been crazily busy with both my regular job and freelance stuff. I think I'm booked up to Armageddon now :-/ Good for you. It means you're definitely doing something right. -- /Daniel P. Brown

Re: [PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 15:05 -0500, Alice Wei wrote: Hi, I am working on a series of long files that contain 4 or 5 MB each, each of them is encoded in UTF-8 saved as .dat format. However, I have noticed that when I do insert statements, the file only reads up to around 1MB and then

Re: [PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 15:26, Robert Cummings rob...@interjinn.com wrote: See this setting in your php.ini: memory_limit = ???M Also let us know what you're using for the database and how you're doing it. You mention that the .dat files are 4-5MB, but don't say if that's the database

RE: [PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-04 Thread Alice Wei
Subject: Re: [PHP] How Much Data Can Be Written to a Database In One Instance? From: rob...@interjinn.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net Date: Wed, 4 Mar 2009 15:26:38 -0500 On Wed, 2009-03-04 at 15:05 -0500, Alice Wei wrote: Hi, I am working on a

RE: [PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-04 Thread Alice Wei
Subject: Re: [PHP] How Much Data Can Be Written to a Database In One Instance? From: rob...@interjinn.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net Date: Wed, 4 Mar 2009 15:26:38 -0500 On Wed, 2009-03-04 at 15:05 -0500, Alice Wei wrote: Hi, I am working on a

RE: [PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-04 Thread Alice Wei
_ Use Messenger to talk to your IM friends, even those on Yahoo! http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Conclusion of use strict...

2009-03-04 Thread Hans Schultz
Thanks for reply, I completely understood your answer even in previous thread, but you should understand few very simple things1. I am not working alone, so I can't make other people use tools I use (eclipse + PDT at the moment) 2. even if somehow I manage to do number 1 we also have some legacy

[PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread Jochem Maas
mike schreef: On Wed, Mar 4, 2009 at 4:01 AM, Jochem Maas joc...@iamjochem.com wrote: ..not an internals question me thinks ... redirecting to generals mailing list Actually, I do think it is somewhat internals related. internals is about engine development. always ask on the generals list

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken and none intended. I am enoying the list and will continue to participate, if i may. I have learned a great

Re: [PHP] whoami explanation

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 16:16 -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken and none intended. I am enoying the list and will

Re: [PHP] whoami explanation

2009-03-04 Thread Chris
for FILE in $LIST do cp $FILE $FILE.bak done which works as long as you can guarantee that none your file names contain spaces ... ;) Which he already said: Note that in both of these examples, filenames with spaces in them will blow the whole thing up :( ;) -- Postgresql php

Re: [PHP] whoami explanation

2009-03-04 Thread Shawn McKenzie
PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken and none intended. I am enoying the list and will continue to participate, if i may. I have learned

Re: [PHP] whoami explanation

2009-03-04 Thread Ashley Sheridan
On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken and none intended. I am enoying

Re: [PHP] whoami explanation

2009-03-04 Thread Paul M Foster
On Wed, Mar 04, 2009 at 04:16:40PM -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: snip Ooooh, boy now this is really serious... :o I think your ignorance will be forgiven, maybe! And this is

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Robert Cummings wrote: On Wed, 2009-03-04 at 16:16 -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Shawn McKenzie wrote: PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken and none intended. I am enoying the

Re: [PHP] whoami explanation

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: Whatever you do, please, please, please, for the love of all that is holy, please, do not vilify potatoes! ...or the Irish :-) Potatoes are best served sliced into sticks, pan-fried, covered in cheese curds, and then finally doused in

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Ashley Sheridan wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on.

Re: [PHP] Conclusion of use strict...

2009-03-04 Thread Jochem Maas
Hans Schultz schreef: Thanks for reply, I completely understood your answer even in previous thread, but you should understand few very simple things1. I am not working alone, so I can't make other people use tools I use (eclipse + PDT at the moment) 2. even if somehow I manage to do

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Paul M Foster wrote: On Wed, Mar 04, 2009 at 04:16:40PM -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: snip Ooooh, boy now this is really serious... :o

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Robert Cummings wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: Whatever you do, please, please, please, for the love of all that is holy, please, do not vilify potatoes! ...or the Irish :-) Potatoes are best served sliced into sticks, pan-fried, covered in cheese

[PHP] Re: Sending multipart/form-data request with PECL.

2009-03-04 Thread Manuel Lemos
Hello, on 03/04/2009 03:33 PM Jason Cipriani said the following: I am trying to submit a request to an HTTP server with multipart/form-data encoded data. I'm using PECL's HttpRequest (although I'm open to alternatives). I am using PHP5. I noticed that if you call addPostFile to add a file,

Re: [PHP] whoami explanation

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 17:43 -0500, PJ wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: Whatever you do, please, please, please, for the love of all that is holy, please, do not vilify potatoes! ...or the Irish :-) Potatoes are best

Re: [PHP] whoami explanation

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 21:55 +, Ashley Sheridan wrote: Whilst we're on the subject, what about cows, pigs and sheep, which are the biggest contributors to global warming through their, erm, gases? Global warming is a huge problem, so I call upon all vegetarians to eat as much meat as

[PHP] if elseif elseif elseif....

2009-03-04 Thread PJ
This is probably a mysql question, but their list is rather dull - I think they don't appreciate my humor. Beside this list is fun ... and informative. Anyway, I can't figure this out. I am trying to verify inputs on a form and even if I have all the required fields right, I still get the error

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Robert Cummings wrote: On Wed, 2009-03-04 at 17:43 -0500, PJ wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: Whatever you do, please, please, please, for the love of all that is holy, please, do not vilify potatoes! ...or the Irish

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote:    elseif ($obligatoryFieldNotPresent = 1) {            $obligatoryFieldNotPresent = 0;    } Are you certain you only wanted a single equal operator in the last elseif() condition? Further, are you sure it should even be an

Re: [PHP] whoami explanation

2009-03-04 Thread Ashley Sheridan
On Wed, 2009-03-04 at 17:46 -0500, Robert Cummings wrote: On Wed, 2009-03-04 at 21:55 +, Ashley Sheridan wrote: Whilst we're on the subject, what about cows, pigs and sheep, which are the biggest contributors to global warming through their, erm, gases? Global warming is a huge

Re: [PHP] whoami explanation

2009-03-04 Thread Ashley Sheridan
On Wed, 2009-03-04 at 17:40 -0500, PJ wrote: Paul M Foster wrote: On Wed, Mar 04, 2009 at 04:16:40PM -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote:

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Michael A. Peters
Robert Cummings wrote: To punt what is repeated over and over during runtime to a single compilation phase when building the template target. To simplify the use of parameters so that they can be used in arbitrary order with default values. To allow for the encapsulation of complex content in

Re: [PHP] whoami explanation

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 23:02 +, Ashley Sheridan wrote: On Wed, 2009-03-04 at 17:40 -0500, PJ wrote: Yuck. But then there are people who are more resistant to crap than cockroaches. But we will not outlast them! You might try to get informed... Unfortunately, Americans are a sad and

Re: [PHP] whoami explanation

2009-03-04 Thread Ashley Sheridan
On Wed, 2009-03-04 at 18:16 -0500, PJ wrote: Ashley Sheridan wrote: On Wed, 2009-03-04 at 17:40 -0500, PJ wrote: Paul M Foster wrote: On Wed, Mar 04, 2009 at 04:16:40PM -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote:

Re: [PHP] whoami explanation

2009-03-04 Thread Ashley Sheridan
On Wed, 2009-03-04 at 18:14 -0500, PJ wrote: Ashley Sheridan wrote: On Wed, 2009-03-04 at 17:46 -0500, Robert Cummings wrote: On Wed, 2009-03-04 at 21:55 +, Ashley Sheridan wrote: Whilst we're on the subject, what about cows, pigs and sheep, which are the biggest

Re: [PHP] Re: Sending multipart/form-data request with PECL.

2009-03-04 Thread Jason Cipriani
On Wed, Mar 4, 2009 at 2:10 PM, Shawn McKenzie nos...@mckenzies.net wrote: Jason Cipriani wrote: Is there a way to force PECL to use multipart/form-data encoding for all post fields added with addPostFields, even when you are not calling addPostFile to add a file? Try: setContentType()

Re: [PHP] Re: Sending multipart/form-data request with PECL.

2009-03-04 Thread Shawn McKenzie
Jason Cipriani wrote: On Wed, Mar 4, 2009 at 2:10 PM, Shawn McKenzie nos...@mckenzies.net wrote: Jason Cipriani wrote: Is there a way to force PECL to use multipart/form-data encoding for all post fields added with addPostFields, even when you are not calling addPostFile to add a file? Try:

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Ashley Sheridan wrote: On Wed, 2009-03-04 at 17:46 -0500, Robert Cummings wrote: On Wed, 2009-03-04 at 21:55 +, Ashley Sheridan wrote: Whilst we're on the subject, what about cows, pigs and sheep, which are the biggest contributors to global warming through their, erm, gases?

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread PJ
Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last elseif() condition? Further,

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Ashley Sheridan wrote: On Wed, 2009-03-04 at 17:40 -0500, PJ wrote: Paul M Foster wrote: On Wed, Mar 04, 2009 at 04:16:40PM -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread Chris
PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last elseif() condition?

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread Shawn McKenzie
Chris wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last elseif()

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread PJ
PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last

Re: [PHP] whoami explanation

2009-03-04 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: Whatever you do, please, please, please, for the love of all that is holy, please, do not vilify potatoes! ...or the Irish :-) Potatoes are best served sliced into sticks, pan-fried, covered in cheese curds,

Re: [PHP] whoami explanation

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 23:21 +, Ashley Sheridan wrote: On Wed, 2009-03-04 at 18:14 -0500, PJ wrote: Ashley Sheridan wrote: On Wed, 2009-03-04 at 17:46 -0500, Robert Cummings wrote: On Wed, 2009-03-04 at 21:55 +, Ashley Sheridan wrote: Whilst we're on the subject,

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread Chris
Shawn McKenzie wrote: Chris wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread Shawn McKenzie
PJ wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last elseif() condition? Further,

Re: [PHP] escape your variables

2009-03-04 Thread PJ
Sorry, but I have been waylaid by other posts... :'( and have not had the opportunity to finish my quest and I posted to mysql but they are not very helpful I see I was not very clear below and will annotate below. But the problem is still there, I cannot figure out how to sanitize with

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: Whatever you do, please, please, please, for the love of all that is holy, please, do not vilify potatoes! ...or the Irish :-) Potatoes are best served sliced into sticks,

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread Al
PJ wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the

Re: [PHP] escape your variables

2009-03-04 Thread Eric Butera
On Wed, Mar 4, 2009 at 8:04 PM, PJ af.gour...@videotron.ca wrote some stuff... You should do a little reading on some of the keywords that have been presented. Specifically you don't sanitize a value into your db. You escape it. Prepared statements are a way of doing this that makes it a bit

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread Chris
finally found the problem... wrong names for string and this is what now verifies correctly if (strlen($_POST[titleIN]) == 0 ) { $obligatoryFieldNotPresent = 1; } elseif (strlen($_POST[first_nameIN]) == 0 ) { $obligatoryFieldNotPresent = 1; } elseif

Re: [PHP] escape your variables

2009-03-04 Thread Chris
PJ wrote: Sorry, but I have been waylaid by other posts... :'( and have not had the opportunity to finish my quest and I posted to mysql but they are not very helpful I see I was not very clear below and will annotate below. But the problem is still there, I cannot figure out how to sanitize

  1   2   >