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.net/) To

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 alternative

Re: [PHP] mysql + addslashes + stripslashes

2005-05-16 Thread Bostjan Skufca @ domenca.com
I do the following way to achieve portability: For GET/POST/COOKIE variables: 1. check magic_quotes_gpc PHP setting - if enabled strip slashes from input variables using stripslashes() 2. check input/anything 3. prior building SQL query escape stuff (mysql - mysql_real_escape_string(), others

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 your

Re: [PHP] MySql injections....

2005-05-11 Thread Bostjan Skufca @ domenca.com
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

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 + $c; }

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
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

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 apache2 + php5

Re: [PHP] IMAP with ssl support

2005-03-14 Thread Bostjan Skufca @ domenca.com
For Imapd: make slx cp imapd/imapd /usr/local/sbin/ cd c-client cp c-client.a /usr/local/lib/libc-client.a cp rfc822.h /usr/local/include/ cp mail.h /usr/local/include/ cp linkage.h /usr/local/include/ For PHP: add just '--with-imap' '--with-imap-ssl' regards, Bostjan On Friday 11

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

2005-03-02 Thread Bostjan Skufca @ domenca.com
From system security's standpoint: ?php $content = file_get_contents('http://www.domain.net/file.inc'); echo $content; ? is OK, but ?php include('http://www.domain.net/file.inc'); ? is NOT! Nice patch, Tom, will probably use it myself too... regards, Bostjan On Wednesday 02 March 2005

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
or if you aren't into regex (which I find confusing and still am trying to learn): Read the book Mastering Regular Expressions or first 300 pages of it - trust me, it is worth the labour (personal experience)! On Wednesday 23 February 2005 07:44, Ligaya Turmelle wrote: if

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 sent

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] 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 php5 onto my

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] Shared variable

2005-02-09 Thread Bostjan Skufca @ domenca.com
SHM On Wednesday 09 February 2005 14:51, Mario Stiffel wrote: Hello. Is there any oppertunity to create varaibles that can accessed by more than one instances? I need a way to communicate between many php-instances. It can be, that they are not active to the same time. Is there any way

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

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

[PHP] $_GET $_POST simultaneously

2005-01-11 Thread Bostjan Skufca @ domenca.com
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] =

Re: [PHP] $_GET $_POST simultaneously

2005-01-11 Thread Bostjan Skufca @ domenca.com
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

Re: [PHP] register_user_func and register_shutdown_func

2004-12-15 Thread Bostjan Skufca @ domenca.com
, '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

[PHP] register_user_func and register_shutdown_func

2004-12-14 Thread Bostjan Skufca @ domenca.com
Hi all, is there any internal difference between following calls (they occur inside some class)? #1 register_shutdown_function(array($this, 'myfunc')); #2 register_shutdown_function(array($this, 'myfunc')); (note the reference operator in #2) Or is parameter $this in example #1 forced to be

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 (which is of course dead

[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

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

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] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Bostjan Skufca @ domenca.com
as Apache module or CGI mode? Thanks - Original Message - From: Bostjan Skufca @ domenca.com [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 24, 2004 12:30 PM Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility It works on php 4.3.8

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
Hello Jacob, i've been trying to achieve the very same result but without success. I tried even modifying sources of sapi/apache2(handler|filter)/sapi_apache2.c and relatives but without success. Mime type can be modified without any problem and it compiles fine but then when I tried to parse