Re: [PHP] Question on Portfoilo's

2007-04-09 Thread Larry Garfield
This is why one should work on an open source project. Much easier to show off legally. :-) On Monday 09 April 2007 8:23 pm, Matt Carlson wrote: So i've been meaning to start a portfolio of some code, so that when I apply for a job, and they want code samples, I have something to show them.

Re: [PHP] Question on Portfoilo's

2007-04-09 Thread Davi
Em Segunda 09 Abril 2007 22:36, Larry Garfield escreveu: This is why one should work on an open source project. Much easier to show off legally. :-) You can't live for and from only open source projects... _I_ develop web sites and show them to my clients... Well... I'm an empoyler... =p

Re: [PHP] Question on Portfoilo's

2007-04-09 Thread Paul Scott
On Mon, 2007-04-09 at 22:45 -0300, Davi wrote: Em Segunda 09 Abril 2007 22:36, Larry Garfield escreveu: You can't live for and from only open source projects... Why not? I do... --Paul All Email originating from UWC is covered by disclaimer

Re: [PHP] Question about form submitting

2007-04-03 Thread Tijnema !
On 4/3/07, Mário Gamito [EMAIL PROTECTED] wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b) missing filled fields

Re: [PHP] Question about form submitting

2007-04-03 Thread Dave Goodchild
Not true. You can submit the form back to itself as many times as required by making the form action $_SERVER['PHP_SELF'] and checking for various sequences and outputting different html in each case.

Re: [PHP] Question about form submitting

2007-04-03 Thread Tijnema !
On 4/3/07, Dave Goodchild [EMAIL PROTECTED] wrote: Not true. You can submit the form back to itself as many times as required by making the form action $_SERVER['PHP_SELF'] and checking for various sequences and outputting different html in each case. You're then leaving the page and reloading

Re: [PHP] Question about form submitting

2007-04-03 Thread Myron Turner
Mário Gamito wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b) missing filled fields c) check e-mail validity d)

Re: [PHP] Question about form submitting

2007-04-03 Thread Lori Lay
Tijnema ! wrote: On 4/3/07, Mário Gamito [EMAIL PROTECTED] wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b)

Re: [PHP] Question about form submitting / clarification

2007-04-03 Thread Mário Gamito
Hi, Of the three items you specify a and b should be handled with Javascript in an onsubmit handler. The error messages would be generated by this handler. Email validity would have to be handled by the web server and your php script, usually by trying the address. I think i was

Re: [PHP] Question about form submitting / clarification

2007-04-03 Thread Lori Lay
Mário Gamito wrote: Hi, Of the three items you specify a and b should be handled with Javascript in an onsubmit handler. The error messages would be generated by this handler. Email validity would have to be handled by the web server and your php script, usually by trying the address.

Re: [PHP] Question about form submitting

2007-04-03 Thread Philip Thompson
On Apr 3, 2007, at 1:13 PM, Mário Gamito wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b) missing filled

Re: [PHP] Question before upgrading to 5

2007-03-23 Thread Jochem Maas
Jake McHenry wrote: I'll think about it.. We only use php for intranet applications I create, so the server is basically dead at nights, which is when I do most of my work. I have worked like that in the past - at some point I decided that going to bed when I was tired rather then

Re: [PHP] Question before upgrading to 5

2007-03-23 Thread Richard Lynch
No, you can't load both PHP4 and PHP5 into the same Apache as Modules. You can run one as CGI. You can use proxy_server in one to shuttle requests to a different Apache pool. On Thu, March 22, 2007 12:07 am, Jake McHenry wrote: Hi everyone, I just got done going through all my configure

RE: [PHP] Question before upgrading to 5

2007-03-23 Thread Richard Lynch
On Thu, March 22, 2007 6:23 am, Jake McHenry wrote: Sorry about the delivery and read requests.. I was tired and forgot to turn them off for the list.. alternatively you can search for 'Rasmus' and 'ProxyPass' in the list archive and use Rasmus' rather cool ProxyPass solution to

RE: [PHP] Question before upgrading to 5

2007-03-23 Thread Jake McHenry
minutes... No biggie.. Thanks Jake -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 8:59 PM To: Jake McHenry Cc: php-general@lists.php.net Subject: RE: [PHP] Question before upgrading to 5 On Thu, March 22, 2007 6:23 am, Jake McHenry

Re: [PHP] Question before upgrading to 5

2007-03-22 Thread Tijnema !
On 3/22/07, Jake McHenry [EMAIL PROTECTED] wrote: Hi everyone, I just got done going through all my configure options for php5, and finally configure finished successfully... I didn't install it yet, have a question. Can I have both 4 and 5 installed temporarily until I'm sure all my scripts

Re: [PHP] Question before upgrading to 5

2007-03-22 Thread Jochem Maas
alternatively you can search for 'Rasmus' and 'ProxyPass' in the list archive and use Rasmus' rather cool ProxyPass solution to running both php4 and php5 ... his explanation should give you enough info to set it up. Tijnema ! wrote: On 3/22/07, Jake McHenry [EMAIL PROTECTED] wrote: Hi

RE: [PHP] Question before upgrading to 5

2007-03-22 Thread Jake McHenry
Sorry about the delivery and read requests.. I was tired and forgot to turn them off for the list.. alternatively you can search for 'Rasmus' and 'ProxyPass' in the list archive and use Rasmus' rather cool ProxyPass solution to running both php4 and php5 ... his explanation should give

Re: [PHP] Question before upgrading to 5

2007-03-22 Thread Jochem Maas
Jake McHenry wrote: Sorry about the delivery and read requests.. I was tired and forgot to turn them off for the list.. alternatively you can search for 'Rasmus' and 'ProxyPass' in the list archive and use Rasmus' rather cool ProxyPass solution to running both php4 and php5 ... his

RE: [PHP] Question before upgrading to 5

2007-03-22 Thread Jake McHenry
I don't want 2 instances of apache running, your over thinking this... I only asked if I need to change only the prefix, or if there is anything else, to get both php versions installed. Once I see my scripts are working ok, or not, I'll be getting rid of php4. I'm not running a dev machine, this

Re: [PHP] Question before upgrading to 5

2007-03-22 Thread Tijnema !
On 3/22/07, Jake McHenry [EMAIL PROTECTED] wrote: I don't want 2 instances of apache running, your over thinking this... I only asked if I need to change only the prefix, or if there is anything else, to get both php versions installed. Once I see my scripts are working ok, or not, I'll be

Re: [PHP] Question before upgrading to 5

2007-03-22 Thread Jochem Maas
Jake McHenry wrote: I don't want 2 instances of apache running, your over thinking this... I whatever, I guess we have different opinions about trying to do things 'properly'. only asked if I need to change only the prefix, or if there is anything else, to get both php versions installed.

RE: [PHP] Question before upgrading to 5

2007-03-22 Thread Jake McHenry
I'll think about it.. We only use php for intranet applications I create, so the server is basically dead at nights, which is when I do most of my work. Jake McHenry wrote: I don't want 2 instances of apache running, your over thinking this... I whatever, I guess we have

Re: [PHP] Question before upgrading to 5

2007-03-22 Thread Myron Turner
Jochem Maas wrote: Jake McHenry wrote: I don't need them running parallel, only both installed I think you missed the point. you would have 2 apaches running, that is correct but the trick is to set it up so that they use the same document roots for each site that you are trying to

RE: [PHP] Question after php5

2007-03-22 Thread Jake McHenry
In my index.php file, I have this: ?php echo PHP hello world; ? HTML Hello World I get the HTML Hello World output, but not the php? So the conf/extra/php.conf file is somewhat being included, but I'm not getting any output And now there is a 200 entry in the log file. So with just php,

RE: [PHP] Question after php5 SOLVED... For now

2007-03-22 Thread Jake McHenry
: Thursday, March 22, 2007 10:43 PM To: php-general@lists.php.net Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Question after php5 In my index.php file, I have this: ?php echo PHP hello world; ? HTML Hello World I get the HTML Hello World output, but not the php? So the conf/extra

Re: [PHP] Question

2007-03-20 Thread Tijnema !
On 3/20/07, Dan Shirah [EMAIL PROTECTED] wrote: Looking for some direction here. I have a form that collects user data. When an employee opens the form they enter in all of the user data for an account, however the account can have multiple users so the employee has the option to Enter

Re: [PHP] Question

2007-03-20 Thread Richard Lynch
On Tue, March 20, 2007 12:46 pm, Dan Shirah wrote: Looking for some direction here. I have a form that collects user data. When an employee opens the form they enter in all of the user data for an account, however the account can have multiple users so the employee has the option to Enter

Re: [PHP] question regarding form filtering

2007-03-14 Thread Richard Lynch
I use PCRE for filtering all the time. As a general rule, be sure you are using a pattern that says allow these valid characters and not one that says deny these invalid characters. You never know when some user will send Unicode or something so far outside what you expected that your deny

Re: [PHP] question

2007-03-03 Thread Stut
Riyadh S. Alshaeiq wrote: Kindly, don't neglect my email since I need your feedback desperately. Sure, but first a question... where did you get the impression that starting your email like a Nigerian scammer would convince us to help you any more than we would without it? 1. I have

Re: [PHP] question

2007-03-03 Thread Stut
Riyadh S. Alshaeiq wrote: Ok.. let me start by thanking you for replying to my question so soon. Secondly, this the first time that I have posted a question here and I have read some of the instructions and rules regarding posting a question that is probably not a big deal to most programmers.

Re: [PHP] Question on virus/worms

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 18:44 +0100, Seak, Teng-Fong wrote: My company's got a web site using PHP. But the server is actually an IIS 5 sitting inside a Win2K server. So naturally, I'm using php dll filter. (Please don't tell me to use Apache because we need IIS for other services). This

RE: [PHP] question about str_replace function

2007-01-08 Thread Dick Jiang
I think you'd better use regular expression to replace the word Regards, Dick -Original Message- From: Kencana [mailto:[EMAIL PROTECTED] Sent: Monday, January 08, 2007 5:12 PM To: php-general@lists.php.net Subject: [PHP] question about str_replace function Hi all, I got a doubt about

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-08 Thread Jochem Maas
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Sat 1/6/2007 0:17 To: Karl Pflästerer Cc: php-general@lists.php.net Subject: Re: [PHP] Question regarding include() and symlinks to directories On Thu, January 4, 2007 2:47 pm, Karl Pflästerer wrote: In my opinion

Re: [PHP] question about str_replace function

2007-01-08 Thread Jochem Maas
Dick Jiang wrote: I think you'd better use regular expression to replace the word agreed - only it a serious dive in the deep end of regexps - the OP may have to use a negative lookahead assertion, something like: $string=avenue 1, ave 1 both have av+e :-); $words =

Re: [PHP] question about str_replace function

2007-01-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-08 11:35:06 +0100: Dick Jiang wrote: I think you'd better use regular expression to replace the word agreed - only it a serious dive in the deep end of regexps - the OP may have to use a negative lookahead assertion, something like: $string=avenue 1, ave 1

Re: [PHP] question about str_replace function

2007-01-08 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-08 11:35:06 +0100: Dick Jiang wrote: I think you'd better use regular expression to replace the word agreed - only it a serious dive in the deep end of regexps - the OP may have to use a negative lookahead assertion, something like:

RE: [PHP] Question regarding include() and symlinks to directories

2007-01-07 Thread Vincent DUPONT
) and more flexible than simlinks. Vincent Dupont Ausy Belgium -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Sat 1/6/2007 0:17 To: Karl Pflästerer Cc: php-general@lists.php.net Subject: Re: [PHP] Question regarding include() and symlinks to directories On Thu

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-08 08:13:11 +0100: From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Sat 1/6/2007 0:17 To: Karl Pflästerer Cc: php-general@lists.php.net Subject: Re: [PHP] Question regarding include() and symlinks to directories On Thu, January 4, 2007 2:47 pm, Karl

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Jochem Maas
reply at the bottom ... (Karl Pflästerer) wrote: Hi let's say we have the follwing directory structure: directory test, with to subdirectories: a and b; both have ssi subdirectory; a has also a subdirectory c with an index.php file in it and in b we habe a symbolic link to a/c. On the

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Robert Cummings
On Fri, 2007-01-05 at 22:07 +0100, Jochem Maas wrote: reply at the bottom ... (Karl Pflästerer) wrote: Hi let's say we have the follwing directory structure: directory test, with to subdirectories: a and b; both have ssi subdirectory; a has also a subdirectory c with an index.php file

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Jochem Maas
Robert Cummings wrote: On Fri, 2007-01-05 at 22:07 +0100, Jochem Maas wrote: ... ` In my opinion include() should respect symlinks to directories and not dereference them before finding the file to include. Or am I wrong here? I have tested using your exact description and get the

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Richard Lynch
On Thu, January 4, 2007 2:47 pm, Karl Pflästerer wrote: In my opinion include() should respect symlinks to directories and not dereference them before finding the file to include. Or am I wrong here? The PHP version is 5.1.6 (will soon be updated). Honestly... My answer would be Don't do

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Richard Lynch
On Thu, January 4, 2007 2:47 pm, Karl Pflästerer wrote: In my opinion include() should respect symlinks to directories and not dereference them before finding the file to include. Or am I wrong here? The PHP version is 5.1.6 (will soon be updated). WHOOPS! My fingers slipped and I keyboarded

Re: [PHP] Question about Arrays

2006-10-11 Thread tedd
At 7:04 PM +0100 10/10/06, Alex Major wrote: Hi List. I have a table, which contains 'setting' information for my website. The table has the following columns: setting_id, setting_name and setting_value. Now there are currently 30 settings stored in this table, however i am having trouble

Re: [PHP] Question about Arrays

2006-10-10 Thread Richard Lynch
On Tue, October 10, 2006 1:04 pm, Alex Major wrote: I have a table, which contains 'setting' information for my website. The table has the following columns: setting_id, setting_name and setting_value. Now there are currently 30 settings stored in this table, however i am having trouble

Re: [PHP] Question on explode and join.

2006-09-15 Thread Google Kreme
On 13 Sep 2006, at 11:02 , Dave Goodchild wrote: $_SESSION['profane'] = false; foreach ($_POST as $value) { foreach ($swearbox as $profanity) { if (preg_match(/$profanity/i, $value)) { $errors = true; $_SESSION['profane'] = true;

Re: [PHP] Question on explode and join.

2006-09-15 Thread Richard Lynch
$clean = $input; foreach($badwords as $badword){ $clean = preg_replace('/(\\W)$badword(\\W)/ims', '\\1' . str_repeat('*', strlen($badword)) . '\\2', $clean); } On Wed, September 13, 2006 11:51 am, Beauford wrote: Hi, I have a form which I want to check for inappropriate words before it is

RE: [PHP] Question on explode and join.

2006-09-14 Thread tedd
Message- From: Ducarom [mailto:[EMAIL PROTECTED] Sent: September 13, 2006 2:26 PM To: Beauford Cc: php Subject: Re: [PHP] Question on explode and join. I made some changes to the script from Butera. Now it only replaces complete words. $dirty = array( 'ipsum', 'eloquentiam', 'Vero

Re: [PHP] Question on explode and join.

2006-09-14 Thread Ray Hauge
On Wednesday 13 September 2006 11:51, Beauford wrote: Hi, I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I check it against another array that contains the

Re: [PHP] Question on explode and join.

2006-09-14 Thread Ray Hauge
On Thursday 14 September 2006 09:47, Ray Hauge wrote: On Wednesday 13 September 2006 11:51, Beauford wrote: Hi, I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I

RE: [PHP] Question on explode and join.

2006-09-14 Thread Beauford
I read your email, but I'm not using sessions and not really planning too. But some of your code may be able to be modified to do what I need. Thanks for the input. B _ From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: September 14, 2006 8:52 AM To: Beauford Subject: Re: [PHP

Re: [PHP] Question on explode and join.

2006-09-13 Thread Dave Goodchild
Hi. I have just added a profanity filter to a current project which runs like so (all form values are passed into the session after checking for required fields etc). $swearbox is an array containing profanities so I won't include it here! $_SESSION['profane'] = false; foreach ($_POST as

Re: [PHP] Question on explode and join.

2006-09-13 Thread Eric Butera
On 9/13/06, Beauford [EMAIL PROTECTED] wrote: Hi, I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I check it against another array that contains the inappropriate words.

Re: [PHP] Question on explode and join.

2006-09-13 Thread Christopher Watson
Definitely look into preg_match or even preg_replace, instead of tokenizing the string and rubbing it up against an array of your own. Iterate on your array of bad words, and then use Regular Expressions to selectively hunt and squash. You MAY be able to do it in one regex operation by building

RE: [PHP] Question on explode and join.

2006-09-13 Thread Beauford
_ From: Eric Butera [mailto:[EMAIL PROTECTED] Sent: September 13, 2006 1:07 PM To: Beauford Cc: php Subject: Re: [PHP] Question on explode and join. On 9/13/06, Beauford [EMAIL PROTECTED] wrote: Hi, I have a form which I want to check for inappropriate words before it is posted. I have

Re: [PHP] Question on explode and join.

2006-09-13 Thread Jon Anderson
Beauford wrote: I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I check it against another array that contains the inappropriate words. I then replace the inappropriate

Re: [PHP] Question on explode and join.

2006-09-13 Thread Ducarom
I made some changes to the script from Butera. Now it only replaces complete words. $dirty = array( 'ipsum', 'eloquentiam', 'Vero' ); foreach ($dirty as $key = $word) { $dirty[$key] = '/\b'. $word . '\b/'; } $string = Lorem ipsum ius no etiam veniam, usu alii novum ne, sed cu

RE: [PHP] Question on explode and join.

2006-09-13 Thread Beauford
: [PHP] Question on explode and join. I made some changes to the script from Butera. Now it only replaces complete words. $dirty = array( 'ipsum', 'eloquentiam', 'Vero' ); foreach ($dirty as $key = $word) { $dirty[$key] = '/\b'. $word . '\b/'; } $string = Lorem ipsum ius no etiam

Re: [PHP] Question on explode and join.

2006-09-13 Thread Ducarom
with it, but ideas are welcome. Thanks -Original Message- From: Ducarom [mailto:[EMAIL PROTECTED] Sent: September 13, 2006 2:26 PM To: Beauford Cc: php Subject: Re: [PHP] Question on explode and join. I made some changes to the script from Butera. Now it only replaces complete words

Re: [PHP] question about how php handles post'd and get'd data

2006-08-09 Thread tedd
At 10:27 AM +1000 8/9/06, Ligaya Turmelle wrote: jonathan wrote: i was having a conversation and was wondering where in the source code for php is the process for writing get'd and post'd data to their corresponding arrays? Also, is there a way to view the source code online? thanks,

Re: [PHP] question about how php handles post'd and get'd data

2006-08-09 Thread Ligaya Turmelle
tedd wrote: At 10:27 AM +1000 8/9/06, Ligaya Turmelle wrote: jonathan wrote: i was having a conversation and was wondering where in the source code for php is the process for writing get'd and post'd data to their corresponding arrays? Also, is there a way to view the source code online?

Re: [PHP] question about how php handles post'd and get'd data

2006-08-08 Thread Ligaya Turmelle
jonathan wrote: i was having a conversation and was wondering where in the source code for php is the process for writing get'd and post'd data to their corresponding arrays? Also, is there a way to view the source code online? thanks, jonathan PHP's cvs is available online at

Re: [PHP] Question about constructors and destructors

2006-06-28 Thread Brad Bonkoski
I get: (on Linux, PHP 5.1.4) php cls_t.php Will buildbrBuildingbrFinished buildingbrUnsetingbrDestroyingbrUnset completebr Mathieu Dumoulin wrote: I posted a bit earlier and did some other tests and now i have a VERY simple question... check the following code :

Re: [PHP] Question regarding OS

2006-06-27 Thread Jochem Maas
Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? yes. php_uname() read about it here http://php.net/manual/en/function.php-uname.php and then read 10 pages either side just for fun :-) Thank you. M. -- PHP General Mailing

Re: [PHP] Question regarding OS

2006-06-27 Thread Ligaya Turmelle
Jochem Maas wrote: Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? yes. php_uname() read about it here http://php.net/manual/en/function.php-uname.php and then read 10 pages either side just for fun :-) Thank you. M. Ha -

Re: [PHP] Question regarding OS

2006-06-26 Thread Ligaya Turmelle
Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? Thank you. M. The OS of the server maybe $_SERVER['SERVER_SOFTWARE'] - *shrug* The OS of the client is not available - server side - remember. -- life is a game... so have fun. -- PHP

Re: [PHP] Question regarding OS

2006-06-26 Thread tedd
At 11:46 AM +1000 6/27/06, Ligaya Turmelle wrote: Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? Thank you. M. The OS of the server maybe $_SERVER['SERVER_SOFTWARE'] - *shrug* The OS of the client is not available - server side -

Re: [PHP] Question about set_time_out and shell_exec

2006-05-29 Thread Richard Lynch
On Wed, May 24, 2006 11:26 am, Suhas wrote: I am trying to write a script which will avoid browser timeout problem and in that process I have created 2 files FILE1.php: set_time_out(1); echo shell_exec(/usr/local/bin/php -f FILE2.php ); FILE2.php: @mail($to,$sub,$msg); sleep(60);

Re: [PHP] Question about set_time_out and shell_exec

2006-05-24 Thread Rabin Vincent
On 5/24/06, Suhas [EMAIL PROTECTED] wrote: Hi, I am trying to write a script which will avoid browser timeout problem and in that process I have created 2 files FILE1.php: set_time_out(1); echo shell_exec(/usr/local/bin/php -f FILE2.php ); FILE2.php: @mail($to,$sub,$msg); sleep(60);

Re: [PHP] Question about templates

2006-05-16 Thread Kevin Waterson
This one time, at band camp, Charlene Wroblewski [EMAIL PROTECTED] wrote: looked at Smarty and it doesn't seem to be as useful the way I'm using templates. I'm not surprised, 1000 lines of code to do hello world Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch.

Re: [PHP] Question about templates

2006-05-16 Thread Brian Anderson
Sure if all you are writing is a hello world page, but if you are writing out an application that is more complex, wouldn't the savings and managability be beneficial enough to justify? ... code reusability ... Don't ya think? Why is it easier to do something like this: echo 'table'; echo

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-11 Thread Robin Vickery
On 11/05/06, Jochem Maas [EMAIL PROTECTED] wrote: Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Joe Henry
On Wednesday 10 May 2006 4:02 pm, Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2 file2)

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Jochem Maas
Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2 file2) final_file It works perfectly

Re: [PHP] Question regarding apc

2006-05-02 Thread Jochem Maas
Dave Goodchild wrote: Hi all. I have heard that functions like apc_define_constants and apc_load-constants are useful in speeding up mass definition of constants but could someone tell me how many constants you would have to have before this became appropriate. I am writing an app that loads a

Re: [PHP] Question regarding apc

2006-05-02 Thread Jochem Maas
Dave Goodchild wrote: Oooo you have so much power..must be amazing to be so knowlgeable...oh my god, are you really considering witholding that information from me...what on earth am I goimng to dohow can I cope...uh...uh... oh shit! I worked it out myself. No need to wade

Re: [PHP] Question for PHP Arrays

2006-04-28 Thread Richard Davey
On 27 Apr 2006, at 20:51, Saul Rennison wrote: Anyway, I want to know how to add things to an array. Like this: $foobar = array() $foobar['rar']['miaw'] Would that output come out (for the array) as: array( 'rar' = 'miaw' ) No, it would create a multi-dimensional array that contains

Re: [PHP] Question for PHP Arrays

2006-04-28 Thread Jochem Maas
Saul Rennison wrote: Hi, I'm making a PHP Installer that is customizable by using plugins, I haven't used PHP for a while and which I have forgotten some things about PHP *eek*.. $hiddenKnowledge = unforgetPHP(); Anyway, I want to know how to add things to an array. Like this: $foobar =

Re: [PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-09 Thread Richard Lynch
That is incorrect. There *IS* a setting for another magic_quotes_runtime, which will do addslashes to all data coming FROM the database. That's a particularly silly setting UNLESS your entire application consists of taking date out of one database and shoving it into another database -- which

Re: [PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-08 Thread Richard Lynch
On Sat, April 8, 2006 7:49 pm, jonathan wrote: I have a server where magic_quotes_gpc is set to On. It's my understanding that this should add slashes to something like Joe's so that it's Joe\'s but when I look in the db, it is in there as Joe's. This doesn't seem like it should be the

Re: [PHP] question about foreach and associate array

2006-02-21 Thread Jochem Maas
jonathan wrote: I have the following construct: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row['body'].br/; $row contains the _string_ 'Hello'. the thing is you can use array-like notation to get at the individual chars of a

Re: [PHP] question about foreach and associate array

2006-02-21 Thread Richard Lynch
On Mon, February 20, 2006 8:57 pm, jonathan wrote: I have the following construct: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row['body'].br/; echo $arg['textarea']['body'].br/; } I would expect both of them

Re: [PHP] question about foreach and associate array

2006-02-20 Thread Chris
jonathan wrote: I have the following construct: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row['body'].br/; echo $arg['textarea']['body'].br/; } I would expect both of them to output Hello but only the second does.

RE: [PHP] question about foreach and associate array

2006-02-20 Thread Peter Lauri
Just do: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row.br/; echo $arg['textarea']['body'].br/; } The $row is an string, and what you are trying to do the $row['body']. And php will translate 'body' to 0 in this, I do not know why :) Try echo

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread David Grant
Andrei, http://php.net/manual/en/function.debug-backtrace.php David Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Thank you very much David Andrei David Grant wrote: Andrei, http://php.net/manual/en/function.debug-backtrace.php David Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 6:20 am, Andrei wrote: For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing all function calls would not be an option for me)

Re: [PHP] question about compositing objects

2006-01-13 Thread Richard Lynch
On Thu, January 12, 2006 4:13 pm, jonathan wrote: I have a class which creates another class within it such as: class Loc{ public function outputInfo() { $map=new Map(); $map-setKey(); } } In my main page can I access the $map object like this: $loc=new Loc();

Re: [PHP] question about compositing objects

2006-01-12 Thread Tim Boring
Hi, Jonathan! On Thu, 2006-01-12 at 14:13 -0800, jonathan wrote: I have a class which creates another class within it such as: class Loc{ public function outputInfo() { $map=new Map(); $map-setKey(); } } In my main page can I access the

Re: [PHP] question about compositing objects

2006-01-12 Thread comex
$map=new Map(); $this-map = new Map(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about compositing objects

2006-01-12 Thread Aaron Koning
$map is not a member variable of the Loc class in your code... Instead do this: class Loc { // Defines a member variable var $map; // Constructor function Loc() { $this-map = new Map(); // Create map object and save to Loc object $this-map-setKey(); } } $loc = new Loc();

Re: [PHP] Question generateing xml on v4.3

2006-01-09 Thread Ted Zeng
Does this (PHP 4 = 4.2.1, PECL) Mean it is installed for version higher than 4.2.1? Ted zeng On 1/9/06 7:41 AM, Jochem Maas [EMAIL PROTECTED] wrote: Ted Zeng wrote: Hi, I use OS X tiger which has a PHP v4.3.12 installed. any reason to be using an old version of php? I would like

Re: [PHP] Question generateing xml on v4.3

2006-01-09 Thread Ted Zeng
From the http://pecl.php.net/package/domxml page: NOTE: if you're running PHP 4.x, the domxml is already part of the distribution. It seems to me the Extension should be installed already. On 1/9/06 7:41 AM, Jochem Maas [EMAIL PROTECTED] wrote: Ted Zeng wrote: Hi, I use OS X tiger which

Re: [PHP] Question about Request.php

2005-12-01 Thread jonathan
do a: print_r($_REQUEST) on the php page. if nothing, things aren't configured correctly or you aren't passing in variables correctly. On Dec 1, 2005, at 12:15 PM, Danilo Azevedo wrote: Hi, my name is Danilo, i am from Brazil I need your assistence with a code made by your self, if you

Re: [PHP] question

2005-11-27 Thread Stephen Leaf
On Sunday 27 November 2005 12:34, cheeto borje wrote: Hello, I wanna ask you about : 1. When you say server, does it mean my CPU? By CPU I assume you mean your computer and not the Central Processing Unit. being a CPU is the small chip inside your computer attached into the motherboard

Re: [PHP] question

2005-11-27 Thread adriano ghezzi
server and client are logical definitions, in the environment here normally discussed these are meanings server : a pc (cpu) where a web server is running (usually apache) and php is parsing pages served to the client client: is a pc (cpu), normally remote, who is asking for a page to the server

Re: [PHP] Question about session

2005-11-14 Thread Richard Lynch
On Fri, November 11, 2005 7:09 pm, Bagus Nugroho wrote: I have session code which written WindowsXP and It wotk properly as expected, but when I'm used in Windows 2K, it got error as; Notice: Undefined index: loginMessage in C:\CentralData\forms\mainForm.php on line 65 I'am used Apache 2.0

Re: [PHP] Question about session

2005-11-11 Thread Esteamedpw
There's no code. You need to put your code in the Email so we can see it...

RE: [PHP] Question about session

2005-11-11 Thread Bagus Nugroho
poblem was solved by add session_register function before $_SESSION[blablabla]; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sat 12-Nov-2005 09:50 To: Bagus Nugroho; php-general@lists.php.net Subject: Re: [PHP] Question about session There's

<    1   2   3   4   5   6   7   8   9   10   >