Re: [PHP] Two color rows in table inside while iteration

2010-05-01 Thread Paul M Foster
On Fri, Apr 30, 2010 at 01:52:25PM -0400, tedd wrote: > At 10:34 AM -0400 4/30/10, Paul M Foster wrote: >> On Thu, Apr 29, 2010 at 05:34:38PM -0400, tedd wrote: >> >> > Please critically review my example. >> >> +1 >> >> This thread came up before, and tedd's solution was the least complex, >> as

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Brandon Rampersad
> > > INSERT INTO images(image_file) VALUES ('$image_file')"; > > > > > > That's assuming you have id set to auto-increment, so no id in the > first > > > or > > > second set of parentheses. Additionally, the ", before the $i

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Adam Richardson
x27;$image_file')"; > > > > Shouldn't it read: > > > > INSERT INTO images(image_file) VALUES ('$image_file')"; > > > > That's assuming you have id set to auto-increment, so no id in the first > > or > > second set of pare

[PHP] pecl install pam and the current bug

2010-05-01 Thread fakessh
hello list hello guru of php it is php pecl install pam. and bugs that prevented the driver from running pam the driver does not work I site bug http://pecl.php.net/bugs/bug.php?id=16995 thanks for advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] Re: Object or such for building a directory tree?

2010-05-01 Thread Michelle Konzack
Hello tedd, Am 2010-05-01 11:54:45, hacktest Du folgendes herunter: > Now on to your problem. You want to take a multidimensional array > that contains the names of directories and names of the files > contained therein and show them in a file tree where you can open > and close the nodes of the t

[PHP] Re: wondering how to catch notice errors properly

2010-05-01 Thread Rene Veerman
On Sun, May 2, 2010 at 1:06 AM, Rene Veerman wrote: > I have an custom error handler that i initialize as such; > > error_reporting(E_ALL); > $oldError_handler = set_error_handler("nonFatalErrorHandler"); > > with this, notices are still displayed as single line visible html. > i'd like to catch t

[PHP] wondering how to catch notice errors properly

2010-05-01 Thread Rene Veerman
I have an custom error handler that i initialize as such; error_reporting(E_ALL); $oldError_handler = set_error_handler("nonFatalErrorHandler"); with this, notices are still displayed as single line visible html. i'd like to catch the notices and push them into a db. any ideas on how i do that?

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Gary
uot;; > > That's assuming you have id set to auto-increment, so no id in the first > or > second set of parentheses. Additionally, the ", before the $image_file > var > would cause issues, too. > > Adam > -- > Nephtali: PHP web framework that functions beauti

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Adam Richardson
> > $sqlStatements = "INSERT INTO guns (manufacturer, type, model, caliber, > condition, price, description, image_file_name, available) VALUES ('$manufacturer', > '$type', > '$model','$caliber','$condition','$price','$description','$image_file_name','$available'); INSERT INTO images(id, image

Re[4]: [PHP] A stupid question about classes

2010-05-01 Thread Andre Polykanine
Hello Richard, thanks a lot! -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Richard Quadling To: Andre Polykan

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread tedd
At 3:18 PM -0400 5/1/10, Gary wrote: As far as the whole "top posting". I have been posting on this board for 2 years (give or take), in fact have had a number of exchanges with tedd, (so I was a little surprised at his response). I have never heard the term top posting, I had not been asked not

Re: [PHP] Project TIME calculated, in PHP

2010-05-01 Thread Richard Quadling
On 1 May 2010 18:48, justino garcia wrote: > tImeArrived = CDate(InputBox("Enter START time:", "Start time", "9:00 AM")) > TimeLeft = CDate(InputBox("Enter END time:", "End time", "1:24 PM")) > Minutes = DateDiff("n", TimeArrived, TimeLeft) > Hours = Int(Minutes / 60) > Minutes = Minutes - (Hours

Re: [PHP] multi dimensional array question

2010-05-01 Thread Richard Quadling
On 30 April 2010 23:57, Nick Balestra wrote: > us_census = array('NY' => array('New York' => 8008278), >                                   'CA' => array('Los Angeles' => 3694820, >                                                                 'San Diego' > => 1223400), >                        

Re: Re[2]: [PHP] A stupid question about classes

2010-05-01 Thread Richard Quadling
On 1 May 2010 20:38, Andre Polykanine wrote: > Hello Nilesh, > > So could you illustrate a bit the __construct() function, please? > Should I pass those variables as parameters of that function? And what > if I need to change their values?) > Thanks! stmp_server = $smtp_server; $t

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Richard Quadling
Top Posting is putting your reply BEFORE the question. A bit like this! On 1 May 2010 17:37, Gary wrote: > What is top posting? > > Gary Why is it bad? Because you read the reply before the reason for the reply and that makes our head hurt. Eventually people actually stop replying to known

Re[2]: [PHP] A stupid question about classes

2010-05-01 Thread Andre Polykanine
Hello Nilesh, So could you illustrate a bit the __construct() function, please? Should I pass those variables as parameters of that function? And what if I need to change their values?) Thanks! -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: ar

Re: [PHP] SharePoint

2010-05-01 Thread Richard Quadling
On 1 May 2010 07:59, Robbert van Andel wrote: > I've been trying to connect to our SharePoint server's webservices > with PHP. I downloaded the nusoap library and have been trying to make > a connection using sample code from various websites. I keep getting > the following error: > > You are not

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Gary
ble'); > > >> INSERT INTO images (id, image_file) VALUES('','$image_file')"; > > >> $sqlResult = $batchconnection->multi_query($sqlStatements); > > if($sqlResult == true) { > > echo "Successfully Inserted Records"; &g

Re: [PHP] Two color rows in table inside while iteration -- just say no to mod

2010-05-01 Thread Richard Quadling
On 30 April 2010 21:20, Daevid Vincent wrote: >> -Original Message- >> From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] >> >> Modulus is the most elegant solution I reckon. Imagine if you only >> needed to highlight every 3rd row, or 4th? Easy to change the modulus >> for it, not s

Re: [PHP] Getting root privs

2010-05-01 Thread Shawn McKenzie
On 04/30/2010 09:53 AM, Nilesh Govindarajan wrote: > That was what my basic idea about implementing it, but just put up a > discussion here to see if there is really any other method except sudo- > and there is that cron one as suggested by Jim Lucas. > Use the sudoers file to allow your apache u

Re: [PHP] multi dimensional array question

2010-05-01 Thread Nick Balestra
Thanks! I'll agree with you abotu ur points, i just started php few days ago..so i am in the first phase of learnign it...and this list is so gr8! thanks evrybody cheers, Nick On May 1, 2010, at 6:11 PM, Programming Guides wrote: > On Fri, Apr 30, 2010 at 7:33 PM, Nick Balestra wrote: > thank

[PHP] Project TIME calculated, in PHP

2010-05-01 Thread justino garcia
tImeArrived = CDate(InputBox("Enter START time:", "Start time", "9:00 AM")) TimeLeft = CDate(InputBox("Enter END time:", "End time", "1:24 PM")) Minutes = DateDiff("n", TimeArrived, TimeLeft) Hours = Int(Minutes / 60) Minutes = Minutes - (Hours * 60) TotalTime = Format(Hours, "0") & ":" & Format(Mi

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Adam Richardson
> > If the OP does clean his $_POST before putting the results in his database, > his database will look like 'poo' if the wrong person comes along. Gary had mentioned in his initial post he was testing on a local machine and would add the checks after resolving this issue. > Also, the OP's co

Re: [PHP] A stupid question about classes

2010-05-01 Thread Nilesh Govindarajan
On 05/01/2010 10:23 PM, Andre Polykanine wrote: Hello everyone, Just a basic question. I have my class starting like this: Class OireMail { // these are required public $smtp_server=""; public $domain=""; public $from=""; public $login=""; public $pass=""; And then go the function themselves. I

[PHP] A stupid question about classes

2010-05-01 Thread Andre Polykanine
Hello everyone, Just a basic question. I have my class starting like this: Class OireMail { // these are required public $smtp_server=""; public $domain=""; public $from=""; public $login=""; public $pass=""; And then go the function themselves. I was told that it's better to put the initial vari

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Gary
request, then don't expect any more help from me. > > bye! > > tedd > -- > --- > http://sperling.com http://ancientstones.com http://earthstones.com > > __ Information from ESET Smart Security, version of virus > signature database 5077 (20100501)

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Gary
x27;) && > > That should be: > > ($image_type == 'image/jpeg') || ($image_type == 'image/png') && > > Regardless of IF the code runs OK somewhere else it won't if it's dealing > with a jpeg or even a jpg image. > > Plus, the logi

Re: [PHP] multi dimensional array question

2010-05-01 Thread Programming Guides
On Fri, Apr 30, 2010 at 7:33 PM, Nick Balestra wrote: > thanks Piero! > > i was trying to solve an excercise on "learning php5" (O'reilyl) book. > > I am happy abotut his solution with the array_sum funtion you suggested, > and my multidimensional array make much more sense to mee then they > sug

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread tedd
At 11:27 AM -0400 5/1/10, Gary wrote: Jim Thanks for your reponse. With the variable defined. it is supposed to reduce the size of the image before upload. Thanks again. Gary Gary: That is so wrong! Additionally, you were asked politely to not top post, but you continued to do so. If you

Re: [PHP] Object or such for building a directory tree?

2010-05-01 Thread tedd
At 1:59 PM +0200 5/1/10, Michelle Konzack wrote: Hello *, before I reinvent the wheel, I ask here, if someone know an "object" or "function" which build from an array of directories (filesystem or IMAP) a directory tree which can be opened and close? I have the need to do this for a "local and

RE: [PHP] SharePoint

2010-05-01 Thread Tommy Pham
> -Original Message- > From: Robbert van Andel [mailto:swimmer1...@gmail.com] > Sent: Friday, April 30, 2010 11:58 PM > To: PHP list - not junk > Subject: [PHP] SharePoint > > I've been trying to connect to our SharePoint server's webservices with PHP. > I downloaded the nusoap library and

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Gary
', >> '$condition', '$price', '$description','$image_file_name', ' ', >> '$available'); >> >> INSERT INTO images (id, image_file) VALUES('','$image_file')"; >> >> $

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread tedd
At 1:45 AM +0100 5/1/10, Ashley Sheridan wrote: On Fri, 2010-04-30 at 20:43 -0400, Gary wrote: I have this duplicate code on another site and it works fine. The image is uploaded to the images folder, the information is not submitted to the database. I get the error Some Error Occured Wh

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Jim Lucas
Gary wrote: I have this duplicate code on another site and it works fine. The image is uploaded to the images folder, the information is not submitted to the database. I get the error Some Error Occured While Inserting Records This is only on a local machine so I have not yet included and s

[PHP] Object or such for building a directory tree?

2010-05-01 Thread Michelle Konzack
Hello *, before I reinvent the wheel, I ask here, if someone know an "object" or "function" which build from an array of directories (filesystem or IMAP) a directory tree which can be opened and close? I have the need to do this for a "local and remote filesystem" and a "courier-imap tree".

Re: [PHP] How to Force IE to download text file?

2010-05-01 Thread Ali Asghar Toraby Parizy
attachment is correct syntax and solves the problem. Thanks On Fri, Apr 30, 2010 at 9:44 PM, Andre Polykanine wrote: > Hello Ali, > > It's attachment, not attachement. Maybe here's the reason? Just a > thought. > -- > With best regards from Ukraine, > Andre > Skype: Francophile; Wlm&MSN: arthaelo

[PHP] SharePoint

2010-05-01 Thread Robbert van Andel
I've been trying to connect to our SharePoint server's webservices with PHP. I downloaded the nusoap library and have been trying to make a connection using sample code from various websites. I keep getting the following error: You are not authorized to view this page You do not have permission to