php-general Digest 15 Jun 2007 07:17:31 -0000 Issue 4849

Topics (messages 257019 through 257043):

Re: London PHP salaries
        257019 by: Richard Heyes
        257020 by: Chris
        257021 by: Daniel Brown
        257022 by: Chris
        257023 by: Daniel Brown
        257024 by: Joker7
        257025 by: Daniel Brown
        257028 by: Daevid Vincent
        257034 by: Richard Davey
        257035 by: Richard Davey
        257036 by: Tijnema
        257037 by: Richard Davey
        257039 by: Crayon Shin Chan
        257040 by: Crayon Shin Chan
        257042 by: Richard Davey
        257043 by: Javier Leyba

Re: [PHP-DEV] [PHP4] Logging native PHP function calls
        257026 by: Richard Lynch

mbstring problems
        257027 by: Martin Marques
        257041 by: Crayon Shin Chan

Booking form, please
        257029 by: Timothy Murphy
        257030 by: David Giragosian

does php4 have language level classes
        257031 by: Nathan Nobbe

counting code lines
        257032 by: Toni Torello
        257033 by: James McLean

Re: Reformatting the URI on return to the browser
        257038 by: Dave M G

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Daniel Brown wrote:
> 15,844.62 GBP

Wow. There are Customer Service jobs that pay more. Seriously, you need to re-evaluate your skills and worth to your company.

--
Richard Heyes
0844 801 1072
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software

--- End Message ---
--- Begin Message ---
Daniel

My net (after taxes) are about 22k. So you better think twice before moving 
to germany ;o)

Chris

""Daniel Brown"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]
On 6/14/07, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> Chris wrote:
> > Hi Javier,
> >
> > well, in germany (at least what I have seen so far)... the min offer was
> > around 23k. I get about that money myself, and I live really cheap, with 
> > a
> > cheap car (cheapest you can get), and a girlfriend who doesn't need or 
> > want
> > much. So if you have a family, in a town like London: go for at least 
> > twice
> > that. AT LEAST :o) go for 30k, and if they don't wnan give you that, you
> > better stop thinking about that job.
>
> Also make sure you don't get confused with currencies and remember we
> still use GBP in UK, not EUR!
>
> Consider that London Underground general workers can be on £22k and I'd
> suggest as a lead PHP developer in Zone 1 you'd be looking for at least
> £30k (GBP NOT EUR!) but probably more considering relocation costs and
> family considerations etc.
>
> Col.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

    Shit, *I* need to move to London, Spain, or Germany.  As the
senior PHP/Unix geek in my company (not "a" senior, "the" senior), I
only make a salary of $31,200 with barely any benefits.  That comes
out to 23,443.39 EUR, or 15,844.62 GBP at present (courtesy of
XE.com).

    The area I live in doesn't offer much in the way of technical
jobs, so any of you considering moving to America, keep in mind the
difference in economic climates and microclimates, as well as the
salary-to-cost-of-living ratio (which is shrinking rather quickly).
-- 
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107 

--- End Message ---
--- Begin Message ---
On 6/14/07, Chris <[EMAIL PROTECTED]> wrote:
Daniel

My net (after taxes) are about 22k. So you better think twice before moving
to germany ;o)

Chris

""Daniel Brown"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
On 6/14/07, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> Chris wrote:
> > Hi Javier,
> >
> > well, in germany (at least what I have seen so far)... the min offer was
> > around 23k. I get about that money myself, and I live really cheap, with
> > a
> > cheap car (cheapest you can get), and a girlfriend who doesn't need or
> > want
> > much. So if you have a family, in a town like London: go for at least
> > twice
> > that. AT LEAST :o) go for 30k, and if they don't wnan give you that, you
> > better stop thinking about that job.
>
> Also make sure you don't get confused with currencies and remember we
> still use GBP in UK, not EUR!
>
> Consider that London Underground general workers can be on £22k and I'd
> suggest as a lead PHP developer in Zone 1 you'd be looking for at least
> £30k (GBP NOT EUR!) but probably more considering relocation costs and
> family considerations etc.
>
> Col.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

    Shit, *I* need to move to London, Spain, or Germany.  As the
senior PHP/Unix geek in my company (not "a" senior, "the" senior), I
only make a salary of $31,200 with barely any benefits.  That comes
out to 23,443.39 EUR, or 15,844.62 GBP at present (courtesy of
XE.com).

    The area I live in doesn't offer much in the way of technical
jobs, so any of you considering moving to America, keep in mind the
difference in economic climates and microclimates, as well as the
salary-to-cost-of-living ratio (which is shrinking rather quickly).
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



   Yeah, but that's not in US Dollars either, is it?

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--- End Message ---
--- Begin Message ---
Nope, that is Euros. But imagine that i pay 250 for my car each month, 330 
for rent, then I have a girlfriend who lives an hour away... gosh, that 
little bit of money is going down like the titanic *g* Been thinking of 
selling some scripts of mine on the internet tho to make some more... let's 
see what my boss has to think about that *gg*

Cheerio mate

Chris


""Daniel Brown"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]
On 6/14/07, Chris <[EMAIL PROTECTED]> wrote:
> Daniel
>
> My net (after taxes) are about 22k. So you better think twice before 
> moving
> to germany ;o)
>
> Chris
>
> ""Daniel Brown"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> On 6/14/07, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> > Chris wrote:
> > > Hi Javier,
> > >
> > > well, in germany (at least what I have seen so far)... the min offer 
> > > was
> > > around 23k. I get about that money myself, and I live really cheap, 
> > > with
> > > a
> > > cheap car (cheapest you can get), and a girlfriend who doesn't need or
> > > want
> > > much. So if you have a family, in a town like London: go for at least
> > > twice
> > > that. AT LEAST :o) go for 30k, and if they don't wnan give you that, 
> > > you
> > > better stop thinking about that job.
> >
> > Also make sure you don't get confused with currencies and remember we
> > still use GBP in UK, not EUR!
> >
> > Consider that London Underground general workers can be on £22k and I'd
> > suggest as a lead PHP developer in Zone 1 you'd be looking for at least
> > £30k (GBP NOT EUR!) but probably more considering relocation costs and
> > family considerations etc.
> >
> > Col.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>     Shit, *I* need to move to London, Spain, or Germany.  As the
> senior PHP/Unix geek in my company (not "a" senior, "the" senior), I
> only make a salary of $31,200 with barely any benefits.  That comes
> out to 23,443.39 EUR, or 15,844.62 GBP at present (courtesy of
> XE.com).
>
>     The area I live in doesn't offer much in the way of technical
> jobs, so any of you considering moving to America, keep in mind the
> difference in economic climates and microclimates, as well as the
> salary-to-cost-of-living ratio (which is shrinking rather quickly).
> --
> Daniel P. Brown
> [office] (570-) 587-7080 Ext. 272
> [mobile] (570-) 766-8107
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

    Yeah, but that's not in US Dollars either, is it?

-- 
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107 

--- End Message ---
--- Begin Message ---
On 6/14/07, Richard Heyes <[EMAIL PROTECTED]> wrote:
Daniel Brown wrote:
 > 15,844.62 GBP

Wow. There are Customer Service jobs that pay more. Seriously, you need
to re-evaluate your skills and worth to your company.

--
Richard Heyes
0844 801 1072
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



   It's ground-floor, that's the only reason I'm putting up with it.
I've had plenty of offers elsewhere, but I actually think this company
is going to really get somewhere in 2007.... which is why I've even
turned down an employment offer for Google (and because, with getting
married in under a year, a cross-country move isn't practical right
now).

   I was making twice this amount before coming here, though, so it's
a bit rough.  I just hope my gut instincts are correct with how things
will turn out here.  Otherwise, I have no one to blame but myself.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--- End Message ---
--- Begin Message ---
In news: [EMAIL PROTECTED] - Javier Leyba
wrote :
>>> For living in London you would need at the lower
>>> end 35k but why would you want to come and live
>>> in London from Spain ? If I had the choice I
>>> know where I would choose.
>>
>> I couldn't imagine why you like Spain but...
>>
>> Just check out Spain salaries and tell me what you
>> think. You can check Monster.es or infojobs.net
>>
>> A friend of mine received an offer some days ago from
>> a recruitment consultant to work in the big bank of
>> catalonia.
>>
>> They asked for an experienced J2ee architect with
>> knowledge of Unix, Hibernate, Spring Framework,
>> RDBM´s, systems analysis and design, spanish, catalan
>> and english fluent, etc.... How muche they offer ? 21K
>> euros !!!
>>
>> It means around 1000 euros net each month and to rent
>> a flat in Barcelona costs 900/1500 euros month...
>>
>> There are better offers, but not much than 30K and
>> it's not enough.
>>
>> For PHP you couldn´t expect more than 18k...
>>
>> Do you like Spain, now ?  :)
>>
>>
>> J
>>
>>
>>
>>
>>      __________________________________________________
>> Preguntá. Respondé. Descubrí.
>> Todo lo que querías saber, y lo que ni imaginabas,
>> está en Yahoo! Respuestas (Beta).
>> ¡Probalo ya!
>> http://www.yahoo.com.ar/respuestas

Yeah still like the idea of living in Spain the cost of living always seam 
lower to me - the weather is better,but it all boils down to the salary to 
cost of living ratio.

Chris

-- 
Cheap As Chips Broadband http://yeah.kick-butt.co.uk
Superb hosting & domain name deals http://host.kick-butt.co.uk 

--- End Message ---
--- Begin Message ---
On 6/14/07, Chris <[EMAIL PROTECTED]> wrote:
Nope, that is Euros. But imagine that i pay 250 for my car each month, 330
for rent, then I have a girlfriend who lives an hour away... gosh, that
little bit of money is going down like the titanic *g* Been thinking of
selling some scripts of mine on the internet tho to make some more... let's
see what my boss has to think about that *gg*

Cheerio mate

Chris


""Daniel Brown"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
On 6/14/07, Chris <[EMAIL PROTECTED]> wrote:
> Daniel
>
> My net (after taxes) are about 22k. So you better think twice before
> moving
> to germany ;o)
>
> Chris
>
> ""Daniel Brown"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> On 6/14/07, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> > Chris wrote:
> > > Hi Javier,
> > >
> > > well, in germany (at least what I have seen so far)... the min offer
> > > was
> > > around 23k. I get about that money myself, and I live really cheap,
> > > with
> > > a
> > > cheap car (cheapest you can get), and a girlfriend who doesn't need or
> > > want
> > > much. So if you have a family, in a town like London: go for at least
> > > twice
> > > that. AT LEAST :o) go for 30k, and if they don't wnan give you that,
> > > you
> > > better stop thinking about that job.
> >
> > Also make sure you don't get confused with currencies and remember we
> > still use GBP in UK, not EUR!
> >
> > Consider that London Underground general workers can be on £22k and I'd
> > suggest as a lead PHP developer in Zone 1 you'd be looking for at least
> > £30k (GBP NOT EUR!) but probably more considering relocation costs and
> > family considerations etc.
> >
> > Col.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>     Shit, *I* need to move to London, Spain, or Germany.  As the
> senior PHP/Unix geek in my company (not "a" senior, "the" senior), I
> only make a salary of $31,200 with barely any benefits.  That comes
> out to 23,443.39 EUR, or 15,844.62 GBP at present (courtesy of
> XE.com).
>
>     The area I live in doesn't offer much in the way of technical
> jobs, so any of you considering moving to America, keep in mind the
> difference in economic climates and microclimates, as well as the
> salary-to-cost-of-living ratio (which is shrinking rather quickly).
> --
> Daniel P. Brown
> [office] (570-) 587-7080 Ext. 272
> [mobile] (570-) 766-8107
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

    Yeah, but that's not in US Dollars either, is it?

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



   Okay, some financial disclosure on my part --- a kind of "open
source financial report," if you will.  All figures are in US Dollars.

   I gross ~$2,400 per month.
   After taxes, I lose $291.72 with each check.
   After insurance, my total net check is about $877.97.
   My truck payment is $471.60 per month.  Car insurance is about $200/mo.
   Rent for my house is $500 per month, plus utilities.... so about $900/mo.
   With gas being roughly $3 per gallon, it costs me about $70/wk ($280/mo.)

   Those bills don't include my servers, groceries, cell phone, and
other daily expenses, let alone "spending money" or savings (virtually
nil right now).

   So, with bills alone, it costs me a minimum of $2,700.  That
leaves me with about $900 extra.... which then goes to repaying loans
and debts, totally about $450 total.  So after spending some money at
the bars or to do stuff to keep myself sane, I usually have very
little, if any, left over at the end of the month.  And with working
between 60 and 70 hours per week, average minimum, it's a little
disheartening, to say the least.

   With regard to the post about skills, I'd consider my skills to be
well above average, at least, but even at that, shouldn't a PHP
programmer at a full-time job be worth more than $15 per hour,
average, even at a basic level?  Sadly, that's about all I'm pulling
in at present.  With my own company, I averaged $25 per hour, which
was rather comfortable, but then I also had to run the complete
operations (billing, collections, et cetera), and would suffer for
clients bailing on me or not paying in full, on time (which, as I'm
sure most of you know, happens with a semi-regular frequency).

   Again, though, like I said --- I really do have faith that this
company is going to really achieve some fantastic results in our
field, and I think that all of us who are really putting in the time
and hard work (the president/founder of the company works every day,
just like the rest of us, so there's no unfair balance) are going to
reap the benefits fairly soon.  As long as I can keep things together
in the meantime.

   Nonetheless, it doesn't mean I'm not contemplating the offers as
they come in.  My (computer) forensic background has gotten me some
rather tantalizing offers as well, I just haven't snapped any up.  So
again, if this doesn't work out, I certainly have no one but myself to
blame.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--- End Message ---
--- Begin Message ---
> > How much should be the lower limit to keep a family
> > happy (happy means with enough money for a flat, food,
> > clothes, entertainment, education and something to
> > save for the future) ?
> 
> $salary = 30000 + (sizeof($family) * 10000);

This may seem obvious, but make sure you get paid in POUNDS.

We had an employee (a friend of mine) "start a UK office", and due to
corporate legal reasons, and taxes, etc, he got paid in US DOLLARS.
Aside from even more legal/tax issues he personally had to face, his
salary was almost halved, as 1 USD = 1.9696 GBP !! 

http://www.x-rates.com/

The UK is VERY expensive. If I were you, I would do some online research
at the cost of fuel/petrol/gas/whatever you call it, rent, purchasing
homes, taxes (don't they have VAT and GST or something like that?), an
average lunch meal, dinner meal, utilities, car price, etc...

--- End Message ---
--- Begin Message ---
Hi Daniel,

Thursday, June 14, 2007, 7:40:52 PM, you wrote:

>     I gross ~$2,400 per month.

[snip]

>     So, with bills alone, it costs me a minimum of $2,700.  That
> leaves me with about $900 extra.... which then goes to repaying loans

I'm curious.. how does $2,400 - $2,700 = $900 left over per month?

I'll have some of that bank voodoo magic please :)

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--- End Message ---
--- Begin Message ---
Hi Daevid,

Thursday, June 14, 2007, 9:26:44 PM, you wrote:

> We had an employee (a friend of mine) "start a UK office", and due to
> corporate legal reasons, and taxes, etc, he got paid in US DOLLARS.
> Aside from even more legal/tax issues he personally had to face, his
> salary was almost halved, as 1 USD = 1.9696 GBP !! 

No, that would give him a SUPERB salary conversion ;)

It's actually 1 USD = 0.50 GBP.

> The UK is VERY expensive. If I were you, I would do some online
> research at the cost of fuel/petrol/gas/whatever you call it, rent,

Well we call it whatever goes in the car. If you use petrol, we call
it petrol. If you use diesel, we call it diesel. Not too far beyond
your A, B, C's really.

> purchasing homes, taxes (don't they have VAT and GST or something
> like that?), an average lunch meal, dinner meal, utilities, car
> price, etc...

VAT is 17.5%, doesn't apply to all goods (certain items are exempt)
and is in practise no different to your state taxes. Think yourself
lucky it's only 17.5%, some European countries go way higher. It does
however fund our medical services, etc, etc.

The average cost of living over here, while higher than lots of other
countries, isn't out of line with the average salary, which is all
that matters. That doesn't mean consumer spending is in line with
their salaries, but hey - welcome to the mass global issue of being
in debt.

Back to the original question though, I'd not take a job offering less
than £35k/pa, *especially* one in central London. You should add on a
significant extra for that location alone.

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--- End Message ---
--- Begin Message ---
On 6/15/07, Richard Davey <[EMAIL PROTECTED]> wrote:
Hi Daevid,

Thursday, June 14, 2007, 9:26:44 PM, you wrote:

> We had an employee (a friend of mine) "start a UK office", and due to
> corporate legal reasons, and taxes, etc, he got paid in US DOLLARS.
> Aside from even more legal/tax issues he personally had to face, his
> salary was almost halved, as 1 USD = 1.9696 GBP !!

No, that would give him a SUPERB salary conversion ;)

It's actually 1 USD = 0.50 GBP.

Ohh nice :)


<snip>

> purchasing homes, taxes (don't they have VAT and GST or something
> like that?), an average lunch meal, dinner meal, utilities, car
> price, etc...

VAT is 17.5%, doesn't apply to all goods (certain items are exempt)
and is in practise no different to your state taxes. Think yourself
lucky it's only 17.5%, some European countries go way higher. It does
however fund our medical services, etc, etc.

Yes, here in the Netherlands it's 19% and doesn't fund medial
services! that's another €1k  a year...

The average cost of living over here, while higher than lots of other
countries, isn't out of line with the average salary, which is all
that matters. That doesn't mean consumer spending is in line with
their salaries, but hey - welcome to the mass global issue of being
in debt.

Back to the original question though, I'd not take a job offering less
than £35k/pa, *especially* one in central London. You should add on a
significant extra for that location alone.

Cheers,

Rich

Just calculate what the minimal is you need, add 25% to it and you
have some reasonable salary I think.

Tijnema

--- End Message ---
--- Begin Message ---
Hi Tijnema,

Friday, June 15, 2007, 12:10:56 AM, you wrote:

>> It's actually 1 USD = 0.50 GBP.

> Ohh nice :)

Yeah, it makes buying software from the US a dream at the moment. Same
goes for domain names, server hosting, etc. Of course it means SELLING
software into the US is a complete bitch, but there we go.

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--- End Message ---
--- Begin Message ---
On Friday 15 June 2007 06:50, Richard Davey wrote:

> VAT is 17.5%, doesn't apply to all goods (certain items are exempt)

Foodstuffs and "essential" items are exempt.

> and is in practise no different to your state taxes. Think yourself
> lucky it's only 17.5%, some European countries go way higher. It does
> however fund our medical services, etc, etc.

I thought the NICs were supposed to fund the NHS/pensions and stuff like 
that?

-- 
Crayon

--- End Message ---
--- Begin Message ---
On Friday 15 June 2007 07:39, Richard Davey wrote:

> Yeah, it makes buying software from the US a dream at the moment. 

Huh? When software comes across the pond they usually markup at 1USD=1GBP

-- 
Crayon

--- End Message ---
--- Begin Message ---
Hi Crayon,

Friday, June 15, 2007, 2:06:47 AM, you wrote:

> On Friday 15 June 2007 07:39, Richard Davey wrote:

>> Yeah, it makes buying software from the US a dream at the moment. 

> Huh? When software comes across the pond they usually markup at 1USD=1GBP

Sure, bastards like Adobe rip us off in that way. But I bought a
couple of excellent shareware apps this week for almost peanuts thanks
to the exchange rate atm.

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--- End Message ---
--- Begin Message ---
Thanks for all replies.

I want to make a last question and promise will not
disturb with this topic any more.

How could I calculate a month net salary ?

In Spain, the offered year salary could be divided in
12 or 14 payments (in this case you´ll receive a duble
payment in july and december).

To know how much will receive in your hands each month
you need to divide year salary by the number of
payment less 30% (apromixametely) that fly away with
taxes and social security. Result is your monthly
payment. (you don´t need a health care plan but is
useful to have a dental plan that could cost around
50/100 euros year).

How could I make same calculation for a London salary
?

Thanks in advance

J




      __________________________________________________ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 

--- End Message ---
--- Begin Message ---
You want:

                         (number of apache children)
                       X (number of mysql usernames)
====================================================
(number of mysql connections allowed in /etc/my.cnf)

If you really have 150 MaxClients in httpd.conf and 140 mysql
usernames, your /etc/my.cnf should have:
    150
  X 140
=======
  15600

15,600 mysql connections is a LOT of connections, and will take a LOT
of RAM...

But that's the only way to be sure that you don't have connection
problems with that many users, as I understand it.

I've never tried to run a server with 140 mysql usernames, so I could
be wrong...

On Wed, June 13, 2007 2:54 pm, Markus Fischer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello Richard,
>
> thanks for your reply.
>
> Richard Lynch wrote:
>> Did somebody actually write a mysql_connect as a variable for the
>> function name? [shudder]
>
> Not me, actually some libraries do.
>
>> Otherwise, it seems like you could grep for mysql_connect and
>> mysql_pconnect and find all the places the connection is made.  And
>> rip them out and replace with an include, while you're at it. :-)
>
> I was at this point. But still I am not 100% sure that I found all
> mysql
> connections.
>
>> You *DO* understand that with _pconnect, you must have:
>>
>> httpd.conf MaxChildren TIMES number of mysql usernames
>
> I'm not aware of MaxChildren and I couldn't find it in the
> documentation, but I know about MaxClients.
>
> We've running two servers, each with MaxClients set to 150. The number
> of mysql users is 140.
>
>>
>> for your number of connections in /etc/my.cnf
>
> This number is 170 currently.
>
>>
>> Actually, you want a few "spare" connections so you can use mysql
>> command line monitor to connect and to do backups and so on.
>>
>> That number of connections can rapidly add up to a LOT of RAM if
>> you've got multiple MySQL usernames...
>
>
> Actually we've a dedicated hoster which maintains our hardware, but
> he's
> not able to prevent the "max connections" problems.
>
> Can you explain a bit how you meant you formular? I read it three
> times
> but I don't understand exactly what math you wanted to tell me
> (probably
> because I'm not native).
>
> thanks for your time, very appreciated!
>
> - - Markus
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGcEtc1nS0RcInK9ARAodyAKDinL9O4ApOblYI8lsNL0HuT1BXgwCeMK5R
> 1gYWlgZkqJPRmxU+xZEq4qA=
> =CkSM
> -----END PGP SIGNATURE-----
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--- End Message ---
--- Begin Message ---
Using PHP 5.2.0 and I get this error:

Fatal error: Call to undefined function mb_list_encodings_alias_names() in /home/martin/prueba.php on line 3

But mb_list_encodings() works like a charm. What's wrong?

--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
---------------------------------------------------------
Lic. Martín Marqués         |   SELECT 'mmarques' ||
Centro de Telemática        |       '@' || 'unl.edu.ar';
Universidad Nacional        |   DBA, Programador,
    del Litoral             |   Administrador
---------------------------------------------------------

--- End Message ---
--- Begin Message ---
On Friday 15 June 2007 04:09, Martin Marques wrote:
> Using PHP 5.2.0 and I get this error:
>
> Fatal error: Call to undefined function mb_list_encodings_alias_names()
> in /home/martin/prueba.php on line 3
>
> But mb_list_encodings() works like a charm. What's wrong?

RTFM

-- 
Crayon

--- End Message ---
--- Begin Message ---
I'm looking for a form to allow people
to book an hour on a computer system.
Is there a standard PHP program for this?
Or can you point me to such a program, please?

-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--- End Message ---
--- Begin Message ---
All our folks here love MRBS.
http://webscripts.softpedia.com/script/E-Commerce/MRBS-24375.html

Just substitute 'computers' for locations/rooms...

David

On 6/14/07, Timothy Murphy <[EMAIL PROTECTED]> wrote:

I'm looking for a form to allow people
to book an hour on a computer system.
Is there a standard PHP program for this?
Or can you point me to such a program, please?

--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
all,

php5 has language-level classes that ship w/ many of the extensions.
PDO <http://www.php.net/manual/en/ref.pdo.php> is a primary example.
recently, through a sort-of round-about way, i have been working w/
the serialize function, which lead me to discover
It is not possible to serialize PHP built-in objects.
From the page <http://us2.php.net/manual/en/function.serialize.php> on the
serialize function.
What i would like to know is; are there any language-level classes
in the core or extensions of PHP4, or does it just allow user level
classes to be defined and thats it?

thanks,

-nathan

--- End Message ---
--- Begin Message ---
hi guys,
just supposing...

which is the right way to to count the number of code lines in a php
application?

do you think that the raw:
$ find . -name '*.php' -exec cat {} \; | wc -l
can be a good estimate?

just a curiosity: according to this criteria...
phpmyadmin ~ 120000 code lines
drupal ~ 60000
moodle ~ 500000
phpgroupware ~ 350000
joomla ~ 130000
phpBB ~ 45000

ciao,
ivan

--- End Message ---
--- Begin Message ---
On 6/15/07, Toni Torello <[EMAIL PROTECTED]> wrote:
hi guys,
just supposing...

which is the right way to to count the number of code lines in a php
application?

do you think that the raw:
$ find . -name '*.php' -exec cat {} \; | wc -l
can be a good estimate?

I recently desired to know a similar estimate of the project I was
working on and came up with essentially the same thing, but automated
it slightly further to encompass other file types also, this is the
(perl) script I came up with for your interest:

#!/usr/bin/perl -w

my @types = qw(php css xml xhtml html js sql);

foreach my $type (@types) {
   print "Lines in files of type: \t" . $type . ": ";
   my $command = "find . -name *.$type -type f -exec cat {} + | wc -l";
   print `$command`;
}

Not perfect but it's not bad. Keep in mind it wont see what is a
comment and what isnt for example..

Cheers

--- End Message ---
--- Begin Message ---
Robert,

Thank you for responding.
But to expound... :) Wikipedia issues a 301 (permanently moved) response
header (don't tell Richard Lynch ;) thus redirecting your browser to the
underscore version.
I won't tell Richard Lynch if you don't want me to.

Now that you've clarified what I'm looking for, I was able to dig up a little code on the 'net, at this site for instance:
http://www.beyondink.com/howtos/301-redirect.html

Where I got this code:

<?php
   header('HTTP/1.1 301 Moved Permanently');
   header('Location: http://www.new-url.com/');
?>

Of course I modified it slightly to fit my needs. But basically it seems to work like a charm so far.

Thanks for all your advice and assistance.

--
Dave M G
Ubuntu Feisty 7.04
Kernel 2.6.20-15-386

--- End Message ---

Reply via email to