Re: [PHP] Doctrine madness!

2011-06-17 Thread Bostjan Skufca
Not the original poster's response, but here PHP daemons also run smoothly. Full fledged OO style programming, with a bit of a thought about freeing unused variables/objects (running since PHP 5.2 times) it runs smoothly and in couple of weeks of uptime only gains few MB of memory footprint. Not he

Re: [PHP] Re: Slow sessions.

2011-03-30 Thread Bostjan Skufca
Nice of you to post the resolution of your problem. Glad to hear it is fixed now. Take care, b. On 30 March 2011 17:46, Rob Adams wrote: > On 3/28/2011 3:40 PM, Bostjan Skufca wrote: > >> Great, please report back if/when you discover the cause. >> > > After search

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Bostjan Skufca
"It works pretty well until its under attack by the spammers." Can you elaborate/explain further? b. On 29 March 2011 01:14, Curtis Maurand wrote: > > > Nathan Nobbe wrote: > > On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca wrote: > > > >> If you ne

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Bostjan Skufca
Seems like session file locking did not work before :) b. On 29 March 2011 01:00, Rob Adams wrote: > From: "Bostjan Skufca" > >When you say you "installed php 5.3.x and then reverted to 5.2", did you > reinstall/upgrade OS and/or >kernel too? > >

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Bostjan Skufca
When you say you "installed php 5.3.x and then reverted to 5.2", did you reinstall/upgrade OS and/or kernel too? b. On 28 March 2011 23:40, Bostjan Skufca wrote: > Great, please report back if/when you discover the cause. > > Meanwhile doing "man 2 flock" yields i

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Bostjan Skufca
ly thought > it might be a php issue. I think I'm making progress on it now though. > > -- Rob > > > > On 3/28/2011 12:08 PM, Rob Adams wrote: > >> On 3/26/2011 11:07 AM, Bostjan Skufca wrote: >> >>> Can you strace it's execution and see where

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Bostjan Skufca
rking solution with as little inconvenience as possible, b. On 28 March 2011 21:27, Nathan Nobbe wrote: > On Mon, Mar 28, 2011 at 12:38 PM, Bostjan Skufca wrote: > >> Xinetd will definitely be faster way than coding your daemon in PHP. >> > > In this case: > >> You

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Bostjan Skufca
Xinetd will definitely be faster way than coding your daemon in PHP. You have to consider many other things as well: - do your worker processes run under various UIDs (do they do setuid/setgid)? - do your workers die after processing each request/client or do they process multiple connections? - d

Re: [PHP] Re: Slow sessions.

2011-03-26 Thread Bostjan Skufca
Can you strace it's execution and see where your delay is comming from? If you are using apache, make it create just one child and strace that one when you generate a request. b. On 25 March 2011 19:01, Rob Adams wrote: > I decided to try changing the session.save_path, and I've had some > int

Re: [PHP] SSL issues

2011-03-22 Thread Bostjan Skufca
or various daemon-related purposes. And when it was changed to true the functionality was restored. b. On 22 March 2011 13:14, Bostjan Skufca wrote: > Will be more verbose ASAP, openssl is 0.9.8r... Just checked, > connection to mail.google.com works, seems this is an issue specific > t

Re: [PHP] SSL issues

2011-03-22 Thread Bostjan Skufca
This works, but SSL-enabled socket connection does not. Will craft a short script ASAP. b. On 22 March 2011 11:37, Richard Quadling wrote: > On 22 March 2011 01:21, Bostjan Skufca wrote: >> Hi all, >> >> is anyone else experiencing SSL connectivity issues with PHP 5.3

[PHP] SSL issues

2011-03-21 Thread Bostjan Skufca
Hi all, is anyone else experiencing SSL connectivity issues with PHP 5.3(.5|6)? PHP 5.2.17 compiled identically on the same system with the same config file connects to remote SSL-enabled host just fine, whereas PHP 5.3 (only tried .5 and .6) does not. Error message: Warning: stream_socket_client

Re: [PHP] Centralizled Authentication

2010-12-02 Thread Bostjan Skufca
Or OpenID. b. On 2 December 2010 11:48, Ken Guest wrote: > On Thu, Dec 2, 2010 at 8:06 AM, AmirBehzad Eslami > wrote: > >> Dear list, >> >> We have dozen of applications, mostly written in PHP and Python. >> They're distributed on different servers, but i'm trying to integrate them >> somehow.

Re: [PHP] PHP Email Question

2010-09-19 Thread Bostjan Skufca
You should format the email message content first, like this: $msgContent = "Name: ". $values['name'] ."\n"; $msgContent .= "Address: ". $values['address'] ."\n"; Then you should send a this content, like this: mail('em...@address.com', 'Subject', $msgContent, "From...); b. On 20 September 2010

Re: [PHP] php cli question

2010-09-15 Thread Bostjan Skufca
Here are the results I got when question of migration from apache to nginx was brought up: http://blog.a2o.si/2009/06/24/apache-mod_php-compared-to-nginx-php-fpm/ (BTW there is some FPM in main PHP distribution now) As for resource management, I recommend looking at php sources (Zend/zend_alloca.c

Re: [PHP] Standalone WebServer for PHP

2010-09-13 Thread Bostjan Skufca
I would recommend using nanoserv, it looks more mature. But personally I use my own, which I have developed because I wanted to know how to do it. And because I needed it to do some specific tasks on linux servers which I did not want to mix with apache configuration etc. Here: http://github.com/b

Re: [PHP] HTTPS SSL

2010-09-02 Thread Bostjan Skufca
You should look up something like "openssl how to create self signed certificate" on google. Once cert is created, you should look up "apache ssl howto". The rest is just following instructions intelligently. Or use a consulting company. b. PS: This has nothing to do with PHP, in case you haven't

Re: [PHP] Secure Communication?

2010-08-29 Thread Bostjan Skufca
Hi tedd! Reading this thread I assume you are doing RPC stuff when you are expressing yourself as "the access" to database, which normaly describes direct access to database. In your case, you should divide the phrase "hacked server" into two separate types of incidents (let's talk about your "ma

Re: [PHP] two questions on serverside validation

2010-08-25 Thread Bostjan Skufca
Speed difference is substantial: ### Test 1: $message1 = "asdf werqwe"; for ($i=0; $i<1000; $i++) { $message2 = $message1; } ### Takes 1,1 seconds (on machine tested) ### Test2: $message1 = "asdf werqwe"; for ($i=0; $i<1000; $i++) { $message2 = "$message1"; } ### Takes 2,4 seconds

Re: [PHP] mod_php

2010-08-20 Thread Bostjan Skufca
Yes, this is correct. If you look at sapi/apache2handler/sapi_apache2.c in PHP sources, you will find that PHP SAPI registers it's function php_handler() within apache. This function gets called every time PHP is requested by some client (with appropriate configuration, of course). I must admit t

[PHP] Resource logging PHP extension

2010-08-13 Thread Bostjan Skufca
Hi all! I just wanted you to know that I've created an extension which does resource logging for each pageload. Works with 5.2.14 and 5.3.3 versions of PHP, tested with Apache and CLI sapis. It logs PHP memory consumption, real time spent, cpu time spent (user and sys, in jiffies), page faults et

[PHP] Safe mode subdirectory workaround patch

2005-07-29 Thread Bostjan Skufca
Hi everyone, I created a patch which enables subdirectories to be created and used even if PHP is running with safe mode enabled (common problem on shared hosts where Apache/PHP runs as user 'nobody' or 'www'). Patch can be found here: http://www.lenivec.com/php/patches/ Comments are welcome!

Re: [PHP] safe mode

2005-07-28 Thread Bostjan Skufca @ domenca.com
> > -Original Message- > > From: Kim Madsen [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 28, 2005 12:01 PM > > > > I would *never* host anything on a server with safe_mode on! What are your reasons for this decision? regards, Bostjan -- PHP General Mailing List (http://www.php.ne

Re: [PHP] php + cvs

2005-05-31 Thread Bostjan Skufca @ domenca.si
a. It would create a posibility to run application directly from CVS if http server would have access to it b. details :)) On Tuesday 31 May 2005 18:06, Jochem Maas wrote: > Bostjan Skufca @ domenca.com wrote: > > Hello, > > > > is it possible to mount CVS/SVN repository

Re: [PHP] php + cvs

2005-05-31 Thread Bostjan Skufca @ domenca.com
Hello, is it possible to mount CVS/SVN repository as filesystem? regards, Bostjan On Tuesday 31 May 2005 15:46, M. Sokolewicz wrote: > Marcus Bointon wrote: > > On 31 May 2005, at 09:58, Jochem Maas wrote: > >> Also I hear lots of good things about subversion (SVN), which is a > >> newer altern

Re: [PHP] mysql + addslashes + stripslashes

2005-05-16 Thread Bostjan Skufca @ domenca.com
slashes it gets messed-up: > > ' ' \ \ > > > So my question is if this is a normal behaviour for PHP+MYSQL or it may > vary indiffer

[PHP] Re: [SPAM] Re: [PHP] MySql injections....

2005-05-12 Thread Bostjan Skufca @ domenca.si
our sql statement) > > > 4. All the above assumes you have already assessed potential remote file > inclusion vulnerabilities. > > > Regards, > Bostjan > > On Wednesday 11 May 2005 14:15, [EMAIL PROTECTED] wrote: > > I have a site and the other days i rec

Re: [PHP] MySql injections....

2005-05-11 Thread Bostjan Skufca @ domenca.com
y site is vulnerable to mysql injections. I do not know how can i > prevent this. The server is not configured or it's all about the script? > > > - Original Message - > From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]> > To: > Sent: Wed

Re: [PHP] MySql injections....

2005-05-11 Thread Bostjan Skufca @ domenca.com
Probably you mean about "prevening mysql injections" - or not? :) Bostjan On Wednesday 11 May 2005 11:38, [EMAIL PROTECTED] wrote: > Hi, > This is not the proper list to put this question but i hope you can help > me. Does anyone know a good tutorial about mysql injections? > > Thanks a lot for

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Bostjan Skufca @ domenca.com
function add ($a=1, $b=2, $c=3) { return $a + $b + $c; } add(1, null, 1); will do just fine r., Bostjan On Thursday 28 April 2005 14:16, Marek Kilimajer wrote: > Vedanta Barooah wrote: > > Hello All, > > Cosider this : > > > > function add($a=1,$b=2,$c=3){ > > return $a + $b +

Re: [PHP] slow session_start()

2005-04-07 Thread Bostjan Skufca @ domenca.com
If you trace (strace on linux) the process which serves your request you should get some idea. On Thursday 07 April 2005 20:23, Arshavir Grigorian wrote: > Hi, > > I am getting 4-5 minute delays when I call the session_start() function > in one of my scripts, I reduced it to a small script that

Re: [PHP] php 4 & php 5

2005-03-17 Thread Bostjan Skufca @ domenca.com
Versioned libraries do not work either. Bostjan On Wednesday 16 March 2005 23:11, Rasmus Lerdorf wrote: > Kim Madsen wrote: > > -Original Message- > > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 15, 2005 4:05 AM > > > >>>That's why I'd like to stick with apach

Re: [PHP] php 4 & php 5

2005-03-17 Thread Bostjan Skufca @ domenca.com
Abandon all your hopes, this will not work (unless you do some heavy programming/patching) because modules interfere with each other. I've been trying this for a week without success. Still the best/easiest approach is to set up ordinary apache/PHP4 server combination with proxy support compile

Re: [PHP] IMAP with ssl support

2005-03-14 Thread Bostjan Skufca @ domenca.com
igure file with > > as > > ./configure --with-imap=/usr/src/php5/imap/ --with-openssl > --with-imap-ssl=/usr/src/php5/imap/ > > configuration, make and make install worked but I there is still no > imaps support... > > what am I doing wrong? > > > Brona -- Bes

Re: [PHP] patch to php 4.3.10 to disabling URL wrappers in include like statements

2005-03-03 Thread Bostjan Skufca @ domenca.si
risks etc. regards, Bostjan On Wednesday 02 March 2005 20:09, Richard Lynch wrote: > Bostjan Skufca @ domenca.com wrote: > > From system security's standpoint: > > > > > $content = file_get_contents('http://www.domain.net/file.inc'); > > echo $con

Re: [PHP] patch to php 4.3.10 to disabling URL wrappers in include like statements

2005-03-02 Thread Bostjan Skufca @ domenca.com
66AB 6F56 / $ID: > > 66AB6F56 GCS d-(?) s: a- C++ ULHISC*$ P+++> L+++$> E--- W+++$ > > N++(+) !o !K w(---) !O !M V PS+ PE Y+ PGP++ t+@ !5 X? R tv b+ !DI D+ G > > e>+++ h r+++ z+++@ > > = > >== -- Best regards, Bostjan Skufca system administrator Domenca d.o.o. Phone: +386 4 5835444 Fax: +386 4 5831999 http://www.domenca.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP slowness

2005-02-26 Thread Bostjan Skufca @ domenca.com
Create profiling information for your application with pear's Timer class or something similar. regards, Bostjan On Saturday 26 February 2005 11:50, Gerard wrote: > > Hi there, just for testings sake, you should get a script that figures > > out the page generation time for a php script... As

Re: [PHP] String validation

2005-02-23 Thread Bostjan Skufca @ domenca.com
cters long and > >> only contains alpha characters (no numbers, spaces, periods, hyphens, > >> or anything else, just letters.) > > > > if(preg_match('/^[a-zA-Z]{0,6}$/',$string)) > > { echo 'good'; } > > else > > { echo 'bad

Re: [PHP] Maximum number of emails in mail() command

2005-02-21 Thread Bostjan Skufca @ domenca.com
Mailserver is the limit. regards, B On Monday 21 February 2005 10:22, Dave wrote: > PHP General, > > The Situation: > I would like to set up a few newsletters that goes out to people > listed in a MySQL database by sending the message from a web form > generated by PHP. The mail will be

Re: AW: [PHP] Determine SERVER_NAME

2005-02-13 Thread Bostjan Skufca @ domenca.com
php_uname() B. On Sunday 13 February 2005 20:37, Gerard Samuel wrote: > Mirco Blitz wrote: > >Probably the Global Variable $SERVER_NAME helps you out. > > The global variable $SERVER_NAME is not available via cli > (at least for me) > > >-Ursprüngliche Nachricht- > >Von: Gerard Samuel [

Re: [PHP] updated php $_GET

2005-02-13 Thread Bostjan Skufca @ domenca.com
$_GET[section] is slower than $_GET['section'], and quite significantly! B. On Saturday 12 February 2005 14:16, Jacco Ermers wrote: > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Jacco Ermers wrote: > >> Hello everyone, > >> > >> I recently installed p

Re: [PHP] fsockopen: fetching url

2005-02-13 Thread Bostjan Skufca @ domenca.com
HTTP 1.0 does not support virtual hosts. B. On Friday 11 February 2005 18:04, [EMAIL PROTECTED] wrote: > I'm using code below to fetch content from the url. > This code was worked properly on two servers I tested but it want worked on > the > designated one, so after getting error message I

Re: [PHP] Shared variable

2005-02-09 Thread Bostjan Skufca @ domenca.com
Is > there any way without using a file or a database? > > Mario -- Best regards, Bostjan Skufca system administrator Domenca d.o.o. Phone: +386 4 5835444 Fax: +386 4 5831999 http://www.domenca.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fsockopen

2005-02-02 Thread Bostjan Skufca @ domenca.com
Last two examples are fine as connection is obviously established, it is the communication with server that is causig an error. Read http protocol documentation. You do not want such a degree of control over communication you can just use file_get_contents($url); where $url is "http(s)://your.

Re: [PHP] php editor

2005-01-14 Thread Bostjan Skufca @ domenca.com
1. Does anybody know an editor that supports Smarty tags natively or via some sort of custom extension/configuration? 2. Does anybody use Scite (for Un*x) or SciteFlash (for Windows)? I prefer it's clean and lightweight interface (once properly configured)... Regards, Bostjan On Thursday 13

Re: [PHP] $_GET & $_POST simultaneously

2005-01-11 Thread Bostjan Skufca @ domenca.com
r have a lookup function to return the given value. > > / Lars > > ----- Original Message - > From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, January 11, 2005 5:42 PM > Subject: [PHP] $_GET & $_POST

[PHP] $_GET & $_POST simultaneously

2005-01-11 Thread Bostjan Skufca @ domenca.com
Hello, If I create form like this ... both arrays contain appropriate variables when submitted: ::: $_GET ::: Array ( [a] => b ) ::: $_POST ::: Array ( [action] => modify ... ) Now what I am interested in is if this is valid behaviour regarding HTTP specification

Re: [PHP] register_user_func and register_shutdown_func

2004-12-15 Thread Bostjan Skufca @ domenca.com
$myObj, 'myInc')); $myObj->myEcho(); ?> produces output: 1 2 2 1 2 3 On Wednesday 15 December 2004 08:28, Bostjan Skufca @ domenca.com wrote: > Hi all, > > is there any internal difference between following calls (they occur inside > some class)? > > #1 regis

[PHP] register_user_func and register_shutdown_func

2004-12-14 Thread Bostjan Skufca @ domenca.com
s" in example #1 forced to be taken as reference internally, which makes both calls basically identical? Thank you for your kind response. Best regards, Bostjan Skufca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache segmentation faults

2004-10-18 Thread Bostjan Skufca @ domenca.com
segfaults? On Monday 18 of October 2004 08:03, Curt Zirzow wrote: > * Thus wrote Bostjan Skufca @ domenca.com: > > Hello, > > > > every now and then I notice in apache logs there were few segmentation > > faults (on a daily basis) and all I am stuck with is PID of that process &

[PHP] Apache segmentation faults

2004-10-17 Thread Bostjan Skufca @ domenca.com
Hello, every now and then I notice in apache logs there were few segmentation faults (on a daily basis) and all I am stuck with is PID of that process (which is of course dead by then) and nothing about what it was doing. Is there any way to figure out what request that apache process was servi

Re: [PHP] Using php4 AND php5

2004-10-04 Thread Bostjan Skufca @ domenca.com
Compile another apache apache with php5 and make it listen on port 81, use different pid file and different error_log, recompile your current apache with modules mod_rewrite and mod_proxy and mod_proxy_http enabled. Then make current apache forward all .php5 requests to second apache via proxy m

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Bostjan Skufca @ domenca.com
-- Original Message - > From: "Bostjan Skufca @ domenca.si" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, September 24, 2004 1:21 PM > Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility > > > Look at phpinfo() output. > > >

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Bostjan Skufca @ domenca.si
loaded modules) lp, B On Friday 24 of September 2004 09:01, Binay wrote: > So how to check whether php is installled as Apache module or CGI mode? > > Thanks > - Original Message ----- > From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]> > To:

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Bostjan Skufca @ domenca.com
It works on php 4.3.8 and 4.3.9 fine (as server module it does, it does not work as cgi though - as page states) lp, Bostjan On Friday 24 of September 2004 08:29, Binay wrote: > Hi > > I don't need everything i.e encoder, optimizer, accelerator etc. What i > need is Loader which can decode the

Re: [PHP] Apache 2 and php 5 compatibility

2004-09-23 Thread Bostjan Skufca @ domenca.com
We use php4 and php5 with apache2 on production servers without any problem (prefork MPM). worker MPM could be a problem though... regrds, Bostjan On Thursday 23 of September 2004 10:28, Frédéric Hardy wrote: > Hello - > > I known that using apache 2 with php 4.x is not a good idea, because >

Re: [PHP] php4 and php5 on the same apache server

2004-09-13 Thread Bostjan Skufca @ domenca.com
ation/x-httpd-php .php > AddType application/x-httpd-php5 .php5 > And somehow tell php5 to use application/x-httpd-php5 > > -- > Best regards, Jacob Friis Larsen > www.webcom.dk | www.journster.com -- Best regards, Bostjan Skufca system administrator Domenca d.o.o. Phone: +386