[PHP] RE: Download Function in PHP

2001-10-18 Thread ArsenKirillov

recursion + ftp_get...


> Hi All,
>
>I would like to know how to download the whole directory using PHP.
>
>
> Thanks
>
>
> Mark Lo
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Q: How one can pass throught sessions arrays with no use of mysql or files ?

2001-10-19 Thread ArsenKirillov

How one can pass throught sessions arrays with no use of mysql or files ?
help me to advance pls.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Text DB's & bbs lists

2001-10-31 Thread ArsenKirillov

does anybody hear about
board(bbs or phorum) written oin php wihout using any kind
of SQL DB ? I think of developing one in text db (separated by | fields in
one line)
Did anybody think of this is good idea ? (i have problem in my country -
stupid admins can't run MySQL to be such stable as php4.)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How one can calculate CRC of file on php ?

2001-11-02 Thread ArsenKirillov

i need to synhronise two text db of my board
and i am seeking for best and fasterst way to calculate
crc of file . Can all help me ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] site last updated

2001-11-04 Thread ArsenKirillov

Re: site last updated
73374 by: Steve Werby
73376 by: Chip
73377 by: speedboy
73385 by: Rudi Ahlers


I think that all is partially answers on question that have no answer at all
!

Question was : ... SITE last update - not html  file inside site but
WHOLE__site__.

I did this way :

1.Database with all articles on site and it's dates of its last modify (i
use text format)
2.
array_multisort
(
 $this->a_tmst , SORT_DESC ,
 $this->a_datestr ,

3. echo date_datestr[1].
, so i do in my news.php page (that one automatically show new articles on
my site).
And this is really date of SITE last modify ...





> -Original Message-
> From: Rudi Ahlers [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, November 04, 2001 12:13 PM
> To: Chip; [EMAIL PROTECTED]
> Subject: Re: [PHP] site last updated
>
>
> Would there be a way of adding one script to a common footer, which in
> included in any file, and this script can check any file on the
> server, and
> echo the "last updated" string to a file. Thus, you don't need to add the
> script to the file, the footer automatically echos that info to
> any file on
> the server. Would that be possible? Cause then you could simply add pages,
> and the whole footer could be echoed to it.
>
> Rudi Ahlers
> UNIX Specialist and Web Developer
> Bonzai Web Design - http://www.bonzai.org.za
> Cell: 082 926 1689
>
> - Original Message -
> From: "Chip" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, November 04, 2001 7:32 AM
> Subject: Re: [PHP] site last updated
>
>
> > On Saturday 03 November 2001 21:12, Steve Werby wrote:
> > > "Ryan Christensen" <[EMAIL PROTECTED]> wrote:
> > > > You can do this in a per-page basis w/:
> > > >
> > > > $modified = stat("yourfile.html");
> > > > echo date("l, F dS",$modified[9]);
> > >
> > > Also see getlastmod() and filemtime().
> >
> > I am interested in this also. I understand the way it is
> working here, but
> > what about using a common footer.inc which contains the last modified
> script,
> > to show the last modified date of another inc file, body.inc, inside
> page.php?
> > This would have to know the body.inc file name loaded into page.php I
> guess.
> > That'd sure be easier than adding the script to several hundred seperate
> > pages.
> >
> > --
> > Chip W.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] RE: Access $HTTP_POST_VARS from class member fucntion

2001-11-04 Thread ArsenKirillov

try this :

class me
{
var arr_post;
function init($par_arr_post)
{
$this->arr_post=$par_arr_post;
}
}

> -Original Message-
> From: Daniel Harik [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, November 04, 2001 8:42 PM
> To: [EMAIL PROTECTED]
> Subject: Access $HTTP_POST_VARS from class member fucntion
> 
> 
> Hello
> 
>  I have a class called Member, it has member function called
>  vallidateForm(), i try to pass it a $HTTP_POST_VARS array it 
> looks like this:
> 
>  
> clas Member{
> var $HTTP_POST_VARS;
>function vallidateForm ($HTTP_POST_VARS){
> echo $HTTP_POST_VARS['frmUsername'];
>}
> }
> 
> $user = new Member;
> if($action=="register"){
>global $HTTP_POST_VARS;
>$user->vallidateForm($HTTP_POST_VARS);
> }else{
>$user->displayForm();
> }
> ?>
> 
> But i can't acces  $HTTP_POST_VARS['frmUsername'] within the function
> 
> 
> Thank You very much
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] RE: Am i crazy?

2001-11-04 Thread ArsenKirillov

Why not
if (file_exists($fname="$MYPATH/admin.php") && $name='admin')) header
("Location: ".$fname) ;else echo "Trouble with $fname";

> -Original Message-
> From: Martin [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, November 04, 2001 7:49 PM
> To: [EMAIL PROTECTED]
> Subject: Am i crazy?
>
>
> Did I forget everything in a few months?
> if ($name='admin') {
> header("Location: $MYPATH/admin.php");
> }
>
> Doesn't. That is it doesn't redirect to whatever $MYPATH/admin.php
> translates to. Doing an echo $MYPATH directly after the line
> shows that the
> path is interpreted correctly - and the file exists (I checked). And the
> $name is correct - echo $name gives admin. And neither does the php.net
> example work ...
>
> if ($name='admin') {
> header("Location: http://www.php.net/";);
> }
>
> doesn't redirect to php.net.
>
> *sigh*
>
> Martin
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Everything between something becomes an array element

2001-11-12 Thread ArsenKirillov

U question  was :
Everything __between something___ becomes an array element

What is wrong with answer :
tag[1]= foobar
tag[2]= foobar

 :-)))


AK>-Original Message-
AK>From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
AK>Sent: Tuesday, November 06, 2001 5:18 PM
AK>To: [EMAIL PROTECTED]
AK>Cc: [EMAIL PROTECTED]
AK>Subject: Re: [PHP] Everything between something becomes an array element
AK>
AK>
AK>But  watch this...
AK>
AK>foobartr>
AK>foo bar
AK>
AK>
AK>I think that the return result will be
AK>foobar
AK>foo bar
AK>
AK>Why? Beacuse you set PCRE to be greedy. I think that there is no 
AK>easy way to 
AK>solve the problem with nested  tags.
AK>
AK>Regards,
AK>
AK>Andrey Hristov
AK>Web Developer
AK>Icygen Corporation
AK>BUILDING SOLUTIONS
AK>http://www.icygen.com
AK>
AK>
AK>On Tuesday 06 November 2001 02:57 am, you wrote:
AK>> Here is right implememtation of all i see
AK>>
AK>> > $co=0;
AK>> $str="foobar";
AK>> echo "";
AK>> GetTagElements($str);
AK>> echo "";
AK>>
AK>> function GetTagElements($str)
AK>> {
AK>> global $co;
AK>> if ($co++){echo "tag[".($co-1)."]= ".htmlentities($str)."";}
AK>>
AK>>
AK>> 
AK>$how=preg_match_all('~\(.*)<\/tr\>~',$str,$var_match,PREG_SE
AK>T_ORDER);
AK>> if ($how)
AK>> for ($i=1;$i> {
AK>> GetTagElements($vr[$i]);
AK>> }
AK>> else return 0;
AK>> }
AK>>
AK>> ?>
AK>>
AK>> > -Original Message-
AK>> > From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
AK>> > Sent: Monday, November 05, 2001 11:13 PM
AK>> > To: [EMAIL PROTECTED]
AK>> > Subject: Re: [PHP] Everything between something becomes an 
AK>array element
AK>> >
AK>> >
AK>> > Sorry
AK>> >
AK>> > $how=preg_match_all('|\(.*?)|',$the_big_string,$matches,
AK>> > PREG_SET_O
AK>> > RDER);
AK>> >
AK>> > is the correct I think
AK>> >
AK>> > Excuses
AK>> >
AK>> > On Monday 05 November 2001 08:57 am, you wrote:
AK>> > >   It gives me an error:
AK>> > >
AK>> > > Warning: Compilation failed: nothing to repeat at offset 7 in
AK>> > > c:\www\innocenti\teste.php on line 17
AK>> > >
AK>> > >  I think that 'offset' is like a letter from the regex, but I
AK>> >
AK>> > could not fix
AK>> >
AK>> > > it...
AK>
AK>-- 
AK>
AK>-- 
AK>PHP General Mailing List (http://www.php.net/)
AK>To unsubscribe, e-mail: [EMAIL PROTECTED]
AK>For additional commands, e-mail: [EMAIL PROTECTED]
AK>To contact the list administrators, e-mail: [EMAIL PROTECTED]
AK>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP & CGI

2001-11-13 Thread ArsenKirillov

i have .htaccess on root of my web:

ErrorDocument 400 /e.php
ErrorDocument 401 /e.php
ErrorDocument 403 /e.php
ErrorDocument 404 /e.php
ErrorDocument 500 /e.php

When i try get via http an nonexisten html document : noneasdfaasd.html i
got result of e.php script.
When i try to get nonexisten dfsdfksf.php i got Internal Server Error of
Apache ,- not result of working e.php ..
Any suggestions , why it happens?

Arsen Kiriilov
http://www.softm.h1.ru/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]