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!
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
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
Speed difference is substantial:
### Test 1:
$message1 = asdf werqwe;
for ($i=0; $i1000; $i++) {
$message2 = $message1;
}
### Takes 1,1 seconds (on machine tested)
### Test2:
$message1 = asdf werqwe;
for ($i=0; $i1000; $i++) {
$message2 = $message1;
}
### Takes 2,4 seconds (on
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 master
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
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:
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
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 00:00,
Or OpenID.
b.
On 2 December 2010 11:48, Ken Guest k...@linux.ie wrote:
On Thu, Dec 2, 2010 at 8:06 AM, AmirBehzad Eslami
behzad.esl...@gmail.comwrote:
Dear list,
We have dozen of applications, mostly written in PHP and Python.
They're distributed on different servers, but i'm trying to
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:
This works, but SSL-enabled socket connection does not. Will craft a
short script ASAP.
b.
On 22 March 2011 11:37, Richard Quadling rquadl...@gmail.com wrote:
On 22 March 2011 01:21, Bostjan Skufca bost...@a2o.si wrote:
Hi all,
is anyone else experiencing SSL connectivity issues with PHP
daemon-related purposes. And when it was changed
to true the functionality was restored.
b.
On 22 March 2011 13:14, Bostjan Skufca bost...@a2o.si 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
to one server
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 rad...@circlepix.com wrote:
I decided to try changing the session.save_path, and
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?
-
solution with as little inconvenience
as possible,
b.
On 28 March 2011 21:27, Nathan Nobbe quickshif...@gmail.com wrote:
On Mon, Mar 28, 2011 at 12:38 PM, Bostjan Skufca bost...@a2o.si wrote:
Xinetd will definitely be faster way than coding your daemon in PHP.
In this case:
You have to consider
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 your delay is comming
from? If
you are using apache, make it create just one child and strace
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 bost...@a2o.si wrote:
Great, please report back if/when you discover the cause.
Meanwhile doing man 2 flock yields info about ENOLCK
Seems like session file locking did not work before :)
b.
On 29 March 2011 01:00, Rob Adams rad...@circlepix.com wrote:
From: Bostjan Skufca bost...@a2o.si
When you say you installed php 5.3.x and then reverted to 5.2, did you
reinstall/upgrade OS and/or kernel too?
Yes. The old servers
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 cur...@maurand.com wrote:
Nathan Nobbe wrote:
On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca bost...@a2o.si wrote:
If you need high performance
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 rad...@circlepix.com wrote:
On 3/28/2011 3:40 PM, Bostjan Skufca wrote:
Great, please report back if/when you discover the cause.
After searching for some
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
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 your
this. The server is not configured or it's all about the script?
- Original Message -
From: Bostjan Skufca @ domenca.com [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Wednesday, May 11, 2005 1:50 PM
Subject: Re: [PHP] MySql injections
Probably you mean about prevening mysql
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: php-general@lists.php.net
Sent: Wednesday, May 11, 2005 1:50 PM
Subject: Re: [PHP] MySql injections
or versions of both php or mysql.
It's not a bad thing to be like that but I wonder if my code will behave
the same at most systems.
Thank you very much
--
Best regards,
Bostjan Skufca
system administrator
Domenca d.o.o.
Phone: +386 4 5835444
Fax: +386 4 5831999
http://www.domenca.com
--
PHP
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 alternative
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 as filesystem?
a. why would
-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.net/)
To
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
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
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
$_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 php5 onto my
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
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 sent
letters.)
if(preg_match('/^[a-zA-Z]{0,6}$/',$string))
{ echo 'good'; }
else
{ echo 'bad'; }
Change to {1,6} if you want to ensure the string isn't empty.
--
Best regards,
Bostjan Skufca
system administrator
Domenca d.o.o.
Phone: +386 4 5835444
Fax: +386 4 5831999
http
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
+++@
=
==
--
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
etc.
regards,
Bostjan
On Wednesday 02 March 2005 20:09, Richard Lynch wrote:
Bostjan Skufca @ domenca.com wrote:
From system security's standpoint:
?php
$content = file_get_contents('http://www.domain.net/file.inc');
echo $content;
?
is OK, but
?php
include('http
/
configuration, make and make install worked but I there is still no
imaps support...
what am I doing wrong?
Brona
--
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
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
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 apache2 + php5
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
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 + $c;
}
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
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
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
(which is of course dead
, '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 register_shutdown_function(array($this, 'myfunc'));
#2
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
Hello,
If I create form like this
form name=form action=##_URI_ROOT##/entity/edit.php?a=b method=post
input type=hidden name=action value=modify /
...
both arrays contain appropriate variables when submitted:
::: $_GET :::
Array
(
[a] = b
)
::: $_POST :::
Array
(
[action] =
value.
/ Lars
- Original Message -
From: Bostjan Skufca @ domenca.com [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Tuesday, January 11, 2005 5:42 PM
Subject: [PHP] $_GET $_POST simultaneously
Hello,
If I create form like this
form name=form action=##_URI_ROOT##/entity
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
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 4 5835444
Fax: +386 4 5831999
http
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
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
and 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: [EMAIL PROTECTED]
Sent: Friday, September 24, 2004
Well,
it could hardly mean that it is installed as sapi wouldn't it?
On Friday 24 of September 2004 10:19, Binay wrote:
correct
It show Server API CGI.
So does it mean PHP is installed as CGI and not the apache module?
Thanks
Binay
- Original Message -
From: Bostjan Skufca
57 matches
Mail list logo