Re: [PHP] Re: Continuance of the struggle (trying to understand)

2010-10-07 Thread Col Day
Morning all, Apologies for the delay, I've just become a Dad for the first time so a little distracted! If I explain exactly what I am trying to do then it may become clear as to where I'm going wrong. Needless to say, new baby so want to show him off (Callum, 7lb4oz) so decided to buy a w

Re: [PHP] daemon

2010-10-07 Thread Per Jessen
Tommy Pham wrote: > Hi, > > Does anyone have a script running as daemon on Linux/Unix (variants) > as part of your PHP application? Yeah, several. > If so, what are you using to schedule the script to run? cron? sysVinit and startproc -- Per Jessen, Zürich (12.1°C) -- PHP General Mail

Re: [PHP] Re: Continuance of the struggle (trying to understand)

2010-10-07 Thread a...@ashleysheridan.co.uk
It will only work if your listing supports php, but you should just be able to put the whole sure up on your hosting, give the upload directory the correct permissions ( its most likely a more secure Linux hosting than insecure windows hosting) Thanks, Ash http://www.ashleysheridan.co.uk

[PHP] Re: daemon

2010-10-07 Thread Colin Guthrie
'Twas brillig, and Nathan Nobbe at 07/10/10 06:46 did gyre and gimble: > On Wed, Oct 6, 2010 at 11:21 PM, Tommy Pham wrote: > >> Hi, >> >> Does anyone have a script running as daemon on Linux/Unix (variants) as >> part >> of your PHP application? If so, what are you using to schedule the script

Re: [PHP] Re: daemon

2010-10-07 Thread Per Jessen
Colin Guthrie wrote: > Yeah that's what I do too. Of course systemd will change everything > "initscript" related, but I don't expect it to hit production servers > for a while. Could easily be years - the init-sequence is only interesting at boot-time, and server runs for years (wel, mine certai

Re: [PHP] Re: Continuance of the struggle (trying to understand)

2010-10-07 Thread Steve Staples
Col: Congratulations on becoming a father!! As a father of 3 myself, I know the joys that infants bring :) As for your scripting issues, I would suggest that you save your files with the .php extension, and not the .html. The .php extension will tell the php compliler/parser/whatever and spit

[PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread tedd
Hi gang: Several years ago I was involved in a court case where a programmers work was being evaluated to establish a dollar amount for the work done. The case was a dispute where the client wanted money back from a programmer for a discontinued project. The programmer simply wanted to be p

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Bastien Koert
On Thu, Oct 7, 2010 at 1:20 PM, tedd wrote: > Hi gang: > > Several years ago I was involved in a court case where a programmers work > was being evaluated to establish a dollar amount for the work done. > > The case was a dispute where the client wanted money back from a programmer > for a discont

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Robert Cummings
On 10-10-07 01:20 PM, tedd wrote: Hi gang: Several years ago I was involved in a court case where a programmers work was being evaluated to establish a dollar amount for the work done. The case was a dispute where the client wanted money back from a programmer for a discontinued project. The pr

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Joshua Kehn
I'm not sure this is even worth answering. The question isn't how many lines of code were written but percentage of the project completed. If he estimated 8 months, worked for 4 months, and was 50% done, he should get half his estimate. Hourly rates wouldn't come into it unless the client thoug

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Daniel P. Brown
On Thu, Oct 7, 2010 at 13:20, tedd wrote: > Hi gang: Hi, Tedd! What's it like over there in Australia, where it's already Friday? ;-P -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://ww

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread tedd
At 1:30 PM -0400 10/7/10, Daniel P. Brown wrote: On Thu, Oct 7, 2010 at 13:20, tedd wrote: Hi gang: Hi, Tedd! What's it like over there in Australia, where it's already Friday? ;-P -- LOL I'm sorry -- I seldom know what day it is. I honestly thought it was Friday. So much fo

Re: [PHP] Re: SEO Experts?

2010-10-07 Thread Zareef Ahmed
A good thread and really good answers/posts are coming but in my humble opinion this topic does not suit php-general list or atleast we should focus on the points where php can play a role :) On M, buton, Sep 27, 2010 at 12:54 PM, wrote: > > > On 9/26/2010 8:09 AM, David Mehler wrote: > >> Hello

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread a...@ashleysheridan.co.uk
Surely it would have been a bit more sensible to work out the time the programmer had spent on the project and then calculate it as a percentage of the total time that programmer would spend on it to complete it (which might not be the whole duration of the project) Also, counting code lines se

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Joshua Kehn
In the case payment does come down to lines of code written I'm already covered. if( count > 5) { /* Bracing Style } Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 7, 2010, at 1:50 PM, a...@ashleysheridan.co.uk wrote: > Su

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Daniel P. Brown
On Thu, Oct 7, 2010 at 14:04, Joshua Kehn wrote: > In the case payment does come down to lines of code written I'm already > covered. > > if( count > 5) > { >    /* Bracing Style > } PHP Notice: Use of undefined constant count - assumed 'count' on line 1 PHP Warning: Unterminated comme

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Joshua Kehn
I guess that's what I get for spending the last four weeks developing with JavaScript and Node.js. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 7, 2010, at 2:09 PM, Daniel P. Brown wrote: > On Thu, Oct 7, 2010 at 14:04,

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Robert Cummings
On 10-10-07 02:04 PM, Joshua Kehn wrote: In the case payment does come down to lines of code written I'm already covered. if( count> 5) { /* Bracing Style } I hope your $count var is being incremented properly under this model: Just think how much money could be made if you need to su

[PHP] Array / form processing

2010-10-07 Thread Ron Piggott
I am writing a custom shopping cart that eventually the "cart" will be uploaded to PayPal for payment. I need to be able to include the option that the purchase is a gift certificate. At present my "add to cart" function goes like this: === # Gift Certificate: 1 is a gift; 2 is personal use

Re: [PHP] Array / form processing

2010-10-07 Thread chris h
$_SESSION['life_coaching_order'][$product][$gift]['quantity'] = $_SESSION['life_coaching_order'][$product][$gift]['quantity'] + 1; === ... === foreach ($_SESSION['life_coaching_order'] AS $coaching_fee_theme_reference => $value ) { === In this example $value would be an array. To test if it is

Re: [PHP] Array / form processing

2010-10-07 Thread Ron Piggott
Many thanks, Chris. I have one additional question about this shopping cart project. I need to make a submit button for the purpose of removing an item from the shopping cart. What I am struggling with is to find an effective method for passing the product serial number (auto_increment in the

Re: [PHP] Array / form processing

2010-10-07 Thread chris h
I don't know what the context is like, but you may be better off just using an entire form here with hidden fields. i.e. Without knowing what else is going on in your page, and how the request is being handled on the server, it's kind of hard to give exact advice. :) Chris H.

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread tedd
At 6:50 PM +0100 10/7/10, a...@ashleysheridan.co.uk wrote: Surely it would have been a bit more sensible to work out the time the programmer had spent on the project and then calculate it as a percentage of the total time that programmer would spend on it to complete it (which might not be the

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Joshua Kehn
$100 a line. If you want more then one line let's meet and go over the project. I might give a significant discount. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 7, 2010, at 4:51 PM, tedd wrote: > At 6:50 PM +0100 10/7/10,

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Bastien Koert
On Thu, Oct 7, 2010 at 4:51 PM, tedd wrote: > At 6:50 PM +0100 10/7/10, a...@ashleysheridan.co.uk wrote: >> >> Surely it would have been a bit more sensible to work out the time the >> programmer had spent on the project and then calculate it as a percentage of >> the total time that programmer wo

Re: [PHP] Class mysqli not found

2010-10-07 Thread sueandant
Hi Steve I've uninstalled PHP5.3.3 and re-installed PHP5.2.14. Everything now works! Best wishes and thanks to everyone for their help and input. tholland - Original Message - From: "Steve Staples" To: "sueandant" Cc: "PHP" Sent: Wednesday, October 06, 2010 9:09 PM Subject: Re:

[PHP] zip and mac safari

2010-10-07 Thread M. Reuter
Hi, does anyone know how to use a php script to zip a folder (with a subfolder) so that safari can open it and not decompresses forever? Thanks, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php