$find = "hi";
$contents = implode(null, file($logfile));
$contents = preg_replace("/($find)/i", "\\1", $contents);
echo $contents;
that will replace any $find with your highlighted b. Notice the i at the end
preg expression, that tells it to ignore case. The nice part about that is
that if you se
php_value, php_flag, php_admin_value, php_admin_flag but
these are only for INI settings.
Thanks for any help before I attempt to modify mod_php ;)
Joe Webster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P
preg_match("/]*)/i", $html, $args);
$body_props = $args[1];
preg is much faster/better than ereg.
note the /i at the end of the preg, that makes it case insative, drop the i
if you want it to be case sensative on the match.
-Joe
"John Monfort" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECT
dork
"John Monfort" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Test: cannot send mail, but can read.
> Please ignore.
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
that php in Windows and IIS reloads the ini
every time a page is requested?
>
> Charles Killmer
>
> -- Original Message ----------
> From: "Joe Webster" <[EMAIL PROTECTED]>
> Date: Wed, 2 Jan 2002 15:46:32 -0500
>
> no
Uh no,
Php is completely server-side. Any kind of request will be built up,
processed, and sent out to be sent to the user. If the user has a slow
connection it will take longer to get that information, but PHP is done.
-Joe
"Charlesk" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]"
$GLOBALS[ "HTTP_REFERER" ];
"Matthew Walker" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Related to my last question about the cookies in images, is there any
way to get the referrer from the calling page without passing it as an
argument to the image genera
This one had me for a min, thank god for the lookahead =)
$password_string being the password in quesiton, $is_valid = true when it is
valid, false when it's not valid.
$is_valid = preg_match("/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])./",
$password_string);
I've said it before and I'll say it again, preg
If you were going to use javascript to do that, use _parent as the target --
that should reuse the window rather than making a new window.
-Joe
"Erik Price" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> On Wednesday, March 13, 2002, at 03:15 PM, Ben Che
RewriteRule ^([[:digit:]]+)(/*)$ /__obj.php\?id\=$1 [QSA]
We use this rule to rewrite
/1234
to become
__obj.php?id=1234
and pass and Query String Arguments (QSA) like ?foo=bar and so on.
-Joe
"Dennis Gearon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTEC
You seem to have three different ideas/questions... let me attempt to answer
them:
> Hi. I want to be able to access a key in a multidimensional array at some
> depth "n" without knowing before runtime what the keys are.
let's take a multidimensional array $x
$x = array(
"somevar",
array
if(stristr( $file_data, $word )) die( "word found" );
that will work for one word -- for many words -- I would use:
if(preg_match("/word1|word2|word3/i", $file_data)) die( "one or more words
found" );
However, that does use preg -- which is MUCH faster than EREG but neither is
as fast as a stra
I wouldn't say you NEED a full url, it should handle relative URL's as well.
I don't know if it's part of the specification, but it will work.
As far as your problem I hope that line break isn't in the string and it's
just there because of the email.
-Joe
"Jason Wong" <[EMAIL PROTECTED]> wrote i
It only works in IE -- it makes use of the 'Full Screen' (F11) option and
tricks IE into doing so... hope you don't want it to work in NS, Opera... or
anything else
=)
-Joe
"Erik Price" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> On Tuesday, March 19, 2
) and will also work in Mozilla and Netscape 6. I
> don't know about the JavaScript implementation in Opera, but if it
> supports JS it is likely to support these options too (or at least
> ingores them).
>
> bvr.
>
>
> Joe Webster wrote:
>
> >It only works in IE
I doubt msSQL differs from MySQL --
$link = mssql_connect( $host, $user, $pass ) or die( "Can't connect to the
DB!" );
mssql_select_db( $dbname, $link ) or die( "Can't select database" );
$query = "SELECT * FROM members WHERE user='$user' AND pass='$pass';";
$result = mssql_query( $query, $link
16 matches
Mail list logo