[PHP] non-woven bags, shopping bags, eco-friendly bags

2011-04-13 Thread Blue Eyes Industry
Hey there, We are the manufacturer of the non-woven bags and other eco-friendly bags in China, can print your logo and your own design of pictures on the bag, good choice for promotional gifts and advertisement! Advantages to imported directly from us: 1. Directly factory, cut out the midd

Re: [PHP] Debugging Help Needed

2011-04-13 Thread Richard Quadling
On 13 April 2011 03:06, Paul M Foster wrote: > On Tue, Apr 12, 2011 at 03:37:26PM -0700, Rich Shepard wrote: > >> On Tue, 12 Apr 2011, Daniel Brown wrote: >> >> >   You missed the ending semicolon, that's all. >> >> Daniel, >> >>   Oops! Too long since C and Python doesn't use semicolons. > > Wait

[PHP] Online tests for php

2011-04-13 Thread robert mena
Hi, I am trying to hire some php developers for a local taks and I need to somehow perform a triage. One of the aspects is the knowledge of PHP itself so I was wondering if there is any set of questions (multiple choice) to try to do that. I am not looking for a certification level in those test

Re: [PHP] Debugging Help Needed

2011-04-13 Thread Daniel Brown
On Tue, Apr 12, 2011 at 22:06, Paul M Foster wrote: > > Wait, what?! Did they change C? When did this happen?! ;-} I believe he meant that it's been too long since he used C (which uses semicolons) and that Python, which he used more recently, doesn't use semicolons (which always trips me up

Re: [PHP] Online tests for php

2011-04-13 Thread sathyashrayan
On Wed, 2011-04-13 at 09:08 -0400, robert mena wrote: > Hi, > > I am trying to hire some php developers for a local taks and I need to > somehow perform a triage. One of the aspects is the knowledge of PHP itself > so I was wondering if there is any set of questions (multiple choice) to try > to d

Re: [PHP] Online tests for php

2011-04-13 Thread Nirmalya Lahiri
--- On Wed, 4/13/11, robert mena wrote: > From: robert mena > Subject: [PHP] Online tests for php > To: "php-general" > Date: Wednesday, April 13, 2011, 6:38 PM > Hi, > > I am trying to hire some php developers for a local taks > and I need to > somehow perform a triage. One of the aspects is

Re: [PHP] Debugging Help Needed

2011-04-13 Thread Rich Shepard
On Wed, 13 Apr 2011, Daniel Brown wrote: I believe he meant that it's been too long since he used C (which uses semicolons) and that Python, which he used more recently, doesn't use semicolons (which always trips me up whenever I have to patch Python code). Thank you, Daniel. Inserting

[PHP] Class Constants

2011-04-13 Thread Floyd Resler
I'm doing some testing from the command line and would like to be able = to pass along a constant from a class. For example: php emailTest.,php OrderConfirmation OrderConfirmation is a constant in a class. Is there any way I can take = the value passed on the command line and have PHP figure out

Re: [PHP] Class Constants

2011-04-13 Thread Richard Quadling
On 13 April 2011 17:45, Floyd Resler wrote: > I'm doing some testing from the command line and would like to be able = > to pass along a constant from a class.  For example: > php emailTest.,php OrderConfirmation > > OrderConfirmation is a constant in a class.  Is there any way I can take = > the

[PHP] $_POST vars

2011-04-13 Thread Jim Giner
Can one create a set of $_POST vars within a script or is that not do-able? My display portion of my script utilizes the POST array to supply values to my input screen - this works well for the first display of an empty screen, and any following re-displays if there's an error in the user's inpu

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 18:49, Jim Giner wrote: Can one create a set of $_POST vars within a script or is that not do-able? > My display portion of my script utilizes the POST array to supply values to > my input screen - this works well for the first display of an empty screen, > and any

Re: [PHP] $_POST vars

2011-04-13 Thread Adam Richardson
On Wed, Apr 13, 2011 at 1:49 PM, Jim Giner wrote: > Can one create a set of $_POST vars within a script or is that not do-able? > My display portion of my script utilizes the POST array to supply values to > my input screen - this works well for the first display of an empty screen, > and any foll

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner wrote: > Can one create a set of $_POST vars within a script or is that not do-able? > My display portion of my script utilizes the POST array to supply values to > my input screen - this works well for the first display of an empty screen, > and any fol

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 18:56, Jim Giner wrote: And that includes adding entirely new elements in that array? Yes, it's a standard array. It's not special other than being a superglobal. > Do you have any suggestion on how to get the results of a query into POST > easily or is it simply a

RE: [PHP] $_POST vars

2011-04-13 Thread Eli Orr
Hi Jim, Sure you can create set of et of $_POST vars : e.g. So that admin_code var is passed to myphpaction.php as post and shall be access there via $_POST["admin_code "]; However, note that in PHP all the output buffer is flushed actually, ONLY after the script execution is termina

Re: [PHP] Class Constants

2011-04-13 Thread Floyd Resler
That didn't quite work. Here's what I did: $const=$argv[1]; $value=email::$const; When I run it I get an "Access to undeclared static property" error. Thanks! Floyd On Apr 13, 2011, at 1:16 PM, Richard Quadling wrote: > On 13 April 2011 17:45, Floyd Resler wrote: >> I'm doing some testing fro

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner wrote: > > > Can one create a set of $_POST vars within a script or is that not do-able? > > My display portion of my script utilizes the POST array to supply values to > > my input screen - this

Re: [PHP] $_POST vars

2011-04-13 Thread Jim Giner
When you say "assign that array to $_POST" do you mean $_POST = $qrslt; Not sure about this "assigning an array" thing. - Original Message - From: "Stuart Dallas" Newsgroups: php.general To: "Jim Giner" Cc: "PHP General" Sent: Wednesday, April 13, 2011 1:59 PM Subject: Re: [PHP] $_POS

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas wrote: > On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: > On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner >wrote: > > > > > Can one create a set of $_POST vars within a script or is that not > do-able? > > > My display portion of my script u

Re: [PHP] $_POST vars

2011-04-13 Thread Jim Giner
No need to email me AND send to the list. Is that the standard practice on this forum? Not encountered it before. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class Constants

2011-04-13 Thread David Harkness
On Wed, Apr 13, 2011 at 11:04 AM, Floyd Resler wrote: > That didn't quite work. Here's what I did: > $const=$argv[1]; > $value=email::$const; > Instead try this: $const = $argv[1]; $reflector = new ReflectionClass('email'); $value = $reflector->getConstant($const); David

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
Shrug, it's called reply-all and it's been brought up here before :) -nathan On Wed, Apr 13, 2011 at 12:25 PM, Jim Giner wrote: > No need to email me AND send to the list. Is that the standard practice on > this forum? Not encountered it before. > >

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 19:12, Jim Giner wrote: When you say "assign that array to $_POST" do you mean > > $_POST = $qrslt; > > Not sure about this "assigning an array" thing. Yup, nothing more complicated than that. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > - Original

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas wrote: > > On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: > > On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner > > wrote: > > > > > > > Can one create a set of $_POST vars within a sc

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas wrote: > On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: > On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas wrote: > > > On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: > > > On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner < > jim.g

Re: [PHP] $_POST vars

2011-04-13 Thread Jim Giner
PHP then is Truly an amazing and powerful language. I can expand the contents of the array $_POST by simply assigning a separate arry to it. Obviously if I have a duplicate element-name in my array it will override the $_POST element but that's my problem. "Stuart Dallas" wrote in message ne

Re: [PHP] Class Constants

2011-04-13 Thread Floyd Resler
David, That worked great! Thanks! Floyd On Apr 13, 2011, at 2:25 PM, David Harkness wrote: > On Wed, Apr 13, 2011 at 11:04 AM, Floyd Resler wrote: > >> That didn't quite work. Here's what I did: >> $const=$argv[1]; >> $value=email::$const; >> > > Instead try this: > > $const = $argv

Re: [PHP] $_POST vars

2011-04-13 Thread Kirk . Johnson
Nathan Nobbe wrote on 04/13/2011 12:47:11 PM: [much snippage] > no, it's actually a better practice. users are expected to populate arrays > they create. the $GLOBALS array is expected to be populated by user > scripts. The $_POST array is expected to be populated by PHP. by the time > you

Re: [PHP] Class Constants

2011-04-13 Thread Richard Quadling
On 13 April 2011 19:04, Floyd Resler wrote: > That didn't quite work.  Here's what I did: > $const=$argv[1]; > $value=email::$const; > > When I run it I get an "Access to undeclared static property" error. > > Thanks! > Floyd > > On Apr 13, 2011, at 1:16 PM, Richard Quadling wrote: > >> On 13 Apri

[PHP] A Starter has prob in blog script

2011-04-13 Thread Silvio Siefke
Hello, i has a CMS System, but want better write my website manually. Im started at first with PHP or write a Program. I really not know what i has to do, Google can not ask, i not know what should ask. Google with "mysql link php foreach pdo" help not really. I have for my blog two files, first

Re: [PHP] $_POST vars

2011-04-13 Thread Stuart Dallas
On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: > On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas wrote: > > On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: > > On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas wrote: > > > > On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe w

RE: [PHP] A Starter has prob in blog script

2011-04-13 Thread HallMarc Websites
> > > Regards > Silvio > Sprechen sie deutsch? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Starter has prob in blog script

2011-04-13 Thread Daniel Brown
On Wed, Apr 13, 2011 at 17:06, Silvio Siefke wrote: > Hello, > [snip!] > > The File bloggen.php run without any Problems. But the linking want not > work. Oh, boy. Okay, here we go Because you're doing multiple lines if the condition is met, you need to add an opening bracket here:

Re: [PHP] A Starter has prob in blog script

2011-04-13 Thread Silvio Siefke
Am 14.04.2011 01:35, schrieb Daniel Brown: > Good luck with the rest. You may want to just go back to the CMS, > or at least start with the basics. You may already be learning that > copying and pasting code doesn't always work but sometimes it can > be malicious code that, to an untraine

[PHP] APC: Warming the bytecode cache with preload_path

2011-04-13 Thread David Harkness
Greetings, APC has an INI setting named apc.preload_path which I assume causes all PHP files within that path to be compiled and cached by APC as it is initialized. The documentation is nonexistent, but in this thread Rasmus corroborates my assumption (well, he doesn't invalidate it in any case):

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 3:30 PM, Stuart Dallas wrote: > On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: > > On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas wrote: > > > On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: > > > On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas > w