The Apache 2.4 modules php5apache2_4.dll for PHP 5.2, 5.3 and 5.4 are available
at:
http://www.apachelounge.com/
Steffen
The module php5apache2_3.dll for Apache 2.3.15 with PHP version 5.4.0RC2,
5.3.9RC2 and 5.3.8 now available.
See http://www.apachelounge.com/viewtopic.php?p=19861
Steffen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Aug 16, 2007 at 09:50:30PM +0800, hshh wrote:
I try to disable eval() function in php script, but
failed. In php.ini disable_functions=eval is not work,
but other functions.
So, is it possible to disable eval()? Thanks.
It don't work because eval() isn't a function.
The Suhosin
= array (0,1,2,3,4,5,6,7,8,9,@);
$wash = str_replace($dirt, null, $filename);
?
otherwise
?php
$wash = preg_replace('/([EMAIL PROTECTED])@[^.]*(.+)/', \\1\\2, $filename);
?
Regards
Steffen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
()
instead.
?php
$foo = preg_split('/\[(.*)\]+|\./U',
foo.bar[ab.cd].baz,
-1,
PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY);
var_dump($foo);
?
Seems to work as intended. Hope I could help.
Regards
Steffen
--
PHP General Mailing List (http://www.php.net
can find a table explaining the PHP_INI_*-values.
Also you should use php_flag to set a boolean configuration directive.
http://php.net/manual/en/configuration.changes.php#configuration.changes.apache
--
Steffen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
As far as I tested, the regular expression works how it is
intended to work.
Maybe this a touch easier to read line do it for you:
elseif (preg_match('|[EMAIL PROTECTED]*();:_. /\t-]|', $comment))
On Sat, Feb 17, 2007 at 09:27:59AM -0500, Beauford wrote:
Hi,
I previously had some
Addendum: I encountered a problem when the string contains linebreaks. Maybe
adding \n\r into the brackets fixes your problem.
On Sat, Feb 17, 2007 at 09:27:59AM -0500, Beauford wrote:
Hi,
I previously had some issues with preg_match and many of you tried to help,
but the same problem
It's 6.2 but PHP 4.4.4.
Basically, I'm not getting any error. The expression just don't match. I
don't know if it should or not.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It's more secure to begin with converting the string using
htmlentities() and reconverting allowed tags afterwards.
See
http://alistapart.com/articles/secureyourcode
http://alistapart.com/articles/secureyourcode2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
By using something like
$var = preg_replace(
!lt;(i|b|small|big|code)gt;(.+)lt;/\\1gt;!isU,
\\1\\2/\\1, $var);
you can accomplish a solution where only closed tags
will be reconverted.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
You have to use preg_match_all()
if (preg_match_all(!\(.+)\!sU, $var, $match))
On Sat, Feb 03, 2007 at 12:36:59PM -0500, Manolet Gmail wrote:
Hi, i have a problem using regex, i want to get all the text between
so i try this...
$subject = 'menu Archer?,-,Chief?,L_Menu2,Big
I don't know, but http://php.net/manual/en/function.ereg.php says
Note: preg_match(), which uses a Perl-compatible regular expression
syntax, is often a faster alternative to ereg().
On Sat, Feb 03, 2007 at 01:58:50PM -0500, Manolet Gmail wrote:
anyway, PCRE is better that ereg?
Side note:
$exp = explode('', $var);
foreach ($exp as $key = $val) if ($key%2!=0) $arr[] = $val;
var_dump($arr);
works without regular expressions.
--
Steffen
On Sat, Feb 03, 2007 at 12:36:59PM -0500, Manolet Gmail wrote:
Hi, i have a problem using regex, i want to get all the text
This always works for me:
if (preg_match_all(!\(.+)\!sU, $var, $match))
{
for ($i=0; $icount($match[0]); $i++)
{
$old = $match[1][$i];
$new = preg_replace(!\|| !, _, $old);
$var = str_replace(\$old\, \$new\, $var);
}
}
On Fri, Feb 02, 2007 at 07:30:37PM +0100, Sébastien WENSKE
Maybe you just mistyped that, but this would *probably* also match on s=
or bar=, cause [ and ] are metacharacters.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, Feb 02, 2007 at 09:01:38PM +0100, Steffen Ebermann wrote:
$new = preg_replace(!\|| !, _, $old);
Heyha, the mail's subject gone obsolete. preg_replace isn't
necessary at all.
Better use: $new = str_replace(array (|, ), _, $old);
--
PHP General Mailing List (http://www.php.net
Hello,
I want to provide two input text fields lastname and firstname and if the user
pushes the submit button the generated url should be
...?name=firstname_lastname.
Is this possible and how?
Thank you for helping a php newbie.
Steffen Mazanek
--
Hermann-Löns-Straße 3
53840 Troisdorf
();
}
@unlink($path . $tz .'sess_'. $sess_id );
}
*/
---
PGP Public Key: www.rt31x-tutorial.de/php/Steffen Stollfuss_pub.asc
---
Hehe why break your brain- give the class an id property - then you can
have a getid method and do something like this
$id = $this-getid();
$this-fpLog = fopen($id.log,w+);
get_object_vars only seems to return properties so its not gonna help
you.
I'm currently working on an object thang as
?
Thanks
Will
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 13 September 2002 08:41 AM
To: [EMAIL PROTECTED]
Cc: timo stamm; Will Steffen
Subject: Re: [PHP] Need some help with array sorting
Hi Will,
You need a customized sort. Have a look at uasort
Use
a href=bug_detail_user.php?id=$idreporter_id=$reporter_id
Some reading around post methods and passing data between scripts might
be in order to familarize yourself with all the syntax etc.
Hope this helps
--Will
-Original Message-
From: Meltem Demirkus [mailto:[EMAIL
Ahem *tap* *tap* is this thing on?
Hi everyone, my name is Will and I've been addicted to php for 3 months
and 21 days... *grin*
I'm hitting a bit of a brick wall in a current project - the answer is
probably quite simple, but I'm still newish to php and coding in general
so bear with me:
I
Heh - I know how you feel.
I'm an ex network tecchie fighting my way through a career change to web
developer - spent some time messing with various scripting tools and so
forth, but never really had any formal coding experience until I hit php
- if you want some advice on learning php mine is
Heh good so you're not a complete n00b then :P Luckily I had a fairly
decent grounding in html and css as well when I got going - I'm just
putting the finishing touches on my first serious project atm using OO
style php which made the learning curve about 10 times steeper as I had
no previous
th realtiv and absolute paths and the permissions are ok.
Can someone tell me what I'm doing wrong?
Thx :)
Ciao
Steffen
---
+---+
| Steffen Wieschalla|
| e-mail: [EMAIL
26 matches
Mail list logo