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

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

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

Re: [PHP] Strange charecters

2009-03-04 Thread Bastien Koert
On Wed, Mar 4, 2009 at 2:10 AM, Paul Scott 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, > echo'

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 ph

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 ever

[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 http://random.server.com/video/upload.ph

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 [mailto:a

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

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
[Inhales] On Wed, Mar 4, 2009 at 01:01, PJ 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 appreciate it when there is

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Daniel Brown wrote: > [Inhales] > > On Wed, Mar 4, 2009 at 01:01, PJ 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.

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: with it there was the comment "the direction of those single-quotes matters" (WHY ?)

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 10:42, PJ 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 involvement in televisio

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 an

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 10:52, Robert Cummings 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.br...@parasane.net || danbr...@php.net http://www.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 fr

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:

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 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? I'd go with

Re: [PHP] whoami explanation

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

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 o

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 11:31, Stuart 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 did get diff

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

Re: [PHP] whoami explanation

2009-03-04 Thread Stuart
2009/3/4 Daniel Brown > On Wed, Mar 4, 2009 at 11:31, Stuart 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 th

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 12:28, Stuart 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. Never seen t

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

Re: [PHP] whoami explanation

2009-03-04 Thread Thodoris
This really needs some explanation I found this on the web: 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: | | What is going on he

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Daniel Brown wrote: > On Wed, Mar 4, 2009 at 10:42, PJ 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 y

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 fee

[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 multipart/f

Re: [PHP] whoami explanation

2009-03-04 Thread Shawn McKenzie
PJ wrote: > Daniel Brown wrote: >> On Wed, Mar 4, 2009 at 10:42, PJ 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 Daniel Brown
On Wed, Mar 4, 2009 at 13:31, PJ 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 the least, it shows th

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 unsubs

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

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

Re: [PHP] whoami explanation

2009-03-04 Thread Stuart
2009/3/4 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 -

[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

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Nathan Nobbe
On Wed, Mar 4, 2009 at 11:51 AM, Robert Cummings wrote: > 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

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

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 wrote: > > > 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 wro

[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 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 on, or if it is one

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

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

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 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 out different > resu

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

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

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

Re: [PHP] whoami explanation

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 15:07, Ashley Sheridan 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.br...@parasane.net || danbr...@php.net ht

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

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 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 you're using, or if

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 work

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 work

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

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 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 first, you ca

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

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 wrote: > >>> > >>> > Right on. Good comments. > No offense taken and none intended. > I am enoying the list

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 wrote: > Right on. Good comments. > No offense taken and none intended. > I am enoying the list and will continue to participate, if i may. >

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 wrote: > > > > Right on. Good comments. > > No offense taken and none inte

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 wrote: > >>> > Ooooh, boy now this is really serious... >:o > I think your ignorance will be forgiven, maybe! And this is not m

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 wrote: > > > >> Right on. Good c

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 wrote: > > > >> Right on. Good comments. >> No offense taken and

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

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 n

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 wrote: > > > > > > >> Ooooh, boy now this is

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

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

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 :-) > >> > > > > Potat

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 p

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

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 pota

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

2009-03-04 Thread Daniel Brown
On Wed, Mar 4, 2009 at 17:51, PJ 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 elseif() and not a str

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 hug

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

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 t

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

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

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

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 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() Thanks! But, I t

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

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,

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

2009-03-04 Thread PJ
Daniel Brown wrote: > On Wed, Mar 4, 2009 at 17:51, PJ 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

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

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

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 wrote: >>> elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } >>> Are you certain you only wanted a single equal operator in the >>> last el

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 wrote: >> >> >>>elseif ($obligatoryFieldNotPresent = 1) { >>>$obligatoryFieldNotPresent = 0; >>>} >>> >>> >> Are you certain you only wanted a single equal operator in the >> last e

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 cu

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: [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 wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last elseif() condi

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 wrote: >>> >>> >>> elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } >>> Are you certain you only wanted a single equal operator in the >>> last elseif() condi

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 mysql_r

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 slic

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 wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last elseif() condition? F

Re: [PHP] escape your variables

2009-03-04 Thread Eric Butera
On Wed, Mar 4, 2009 at 8:04 PM, PJ 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 harder to mess up. You ha

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; } elsei

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   >