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
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
"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
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?
>
>
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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!
> > -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
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
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
slashes it gets messed-up:
>
> ' ' \ \
>
>
> So my question is if this is a normal behaviour for PHP+MYSQL or it may
> vary indiffer
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
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
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
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 +
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
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
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
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
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
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
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
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
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
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 [
$_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
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
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
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.
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
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
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
$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
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
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
&
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
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
-- 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.
> >
>
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:
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
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
>
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
57 matches
Mail list logo