RE: [PHP] Sending alots of mail

2001-08-16 Thread Tyrone Mills

I use qmail to handle all my PHP generated mail. It does a wonderful job.
One small coding error sent almost 1000 e-mails to one address in about 30
seconds. It's fast!

-Original Message-
From: Jimmy Bäckström [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 9:46 AM
To: Daniel Adams
Cc: [EMAIL PROTECTED]
Subject: SV: [PHP] Sending alots of mail


Hmm that's what I thought about. But I think the system I'll be using uses
qmail. I've heard that qmail does things better than sendmail?

/Jimmy
- Original Message -
From: Daniel Adams <[EMAIL PROTECTED]>
To: Jimmy Bäckström <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 6:21 PM
Subject: Re: [PHP] Sending alots of mail


I did something like that once.  Mine sent only about a few hundred at a
time and it was still quite a strain on the system because you have a TON
of sendmail processes started and running at the same time. Just be aware
of the possible system load.
- dan

On Thu, 16 Aug 2001, Jimmy Bäckström wrote:

> Hi list!
> I'm about to write an application that takes about 5000 mailadresses from
a database, and then sends a mail to each one of them. I haven't done this
kind of apps before, so I don't know if it's a good idea. Does anyone have
any suggestions?
>
> /Jimmy
>

--




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




RE: [PHP] Emulating a POST

2001-08-08 Thread Tyrone Mills

I use CURL... Works beautifully...

-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 1:51 PM
To: PHP User Group
Subject: [PHP] Emulating a POST


Hello,
 
I have used perl to emulate a post with LWP:UserAgent   I am looking for
the same effect in php.  Does anyone know how I can do this?
Thank you
Brandon 
 


-- 
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] Adopt A Newbie (ME)

2001-08-03 Thread Tyrone Mills

I agree, IMHO that is the best MySQL book there is. That and the manual are
all you are likely to need.

-Original Message-
From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 10:55 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Adopt A Newbie (ME)



>I've was helping him offlist with php/mysql yesterday - he seems to have it
>installed now.  All he needs to do now is learn php, and mysql, and
>courtesy.
>
>Shouldn't take more than another thousand or two messages on the list...

He might run to the closest bookstore (like Amazon) and order the book
"MySQL" written by Paul DuBois.. it's a great book to learn how to use
MySQL and connect to it using PHP.. Perl.. and other ways..
Tutorial included..

Bye,


B.


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




RE: [PHP] Replacing template variables with values?

2001-08-01 Thread Tyrone Mills

I haven't tried those, but should have mentioned in my post, the value of
$message is always a value I create. The person asking the original question
however, might have been accepting input from unknown users.

Thanks for the 'alert' though... Stand down Number One...

-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 10:03 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Replacing template variables with values?


> This always works for me...
>
> eval ("\$message = \"$message\";");

RED ALERT!  SECURITY TO THE BRIDGE!

"Captain, there's Klingons off the starboard bow!"

Oh, sorry.  Did I type that aloud?  Sorry.

If $message is a free-form email typed in by a potentially malicious user
this looks pretty dangerous to me...

Have you tried it with things like:

$message = '";exec("/usr/bin/cat /etc/passwd");';

Do *NOT* try this one, but if the above works, think what *THIS* would do!
$message = '";exec("/usr/bin/rm -rf /");';

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



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




RE: [PHP] Replacing template variables with values?

2001-08-01 Thread Tyrone Mills

This always works for me...

eval ("\$message = \"$message\";");

I use it in the same type of scenario you've described, and also with E-Mail
bodies stored in a DB. Works like a charm.

HTH,

Tyrone

-Original Message-
From: Ryan Fischer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 3:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Replacing template variables with values?


Hello!  :)

I have a form with a textarea that contains a template e-mail with
variables in it.  I would like to be able to replace those variables
with values.  The variables named in the template are actual variables
in my script.  This doesn't seem to work:

$newmail = preg_replace("/\$(\w+)/e", ${$1}, $template);

...and neither does anything I've tried to do as far as eval() goes.  I
either get a parse error like this:

Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
c:\path\file.php on line 16

...or some other sort of eval() error.  Any ideas?  TIA!  :)

--
 -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/



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




RE: [PHP] Sorry To Repeat Repeat Repeat Repeat Re.......

2001-07-26 Thread Tyrone Mills

And what pray tell would you like these scripts to do? I've written
thousands of PHP scripts. What do you want? Be more specific and I'm sure
you'll get a great response.

-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 9:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Sorry To Repeat Repeat Repeat Repeat Re...


Could you people please send me any scripts you have made which are not too
complecated but are quite useful without the use of mySQL?
To restore my faith in PHP


Thanks in advance
-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666




-- 
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] IE -> View Source

2001-07-26 Thread Tyrone Mills

No problems here.

-Original Message-
From: Dennis Gearon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 8:17 AM
To: PHP Mailing Listl (E-mail)
Subject: Re: [PHP] IE -> View Source


Please try to read any of the browser printed text in this URL(I can't do it
in
NS):
http://rwchat.com/DigiLink1/index.html

Alexander Skwar wrote:
>So sprach Steve HaemelinckL am 2001-07-26 um 08:32:11 +0200 :
>> Some sites are able to disable the source view in ie. How do you do that?
>
>You can't.  You can make stupid games and disable right mouse button
>clicks, but that's still not going to stop anyone to get the HTML
>output.
>
>Alexander Skwar

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




RE: [PHP] PHP.... i suck at it

2001-07-22 Thread Tyrone Mills

";

echo $remote_admin;
?>

-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 22, 2001 5:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP i suck at it


Ok this may sound really pathetic but how do i add a new line (like a space)
to a code like this



cause when i try the code out it looks like

IPADDRESS127.0.0.1

and i want it to look like

IP ADDRESS
127.0.0.1

or

IP ADDRESS

127.0.0.1

so what do i put in?

Thanks for your time :)


-- 
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] encrypting session variables

2001-07-09 Thread Tyrone Mills

Make an MD5 hash using the session variable. Make it again (with the same
seed) before using it, if the hashes don't match, it's been messed with.

You can store the hash in a MySQL DB, pass it on the URL, write it out to a
local file, all kinds of things...

-Original Message-
From: Brad Wright [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 6:08 PM
To: PHP General List
Subject: [PHP] encrypting session variables


Hi all,
Is there a simple way to encrypt session variables. If so, is there a method
to 'decode' the encrypted session variable when required?.



Thanks in advance,
Brad


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




Re: [PHP] Security of PHP code

2001-07-04 Thread Tyrone Mills

I use something that accomplishes the same (displays the source of a file),
but doesn't accept the file name as a parameter. The script is also in a
directory with a password and is restricted by ip. Not perfect, but alot
better.

- Original Message -
From: "Hankley, Chip" <[EMAIL PROTECTED]>
To: "PHP Mailingliste" <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 8:45 AM
Subject: RE: [PHP] Security of PHP code


> OK,
>
> I'm pretty new to PHP, and have been reading this thread, and am just a
> little freaked.
>
> If I understand this right, the only way reason we can view the source
code
> of those pages is that the web server on which the page resides
essentially
> has a PHP page somewhere on their site that has some variation of:
>
> 
>
> as it's content, right?
>
> While I can see the utility of that for some situations
> (teaching...examples, etc.), it seems like a huge potential for security
> breaches.
>
> Is it possible to have such a function on your site w/o giving access to
ALL
> of your documents...
>
> Chip
>
> --
> 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]




RE: [PHP] calculate download time

2001-06-29 Thread Tyrone Mills

Scott,

All your method does is come up with how many kb/s you would need to achieve
to transfer the file in 1 minute.

To estimate how long it would take with a 28.8 modem connection (many sites
do this), I would do something like the following:

-- 28.8Kbps Modem (that's kilobit, not byte, so let's convert it to KB)
( 28800 / 8 ) / 1024 = 3.515625

-- So, we assume a transfer rate of approx. 3.5KB/sec
( y / 3.5 ) / 60 = x

x is how many minutes it will take to transfer a file of size y using a 28.8
Kbps modem.

-Original Message-
From: scott [gts] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 10:42 AM
To: php
Subject: RE: [PHP] calculate download time


simple.

get total KB (1k = 1024 bytes)
divide that by 60 (seconds in a minute)
now you have estimated transfer time in minutes.

> -Original Message-
> From: Rhett Hermer [mailto:[EMAIL PROTECTED]]
> Subject: [PHP] calculate download time
>
> Hi,
>
> I am trying to write code to find out how long it takes to download a
file.
> The code is below. When I compare to other websites which you can
calculate
> online, varies wildly.  I do know about many factors that affect the
> download times. All I want is correct forumla to caclulate.
>
> $b = filesize("foo.zip");
> echo "It will take you:";
> $dl = (($b * 8) / (64*1000));
> $sec = $dl % 60;
> $min = (($dl / 3600) % 60);
> $hrs = $dl / 3600;
> printf ("%1.0f hours, %1.0f mins and %1.0f secs at 64k/s", $hrs, $min,
> $sec);


--
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] PHP-Nuke vs. PHP-BB vs. ???

2001-05-23 Thread Tyrone Mills

Hello All,

I'm looking for input and/or advice on selecting a Portal System like
PHP-Nuke or PHP-BB. I haven't used any of these products, so I don't really
have an opinion myself.

Here's what I want to be able to do:

- Modify the system, so it needs to be PHP based
- Use MySQL as the backend
- Have flexibility with user access levels
- Have a reasonably secure/solid system

I've seen a lot of posts on Bugtraq with regards to problems in PHP-Nuke.
Does anyone have any experience with this? Any other systems anyone can
recommend?

Thanks in advance!


UNIX is user-friendly, it's just picky about who its friends are...






-- 
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] Why is this not working

2001-05-17 Thread Tyrone Mills

su nobody -c "/usr/local/bin/htpasswd -b /users/domain/.htpasswd abc pass"

See what you get... 

"YoBro" <[EMAIL PROTECTED]> wrote in message
news:<9e1i8t$op5$[EMAIL PROTECTED]>...
> I have set the htpasswd file to 777 while i attempt to get this to work.
> 
> I have found the htpasswd executable.
> /usr/local/bin
> So my code now reads:
> 
>  passthru ("/usr/local/bin/htpasswd -b /users/domain/.htpasswd abc pass");
>  ?>
> Still no go.
> Any ideas to view errors while I attempt to write to the file .htpasswd
> 
> YoBro
> 
> "Shawn Reed" <[EMAIL PROTECTED]> wrote in message
> 01C0DEF9.97DDEAA0@SHAWN">news:01C0DEF9.97DDEAA0@SHAWN...
> the user that the webserver runs as (usually "apache" or "nobody") must
have
> write permissions to the file which htpasswd is attempting to write to, or
> else it won't be able to make the changes you are attempting to make.
> 
> ~shawn
> 
> 
> YoBro <[EMAIL PROTECTED]> wrote in message
> news:<9e1h4j$8k5$[EMAIL PROTECTED]>...
> > That didn't seem to work.
> > I am beginning to pull my hair out now.
> >
> > ""Tolga "thorr" Orhon"" <[EMAIL PROTECTED]> wrote in message
> > 9e1gjb$u1q$[EMAIL PROTECTED]">news:9e1gjb$u1q$[EMAIL PROTECTED]...
> > > I mean the absolute path for executable.
> > >
> > >  > > passthru ("/usr/bin/htpasswd -b /users/domain/.htpasswd abc pass");
> > >  ?>
> > >
> > > thorr
> > >
> > > ""YoBro"" <[EMAIL PROTECTED]> wrote in message
> > > 9e1gb1$jnn$[EMAIL PROTECTED]">news:9e1gb1$jnn$[EMAIL PROTECTED]...
> > > > My message described the absolute path with the provider I use.
> > > >
> > > > I am able to download the .htpasswd file from
> > > > /users/domain/
> > > >
> > > > Still not working though.
> > > >
> > > > ""Tolga "thorr" Orhon"" <[EMAIL PROTECTED]> wrote in message
> > > > 9e1fth$vi3$[EMAIL PROTECTED]">news:9e1fth$vi3$[EMAIL PROTECTED]...
> > > > > May be you need to use absolute path for htpasswd. eg.
> > /usr/bin/htpasswd
> > > > > Did u check for any error msgs?
> > > > >
> > > > > thorr
> > > > >
> > > > > ""YoBro"" <[EMAIL PROTECTED]> wrote in message
> > > > > 9e1fcd$pir$[EMAIL PROTECTED]">news:9e1fcd$pir$[EMAIL PROTECTED]...
> > > > > > After much investigation through many newsgroups and websites, I
> > found
> > > > out
> > > > > > that this is the way you can execute a unix apache command to
add
> a
> > > user
> > > > > to
> > > > > > the htpasswd list with PHP.
> > > > > >
> > > > > > Problem is, it doesn't add any information to the htpasswd file.
> > > > > > Note: The example below is...
> > > > > > domain = my user name
> > > > > > abc = user name to add to htpasswd list
> > > > > > pass = password to add to htpasswd list
> > > > > >
> > > > > >  > > > > > passthru ("htpasswd -b /users/domain/.htpasswd abc pass");
> > > > > > ?>
> > > > > >
> > > > > > Please Help if you can.
> > > > > >
> > > > > > Cheers,
> > > > > > YoBro
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > 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 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 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 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]




Re: [PHP] Why is this not working

2001-05-17 Thread Tyrone Mills

This works for me...

$update = exec ("/usr/local/apache/bin/htpasswd -b ./.htpasswd $username
$password");

Just make sure that the user that Apache runs under has the appropriate
permissions to the .htpasswd file.

Tyrone

"YoBro" <[EMAIL PROTECTED]> wrote in message
news:<9e1fcd$pir$[EMAIL PROTECTED]>...
> After much investigation through many newsgroups and websites, I found out
> that this is the way you can execute a unix apache command to add a user
to
> the htpasswd list with PHP.
> 
> Problem is, it doesn't add any information to the htpasswd file.
> Note: The example below is...
> domain = my user name
> abc = user name to add to htpasswd list
> pass = password to add to htpasswd list
> 
>  passthru ("htpasswd -b /users/domain/.htpasswd abc pass");
> ?>
> 
> Please Help if you can.
> 
> Cheers,
> YoBro
> 
> 
> 
> -- 
> 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]




Re: [PHP] ssh

2001-05-14 Thread Tyrone Mills

How about using something like puTTY or SecureCRT?

I use puTTY to connect Windoze boxes to my linux servers all the time, it
works great and actually passes the function keys to remote server instead
of interpreting them itself.

- Original Message -
From: "Dennis Gearon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 14, 2001 3:26 PM
Subject: [PHP] ssh


> anyone got the easy directions to setting up
>  with SSH
>
> ***AND*** getting the certificate to work for it?
>
> My provider that runs php/mysql/etc only lets people use SSH connections
> for telnet, which I agree with.
>
> Right, now, I don't want to pay the $139 for the non open source windows
> SSH client.
>
> --
> 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]




RE: [PHP] PC MAG article

2001-05-09 Thread Tyrone Mills

If you can stand to read the whole article (I barely could), BEA declined to
participate. The article is nothing but worthless tripe, BEA is probably
better off for having been mentioned only in passing.

-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 5:55 PM
To: PHP List
Subject: Re: [PHP] PC MAG article


Considering Websphere/EJB was mentioned ...

Where's the BEA Weblogics review 


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




Re: [PHP] add to .htpasswd via php

2001-05-02 Thread Tyrone Mills

I do this exact thing on my system, here is the code I use:

$update = exec ("/usr/local/apache/bin/htpasswd -b ./.htpasswd $username $password");

My guess is you are dealing with a permissions issue. Like Jack says, try 'su nobody' 
(or whatever your webserver runs as) and then try the command... Once that works, so 
will your script.

- Original Message - 
From: "Jack Dempsey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 10:44 AM
Subject: RE: [PHP] add to .htpasswd via php


> what user are you running the command on the the command line, and what user
> is php running it as? if you're root for the first one, but nobody on the
> second, that would be your problem...
> 
> -jack
> 
> -Original Message-
> From: Joseph Koenig [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 02, 2001 1:40 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] add to .htpasswd via php
> 
> 
> I'm attempting to streamline my work by writing a script that will add a
> user to the .htpasswd file. If echo the command I'm sending (via exec())
> and run it on the command line, it works fine. From php though, it does
> nothing. All paths are full paths starting at server level. Is there
> anything that anyone is familiar with that would cause this to not work?
> Thanks,
> 
> Joe
> 
> --
> 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]
> 



RE: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Tyrone Mills

Hi Manisha

I use and recommend Beginning PHP 4, published by WROX and PHP Developer's
Cookbook, published by SAMS. I started with the Beginning PHP 4 book, the
PHP Manual, this list and phpbuilder.com. That was all I needed to get a
good introduction and grounding into PHP programming. The PHP Developer's
Cookbook just takes it all to the next level and gives me useable examples
to real world problems.

Enjoy,

Tyrone

-Original Message-
From: Brian Clark [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 8:12 PM
To: PHP is not a drug.
Subject: Re: [PHP] Want a Good Book for Ref on PHP


Hi Kath,

@ 10:54:03 PM on 4/15/2001, Kath wrote:

> Professional PHP Programming:
...

> PHP Fast & Easy Web Development:
...

> I started with these books and STILL refer to them today.

A good one to add to your collection would be
_PHP Developer's Cookbook_ ISBN: 0672319241

Though it's not something that teaches PHP from the ground up, it's
one of the best PHP books that I own.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



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




RE: [PHP] Problems with files!!!!!

2001-04-01 Thread Tyrone Mills

I don't know if it's been mentioned or not, but I have found that unless the
file exists, I can't open it. Have you verified that the file exists and the
user that the script will run as has the appropriate permissions?

-Original Message-
From: jon [mailto:jon]On Behalf Of Jon Jacob
Sent: Sunday, April 01, 2001 7:40 PM
Cc: Ales Kunst; [EMAIL PROTECTED]
Subject: Re: [PHP] Problems with files!


David Robley wrote:

> On Sat, 31 Mar 2001 21:31, Ales Kunst wrote:
> > Hi,
> >
> > I have a strange kind of a problem. I'm cannot write to files on a
> > server (i'm having virtual host) where i got my domain name.
> > The server is running Apache 1.3.x and is having php3.0.8 installed.
> > The code looks like this:
> >
> > 
> > 
> >  > $fcontents = "something";
> > $fp = fopen("tmp/some.dat", "w");  // trying to open file in my
> > directory tmp/ (i think)
> > fwrite($fp, $fcontents);
> > fclose($fp);
> > ?>
> > 
> > 
> >
> > I cannot write to directory tmp.I get an error from Netscape that
> > "document contains no data" (i changed the directory mode to 777
> > (tmp/)). The strangest part is that this script works fine when i am
> > running it at home. At home i tried to run the script under Windows 98
> > and Linux Mandrake both with Apache 1.3.x with php 4.0.x installed (i
> > don't think this code should have any compatibility problems). On Linux
> > i have put the script to a user directory, just the kind on the server
> > is, and it worked just fine. I think maybe it's the Apache
> > configuration (on the server) which is causing my problem. I would very
> > appreciate any help on this matter (clues what could be wrong).
> >
> > Ales!
>
> Probably permissions still - the parent directory must also be accessible
> to the user that the web server runs as.
>
> --
> David Robley| WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet| http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
> --
> 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]

Ah, this may be too simple of an answer but usually the directory is /tmp
not tmp/



_

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com




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




RE: [PHP] Cache

2001-03-20 Thread Tyrone Mills

Yup, at the beginning of your PHP script. Sorry, I should have mentioned
that... :)

-Original Message-
From: Matt Stone [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 8:04 PM
To: Tyrone Mills; PHPlist
Subject: RE: [PHP] Cache


That goes in the PHP code no?

-Original Message-
From: Tyrone Mills [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 21 March 2001 1:56 PM
To: Matt Stone; PHPlist
Subject: RE: [PHP] Cache


Hi Matt,

For a very extensive solution, check this out:

http://www.zend.com/codex.php?id=435&single=1

Or, if you just want all your pages to be forced to load all the time
regardless...

header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: Mon,26 Jul 1997 05:00:00 GMT");


-Original Message-
From: Matt Stone [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 7:39 PM
To: PHPlist
Subject: [PHP] Cache


Hi,
This might be a little of topic...
I am having real trouble with cached PHP pages, they just never seem to
refresh... I have dissabled my local cache (IE5.5 Win2k) to the best of my
knowledge (suggestions on how to do this properly welcome) but are still
having trouble.
I am not sure whether it is my local cache my ISP's cache. Anyhow, can
anyone suggest a tag or something for me to put in my page so it refreshes
and bypasses the cache? It is getting _REALLY_ annoying :\
Thanks,

Matt Stone


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




RE: [PHP] Cache

2001-03-20 Thread Tyrone Mills

Hi Matt,

For a very extensive solution, check this out:

http://www.zend.com/codex.php?id=435&single=1

Or, if you just want all your pages to be forced to load all the time
regardless...

header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: Mon,26 Jul 1997 05:00:00 GMT");


-Original Message-
From: Matt Stone [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 7:39 PM
To: PHPlist
Subject: [PHP] Cache


Hi,
This might be a little of topic...
I am having real trouble with cached PHP pages, they just never seem to
refresh... I have dissabled my local cache (IE5.5 Win2k) to the best of my
knowledge (suggestions on how to do this properly welcome) but are still
having trouble.
I am not sure whether it is my local cache my ISP's cache. Anyhow, can
anyone suggest a tag or something for me to put in my page so it refreshes
and bypasses the cache? It is getting _REALLY_ annoying :\
Thanks,

Matt Stone


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