Re: [PHP] Locking in PHP (Question for PHP Gurus)

2005-04-06 Thread Lars B. Jensen
I would use a cronjob to make the entry rather than a user, why let the poor guy wait for you to create the content You may have 2 requests both trying to create the new cache entry, but that is much cleaner than having to deal with locking. Do a tempnam() to get a temp file to write to and the

Re: [PHP] if question

2005-04-06 Thread Lars B. Jensen
> I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ... goes if ($variable%3 == 0) #do something -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com

Re: [PHP] Help with proper post method...

2005-04-05 Thread Lars B. Jensen
very quick and *very* dirty, put this in top of your file extract($_POST); and voila, you bypassed "registerglobals off" -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com

Re: [PHP] Anybody getting these also?

2005-04-05 Thread Lars B. Jensen
yep -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com - Original Message - From: "Andy Pieters" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 06, 2005

Re: [PHP] functions vs classes

2005-04-03 Thread Lars B. Jensen
many projects. It's precisely the same, if you include a file with your class or include a file with your functions, whats the difference ? none. -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.

Re: [PHP] PHP logo is freaked in phpinfo();

2005-03-31 Thread Lars B. Jensen
Is someone playing games with me I have a rabbit photo which has taken over the php logo in my phpinfo(), I also saw a dog in a logo on a mirror for the php manual :) Its kinda cute, interested how its done. yeah, we hacked your server and changed the logo ... just for the fun of it -- Lars B

Re: [PHP] Re: ISO encoding of subject in mail?

2005-03-29 Thread Lars B. Jensen
with mbstring functions, as some is buggy for some languages (in my case Japanese) -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] php-help

2005-03-09 Thread Lars B. Jensen
The manual to the rescue http://jp2.php.net/stripslashes There is alot of good information in the manual, think it would benefit you alot going through some of it, especially the central chapters -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resourc

Re: [PHP] php-help

2005-03-08 Thread Lars B. Jensen
The following should be pretty selfexplanatory * 0 * * * /usr/local/bin/php /usr/local/www/cron/sync.php -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com - Original Message -

Re: [PHP] function to remove all \" from a variable

2005-02-15 Thread Lars B. Jensen
The manual to the rescue http://jp2.php.net/stripslashes -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com - Original Message - From: "Tim Burgan" <[EMAIL PROTECTE

Re: [PHP] PHP 5 with Apache 2.0

2005-02-14 Thread Lars B. Jensen
I'm facing about 100k unique users a month running some 5 million pageviews with extensive load for the database - this backed on a single server with a Xeon processor and 2gb of memory. So from here, go for it mate -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premie

Re: [PHP] Zend Performance Suite 3.6 and PHP5

2005-01-25 Thread Lars B. Jensen
Thx Matthew, Meanwhile I got the software from Zend and tried to install it on my server. After manipulating some files to make the install script run, it segfaults later in the install. It seems, 3.6 isnt forward compatible and I've given up to install the product on the new server. Pricing fo

[PHP] Zend Performance Suite 3.6 and PHP5

2005-01-23 Thread Lars B. Jensen
to be "on vacation") With the "Zend Platform" out of the way, should I look more toward eg. the APC ? -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com -- PHP Gener

Re: [PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Lars B. Jensen
I am just curious why you do not upgrade to the latest stable 2.6.0-pl3? Because, any version in any patch level since 2.5.7-pl1 doesnt display shift-jis (japanese) properly - or anyway on my system. They seem to have broken the support for it, since that specific version. / Lars -- PHP Genera

Re: [PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Lars B. Jensen
Just a quick note, this seems to be a bug in phpMyAdmin since 2.5.7-pl1 - I submitted a bug report on the sourceforge website and awaits them to handle it. / Lars -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Lars B. Jensen
didnt really find anything on it ? I did as a test update the phpmyadmin sourcecode to force shift_jis charset rather than UTF8 which it seems to prefer, to no apparent difference. -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for englis

Re: [PHP] Re: Fw: Identify which function called another

2005-01-13 Thread Lars B. Jensen
Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ? I still question whether its correct to design a function which requires this. I thought the idea of encapsulating code inside a function is that its non-dependent/bla

[PHP] Fw: Identify which function called another

2005-01-12 Thread Lars B. Jensen
Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ? In code, something like where I would like to have function c identify if it was called by function a or b -- Lars B. Jensen, Internet Architect CareerCross

[PHP] Identify which function called another

2005-01-12 Thread Lars B. Jensen
Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ? In code, something like where I would like to have function c identify if it was called by function a or b -- Lars B. Jensen, Internet Architect CareerCross

Re: [PHP] $_GET & $_POST simultaneously

2005-01-11 Thread Lars B. Jensen
Is it just me or ... why on earth would you want to populate both GET and POST arrays through this obscure way of coding ? If you really have a form where you dont have a clue wether your data comes from GET or POST, it should be way less effort to copy one array to another or have a lookup fun

Re: [PHP] Super newbie question....

2004-12-21 Thread Lars B. Jensen
First of all, use Second, you dont need the two lines, write the following to get the space And you should have your nicely formatted name right there / LJ www.ljweb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Possible to make $$ distributing PHP as Shareware?

2004-12-15 Thread Lars B. Jensen
Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php