[PHP] Re: [PHP-WEBMASTER] Simple question

2011-05-09 Thread Richard Quadling
On 9 May 2011 14:53, Vincent McGinley vmcgin...@re-thinkitinc.com wrote: Can you remove the @. Do you get an error? Tried this and got same result (page loads up halfway and no error message). Can you change the location to ./folder/$Product.php ? Changed path and same result. Does the

[PHP] Re: [PHP-WEBMASTER] Simple question

2011-05-09 Thread Richard Quadling
On 9 May 2011 15:59, Vincent McGinley vmcgin...@re-thinkitinc.com wrote: Notice:  Undefined variable: Product in /Applications/MAMP/htdocs/Pages/Products/Bamboo_Zoo/index.php on line 181 And there's the issue. In your old system, you probably had something called register_globals enabled.

Re: [PHP] A simple question, however it's urgent

2010-05-17 Thread Ashley Sheridan
On Mon, 2010-05-17 at 15:26 +0300, Andre Polykanine wrote: Hello everyone, Just can't imagine what happens. There is the simplest function in the world: function LineBreaks ($str) { $what=array(\r\n, \n, \r); $with=array(br); $str=str_replace($what, $with, $str); return $str; }

Re: [PHP] A simple question, however it's urgent

2010-05-17 Thread Al
On 5/17/2010 8:53 AM, Andre Polykanine wrote: Ash, Magic quotes are disabled: http://gviragon.org/study/php.php Any ideas? Thanks a lot! Your code should work for something as simple as this, almost regardless of the php setup. Change your $what=array(\r\n, \n, \r); $with=array(br);

Re: [PHP] Another simple question (Probably) FINISHED!!!!!

2007-07-11 Thread Jason Pruim
So after many days and many questions and the help of many many people, I have finished my task scheduler! I just wanted to say thank you to all who helped. Now I just need to make it look pretty and add some comments so I know why I did what I did. :) Anyone interested in looking at

Re: [PHP] Another simple question (Probably) FINISHED!!!!!

2007-07-11 Thread Daniel Brown
On 7/11/07, Jason Pruim [EMAIL PROTECTED] wrote: So after many days and many questions and the help of many many people, I have finished my task scheduler! I just wanted to say thank you to all who helped. Now I just need to make it look pretty and add some comments so I know why I did what I

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jason Pruim
On Jul 9, 2007, at 9:09 AM, Shafiq Rehman wrote: Hi, correct syntax for mktime is mktime( int hour, int minute, int second, int month, int day, int year) When I did that I got this error: [Tue Jul 10 09:33:12 2007] [error] PHP Parse error: syntax error, unexpected T_LNUMBER in

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jason Pruim
On Jul 9, 2007, at 10:56 AM, Jim Lucas wrote: Jason Pruim wrote: Okay so given this section of code: $taskTime=mktime(00,00,00,$_POST['txtReschedule']); where are you getting the $_POST['txtReschedule'] var from? in the html below, your var is $_POST['tasks'][#]['txtReschedule'] What does

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread David Giragosian
On 7/10/07, Jason Pruim [EMAIL PROTECTED] wrote: Currently that is the date I get when I try to submit any date through the form. I'm sure I just have something messed up in my mktime, or in the way I'm grabbing the variable $taskTime=mktime(int 00,int 00,int 00, int $month, int $day,

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jason Pruim
On Jul 10, 2007, at 9:52 AM, David Giragosian wrote: On 7/10/07, Jason Pruim [EMAIL PROTECTED] wrote: Currently that is the date I get when I try to submit any date through the form. I'm sure I just have something messed up in my mktime, or in the way I'm grabbing the variable

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread David Giragosian
On 7/10/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jul 10, 2007, at 9:52 AM, David Giragosian wrote: On 7/10/07, Jason Pruim [EMAIL PROTECTED] wrote: Currently that is the date I get when I try to submit any date through the form. I'm sure I just have something messed up in my mktime,

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Tijnema
On 7/10/07, Jason Pruim [EMAIL PROTECTED] wrote: While we are on the subject of certain dates, does this date mean anything? :) Tue, Nov-30-99 12:00:00? November 30th, 1999 - In Seattle, Washington, United States, protests against the WTO meeting by anti-globalization protesters catch police

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jason Pruim
On Jul 10, 2007, at 10:07 AM, Tijnema wrote: On 7/10/07, Jason Pruim [EMAIL PROTECTED] wrote: While we are on the subject of certain dates, does this date mean anything? :) Tue, Nov-30-99 12:00:00? November 30th, 1999 - In Seattle, Washington, United States, protests against the WTO

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jason Pruim
While we are on the subject of certain dates, does this date mean anything? :) Tue, Nov-30-99 12:00:00? Currently that is the date I get when I try to submit any date through the form. I'm sure I just have something messed up in my mktime, or in the way I'm grabbing the variable. Thanks

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jim Lucas
Jason Pruim wrote: On Jul 9, 2007, at 10:56 AM, Jim Lucas wrote: Jason Pruim wrote: Okay so given this section of code: $taskTime=mktime(00,00,00,$_POST['txtReschedule']); where are you getting the $_POST['txtReschedule'] var from? in the html below, your var is

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jason Pruim
On Jul 10, 2007, at 10:41 AM, Jim Lucas wrote: Jason Pruim wrote: On Jul 9, 2007, at 10:56 AM, Jim Lucas wrote: Jason Pruim wrote: Okay so given this section of code: $taskTime=mktime(00,00,00,$_POST['txtReschedule']); where are you getting the $_POST['txtReschedule'] var from? in the

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jim Lucas
Jason Pruim wrote: here is the print_r($_POST); Array ( [tasks] = Array ( [31] = Array ( [txtReschedule] = 07/07/08 [chkDone] = 31 ) [39] = Array ( [txtReschedule] = 07/08/08 [chkDone] = 39 ) [34] = Array ( [txtReschedule] = 07/09/09 [chkDone] = 34 ) [36] = Array ( [txtReschedule] = ) [35]

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jason Pruim
On Jul 10, 2007, at 11:08 AM, Jim Lucas wrote: Jason Pruim wrote: here is the print_r($_POST); Array ( [tasks] = Array ( [31] = Array ( [txtReschedule] = 07/07/08 [chkDone] = 31 ) [39] = Array ( [txtReschedule] = 07/08/08 [chkDone] = 39 ) [34] = Array ( [txtReschedule] = 07/09/09

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jim Lucas
Jason Pruim wrote: here is the print_r($_POST); Array ( [tasks] = Array ( [31] = Array ( [txtReschedule] = 07/07/08 [chkDone] = 31 ) [39] = Array ( [txtReschedule] = 07/08/08 [chkDone] = 39 ) [34] = Array ( [txtReschedule] = 07/09/09 [chkDone] = 34 ) [36] = Array ( [txtReschedule] = ) [35] =

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jason Pruim
On Jul 10, 2007, at 11:56 AM, Jim Lucas wrote: Jason Pruim wrote: here is the print_r($_POST); Array ( [tasks] = Array ( [31] = Array ( [txtReschedule] = 07/07/08 [chkDone] = 31 ) [39] = Array ( [txtReschedule] = 07/08/08 [chkDone] = 39 ) [34] = Array ( [txtReschedule] = 07/09/09

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jim Lucas
Jason Pruim wrote: On Jul 10, 2007, at 11:56 AM, Jim Lucas wrote: Jason Pruim wrote: here is the print_r($_POST); Array ( [tasks] = Array ( [31] = Array ( [txtReschedule] = 07/07/08 [chkDone] = 31 ) [39] = Array ( [txtReschedule] = 07/08/08 [chkDone] = 39 ) [34] = Array ( [txtReschedule] =

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jason Pruim
On Jul 10, 2007, at 3:25 PM, Jim Lucas wrote: Jason Pruim wrote: On Jul 10, 2007, at 11:56 AM, Jim Lucas wrote: Jason Pruim wrote: here is the print_r($_POST); Array ( [tasks] = Array ( [31] = Array ( [txtReschedule] = 07/07/08 [chkDone] = 31 ) [39] = Array ( [txtReschedule] = 07/08/08

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jim Lucas
Jason Pruim wrote: Yes, the text box that is currently showing up under Day to Complete is the one that will have the date entered as MM/DD/YY then that info will be displayed in the Reschedule Date field. Once I can get it storing the date correctly I want to make it show up if it's not been

Re: [PHP] Another simple question (Probably)

2007-07-09 Thread clive
Jason Pruim wrote: Okay so given this section of code: $taskTime=mktime(00,00,00,$_POST['txtReschedule']); im not certain, but I dont think you can pass the date to mktime as 1 variable, the function requires the following mktime($hour, $minute,$second, $month , $day ,$year); so maybe

Re: [PHP] Another simple question (Probably)

2007-07-09 Thread Shafiq Rehman
Hi, correct syntax for mktime is mktime( int hour, int minute, int second, int month, int day, int year) -- Shafiq Rehman (ZCE) http://www.phpgurru.com | http://shafiq.pk Cell: +92 300 423 9385 On 7/9/07, Jason Pruim [EMAIL PROTECTED] wrote: Okay so given this section of code:

Re: [PHP] Another simple question (Probably)

2007-07-09 Thread Jason Pruim
On Jul 9, 2007, at 9:02 AM, clive wrote: Jason Pruim wrote: Okay so given this section of code: $taskTime=mktime(00,00,00,$_POST['txtReschedule']); im not certain, but I dont think you can pass the date to mktime as 1 variable, the function requires the following mktime($hour,

Re: [PHP] Another simple question (Probably)

2007-07-09 Thread Jim Lucas
Jason Pruim wrote: Okay so given this section of code: $taskTime=mktime(00,00,00,$_POST['txtReschedule']); where are you getting the $_POST['txtReschedule'] var from? in the html below, your var is $_POST['tasks'][#]['txtReschedule'] What does this var value look like? try strtotime() on

Re: [PHP] Another simple question (Probably)

2007-07-09 Thread Daniel Brown
On 7/9/07, Shafiq Rehman [EMAIL PROTECTED] wrote: Hi, correct syntax for mktime is mktime( int hour, int minute, int second, int month, int day, int year) -- Shafiq Rehman (ZCE) http://www.phpgurru.com | http://shafiq.pk Cell: +92 300 423 9385 On 7/9/07, Jason Pruim [EMAIL PROTECTED] wrote:

Re: [PHP] Another simple question (Probably)

2007-07-09 Thread Tijnema
On 7/9/07, Daniel Brown [EMAIL PROTECTED] wrote: On 7/9/07, Shafiq Rehman [EMAIL PROTECTED] wrote: Hi, correct syntax for mktime is mktime( int hour, int minute, int second, int month, int day, int year) -- Shafiq Rehman (ZCE) http://www.phpgurru.com | http://shafiq.pk Cell: +92 300

Re: [PHP] Another simple question (Probably)

2007-07-09 Thread Daniel Brown
On 7/9/07, Tijnema [EMAIL PROTECTED] wrote: On 7/9/07, Daniel Brown [EMAIL PROTECTED] wrote: On 7/9/07, Shafiq Rehman [EMAIL PROTECTED] wrote: Hi, correct syntax for mktime is mktime( int hour, int minute, int second, int month, int day, int year) -- Shafiq Rehman (ZCE)

Re: [PHP] Another simple question (Probably)

2007-07-09 Thread Tijnema
On 7/9/07, Daniel Brown [EMAIL PROTECTED] wrote: On 7/9/07, Tijnema [EMAIL PROTECTED] wrote: On 7/9/07, Daniel Brown [EMAIL PROTECTED] wrote: On 7/9/07, Shafiq Rehman [EMAIL PROTECTED] wrote: Hi, correct syntax for mktime is mktime( int hour, int minute, int second, int month,

Re: [PHP] array simple question

2005-09-13 Thread [EMAIL PROTECTED]
tray print the array this way: echo 'pre'; print_r($array); echo '/pre'; -afan matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r() will print an array but if that array has sub-arrays it prints everything and if you

Re: [PHP] array simple question

2005-09-13 Thread Jordan Miller
please provide code and an example output, and say how this is different than you would like. what you describe is unclear. Jordan On Sep 13, 2005, at 4:04 PM, matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r() will

Re: [PHP] array simple question

2005-09-13 Thread Jasper Bryant-Greene
matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r() will print an array but if that array has sub-arrays it prints everything and if you don't use more command or a pipe of some kind that could be useless in some cases, but

Re: [PHP] array simple question

2005-09-13 Thread Mike Bellerby
If you want to print the keys for all the arrays in the main array then use allkeys. matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r() will print an array but if that array has sub-arrays it prints everything and if

Re: [PHP] A simple question

2004-11-13 Thread Brad Bonkoski
Read this.. http://www.php.net/release_4_1_0.php (Especially the part about global variables...) - Original Message - From: Chuck PUP Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 13, 2004 9:02 PM Subject: [PHP] A simple question Hey, I have just upgrade my box

Re: [PHP] A simple question

2004-11-13 Thread Chuck PUP Payne
If I was still on 4.1 I would understand, but I am on 4.3.4 now I will read it but I think it will there is something that turn on in the php.ini. Payne On 11/13/04 9:13 PM, Brad Bonkoski [EMAIL PROTECTED] wrote: Read this.. http://www.php.net/release_4_1_0.php (Especially the part

Re: [PHP] A simple question

2004-11-13 Thread Curt Zirzow
* Thus wrote Chuck PUP Payne: Hey, I have just upgrade my box and my forms are no longer passing information into the database. I did a simple echo test and sure enough nothing. I was using Apache 1.3 with php 4.1 I am now using Apache 2 with php 4.3.4, I thinking there is something that

Re: [PHP] A simple question

2004-11-13 Thread Chuck PUP Payne
Ugh, from what I read now I have to re-write all my forms. No fun. Thanks guys, I was hoping it was something simple. I would like to ask one thing, here is a simple code that I was using can someone explain to what need to be change to work with 4.3.4 so that I can work on my other pages ?

Re: [PHP] Really simple question - /php directory above /web tree .htaccess contents

2003-03-08 Thread Ernest E Vogelsinger
At 17:58 08.03.2003, news.php.net said: [snip] I want to have the /php directory one directory above the /web root so it is not accessible from browser command line execution but will execute from a click on an html page. CGI-PHP is installed but I need to

Re: [PHP] A simple question please.

2003-01-22 Thread Henry
it doesn't matter beforebody or after body as I know - Original Message - From: Denis L. Menezes [EMAIL PROTECTED] To: PHP general list [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 11:21 PM Subject: [PHP] A simple question please. Hello friends. I need to add a part of html (the

RE: [PHP] A simple question please.

2003-01-22 Thread Clarkson, Nick
If the start of EVERY page is the same you could make your php include file as follows; ?php echo HTML; echo TITLE; echo /TITLE; echo BODY; ? Obviously padding it out a bit ;o) Then at the top of every page put; ?php require (header.php); ? Similarly you coud do a footer for every page.

Re: [PHP] Re: Simple Question

2001-12-12 Thread Tom Ray
oh no, Iv'e gotten two answers... stripslashes() and strip_slashes() which one? which one?! G Gaylen Fraley wrote: strip_slashes() -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite Tom Ray [EMAIL PROTECTED]

RE: [PHP] Re: Simple Question

2001-12-12 Thread Martin Towell
Gaylen is prob right - I didn't check me syntax :( -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 3:11 PM To: Gaylen Fraley Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Simple Question oh no, Iv'e gotten two answers... stripslashes

Re: [PHP] Re: Simple Question

2001-12-12 Thread Rio Uniwaly
stripslashes() Rio :-) - Original Message - From: Tom Ray [EMAIL PROTECTED] To: Gaylen Fraley [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, December 13, 2001 11:10 AM Subject: Re: [PHP] Re: Simple Question oh no, Iv'e gotten two answers... stripslashes

Re: [PHP] Re: Simple Question

2001-12-12 Thread Gaylen Fraley
is prob right - I didn't check me syntax :( -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 3:11 PM To: Gaylen Fraley Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Simple Question oh no, Iv'e gotten two answers... stripslashes() and strip

RE: [PHP] Re: Simple Question

2001-12-12 Thread Martin Towell
you look at the docs or did you do it the trail-and-error way? -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 3:22 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Simple Question Nope. fatfingered :) stripslashes() is correct

Re: [PHP] Re: Simple Question

2001-12-12 Thread Gaylen
PROTECTED] Sent: Wednesday, December 12, 2001 10:56 PM Subject: RE: [PHP] Re: Simple Question you look at the docs or did you do it the trail-and-error way? -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 3:22 PM

RE: [PHP] Re: Simple Question

2001-12-12 Thread Martin Towell
: Re: [PHP] Re: Simple Question To be honest, the book PHP4 Developer's Guide by Blake Schwendiman has it listed as strip_slashes(). I just happened to be reading it when I saw the original message and copied it as it's listed in the index. So, rather than blaming him, I took the blame :). I

Re: [PHP] Re: Simple Question

2001-12-12 Thread J.F.Kishor
hello, I don't know how for I got your problem but, If you trying to print a string like this eg : print This is Tom's book; In the above case you need not use a back slash to escape the single quote coz' php accepts single quote's within a double quote. Otherwise you

Re: [PHP] Another simple question (dont hurt me)

2001-07-31 Thread Matt Kaufman
Use the mail() function. http://www.php.net/mail Matt Kaufman - Original Message - From: Kyle Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 8:33 PM Subject: [PHP] Another simple question (dont hurt me) In php, oh wait well this is really 2 questions..

Re: [PHP] a simple question

2001-07-17 Thread Rasmus Lerdorf
$variable = BLAH '' BLAH; On Wed, 18 Jul 2001, Hamed wrote: Hi, Can anyone tell me please what is the equivelant of this statement from perl, in PHP? $variable = qq~a value with any quotes which doesnt need \'\'s~; i use it to get away with all the s\lashes behind quotes. can

Re: [PHP] a (simple) question?

2001-04-27 Thread Michael Kimsal
You can only do one file in each box - get a yahoo mail account and see how they handle file uploading. Ivan Porro wrote: Hi, anyone know a simple way to realize multiple-upload at once (something like Msoft CTRL-multiple selection when browsing and uniqe Upload button). I've found only a