> > Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though
> > since Apache fills that in with the script it executes. Or you could
> > simply look at $PATH_INFO and strip the contents of $PATH_INFO from the
> > end of $PHP_SELF.
>
> Aha! Good. Now, does anyone have a li
What would be the most effective way to create blocking of users by ip using
mysql. In such as way that the "blocking system" allows for masks such as
24.127.89.*
24.*.*.*
etc...
So far the what I've come up with is either breaking the ip into 4 INTs and
then running an SQL query to check if t
Hello!
I just want to replace a string with another, but I have problems, when the
string contains a [ or something similar. I just need a method to replace
"[cool]" with "text". When I use:
$mustbereplaced = "[cool]";
$message = preg_replace("/$mustbereplaced/", "hello", $message);
only cool wil
http://php.net/str_replace
if you're just replacing a static string, this will be faster and
easier...only use regex's when you really need them
jack
-Original Message-
From: W. Kiecksee [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 2:17 PM
To: [EMAIL PROTECTED]
Subject: [PH
Interesting. After hlaf a minute an idea came to my brain.
create table blocked( from_ip bigint unsigned, to_ip bigint unsigned);
=from_ip and $REMOTE_ADDR<=to_ip;"));
?>
Hope this helps.
$REMOTE_ADDR have to be integer => use ip2long().
For single IP the ints in the row are equivalent. from_ip
Hi,
my name is Jaison and I need to know...
Can I encode or compile a Php program to protect the source and execute than?
tks.
Escape the [] with \.
$pattern='\[find\]';
echo preg_replace("/$pattern/","[find]");
Andrey Hristov
IcyGEN Corporation
BALANCED SOLUTIONS
http://www.icygen.com
On Friday 05 October 2001 21:17, you wrote:
> Hello!
>
> I just want to replace a string with another, but I have problems, when the
> st
Can PHP work with a Share on another computer or do the scripts have to
be on the same computer as IIS/Apache? When I put the scripts into a
Shared directory, I get a CGI error.
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Yes there is php encoder available but it is not free -> go to
http://www.zend.com whers Open Software meets eBussiness.
Also there si phpcompiler. I didn't tested it. Go to google.com and try to
find "phpcompiler.zip" sooner you will find it but be patient.
Andrey Hristov
IcyGEN Corporation
tks Andrey.
I have a dll that encode and decode any file, this dll use a algorithim
that
I made it.
PHP has some API, Entry Point or another way that permit I use a dll to
decode a php script before that script be executed?
tks again.
> - Original Message -
> From: "Andrey Hristov"
Andrey: What is this select supposed to do? I fail to see how this would
help a person who has hit max_size on an auto_increment field.
Bas: The other alternative that would be to occasionally update sid for all
the rows, reseting them to 1,2,3,etc. You could do that with the following:
set @v
I'm running with some trouble with exec(), system() and it's friends...
I have a MySQL backup script that somewhere have something like
$cmd="mysqldump .. > somefile.sql";
if( !fopen("somefile.sql","r") ) { print error message };
$cmd is correct... I've copy-pasted it tons of times in the
On Fri, 5 Oct 2001 14:12:46 -0400, Prottoss wrote:
>What would be the most effective way to create blocking of users by
>ip using
>mysql. In such as way that the "blocking system" allows for masks
>such as
>24.127.89.*
>24.*.*.*
>etc...
>
>So far the what I've come up with is either breaking the i
Hi All,
Is these any parameter in php.ini that I need to set so that I wont get
"Warning: Undefined variable: xx in yyy.php on line zz" messages?
Thank you,
Sridhar Moparthy
On Fri, 05 Oct 2001 11:23:34 -0700, Todd Cary wrote:
>Can PHP work with a Share on another computer or do the scripts have
>to
>be on the same computer as IIS/Apache? When I put the scripts into
a
>Shared directory, I get a CGI error.
try using 'net use' to give the share a drive letter, then us
In PHP4, unset($myarray['3']['someindex'}) removes this element (inside a class
function passed $myarray). I need to do the same for PHP3 - what is the simplest way
to accomplish this?
I guess I'm looking for a function that supports PHP3 or PHP4, say:
function unset_arr ($array) {
if (
"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I want to move away from
> file.php?var1=1&var2=2&var3=3
> ...and go to
> file.php/1/2/3
[...]
Why? What's wrong with ?var1=1&var2=2
--
John A. Grant * I speak
"John A. Grant" wrote:
> Why? What's wrong with ?var1=1&var2=2
Where did you hear me say there was something wrong with it? It's a
personal choice.
--
W | I haven't lost my mind; it's backed up on tape somewhere.
+
Note, this is not currently possible under the CGI, only as a module.
Best regards,
Andrew Hill
> -Original Message-
> From: John A. Grant [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 05, 2001 4:04 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Submitting variables via /'s
>
>
>
Hi,
I get a segmentation fault in the log-files of apache when I use
"imap_open".
What have I done (rather long e-mail)?
Debian - woody (without apache-php-imap)
imap-2001.FINAL.tar.Z
make slx
cd c-client
ln -s . lib
ln -s . include
ln -s c-client.a libc-client.a
apache-1.3.20
confi
check out error reporting at php.net
-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 2:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How to eliminate "Warning: Undefined variable: " messages
Hi All,
Is these any parameter in php.ini tha
You [EMAIL PROTECTED], or someone using your email
[EMAIL PROTECTED] address, posted to my Blastomatic site. This is a
one time
emailing to ask you to verify your email address. Just reply
to this email address to verify or follow the below instructions.
**
On Fri, 5 Oct 2001, John A. Grant wrote:
> "Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > I want to move away from
> > file.php?var1=1&var2=2&var3=3
> > ...and go to
> > file.php/1/2/3
> [...]
>
> Why? W
In Perl I have done this:
$julianday=(localtime)[7];
Is there an equivalent syntax for PHP or do I just do:
$now=localtime();
$julianday=$now[7];
I don't need it - I'm just curious about the syntax.
--
John A. Grant * I speak only for myself * (remove 'z' to reply)
Radiation Geoph
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
046901c14d62$b4c7a0c0$c801a8c0@Lynchux100">news:046901c14d62$b4c7a0c0$c801a8c0@Lynchux100...
> 100 lines of 200 chars each is 2 which is 20K which is chump change
for
> RAM...
>
> Unless you are on a super busy page on a super high-volume se
there are functions like current() next() etc but they wont help you in this
case. I just wrote my own.
function index($array, $index)
{
return @$array[$index];
}
$now = index(localtime(), 7);
--
Chris Lee
[EMAIL PROTECTED]
"John A. Grant" <[EMAIL PROTECTED]> wrote in message
[EMAIL PR
with exec() I wouldnt assume that all the PATH info is there, just to be
sure, use hardcoded paths.
exec("/usr/bin/mysqldump > /tmp/somesql.txt", $return);
print_r($return);
--
Chris Lee
[EMAIL PROTECTED]
"Christian Dechery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EM
php doesn't support automatic dereferencing of arrays, so you can't just
throw the index on the back, but you could do this:
$julianday = array_slice(localtime(),7,1);
but then $julianday's an array...so you could wrap an array_pop around
that..although it gets you your val in one line, i th
why is this amazing ?
--
Chris Lee
[EMAIL PROTECTED]
"Andrey Hristov" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> After getting the PHP source from the CVS and compiling I tested with
> phpinfo(). The result was amazing :
> ===cutted=
this question is common, accually so common that someone asked this same
question earlier today, read the previous posts before asking. phpbuilder
also has a tutorial, look around the web before posting too.
if (!isset($HOW_MANY))
$HOW_MANY = 10;
if (!isset($position))
$position = 0;
I want users to be able to select files from a folder and then a php script
would wrap em up in a tar file. Can zlib funtions do this?
the files are small gifs, if that helps
tia
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Ireland's Online Film
I have a table set as auto_update for the primary ID field, but sometimes
the PHP script adds fields which don't fill up all of the ID numbers, as I
delete a few records manually. is there any way to ensure all primary id
field nos. are filled up
is this a potential problem
--
Regards,
Georgie Ca
In Perl I used "/\S/" to check for blank lines read from a file.
Now I'm learning PHP. How do I know what is a 'standard'
regexp that ereg() can handle and how do I know what is
Perl-specific syntax so that I must use preg_grep() instead?
For example, can I use ereg("\S",$buffer) to check for a
Joao Prado Maia wrote:
>>"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message
>>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>>I want to move away from
>>>file.php?var1=1&var2=2&var3=3
>>>...and go to
>>>file.php/1/2/3
>
> That is actually a good idea to build dynam
So, can someone give me the spot to look in the documentation to find
out how to make this switch?
-Original Message-
From: Chris Hobbs [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 4:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Submitting variables via /'s
Joao Prado
Matthew Walker wrote:
> So, can someone give me the spot to look in the documentation to find
> out how to make this switch?
Rasmus explained it earlier to me:
Nothing to it. All you really need to know is that $PATH_INFO will contain
/1/2/3 simply pick out what you need using something li
Hola como estas
estamos interesados en comprar publicidad en tu página mediante nuestro sistema de
banners online.
El cual consiste en que pongas un banner de MercadoLibre en tu site, y nosotros te
pagamos 50 pesos por cada usuario que se registre de tu página a la nuestra
activamente, adem
Last time I checked, there is a class for creating tar files in PEAR...
Check your PHP installation...
Once you create a tar file, I'm sure you can filter it through zlib to
create a .tar.gz file.
-Original Message-
From: Georgie Casey [mailto:[EMAIL PROTECTED]]
Sent: Friday, October
This could very well work into an ongoing working relationship, so please
respond if you think you can help!
HERE'S THE DEAL:
I'm looking to exchange my extensive website design and graphic skills with
someone with PHP or Cold Fusion skills that can help finish the backend
database for a Real Est
I'm preparing to write a DB app using PHP as the programming interface. I
need to be able to lock records at certain points. I was wondering if the
following is possible using PHP.
1. I want to use the GET_LOCK(str, timeout) function to lock records based
on the record ID. Can GET_LOCK be cal
Thanks for the replies,
Don't worry about the Mandrake specific stuff; I'm on Redhat. although it
seems to the same as what you're talking about;
My shadow is in format:
fakeaccount:$1$5PXJfLSQ$LSxsnZfHzBrkDdT2NZefK.:11600:0:9:7:::
(the password was 'password')
I probably would not have
"Matthew Walker" <[EMAIL PROTECTED]> wrote:
> So, can someone give me the spot to look in the documentation to find
> out how to make this switch?
There are multiple solutions. In a nutshell here's what I do. I add
directives to the VirtualHost block for the site which point web requests
for ce
It is really a bad idea to design a system where locking is required. Are
you sure there is no way to build the system to not require locking
through the use of atomic updates and such?
Anyway, yes, GET_LOCK is just another query as far as PHP is concerned.
You can pass it to MySQL via mysql_que
101 - 143 of 143 matches
Mail list logo