Re: [PHP] Finding if a number is in the range

2001-05-17 Thread Zak Greant

MaD dUCK wrote:
> also sprach Zak Greant (on Thu, 17 May 2001 09:35:18PM -0600):
> > Or just use a simple chain of if statements :)
> 
> yeah, but that's so O(n) !
> i can do in O(lg n)
> or, given n CREW processors, in O(1) time!
> 
> yes, i have just finished my computational theory and computer
> algorithms honors exam.

Do you really need a chainsaw to cut a piece of cake? ;)

--zak


-- 
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 Pros/Cons, Case Examples, PHP vs Servlets

2001-05-17 Thread John Lim

Visit http://php.weblogs.com/

There currently is a big debate on this issue. Also  see the PHP advocacy
pages.

""Scott A Winkle"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Im currently running many scripts myself and other staff members wrote in
> PHP for the university. Certain others want to eliminate PHP and make
> everything Java based. It is now in the 'debate meeting' stage, so I need
> some help. I have done a handful of research already, but im looking for
> more info.
>
> Specifically:
>
> Pros/Cons of PHP (in general) ...from your experiences
> Pros/Cons of PHP in a university environment ...for those working at/with
> universities/educational institutions
> Case Examples of PHP use in universities, would be especially helpful for
> anyone with examples of using PHP with a datatel product.
> Any info on using PHP with a UniData database, even if its through ODBC.
> Any cases where you found PHP was better at the task than Java, or
> vice-versa. Specific examples, etc, would be even better.
>
> The meeting is scheduled for May 22, so any info prior would be great
>
> Thanks for the help,
> Scott
>
>
> Scott Winkle
> Web Developer
> Phone: (937) 327-7478
> [EMAIL PROTECTED]
> Web Team / Wittenberg University Computing Center
>



-- 
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] Finding if a number is in the range

2001-05-17 Thread Joseph Blythe


MaD dUCK wrote:

> also sprach Zak Greant (on Thu, 17 May 2001 09:35:18PM -0600):
> 
>> Or just use a simple chain of if statements :)
> 
> 
> yeah, but that's so O(n) !
> i can do in O(lg n)
> or, given n CREW processors, in O(1) time!
> 
> yes, i have just finished my computational theory and computer
> algorithms honors exam.

Smarty Pants :-)

I give these ideas a go unfortunately the ranges are not contiguous, 
they are all over the place.

Thanks.

Joseph





-- 
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] Finding if a number is in the range

2001-05-17 Thread MaD dUCK

also sprach Zak Greant (on Thu, 17 May 2001 09:35:18PM -0600):
> Or just use a simple chain of if statements :)

yeah, but that's so O(n) !
i can do in O(lg n)
or, given n CREW processors, in O(1) time!

yes, i have just finished my computational theory and computer
algorithms honors exam.

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
-- 
si vis pacem, para bellum

-- 
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] Finding if a number is in the range

2001-05-17 Thread Zak Greant

Or just use a simple chain of if statements :)

if ($num >= 200 && $num <= 299) {
echo "$num is between 200 and 299";
} else if ($num >=1000 && $num <= 2263) {
echo "$num is between 1000 and 2263";
} else if ($num >=2264 && $num <= 2499) {
echo "$num is between 2264 and 2499";
} else {
echo "$num is not between 200 and 299, 
1000 and 2263 or 2264 and 2499";
}

If you have a large number of these to do,
you could store your upper and lower bounds
in an array and use a loop to process the
bounds.

ie.
// set up our bounds
$bounds = array (
-10, -1,
0, 199,
200, 299,
1000, 2263,
2264, 2499
);

// make sure that we have a matched sets of bounds
// the bounds array should have at least 2 elements
// and the remainer (modulus) of $count / 2 should be 0
$count = count ($bounds);

$count > 1 AND 0 === ($count % 2)
OR die ('The $bounds array must contain one or more matched
elements.');

for ($index = 0; $index < $count; $index += 2) {
if ($number >= $bounds[$index] && $number <= $bounds[$index + 1]) {
$between = sprintf ("%s is between %s and %s.",
$number, $bounds[$index], $bounds[$index + 1]);
break;
}
}

if (isset ($between)) {
echo $between;
} else {
// join the bounds into a string separated by ..
$bounds = join ('..', $bounds);

// convert every second set of .. to 
$bounds = ereg_replace ('([^.]+\.\.[^.]+)\.\.', '\1', $bounds);
 
echo "Number $number not found with any of the specified
ranges:$bounds";
}





--zak

- Original Message - 
From: "MaD dUCK" <[EMAIL PROTECTED]>
To: "Joseph Blythe" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 7:53 PM
Subject: Re: [PHP] Finding if a number is in the range


> also sprach Joseph Blythe (on Fri, 18 May 2001 11:12:23AM +0930):
> > How do I find if a number is in a range example:
> 
> assuming that the ranges are continuous, make an array of the first
> number for each range and then implement a custom binary search for
> O(lg n) performance.
> 
> martin;  (greetings from the heart of the sun.)
>   \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
> -- 
> "i wish there was a knob on the tv to turn up the intelligence.
>  there's a knob called 'brightness', but it doesn't seem to work."
>   -- gallagher
> 
> -- 
> 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] running a stand-alone PHP program

2001-05-17 Thread Peter Houchin - SunRentals Australia

Why can't you specify the #!/usr/local/bin/php line in your systems path ??

ie something like this

set PATH=$PATH;/usr/local/bin/php

and then you should be able to go ./foo.php


Peter Houchin
Short Term Rental Manager
[EMAIL PROTECTED]
Telephone : (03) 9329 1455
Facsimile : (03) 9329 6755
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
  
 

-Original Message-
From: midget2000x [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 12:13 PM
To: Nathan Cook; [EMAIL PROTECTED]
Subject: Re: [PHP] running a stand-alone PHP program


Yes, it has the path to PHP on the first line.  So there's no way to hide it? 
It doesn't show up when it's a perl script and it's the path to perl.  

On Thu, 17 May 2001, Nathan Cook wrote:
> Does your script happen to look like this?
> 
> #!/usr/local/bin/php
>  
> If so then it is because of that "magic" line at the top the
> '#!/usr/local/bin/php'.  If you remove that you won't see the path anymore, but
> then the script won't be self executing:
> 
> # ./script.php
> 
> You will have to run them "manually":
> 
> # php script.php
> 
> Nathan Cook
> [EMAIL PROTECTED]
> - Original Message -
> From: "midget2000x" <[EMAIL PROTECTED]>
> To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, May 17, 2001 3:15 PM
> Subject: Re: [PHP] running a stand-alone PHP program
> 
> 
> > Excellent.  I got this working.  From a command line the standalone PHP
> > scripts work well, but if I hit them via http, it renders the path to PHP at
> the
> > top of the page (but does execute the code).  Any fix for that?
> >
> > Thanks,
> >
> > Rory
> >
> > On Thu, 17 May 2001, Nathan Cook wrote:
> > > Not if you are currently running it as an apache module.  If you are running
> it
> > > as a cgi, then it might.  But it sounds as if you are running it as an
> apache
> > > module.
> > >
> > > Nathan Cook
> > > [EMAIL PROTECTED]
> > > - Original Message -
> > > From: "midget2000x" <[EMAIL PROTECTED]>
> > > To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Sent: Thursday, May 17, 2001 10:38 AM
> > > Subject: Re: [PHP] running a stand-alone PHP program
> > >
> > >
> > > > OK, thanks.  This is great.  But will this affect my existing installation
> of
> > > > PHP?  excuse the newbie questions!
> > > >
> > > > I appreciate your help.
> > > >
> > > > Thanks,
> > > >
> > > > Rory
> > > >
> > > > On Wed, 16 May 2001, Nathan Cook wrote:
> > > > > Assuming you are running linux...
> > > > >
> > > > > Just remove the "--with-apache", from the ./configure statement...
> should
> > > look
> > > > > something like this
> > > > >
> > > > > # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql]
> > > > > # make
> > > > > # make install
> > > > >
> > > > > Should install to:
> > > > > # /usr/local/bin/php
> > > > >
> > > > > then you can run scripts by:
> > > > > # /usr/local/bin/php /path/to/script/scriptname
> > > > >
> > > > > Have Fun!
> > > > > Nathan Cook
> > > > > [EMAIL PROTECTED]
> > > > > - Original Message -
> > > > > From: "midget2000x" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, May 16, 2001 2:52 PM
> > > > > Subject: RE: [PHP] running a stand-alone PHP program
> > > > >
> > > > >
> > > > > > I suppose I need to be more clear.  I already have PHP running, but I
> want
> > > to
> > > > > > run actual PHP code that I write as a stand-alone program.  Is this
> what
> > > > > you're
> > > > > > doing?
> > > > > >
> > > > > > On Wed, 16 May 2001, you wrote:
> > > > > > > yeah.  i run it as a CGI.
> > > > > > >
> > > > > > > compile it as a binary, then edit the apache config...
> > > > > > >
> > > > > > > that's it
> > > > > > >
> > > > > > > > -Original Message-
> > > > > > > > From: midget2000x [mailto:[EMAIL PROTECTED]]
> > > > > > > > Sent: Wednesday, May 16, 2001 4:18 PM
> > > > > > > > To: [EMAIL PROTECTED]
> > > > > > > > Subject: [PHP] running a stand-alone PHP program
> > > > > > > >
> > > > > > > >
> > > > > > > > I apologize if this has already been covered...I can't seem to
> find it
> > > in
> > > > > the
> > > > > > > > archives...
> > > >

RE: [PHP] plain text email address to hyperlink?

2001-05-17 Thread Jason Lotito



> -Original Message-
> From: Robert Reed [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, May 17, 2001 10:36 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] plain text email address to hyperlink?
> 
> 
> I've attempted to use the following snippet to convert an 
> email address in plain text to a hyperlink, and while it 
> works fine in a function to verify an email address, it 
> doesn't seem to work to replace all occurances of an email 
> address within a body of text.
> 
> 
> $page = 
> eregi_replace("^[0-9a-z]+([-_./]([0-9a-z]+))*@[0-9a-z]+([-.]([
> 0-9a-z]+))*\\.
> [a-z]{2,4}$","\\1",$pageOne);
> 
> echo $page;
> 
> 
> $pageOne is the body of text that has the email address(es) 
> in it.  Is there a better way of doing this, or would I have 
> to bend and use an array to scan each word for an email 
> address and then convert them from there?
> 
> Thanks in advance,

You can find the code here:
http://www.newbienetwork.net/phpcodems.php?as=viewcode&id=6

Enjoy.

Jason Lotito
www.Newbienetwork.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]




Re: [PHP] PGP with MySQL

2001-05-17 Thread Joseph Blythe

Jeff wrote:

> I am trying to find the maximum security for storing credit card
> numbers.
> 
> >From reading the archives someone mentioned using a PGP based encryption
> to encrypt the credit card number and store it into the database, and
> have the company that is processing the order have the decryption key on
> the their computer.
> 
> Any comments or different ideas on this system?

Jeff,

search of the php-general list archives for 'PGP' as I have been through 
this one and there are a few concerning issues. 

Regards,

Joseph


-- 
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] running a stand-alone PHP program

2001-05-17 Thread midget2000x

Yes, it has the path to PHP on the first line.  So there's no way to hide it? 
It doesn't show up when it's a perl script and it's the path to perl.  

On Thu, 17 May 2001, Nathan Cook wrote:
> Does your script happen to look like this?
> 
> #!/usr/local/bin/php
>  
> If so then it is because of that "magic" line at the top the
> '#!/usr/local/bin/php'.  If you remove that you won't see the path anymore, but
> then the script won't be self executing:
> 
> # ./script.php
> 
> You will have to run them "manually":
> 
> # php script.php
> 
> Nathan Cook
> [EMAIL PROTECTED]
> - Original Message -
> From: "midget2000x" <[EMAIL PROTECTED]>
> To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, May 17, 2001 3:15 PM
> Subject: Re: [PHP] running a stand-alone PHP program
> 
> 
> > Excellent.  I got this working.  From a command line the standalone PHP
> > scripts work well, but if I hit them via http, it renders the path to PHP at
> the
> > top of the page (but does execute the code).  Any fix for that?
> >
> > Thanks,
> >
> > Rory
> >
> > On Thu, 17 May 2001, Nathan Cook wrote:
> > > Not if you are currently running it as an apache module.  If you are running
> it
> > > as a cgi, then it might.  But it sounds as if you are running it as an
> apache
> > > module.
> > >
> > > Nathan Cook
> > > [EMAIL PROTECTED]
> > > - Original Message -
> > > From: "midget2000x" <[EMAIL PROTECTED]>
> > > To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Sent: Thursday, May 17, 2001 10:38 AM
> > > Subject: Re: [PHP] running a stand-alone PHP program
> > >
> > >
> > > > OK, thanks.  This is great.  But will this affect my existing installation
> of
> > > > PHP?  excuse the newbie questions!
> > > >
> > > > I appreciate your help.
> > > >
> > > > Thanks,
> > > >
> > > > Rory
> > > >
> > > > On Wed, 16 May 2001, Nathan Cook wrote:
> > > > > Assuming you are running linux...
> > > > >
> > > > > Just remove the "--with-apache", from the ./configure statement...
> should
> > > look
> > > > > something like this
> > > > >
> > > > > # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql]
> > > > > # make
> > > > > # make install
> > > > >
> > > > > Should install to:
> > > > > # /usr/local/bin/php
> > > > >
> > > > > then you can run scripts by:
> > > > > # /usr/local/bin/php /path/to/script/scriptname
> > > > >
> > > > > Have Fun!
> > > > > Nathan Cook
> > > > > [EMAIL PROTECTED]
> > > > > - Original Message -
> > > > > From: "midget2000x" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, May 16, 2001 2:52 PM
> > > > > Subject: RE: [PHP] running a stand-alone PHP program
> > > > >
> > > > >
> > > > > > I suppose I need to be more clear.  I already have PHP running, but I
> want
> > > to
> > > > > > run actual PHP code that I write as a stand-alone program.  Is this
> what
> > > > > you're
> > > > > > doing?
> > > > > >
> > > > > > On Wed, 16 May 2001, you wrote:
> > > > > > > yeah.  i run it as a CGI.
> > > > > > >
> > > > > > > compile it as a binary, then edit the apache config...
> > > > > > >
> > > > > > > that's it
> > > > > > >
> > > > > > > > -Original Message-
> > > > > > > > From: midget2000x [mailto:[EMAIL PROTECTED]]
> > > > > > > > Sent: Wednesday, May 16, 2001 4:18 PM
> > > > > > > > To: [EMAIL PROTECTED]
> > > > > > > > Subject: [PHP] running a stand-alone PHP program
> > > > > > > >
> > > > > > > >
> > > > > > > > I apologize if this has already been covered...I can't seem to
> find it
> > > in
> > > > > the
> > > > > > > > archives...
> > > > > > > >
> > > > > > > > can PHP be coded and run as a stand-alone program?  If so, where
> can I
> > > get
> > > > > more
> > > > > > > > info on that?
> > > > > > > >
> > > > > > > > I am running Linux and would like to pass some data to PHP from a
> > > > > > > > CGI program.
> > > > > > > >
> > > > > > > > Thanks!
> > > > > > > >
> > > > > > > > Rory
> > > > > > > > ---
> > > > > > > > providing the finest in midget technology
> > > > > > > >
> > > > > > > > --
> > > > > > > > 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]
> > > > > > --
> > > > > > ---
> > > > > > providing the finest in midget technology
> > > > > >
> > > > > > --
> > > > > > 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-ma

[PHP] PGP with MySQL

2001-05-17 Thread Jeff

I am trying to find the maximum security for storing credit card
numbers.

>From reading the archives someone mentioned using a PGP based encryption
to encrypt the credit card number and store it into the database, and
have the company that is processing the order have the decryption key on
the their computer.

Any comments or different ideas on this system?

Thanks

Jeff


-- 
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 Pros/Cons, Case Examples, PHP vs Servlets

2001-05-17 Thread Jeff

Look at www.rit.edu for php examples.  Right now the site has a lot of
different stuff.  But some key areas use php, like SIS, which allowa students
to register for classes, get grade reports, etc. are all done via php

Jeff

Phillip Bow wrote:

> Well from my experience development time with PHP is generally much faster
> than Java development time.  Definately something most people would want to
> factor in.
> YMMV --phill
>
> ""Scott A Winkle"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > Im currently running many scripts myself and other staff members wrote in
> > PHP for the university. Certain others want to eliminate PHP and make
> > everything Java based. It is now in the 'debate meeting' stage, so I need
> > some help. I have done a handful of research already, but im looking for
> > more info.
> >
> > Specifically:
> >
> > Pros/Cons of PHP (in general) ...from your experiences
> > Pros/Cons of PHP in a university environment ...for those working at/with
> > universities/educational institutions
> > Case Examples of PHP use in universities, would be especially helpful for
> > anyone with examples of using PHP with a datatel product.
> > Any info on using PHP with a UniData database, even if its through ODBC.
> > Any cases where you found PHP was better at the task than Java, or
> > vice-versa. Specific examples, etc, would be even better.
> >
> > The meeting is scheduled for May 22, so any info prior would be great
> >
> > Thanks for the help,
> > Scott
> >
> >
> > Scott Winkle
> > Web Developer
> > Phone: (937) 327-7478
> > [EMAIL PROTECTED]
> > Web Team / Wittenberg University Computing Center
> >
>
> --
> 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] how to format a date variable

2001-05-17 Thread Fredrik de Vibe

Carlos Fernando Scheidecker Antunes wrote:

> If I issue the comand date(d."/".m."/".Y." ".H.":".i.":".s)
> I get the Today's date and time formated accordingly.

Don't you want to put the letters inside the quotes?

> So what I need is to format variable $OrderDate to Day/Month/year Hour:Min:Sec.. How 
>can I do it the same way as the Date() function above?

I guess $OrderDate is in the DATETIME format and not the DATE, in which case you'd 
only have, well, the date and not the time. If this is the case, then the format of 
the $OrderDate string will be '-MM-DD
HH:MM:SS'. I haven't tried, but this should work:

There's probably heaps of ways to do this, but this is (hopefully) one.


--Fredrik


-- 
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] plain text email address to hyperlink?

2001-05-17 Thread Robert Reed

I've attempted to use the following snippet to convert an email address
in plain text to a hyperlink, and while it works fine in a function to
verify an email address, it doesn't seem to work to replace all occurances
of an email address within a body of text.


$page =
eregi_replace("^[0-9a-z]+([-_./]([0-9a-z]+))*@[0-9a-z]+([-.]([0-9a-z]+))*\\.
[a-z]{2,4}$","\\1",$pageOne);

echo $page;


$pageOne is the body of text that has the email address(es) in it.  Is there
a better way of doing this, or would I have to bend and use an array to scan
each word for an email address and then convert them from there?

Thanks in advance,

Robert Reed ([EMAIL PROTECTED])
--
WWW -> http://www.theextreme.net
--
"I'd rather not even be than a man
 that's staring in a mirror through 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] How Do I Escape from This List???

2001-05-17 Thread David Robley

On Fri, 18 May 2001 07:07, Ron Pitts wrote:

> Ron Pitts
> Caravela Books
> 134 Goodburlet Road
> Henrietta, NY 14467 http://caravelabooks.com


Didn't I send instructions off list on how to unsubscribe a particular 
address? Do they not work?

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   WWhhaatt ddooeess dduupplleexx mmeeaann??

-- 
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] How do I have a Authentication box pop up?

2001-05-17 Thread David Robley

On Fri, 18 May 2001 04:46, Brandon Orther wrote:
> For some reason that doesn't provoke a Pop-up. Maybe this is because I
> am on an IIS server.  Any Ideas?
>
> I am Running PHP4.0.5 on Windows2k Adv.
>
> Thanks For The Help d:)
>
> Brandon
>
> -Original Message-
> From: Sam Masiello [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 11:42 AM
> To: Brandon Orther; PHP User Group
> Subject: RE: [PHP] How do I have a Authentication box pop up?
>
>
>
> See the following URL in the manual:
>
> http://www.php.net/manual/en/features.http-auth.php
>
> HTH
>
> Sam Masiello
> Systems Analyst
> Chek.Com
> (716) 853-1362 x289
> [EMAIL PROTECTED]

The first line on that page may provide the answer!

"The HTTP Authentication hooks in PHP are only available when it is 
running as an Apache module and is hence not available in the CGI 
version."

Presumably as you are runnig IIS, you will not be using tha Apache module.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   "I have had too many children," said Mary overbearingly.

-- 
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] Netscape 6, What a piece of s$#@ , anyone else had problems with php and Netscape 6?

2001-05-17 Thread Alok K. Dhir

Just tested your code in both NS3, 4 and 6.01 - works fine in all
three...

> -Original Message-
> From: 
> [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED].
net] On Behalf Of Brandon Orther
> Sent: Thursday, May 17, 2001 7:21 PM
> To: PHP User Group
> Subject: RE: [PHP] Netscape 6, What a piece of s$#@ , anyone 
> else had problems with php and Netscape 6?
> 
> 
> This is the HTML that is returned by PHP.  Does anyone know 
> why Netscape Would have problems viewing it?
> 
> 
> 
> 
> Control Maestro Menu System
>   type="text/css">   text="#00" MARGINWIDTH=0 LEFTMARGIN=0 MARGINHEIGHT=0 
> TOPMARGIN=0 background="../html/gray-background.gif"> width="100%" height="100%" border="0" cellspacing="0" 
> cellpadding="0"> 
> 
>   
> 
>class="text">  src="closed.gif" border="0">
>  
>class="text"> Web
> Mail
> 
>   
>   
> 
> 
>class="text">  href="menu.php?open=Account%20Managment"> src="closed.gif" border="0">
>  
>class="text"> Account
> Managment
> 
>   
>   
> 
> 
>class="text">  src="closed.gif" border="0">
>  
>class="text"> Support
> 
>   
>   
> 
> 
>class="text">  src="closed.gif" border="0">
>  
>class="text"> Billing
> 
>   
>   
> 
> 
>class="text">  src="closed.gif" border="0">
>  
>class="text"> Domain
> Managment
> 
>   
>   
> 
> 
>class="text">  src="closed.gif" border="0">
>  
>class="text"> Business
> Center
> 
>   
>   
> 
>   
> 
>  src="menu_edge.gif">
> 
> 
> 
> -Original Message-
> From: DAve Goodrich [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 2:02 PM
> To: Billy Harvey; [EMAIL PROTECTED]
> Subject: Re: [PHP] Netscape 6, What a piece of s$#@ , anyone 
> else hadproblems with php and Netscape 6?
> 
> 
> Do you have a URL I could try? I've used PHP to generate a 
> lot of dynamic js and css.
> 
> DAve
> 
> on 5/17/01 1:50 PM, Billy Harvey at 
> [EMAIL PROTECTED] wrote:
> 
> >> 1. I am not making a JavaScript version at all I don't see where I 
> >> ever
> say
> >> this. ???
> >>
> >> 2. If I copy the html outputted to the browser and past it into an 
> >> html
> file
> >> it loads good.  When I say I suspect this to be something 
> wrong with 
> >> PHP
> I
> >> mean that Netscape doesn't play good with PHP.(Not that 
> PHP has a bug 
> >> in
> it)
> >>
> >> Thanks,
> >> Brandon
> >
> > Brandon,
> >
> > Neither Netscape nor any other browser has any clue that 
> PHP is being 
> > used on the server.  All broswers simply interpret the html, 
> > javascript, java, etc.that gets sent to them.  PHP is not a 
> factor in 
> > whatever is causing a browser to misbehave.  For Netscape 
> it's often 
> > an improperly formed table that causes trouble.  I 
> occassionally find 
> > that people also use IE-centric code without realizing it 
> (or perhaps 
> > without caring initially).
> >
> > Billy
> 
> --
> Dave Goodrich
> Director of Interface Development
> Reality Based Learning Company
> 9521 NE Willows Road, Suite 100
> Redmond, WA 98052
> Toll Free 1-877-869-6603 ext. 237
> Fax (425) 558-5655
> [EMAIL PROTECTED]
> http://www.rblc.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]
> 
> 


-- 
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] Mail with Win2K

2001-05-17 Thread David Robley

On Fri, 18 May 2001 01:41, Brandon Orther wrote:
> Hello,
>
> I usually use  Linux as my OS so I am not to familure with Windows as a
> web server.  The problem I am facing now is the mail function in
> windows.  It doesn't seem to work.  Does anyone know what I need to do
> to use the mail() function on a Win2k advanced server box?  PHP 4.0.5
>
> Thanks
> Brandon

You'll need to define which smtp server you are using, in your php.ini. 

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   I like to leave messages *before* the beep.

-- 
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 DO I UNSUBSCRIBE? NOTHING WORKS!

2001-05-17 Thread Ron Pitts

 INSTRUCTIONS FOR GIVING YOUR CAT A PILL

 1) Pick cat up and cradle it in the crook of your left arm as if 
holding a
baby. Position right forefinger and thumb on either side of cat's 
mouth and
gently apply pressure to cheeks while holding pill in right hand. As 
cat opens
mouth pop pill into mouth. allow cat to close mouth and swallow.

 2) Retrieve pill from floor and cat from behind sofa. Cradle cat in 
left arm
and repeat process.

 3) Retrieve cat from bedroom, and throw soggy pill away.

 4) Take new pill from foil wrap, cradle cat in left arm holding rear 
paws
tightly with left hand. Force jaws open and push pill to back of 
mouth with
right fore-finger. Hold mouth shut for a count of ten.

 5) Retrieve pill from goldfish bowl and cat from top of wardrobe. 
Call spouse
from garden.

 6) Kneel on floor with cat wedged firmly between knees, hold front 
and rear
paws. Ignore low growls emitted by cat. Get spouse to hold head 
firmly with one
hand while forcing wooden ruler into mouth. Drop pill down ruler and 
rub cat's
throat vigorously.

 7) Retrieve cat from curtain rail, get another pill from foil wrap. 
Make note
to buy new ruler and repair curtains. Carefully sweep shattered 
Doulton figures
from hearth and set to one side for gluing later.

 8) Wrap cat in large towel and get spouse to lie on cat with head 
just visible
from below armpit. Put pill in end of drinking straw, force mouth 
open with
pencil and blow down drinking straw.

 9) Check label to make sure pill not harmful to humans, drink 
glass of water
to take taste away. Apply band-aid to spouse's forearm and remove 
blood from
carpet with cold water and soap.

 10) Retrieve cat from neighbor's shed. Get another pill. Place cat 
in cupboard
and close door onto neck to leave head showing. Force mouth 
open with dessert
spoon. Flick pill down throat with elastic band.

 11) Fetch screwdriver from garage and put door back on hinges. 
Apply cold
compress to cheek and check records for date of last tetanus jab. 
Throw
Tee-shirt away and fetch new one from bedroom.

 12) Ring fire brigade to retrieve cat from tree across the road. 
Apologize to
neighbor who crashed into fence while swerving to avoid cat. Take 
last pill
from foil-wrap.

 13) Tie cats front paws to rear paws with garden twine and bind 
tightly to leg
of dining table, find heavy duty pruning gloves from shed, force cat's 
mouth
open with small spanner. Push pill into mouth followed by large 
piece of fillet
steak. Hold head vertically and pour 1/2 pint of water down throat to 
wash pill
down.

 14) Get spouse to drive you to the emergency room, sit quietly 
while doctor
stitches fingers and forearm and removes pill remnants from right 
eye. Call at
furniture shop on way home to order new table. 


Ron Pitts
Caravela Books
134 Goodburlet Road
Henrietta, NY 14467 http://caravelabooks.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]




Re: [PHP] Finding if a number is in the range

2001-05-17 Thread MaD dUCK

also sprach Joseph Blythe (on Fri, 18 May 2001 11:12:23AM +0930):
> How do I find if a number is in a range example:

assuming that the ranges are continuous, make an array of the first
number for each range and then implement a custom binary search for
O(lg n) performance.

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
-- 
"i wish there was a knob on the tv to turn up the intelligence.
 there's a knob called 'brightness', but it doesn't seem to work."
  -- gallagher

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

2001-05-17 Thread John Monfort



  Can you connect to MySQL manually?

  If so, then you should be able to connect with PHP's
mysql_connect($username,$password,$host);



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 17 May 2001, Andreas Pucko wrote:

> Hello,
>
> I am trying to get mysql running and connect via php to it.
>
> how can I set the password in a unixshell to get access to it?
>
> When I try to access the db I get:
>
>
> Warning: MySQL Connection Failed: Access denied for user: 'root@localhost'
> (Using password: NO) in /psr/mysqladmin/lib.inc.php on line 255
> Error
>
> Andy suggestions?
>
> Cheers
>
> Andy
>
>
> --
> 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] Finding if a number is in the range

2001-05-17 Thread Joseph Blythe

hello,

How do I find if a number is in a range example:

0200-0299
1000-2263
2264-2499

Lets say I choose 203 how would find which number range it was in?

I was sort of thinking of using arrays of all the number ranges and 
using the in_array function to find which range the numbers are in, but 
this would take some time as there are around 3000+ numbers.

I do however have all the numbers in a database already but they are not 
categorized in ranges.

A better way?

Thanks

Joseph




-- 
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] sessions / cookies / header("Location...

2001-05-17 Thread Christian Dechery

it does not have anything to do with my browser... that's for sure...
I'm using MSIE 5.5, and never had any trouble... and as I said on the 
email... it used to work fine... it just stopped working...

and now yet some fresh info... it's working again now... I've tried...
one thing I noticed, that when I was testing and it was not working f2s.com 
was relly slow... sluggish really... then 1 hour later got faster... I 
tested it and it worked...

so... does speed has anything to do with it? Maybe they were doing some 
maintenance or whatever...



At 14:35 17/5/2001 -0500, Chris Lee wrote:
>yup, your browser is not accepting cookies. thats a good guess. when a 
>browser does not accept cookies, trans-sid will kick in, trans-sid will 
>not work on full urls, just reletive urls.
>
>no trans-sid
>http://www.mediawaveonline.com/index.php
>
>trans-sid
>/index.php
>
>header redirectect require (supposed to require) full urls. in other words 
>its a good idea to put PHPSESSID=$PHPSESSID on all your full urls anyhow, 
>just incase for non-cookie browsers.
>
>--
>
>  Chris Lee
>  [EMAIL PROTECTED]
>
>
>
>"Christian Dechery" <[EMAIL PROTECTED]> wrote in message 
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>I have a page that does a login... right after the login is successfull it
>registers a session var called 'userid'... and does a header("Location:
>newpage.php") which checks for the existance of this var... if it exists it
>will show, otherwise it goes back to the login page...
>
>the weird thing is... it always worked fine, even if I logged in and out
>with three different users to test it... but now it only works if I replace
>the header() thing with:
>header("Location: newpage.php?PHPSESSID=$PHPSESSID")
>
>why is this weird now? it use to work...
>and the weird thing is... while in newpage.php the user does some stuff
>which calls itself and also gets this 'userid' var... and gets it fine
>without any PHPSESSID stuff...
>
>any clues?
>
>
>--
>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]


. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer


-- 
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] referer from email client

2001-05-17 Thread Eris Ristemena

the case was i do not have such control to put any
variable on the URL. :(

ers

--- [EMAIL PROTECTED] wrote:
> simpler to just put a variable on the link
> 
> http://foo.bar?refer=email or whatever... 
> 
> [EMAIL PROTECTED] wrote:
> > hellos,
> > 
> > how can we know the referer link is from an email
> > client like outlook ? i have tried this, and the
> > $HTTP_REFERRER is empty. 
> > 
> > thanks
> > ers
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great
> prices
> > http://auctions.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]
> 
> > 
> >  
> 
> --
> Michael Geier
> CDM Sports, Inc. - Systems Administrator
>  email: [EMAIL PROTECTED]
>  phone: 314.991.1511 x 6505
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.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]




Re: [PHP] Can't download 4.0.5

2001-05-17 Thread nbrosnahan

It works now.  I guess someone heard my plea.

""nbrosnahan"" <[EMAIL PROTECTED]> wrote in message
9e1p7l$cdv$[EMAIL PROTECTED]">news:9e1p7l$cdv$[EMAIL PROTECTED]...
> Anyone know why?
>
>
http://www.php.net/do_download.php?download_file=php-4.0.5-Win32.zip&source_
> site=www.php.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] Why is this not working

2001-05-17 Thread Chris Fry

Peter,

You are correct - I did this last year:

 $strEncryptedPasswd = crypt($Password, "\0");
 $strUserInfo = $UserID.":".$strEncryptedPasswd."\n";

where $Password is the input password & $UserID is the user id.

Just read your .htpasswd file into an array and cycle through it writing out
each line in turn if the user id doesn't match the one you are changing and
write out your new line if it matches.

For a new one just append to the end of the file.

Don't profess to understand the "Salt" component of this but it works for me.

Chris Fry

Peter Dudley wrote:

> can you write directly to the password file using crypt() instead of trying
> to run the htpasswd program?  I think I used to do this in Perl, but it's
> been a LONG time since I tried it.  I think it worked, though.
>
> Pete.
> PS:  I'm also pretty sure that if you can't write direclty to the .htpasswd
> file, you can specify multiple password files in your .htaccess file, and
> you should be able to write to an alternative password file.
>
> ""YoBro"" <[EMAIL PROTECTED]> wrote in message
> 9e1okc$3de$[EMAIL PROTECTED]">news:9e1okc$3de$[EMAIL PROTECTED]...
> > The .htpasswd file lives in the root of my user account.
> > ie:
> >
> > [www] directory
> >  .htpasswd file
> >
> > It then goes:
> >
> > [www]
> >  |
> >  [public_html]
> >  [htocs]
> >   |
> >   All website content etc
> >
> > If I go beyond the www directory, I get a list of hundreds of directories
> > and files.
> > This is where I found the the htpasswd executable under
> >
> > /usr/local/bin
> >
> > Even if i define that path in my code it is still not working
> > The output of ls the root beyond www dir is far to much to put into this
> > message.
> >
> > Is that what you were asking, or am on the wrong track?
> >
> > YoBro
> >
> >
> >
> >
> > "MaD dUCK" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > also sprach YoBro (on Fri, 18 May 2001 10:45:12AM +1200):
> > > > If I try su nobody it asks for nobody's password. If i enter no
> > > > password a I get Authentication denied.
> > >
> > > you aren't root.
> > >
> > > can you give me an output of 'ls -l '
> > >
> > > martin;  (greetings from the heart of the sun.)
> > >   \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
> > > --
> > > printer not ready.
> > > could be a fatal error.
> > > have a pen handy?
> > >
> > > --
> > > 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]

--
Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



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

I thought about.
But I need to be able to change user passwords also.
Writing directly to the file will only add another user.
Unless you know any ways of breaking apart the file and picking out the user
names then changing the password for that name.

EG
A typical htpasswd file with two entries...
jim:17IpSNa/jwy0M
dave:41xXSdxl.xgC2

I guess break it apart where delimited by ":" but how.
I have no idea where to even begin writing code like that. Good thought
though.


""Peter Dudley"" <[EMAIL PROTECTED]> wrote in message
9e1p79$b1r$[EMAIL PROTECTED]">news:9e1p79$b1r$[EMAIL PROTECTED]...
> can you write directly to the password file using crypt() instead of
trying
> to run the htpasswd program?  I think I used to do this in Perl, but it's
> been a LONG time since I tried it.  I think it worked, though.
>
> Pete.
> PS:  I'm also pretty sure that if you can't write direclty to the
.htpasswd
> file, you can specify multiple password files in your .htaccess file, and
> you should be able to write to an alternative password file.
>
> ""YoBro"" <[EMAIL PROTECTED]> wrote in message
> 9e1okc$3de$[EMAIL PROTECTED]">news:9e1okc$3de$[EMAIL PROTECTED]...
> > The .htpasswd file lives in the root of my user account.
> > ie:
> >
> > [www] directory
> >  .htpasswd file
> >
> > It then goes:
> >
> > [www]
> >  |
> >  [public_html]
> >  [htocs]
> >   |
> >   All website content etc
> >
> > If I go beyond the www directory, I get a list of hundreds of
directories
> > and files.
> > This is where I found the the htpasswd executable under
> >
> > /usr/local/bin
> >
> > Even if i define that path in my code it is still not working
> > The output of ls the root beyond www dir is far to much to put into this
> > message.
> >
> > Is that what you were asking, or am on the wrong track?
> >
> > YoBro
> >
> >
> >
> >
> > "MaD dUCK" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > also sprach YoBro (on Fri, 18 May 2001 10:45:12AM +1200):
> > > > If I try su nobody it asks for nobody's password. If i enter no
> > > > password a I get Authentication denied.
> > >
> > > you aren't root.
> > >
> > > can you give me an output of 'ls -l '
> > >
> > > martin;  (greetings from the heart of the sun.)
> > >   \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
> > > --
> > > printer not ready.
> > > could be a fatal error.
> > > have a pen handy?
> > >
> > > --
> > > 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 YoBro

Actually,

I found out this
By executing what you mentioned earlier:
ls -l
the path I get for htpasswd is...
usr/local/apache/utils

I have then tried in my PHP code

$go = "/user/local/apache/utils/htpasswd -b users/domain/.htpasswd abc
pass";
passthru ("$go");

Still no luck.




"MaD dUCK" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> also sprach YoBro (on Fri, 18 May 2001 10:45:12AM +1200):
> > If I try su nobody it asks for nobody's password. If i enter no
> > password a I get Authentication denied.
>
> you aren't root.
>
> can you give me an output of 'ls -l '
>
> martin;  (greetings from the heart of the sun.)
>   \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
> --
> printer not ready.
> could be a fatal error.
> have a pen handy?
>
> --
> 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] Can't download 4.0.5

2001-05-17 Thread nbrosnahan

Anyone know why?

http://www.php.net/do_download.php?download_file=php-4.0.5-Win32.zip&source_
site=www.php.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]




Re: [PHP] Why is this not working

2001-05-17 Thread Peter Dudley

can you write directly to the password file using crypt() instead of trying
to run the htpasswd program?  I think I used to do this in Perl, but it's
been a LONG time since I tried it.  I think it worked, though.

Pete.
PS:  I'm also pretty sure that if you can't write direclty to the .htpasswd
file, you can specify multiple password files in your .htaccess file, and
you should be able to write to an alternative password file.

""YoBro"" <[EMAIL PROTECTED]> wrote in message
9e1okc$3de$[EMAIL PROTECTED]">news:9e1okc$3de$[EMAIL PROTECTED]...
> The .htpasswd file lives in the root of my user account.
> ie:
>
> [www] directory
>  .htpasswd file
>
> It then goes:
>
> [www]
>  |
>  [public_html]
>  [htocs]
>   |
>   All website content etc
>
> If I go beyond the www directory, I get a list of hundreds of directories
> and files.
> This is where I found the the htpasswd executable under
>
> /usr/local/bin
>
> Even if i define that path in my code it is still not working
> The output of ls the root beyond www dir is far to much to put into this
> message.
>
> Is that what you were asking, or am on the wrong track?
>
> YoBro
>
>
>
>
> "MaD dUCK" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > also sprach YoBro (on Fri, 18 May 2001 10:45:12AM +1200):
> > > If I try su nobody it asks for nobody's password. If i enter no
> > > password a I get Authentication denied.
> >
> > you aren't root.
> >
> > can you give me an output of 'ls -l '
> >
> > martin;  (greetings from the heart of the sun.)
> >   \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
> > --
> > printer not ready.
> > could be a fatal error.
> > have a pen handy?
> >
> > --
> > 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] authenticating in other web server

2001-05-17 Thread Romulo Roberto Pereira

Hello!

I am in an server with Apache and PHP. I want PHP to authenticate in other
server (Novell with Netscape). Like this:

SSL (PAGE 1 SERVER 1) ->-->- SSL (PAGE 2 SERVER 2)

SERVER 1: Apache and PHP
SERVER 2: Novell with Netscape

PAGE 1: PHP script page
PAGE 2: PHP script page

Without asking again the username and password (I would be passing them in
the authentication time behind the scenes).

Please help!

Rom

P.S.: In my stupidity I try to do the following:

header ("Location: https://USERNAME:PASSWORD@SERVER_ADDRESS/DIR/PAGE2.PHP";);



-- 
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] Incoming XML request

2001-05-17 Thread Michael Conley

I want to set up a page that can accept an XML string, which I will then
parse for the data I need, perform a database lookup based on that data and
return an XML string to the client.  I am unsure of where to start this.

1.  I don't know how to have my PHP page capture the XML string they send
me.  This will be an automated system, so my web server needs to be ready to
accept their XML string.
2.  If I can take the XML string from #1 and assign it to a variable, I can
extract the information I need.
3.  If I can do #1 and #2, I can do the database lookups that I need.
4.  How do I send them the results of my lookups in XML?

I am running PHP4.04pl1 on RedHat 7.1 and Apache 1.3.14.  I have SSL and
cURL installed and working properly.




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

The .htpasswd file lives in the root of my user account.
ie:

[www] directory
 .htpasswd file

It then goes:

[www]
 |
 [public_html]
 [htocs]
  |
  All website content etc

If I go beyond the www directory, I get a list of hundreds of directories
and files.
This is where I found the the htpasswd executable under

/usr/local/bin

Even if i define that path in my code it is still not working
The output of ls the root beyond www dir is far to much to put into this
message.

Is that what you were asking, or am on the wrong track?

YoBro




"MaD dUCK" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> also sprach YoBro (on Fri, 18 May 2001 10:45:12AM +1200):
> > If I try su nobody it asks for nobody's password. If i enter no
> > password a I get Authentication denied.
>
> you aren't root.
>
> can you give me an output of 'ls -l '
>
> martin;  (greetings from the heart of the sun.)
>   \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
> --
> printer not ready.
> could be a fatal error.
> have a pen handy?
>
> --
> 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] Help..Date Format

2001-05-17 Thread Don Read


On 17-May-01 Jack Sasportas wrote:
> OK I have asked the question before and not really gotten the answer, so
> I will re-word what I am trying to do.
> First I figured out that part of my problem may be how I am storing the
> date into mysql from php.
> Currently we are using the now() function to store the date in one field
> and the time in another.  I know understand what is physically being
> stored in the db.
> 
> I am trying to retreive the date value from the mysql db, and display it
> on the screen in a standard format like 05/08/01.
> What I get right now is 2001-05-09.
> Also the time comes out like so: 227:08:22
> 
> I have tried this:
> $t_data_array[1]=date("m/d/y",mysql_result($db_result,$db_record,'date'));
> 
> and the result is: 12/31/69 formatted nicely but that date is 5/9/2001
> not 1969.
> 
> I have tried several suggestions and other things, but I am not being
> successful.
> 
> 
> Here is what I am trying to do:
> I would like the result of the date to be formatted as 05/01/01
> and the time as 18:51
> 
> Please give me some very specific instructions, this is a silly thing to
> be stuck on...
> 
>$t_data_array[1]=mysql_result($db_result,$db_record,'date');
>$t_data_array[2]=mysql_result($db_result,$db_record,'time');
> 

A. Have MySQL do the formatting:
  select DATE_FORMAT('%m/%d/%y %r', mydate) as da_date from ...

B. parse it and let PHP do the heavy lifting:
list ($y, $m, $d, $h, $i, $s)=explode('- :', $row->mydate);
$da_date=strftime('%D %r', mktime($h, $i, $s, $m, $d, $y);

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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] url_rewriter.tags & PHPSESSID automaticly added to URLS

2001-05-17 Thread Chris Cowan

Does anyone know why the $PHPSESSID would be automaticly added to the url on
PWS on Win2000 but not on IIS 4 on WinNT 4.0? Is this a feature dependent on
the web server of is there something wrong on my server?

Chris



-- 
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 MaD dUCK

also sprach YoBro (on Fri, 18 May 2001 10:45:12AM +1200):
> If I try su nobody it asks for nobody's password. If i enter no
> password a I get Authentication denied.

you aren't root.

can you give me an output of 'ls -l '

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
-- 
printer not ready.
could be a fatal error.
have a pen handy?

-- 
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] xmlHTTP.send equiv?

2001-05-17 Thread Michael Conley

does anyone have info on this?

-Original Message-
From: Todd Kennedy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 1:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP] xmlHTTP.send equiv?


Does anyone know of an equivilent for ASP's xmlHTTP.send command for
PHP?

i need to send a XML string out to an HTTP server without using user
interaction (from the inside of a script).

please respond via email at [EMAIL PROTECTED]

thanks


-- 
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] Netscape 6, What a piece of s$#@ , anyone else hadproblems with php and Netscape 6?

2001-05-17 Thread DAve Goodrich

You need some closing table row tags in lines 19,34,49,64,79,94.

DAve


on 5/17/01 4:21 PM, Brandon Orther at [EMAIL PROTECTED] wrote:



> 
> --
> Dave Goodrich
> Director of Interface Development
> Reality Based Learning Company
> 9521 NE Willows Road, Suite 100
> Redmond, WA 98052
> Toll Free 1-877-869-6603 ext. 237
> Fax (425) 558-5655
> [EMAIL PROTECTED]
> http://www.rblc.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]
> 

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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]




Re: [PHP] running a stand-alone PHP program

2001-05-17 Thread Nathan Cook

Does your script happen to look like this?

#!/usr/local/bin/php

To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 3:15 PM
Subject: Re: [PHP] running a stand-alone PHP program


> Excellent.  I got this working.  From a command line the standalone PHP
> scripts work well, but if I hit them via http, it renders the path to PHP at
the
> top of the page (but does execute the code).  Any fix for that?
>
> Thanks,
>
> Rory
>
> On Thu, 17 May 2001, Nathan Cook wrote:
> > Not if you are currently running it as an apache module.  If you are running
it
> > as a cgi, then it might.  But it sounds as if you are running it as an
apache
> > module.
> >
> > Nathan Cook
> > [EMAIL PROTECTED]
> > - Original Message -
> > From: "midget2000x" <[EMAIL PROTECTED]>
> > To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Thursday, May 17, 2001 10:38 AM
> > Subject: Re: [PHP] running a stand-alone PHP program
> >
> >
> > > OK, thanks.  This is great.  But will this affect my existing installation
of
> > > PHP?  excuse the newbie questions!
> > >
> > > I appreciate your help.
> > >
> > > Thanks,
> > >
> > > Rory
> > >
> > > On Wed, 16 May 2001, Nathan Cook wrote:
> > > > Assuming you are running linux...
> > > >
> > > > Just remove the "--with-apache", from the ./configure statement...
should
> > look
> > > > something like this
> > > >
> > > > # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql]
> > > > # make
> > > > # make install
> > > >
> > > > Should install to:
> > > > # /usr/local/bin/php
> > > >
> > > > then you can run scripts by:
> > > > # /usr/local/bin/php /path/to/script/scriptname
> > > >
> > > > Have Fun!
> > > > Nathan Cook
> > > > [EMAIL PROTECTED]
> > > > - Original Message -
> > > > From: "midget2000x" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, May 16, 2001 2:52 PM
> > > > Subject: RE: [PHP] running a stand-alone PHP program
> > > >
> > > >
> > > > > I suppose I need to be more clear.  I already have PHP running, but I
want
> > to
> > > > > run actual PHP code that I write as a stand-alone program.  Is this
what
> > > > you're
> > > > > doing?
> > > > >
> > > > > On Wed, 16 May 2001, you wrote:
> > > > > > yeah.  i run it as a CGI.
> > > > > >
> > > > > > compile it as a binary, then edit the apache config...
> > > > > >
> > > > > > that's it
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: midget2000x [mailto:[EMAIL PROTECTED]]
> > > > > > > Sent: Wednesday, May 16, 2001 4:18 PM
> > > > > > > To: [EMAIL PROTECTED]
> > > > > > > Subject: [PHP] running a stand-alone PHP program
> > > > > > >
> > > > > > >
> > > > > > > I apologize if this has already been covered...I can't seem to
find it
> > in
> > > > the
> > > > > > > archives...
> > > > > > >
> > > > > > > can PHP be coded and run as a stand-alone program?  If so, where
can I
> > get
> > > > more
> > > > > > > info on that?
> > > > > > >
> > > > > > > I am running Linux and would like to pass some data to PHP from a
> > > > > > > CGI program.
> > > > > > >
> > > > > > > Thanks!
> > > > > > >
> > > > > > > Rory
> > > > > > > ---
> > > > > > > providing the finest in midget technology
> > > > > > >
> > > > > > > --
> > > > > > > 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]
> > > > > --
> > > > > ---
> > > > > providing the finest in midget technology
> > > > >
> > > > > --
> > > > > 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]
> > > > >
> > > > >
> > > --
> > > ---
> > > providing the finest in midget technology
> > >
> --
> ---
> providing the finest in midget technology
>
> --
> 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] Netscape 6, What a piece of s$#@ , anyone else had problems with php and Netscape 6?

2001-05-17 Thread Johnson, Kirk

Always a good idea to do a View Source, capture that to a file, then run it
through a tag checker program.

Kirk

> -Original Message-
> From: Brandon Orther [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 5:21 PM
> To: PHP User Group
> Subject: RE: [PHP] Netscape 6, What a piece of s$#@ , anyone else had
> problems with php and Netscape 6?
> 
> 
> This is the HTML that is returned by PHP.  Does anyone know 
> why Netscape
> Would have problems viewing it?
> 

-- 
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] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-17 Thread Jack Dempsey

looking at it quickly, it looks like you don't close your  tag
before you open another, right about here:


> 
>   
> 
> href="menu.php?open=Web%20Mail">
>  
> href="menu.php?open=Web%20Mail">Web
> Mail
should be a closing  here

> 
>   
>   
> 
> 
> href="menu.php?open=Account%20Managment">
>  
> href="menu.php?open=Account%20Managment">Account
> Managment
> 
>   
>   
> 
> 
> href="menu.php?open=Support">
>  
> href="menu.php?open=Support">Support
> 
>   
>   
> 
> 
> href="menu.php?open=Billing">
>  
> href="menu.php?open=Billing">Billing
> 
>   
>   
> 
> 
> href="menu.php?open=Domain%20Managment">
>  
> href="menu.php?open=Domain%20Managment">Domain
> Managment
> 
>   
>   
> 
> 
> href="menu.php?open=Business%20Center">
>  
> href="menu.php?open=Business%20Center">Business
> Center
> 
>   
>   
> 
>   
> 
>  src="menu_edge.gif">
> 
> 
> 
> -Original Message-
> From: DAve Goodrich [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 2:02 PM
> To: Billy Harvey; [EMAIL PROTECTED]
> Subject: Re: [PHP] Netscape 6, What a piece of s$#@ , anyone else
> hadproblems with php and Netscape 6?
> 
> Do you have a URL I could try? I've used PHP to generate a lot of dynamic js
> and css.
> 
> DAve
> 
> on 5/17/01 1:50 PM, Billy Harvey at [EMAIL PROTECTED] wrote:
> 
> >> 1. I am not making a JavaScript version at all I don't see where I ever
> say
> >> this. ???
> >>
> >> 2. If I copy the html outputted to the browser and past it into an html
> file
> >> it loads good.  When I say I suspect this to be something wrong with PHP
> I
> >> mean that Netscape doesn't play good with PHP.(Not that PHP has a bug in
> it)
> >>
> >> Thanks,
> >> Brandon
> >
> > Brandon,
> >
> > Neither Netscape nor any other browser has any clue that PHP is being
> > used on the server.  All broswers simply interpret the html,
> > javascript, java, etc.that gets sent to them.  PHP is not a factor in
> > whatever is causing a browser to misbehave.  For Netscape it's often
> > an improperly formed table that causes trouble.  I occassionally find
> > that people also use IE-centric code without realizing it (or perhaps
> > without caring initially).
> >
> > Billy
> 
> --
> Dave Goodrich
> Director of Interface Development
> Reality Based Learning Company
> 9521 NE Willows Road, Suite 100
> Redmond, WA 98052
> Toll Free 1-877-869-6603 ext. 237
> Fax (425) 558-5655
> [EMAIL PROTECTED]
> http://www.rblc.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]

-- 
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] Netscape 6, What a piece of s$#@ , anyone else had problems with php and Netscape 6?

2001-05-17 Thread Jeff Pearson

Brandon,

The  tag at the end of the Billing row is not closed. Ive seen NS choke
because of that.

Jeff Pearson

> -Original Message-
> From: Brandon Orther [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 4:21 PM
> To: PHP User Group
> Subject: RE: [PHP] Netscape 6, What a piece of s$#@ , anyone else had
> problems with php and Netscape 6?
>
>
> This is the HTML that is returned by PHP.  Does anyone know why Netscape
> Would have problems viewing it?
>
>
> 
> 
> Control Maestro Menu System
> 
> 
> 
>  MARGINHEIGHT=0 TOPMARGIN=0 background="../html/gray-background.gif"> width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
> 
> 
>   
> 
>class="text">  href="menu.php?open=Web%20Mail">
>  
>class="text">  href="menu.php?open=Web%20Mail">Web
> Mail
> 
>   
>   
> 
> 
>class="text">  href="menu.php?open=Account%20Managment">
>  
>class="text">  href="menu.php?open=Account%20Managment">Account
> Managment
> 
>   
>   
> 
> 
>class="text">  href="menu.php?open=Support">
>  
>class="text">  href="menu.php?open=Support">Support
> 
>   
>   
> 
> 
>class="text">  href="menu.php?open=Billing">
>  
>class="text">  href="menu.php?open=Billing">Billing
> 
>   
>   
> 
> 
>class="text">  href="menu.php?open=Domain%20Managment">
>  
>class="text">  href="menu.php?open=Domain%20Managment">Domain
> Managment
> 
>   
>   
> 
> 
>class="text">  href="menu.php?open=Business%20Center">
>  
>class="text">  href="menu.php?open=Business%20Center">Business
> Center
> 
>   
>   
> 
>   
> 
>  src="menu_edge.gif">
> 
> 
>
> -Original Message-
> From: DAve Goodrich [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 2:02 PM
> To: Billy Harvey; [EMAIL PROTECTED]
> Subject: Re: [PHP] Netscape 6, What a piece of s$#@ , anyone else
> hadproblems with php and Netscape 6?
>
>
> Do you have a URL I could try? I've used PHP to generate a lot of
> dynamic js
> and css.
>
> DAve
>
> on 5/17/01 1:50 PM, Billy Harvey at [EMAIL PROTECTED] wrote:
>
> >> 1. I am not making a JavaScript version at all I don't see where I ever
> say
> >> this. ???
> >>
> >> 2. If I copy the html outputted to the browser and past it into an html
> file
> >> it loads good.  When I say I suspect this to be something
> wrong with PHP
> I
> >> mean that Netscape doesn't play good with PHP.(Not that PHP
> has a bug in
> it)
> >>
> >> Thanks,
> >> Brandon
> >
> > Brandon,
> >
> > Neither Netscape nor any other browser has any clue that PHP is being
> > used on the server.  All broswers simply interpret the html,
> > javascript, java, etc.that gets sent to them.  PHP is not a factor in
> > whatever is causing a browser to misbehave.  For Netscape it's often
> > an improperly formed table that causes trouble.  I occassionally find
> > that people also use IE-centric code without realizing it (or perhaps
> > without caring initially).
> >
> > Billy
>
> --
> Dave Goodrich
> Director of Interface Development
> Reality Based Learning Company
> 9521 NE Willows Road, Suite 100
> Redmond, WA 98052
> Toll Free 1-877-869-6603 ext. 237
> Fax (425) 558-5655
> [EMAIL PROTECTED]
> http://www.rblc.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]
>


-- 
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] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-17 Thread Brandon Orther

This is the HTML that is returned by PHP.  Does anyone know why Netscape
Would have problems viewing it?




Control Maestro Menu System






  

   
 
   Web
Mail

  
  


   
 
   Account
Managment

  
  


   
 
   Support

  
  


   
 
   Billing

  
  


   
 
   Domain
Managment

  
  


   
 
   Business
Center

  
  

  





-Original Message-
From: DAve Goodrich [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 2:02 PM
To: Billy Harvey; [EMAIL PROTECTED]
Subject: Re: [PHP] Netscape 6, What a piece of s$#@ , anyone else
hadproblems with php and Netscape 6?


Do you have a URL I could try? I've used PHP to generate a lot of dynamic js
and css.

DAve

on 5/17/01 1:50 PM, Billy Harvey at [EMAIL PROTECTED] wrote:

>> 1. I am not making a JavaScript version at all I don't see where I ever
say
>> this. ???
>>
>> 2. If I copy the html outputted to the browser and past it into an html
file
>> it loads good.  When I say I suspect this to be something wrong with PHP
I
>> mean that Netscape doesn't play good with PHP.(Not that PHP has a bug in
it)
>>
>> Thanks,
>> Brandon
>
> Brandon,
>
> Neither Netscape nor any other browser has any clue that PHP is being
> used on the server.  All broswers simply interpret the html,
> javascript, java, etc.that gets sent to them.  PHP is not a factor in
> whatever is causing a browser to misbehave.  For Netscape it's often
> an improperly formed table that causes trouble.  I occassionally find
> that people also use IE-centric code without realizing it (or perhaps
> without caring initially).
>
> Billy

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655
[EMAIL PROTECTED]
http://www.rblc.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] dynamically naming arrays

2001-05-17 Thread Matt McClanahan

On Thu, May 17, 2001 at 01:27:52PM -0400, Matthew Luchak wrote:

> any hints on dynamically naming arrays?
> 
> ie:
> 
> $stuff= explode ("!", $contents);
> 
> //$stuff[3] is "foo"
> 
> $stuff[3]=explode("&",$stuff[4]);

${$stuff[3]} = '...';

http://www.php.net/manual/en/language.variables.variable.php

Matt

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

2001-05-17 Thread Jack Sasportas

pass the parameter -p and it will ask you for the password

Andreas Pucko wrote:

> Hello,
>
> I am trying to get mysql running and connect via php to it.
>
> how can I set the password in a unixshell to get access to it?
>
> When I try to access the db I get:
>
> Warning: MySQL Connection Failed: Access denied for user: 'root@localhost'
> (Using password: NO) in /psr/mysqladmin/lib.inc.php on line 255
> Error
>
> Andy suggestions?
>
> Cheers
>
> Andy
>
> --
> 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]

--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.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] Help..Date Format

2001-05-17 Thread Jack Sasportas

OK I have asked the question before and not really gotten the answer, so
I will re-word what I am trying to do.
First I figured out that part of my problem may be how I am storing the
date into mysql from php.
Currently we are using the now() function to store the date in one field
and the time in another.  I know understand what is physically being
stored in the db.

I am trying to retreive the date value from the mysql db, and display it
on the screen in a standard format like 05/08/01.
What I get right now is 2001-05-09.
Also the time comes out like so: 227:08:22

I have tried this:
$t_data_array[1]=date("m/d/y",mysql_result($db_result,$db_record,'date'));

and the result is: 12/31/69 formatted nicely but that date is 5/9/2001
not 1969.

I have tried several suggestions and other things, but I am not being
successful.


Here is what I am trying to do:
I would like the result of the date to be formatted as 05/01/01
and the time as 18:51

Please give me some very specific instructions, this is a silly thing to
be stuck on...

   $t_data_array[1]=mysql_result($db_result,$db_record,'date');
   $t_data_array[2]=mysql_result($db_result,$db_record,'time');

THANKS !
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.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] MYSQL Password

2001-05-17 Thread Andreas Pucko

Hello,

I am trying to get mysql running and connect via php to it.

how can I set the password in a unixshell to get access to it?

When I try to access the db I get:


Warning: MySQL Connection Failed: Access denied for user: 'root@localhost'
(Using password: NO) in /psr/mysqladmin/lib.inc.php on line 255
Error

Andy suggestions?

Cheers

Andy


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

If I try su nobody it asks for nobody's password. If i enter no password a I
get Authentication denied.

I am able to add users to the htpasswd file via telnet or zoc but my mission
is to get it working using PHP

All the syntax to do it, from what I have seen is relatively straight
forward. but for some reason it just doesn't want to work for me.

"MaD dUCK" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> also sprach YoBro (on Fri, 18 May 2001 10:34:34AM +1200):
> > If i do that using telnet it asks for nobody's password.
>
> do it as root. su is 'switch user' and nobody has no password.
> he's trying to get you to execute the command htpasswd just like
> apache would execute it when you call passthru in php.
>
> martin;  (greetings from the heart of the sun.)
>   \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
> --
> all i ask of life is a constant and
> exaggerated sense of my own importance.
>
> --
> 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 MaD dUCK

also sprach YoBro (on Fri, 18 May 2001 10:34:34AM +1200):
> If i do that using telnet it asks for nobody's password.

do it as root. su is 'switch user' and nobody has no password.
he's trying to get you to execute the command htpasswd just like
apache would execute it when you call passthru in php.

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
-- 
all i ask of life is a constant and
exaggerated sense of my own importance.

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

If i do that using telnet it asks for nobody's password.

What does this mean?

"Tyrone Mills" <[EMAIL PROTECTED]> wrote in message
25636AA0C9F6D31192CE00E02905E08602D6E476@mailkel01">news:25636AA0C9F6D31192CE00E02905E08602D6E476@mailkel01...
> 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] help installing

2001-05-17 Thread McShen

i was trying to install php on windows 2k pro.
i got this message when i was trying to run the test scrpt

"PHP CGI binary (\php) is not executable. Please compile PHP as a CGI
executable and try again. "

why is that?

and should i read the instruction for IIS 4.0+ (isapi) or  IIS 4.0+ (CGI)





-- 
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] running a stand-alone PHP program

2001-05-17 Thread midget2000x

Excellent.  I got this working.  From a command line the standalone PHP
scripts work well, but if I hit them via http, it renders the path to PHP at the
top of the page (but does execute the code).  Any fix for that?

Thanks,

Rory

On Thu, 17 May 2001, Nathan Cook wrote:
> Not if you are currently running it as an apache module.  If you are running it
> as a cgi, then it might.  But it sounds as if you are running it as an apache
> module.
> 
> Nathan Cook
> [EMAIL PROTECTED]
> - Original Message -
> From: "midget2000x" <[EMAIL PROTECTED]>
> To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, May 17, 2001 10:38 AM
> Subject: Re: [PHP] running a stand-alone PHP program
> 
> 
> > OK, thanks.  This is great.  But will this affect my existing installation of
> > PHP?  excuse the newbie questions!
> >
> > I appreciate your help.
> >
> > Thanks,
> >
> > Rory
> >
> > On Wed, 16 May 2001, Nathan Cook wrote:
> > > Assuming you are running linux...
> > >
> > > Just remove the "--with-apache", from the ./configure statement... should
> look
> > > something like this
> > >
> > > # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql]
> > > # make
> > > # make install
> > >
> > > Should install to:
> > > # /usr/local/bin/php
> > >
> > > then you can run scripts by:
> > > # /usr/local/bin/php /path/to/script/scriptname
> > >
> > > Have Fun!
> > > Nathan Cook
> > > [EMAIL PROTECTED]
> > > - Original Message -
> > > From: "midget2000x" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, May 16, 2001 2:52 PM
> > > Subject: RE: [PHP] running a stand-alone PHP program
> > >
> > >
> > > > I suppose I need to be more clear.  I already have PHP running, but I want
> to
> > > > run actual PHP code that I write as a stand-alone program.  Is this what
> > > you're
> > > > doing?
> > > >
> > > > On Wed, 16 May 2001, you wrote:
> > > > > yeah.  i run it as a CGI.
> > > > >
> > > > > compile it as a binary, then edit the apache config...
> > > > >
> > > > > that's it
> > > > >
> > > > > > -Original Message-
> > > > > > From: midget2000x [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Wednesday, May 16, 2001 4:18 PM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: [PHP] running a stand-alone PHP program
> > > > > >
> > > > > >
> > > > > > I apologize if this has already been covered...I can't seem to find it
> in
> > > the
> > > > > > archives...
> > > > > >
> > > > > > can PHP be coded and run as a stand-alone program?  If so, where can I
> get
> > > more
> > > > > > info on that?
> > > > > >
> > > > > > I am running Linux and would like to pass some data to PHP from a
> > > > > > CGI program.
> > > > > >
> > > > > > Thanks!
> > > > > >
> > > > > > Rory
> > > > > > ---
> > > > > > providing the finest in midget technology
> > > > > >
> > > > > > --
> > > > > > 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]
> > > > --
> > > > ---
> > > > providing the finest in midget technology
> > > >
> > > > --
> > > > 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]
> > > >
> > > >
> > --
> > ---
> > providing the finest in midget technology
> >
-- 
---
providing the finest in midget technology

-- 
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 to format a date variable

2001-05-17 Thread Carlos Fernando Scheidecker Antunes

Hello All,

If I issue the comand date(d."/".m."/".Y." ".H.":".i.":".s)
I get the Today's date and time formated accordingly.

I can do the same with MySQL by using an internal function on the SQL select statement.

I've got a variable that is a MySQL native Date field but it was not and cannot be 
formated during the SELECT statement. This statement fills a variable called 
$OrderDate which is them used for lots of operations.

So what I need is to format variable $OrderDate to Day/Month/year Hour:Min:Sec.. How 
can I do it the same way as the Date() function above?

Thank you all!



[PHP] XSLT variables in PHP

2001-05-17 Thread nick

I'm building an XSLT style sheet for a web site, and part of it 
revolves around the fact that sometimes a group of  will be 
highlighted and the rest of the time they will be a standard 
background colour.  In the example below, if the XML data that 
matches "primary", is equal to 1, than i want to print out a class of 
"highlight".  I have been trying to use variables and/or parameters.  
It never seems to see it.  I need the variable to be globally 
accessible.  And it needs to change at the XML/html conversion 
run time.  Pretty new to XSLT, so if anything has any ideas it would 
be great.  I am trying to seperate the display from the data, so i 
can't do any of the calculations in php, since a different style sheet 
may be doing something entirely different.   


$xslData.=<<














>>>


Nicholas Burke
Strategic Profits Inc.



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

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:


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]




Re: [PHP] Why is this not working

2001-05-17 Thread Shawn Reed

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] PHP ICQ Channel

2001-05-17 Thread Charles Williams \(CEO\)

For those of you interested.  There is a ICQ channel for PHP at: 74684492




-- 
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 Phillip Bow

What permissions do you need to execute htpasswd?
--
phill

""YoBro"" <[EMAIL PROTECTED]> wrote in message
9e1h4j$8k5$[EMAIL PROTECTED]">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]




Re: [PHP] compile with apxs

2001-05-17 Thread Martín Marqués

On Vie 18 May 2001 00:39, Angerer, Chad wrote:
> I am trying to configure php using --with-apxs .. here is my configure file
>
> ./configure --with-apxs=/usr/local/www/bin --with-mysql=/usr/local/

That should be --with-apxs=/usr/local/www/bin/apxs

Saludos... :-)

> mysql --enable-discard-path --enable-safe-mode --enable-calendar
> --with-dom-dir
> =ext/domxml --enable-ftp --with-gd=shared --with-jpeg-dir=/usr
> --with-java=/usr
> /java/jre --with-pdflib=shared --with-sablot=ext/sablot
> --with-expat-dir=/usr -
> -with-regex=system --with-swf
>
> when it gets to the apxs part I get this error
>
> Configuring SAPI modules
> checking for AOLserver support... no
> checking for Apache module support via DSO through APXS...
> ./configure: apxs: command not found
> Sorry, I was not able to successfully run APXS.  Possible reasons:
> 1.  Perl is not installed;
> 2.  Apache was not compiled with DSO support (--enable-module=so);
> 3.  'apxs' is not in your path.
> configure: error: ;
>
> Perl is installed.. which perl produces /usr/bin/perl
>
> httpd -l shows mod_so.c
>
> and apxs is pointing to the current path of my apache bin directory.  I am
> not sure what else to try.
>
> Can someone help me out please.
>
> Thanks in advance.
>
> Chad

-- 
Cualquier administra un NT.
Ese es el problema, que cualquier administre.
-
Martin Marques  |[EMAIL PROTECTED]
Programador, Administrador  |   Centro de Telematica
   Universidad Nacional
del Litoral
-

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

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]




Re: [PHP] Why is this not working

2001-05-17 Thread Tolga \"thorr\" Orhon

I mean the absolute path for executable.



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]




RE: [PHP] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-17 Thread Brandon Orther

Hello,

It is on a local site and is a security risk if I give out the address.  I
am sorry :(

Thanks for your interest
Brandon

-Original Message-
From: DAve Goodrich [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 2:02 PM
To: Billy Harvey; [EMAIL PROTECTED]
Subject: Re: [PHP] Netscape 6, What a piece of s$#@ , anyone else
hadproblems with php and Netscape 6?


Do you have a URL I could try? I've used PHP to generate a lot of dynamic js
and css.

DAve

on 5/17/01 1:50 PM, Billy Harvey at [EMAIL PROTECTED] wrote:

>> 1. I am not making a JavaScript version at all I don't see where I ever
say
>> this. ???
>>
>> 2. If I copy the html outputted to the browser and past it into an html
file
>> it loads good.  When I say I suspect this to be something wrong with PHP
I
>> mean that Netscape doesn't play good with PHP.(Not that PHP has a bug in
it)
>>
>> Thanks,
>> Brandon
>
> Brandon,
>
> Neither Netscape nor any other browser has any clue that PHP is being
> used on the server.  All broswers simply interpret the html,
> javascript, java, etc.that gets sent to them.  PHP is not a factor in
> whatever is causing a browser to misbehave.  For Netscape it's often
> an improperly formed table that causes trouble.  I occassionally find
> that people also use IE-centric code without realizing it (or perhaps
> without caring initially).
>
> Billy

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655
[EMAIL PROTECTED]
http://www.rblc.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] Why is this not working

2001-05-17 Thread YoBro

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] How Do I Escape from This List???

2001-05-17 Thread Ron Pitts


Mens Rules For Women

1.If you think you are fat, you probably are. Do not ask us.

2. Learn to work the toilet seat; if it's up, put it down.

3. Do not cut your hair. Ever.

4. Sometimes, we are not thinking about you. Live with it.

5. Get rid of your cat.

6. Sunday = Sports.

7. Anything you wear is fine. Really.

8. You have enough clothes.

9. You have too many shoes.

10. Crying is blackmail.

11. Ask for what you want. Subtle hints do not work.

12. Mark anniversaries on a calendar.

13. Yes, peeing standing up is more difficult than peeing from point
blank range. We are bound to miss sometimes.

14. "Yes" and "no" are perfectly acceptable answers.

15. A headache that lasts for 17 months is a problem. See a 
doctor.

16. Anything we said 6 or 8 months ago is inadmissible in an 
argument.

17. If you do not dress like the Victoria's Secret girls, do not expect
us to act like soap opera guys.

18. If something we said could be interpreted two ways, and one of 
the
ways makes you sad and angry, we meant the other one.

19. Let us ogle. If we do not look at other women, how can we 
know how
pretty you are?

20. Do not rub the lamp if you do not want the genie to come out.

21. You can either ask us to do something OR tell us how you 
want it
done, not both.

22. Christopher Columbus did not need directions, and neither do 
we.


Ron Pitts
Caravela Books
134 Goodburlet Road
Henrietta, NY 14467 http://caravelabooks.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] compile with apxs

2001-05-17 Thread Angerer, Chad


I am trying to configure php using --with-apxs .. here is my configure file

./configure --with-apxs=/usr/local/www/bin --with-mysql=/usr/local/
mysql --enable-discard-path --enable-safe-mode --enable-calendar
--with-dom-dir
=ext/domxml --enable-ftp --with-gd=shared --with-jpeg-dir=/usr
--with-java=/usr
/java/jre --with-pdflib=shared --with-sablot=ext/sablot
--with-expat-dir=/usr -
-with-regex=system --with-swf

when it gets to the apxs part I get this error

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
./configure: apxs: command not found
Sorry, I was not able to successfully run APXS.  Possible reasons:
1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.
configure: error: ;

Perl is installed.. which perl produces /usr/bin/perl

httpd -l shows mod_so.c

and apxs is pointing to the current path of my apache bin directory.  I am
not sure what else to try.

Can someone help me out please.

Thanks in advance.

Chad

-- 
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 Tolga \"thorr\" Orhon

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

2001-05-17 Thread YoBro

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



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] Re: mailing list php-general@lists.php.netµÄ×Ô¶¯»ØÐÅ

2001-05-17 Thread Tolga \" thorr\" Orhon

??
- Original Message -
From: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 4:17 PM
Subject: mailing list [EMAIL PROTECTED]µÄ×Ô¶¯»ØÐÅ


>ºÜ¸ßÐËÊÕµ½ÄãµÄÓʼþ£¡
>
>
> ===
> Ãâ·Ñµç×ÓÓÊÏä http://home.sina.com.cn


-- 
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] Re: removing PHP

2001-05-17 Thread Michel 'ZioBudda' Morelli

On Thu, 17 May 2001, Joseph Bannon wrote:

>I did --with-apache. For some reason, when I install 4.0.5, it doesn't
>catch. It still says 4.0.4. Is there a main file(s) I can remove to make
>sure 4.0.5 catches?

hmmm
A
in the source of apache try to find libphp.a (or something like it).
delete it. reinstall 4.0.5

hope.

-- 
In ogni luogo c'è un idiota. Se non lo vedi, probabilmente quello sei tu...
--
Michel  Morelli   [EMAIL PROTECTED]

ICQ UIN: 58351764   PR of Linux in Italy
http://www.ziobudda.net http://www.linuxlab.it


--
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] sessions / cookies / header("Location...

2001-05-17 Thread Chris Lee

yup, your browser is not accepting cookies. thats a good guess. when a browser does 
not accept cookies, trans-sid will kick in, trans-sid will not work on full urls, just 
reletive urls.

no trans-sid
http://www.mediawaveonline.com/index.php

trans-sid
/index.php

header redirectect require (supposed to require) full urls. in other words its a good 
idea to put PHPSESSID=$PHPSESSID on all your full urls anyhow, just incase for 
non-cookie browsers.

-- 

 Chris Lee
 [EMAIL PROTECTED]



"Christian Dechery" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a page that does a login... right after the login is successfull it 
registers a session var called 'userid'... and does a header("Location: 
newpage.php") which checks for the existance of this var... if it exists it 
will show, otherwise it goes back to the login page...

the weird thing is... it always worked fine, even if I logged in and out 
with three different users to test it... but now it only works if I replace 
the header() thing with:
header("Location: newpage.php?PHPSESSID=$PHPSESSID")

why is this weird now? it use to work...
and the weird thing is... while in newpage.php the user does some stuff 
which calls itself and also gets this 'userid' var... and gets it fine 
without any PHPSESSID stuff...

any clues?


-- 
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] A universal Database Class

2001-05-17 Thread Tolga \"thorr\" Orhon

PHPLib may be another option.

"Brandon Orther" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I am making a suite of online tools.  Right Now I am connecting to a MS
SQL
> 2000 database.  Is there any class out there that will let you send a
query
> to more than just one type of databases?  Like someone could run it off a
> MSSQL server and another could run it off a MySQL database.
>
> thanks
> 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]
>



-- 
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] Netscape 6, What a piece of s$#@ , anyone else hadproblems with php and Netscape 6?

2001-05-17 Thread DAve Goodrich

Do you have a URL I could try? I've used PHP to generate a lot of dynamic js
and css.

DAve

on 5/17/01 1:50 PM, Billy Harvey at [EMAIL PROTECTED] wrote:

>> 1. I am not making a JavaScript version at all I don't see where I ever say
>> this. ???
>> 
>> 2. If I copy the html outputted to the browser and past it into an html file
>> it loads good.  When I say I suspect this to be something wrong with PHP I
>> mean that Netscape doesn't play good with PHP.(Not that PHP has a bug in it)
>> 
>> Thanks,
>> Brandon
> 
> Brandon,
> 
> Neither Netscape nor any other browser has any clue that PHP is being
> used on the server.  All broswers simply interpret the html,
> javascript, java, etc.that gets sent to them.  PHP is not a factor in
> whatever is causing a browser to misbehave.  For Netscape it's often
> an improperly formed table that causes trouble.  I occassionally find
> that people also use IE-centric code without realizing it (or perhaps
> without caring initially).
> 
> Billy

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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]




Re: [PHP] preprocessing

2001-05-17 Thread Tolga \"thorr\" Orhon

Well, one solution may be (although might not easy) to make your page A to
submit to page B which process information and submits to page C via PHP -
Curl functions. You may POST variables and even use SSL connection. It
worked just fine for me. It is more reliable any javascript solution and
restricts users accessing page B.

thorr

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I have what I feel to be a strange problem (I'm most likely wrong here).
> I have page A, which is an internal page, which posts to page C which is
external (belongs to another company). What I would like is to insert a
preprocessing script (let's call it page b). So, the end result would be,
users input data to page a, page a then posts to page b, page b processes
all variables etc and then posts to page c. I don't want the customer, to
ever really have to interact with page b. Is that possible?
> If there is a command to do this, which I must've missed, that would
really be all I need ;)
>
> Louis G
>
> --
> 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] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-17 Thread Billy Harvey

 > 1.   I am not making a JavaScript version at all I don't see where I ever say
 > this. ???
 > 
 > 2.   If I copy the html outputted to the browser and past it into an html file
 > it loads good.  When I say I suspect this to be something wrong with PHP I
 > mean that Netscape doesn't play good with PHP.(Not that PHP has a bug in it)
 > 
 > Thanks,
 > Brandon

Brandon,

Neither Netscape nor any other browser has any clue that PHP is being
used on the server.  All broswers simply interpret the html,
javascript, java, etc.that gets sent to them.  PHP is not a factor in
whatever is causing a browser to misbehave.  For Netscape it's often
an improperly formed table that causes trouble.  I occassionally find
that people also use IE-centric code without realizing it (or perhaps
without caring initially).

Billy

-- 
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] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-17 Thread Brandon Orther

1.  I am not making a JavaScript version at all I don't see where I ever say
this. ???

2.  If I copy the html outputted to the browser and past it into an html file
it loads good.  When I say I suspect this to be something wrong with PHP I
mean that Netscape doesn't play good with PHP.(Not that PHP has a bug in it)

Thanks,
Brandon

-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 5:03 PM
To: 'Brandon Orther'; PHP User Group
Subject: RE: [PHP] Netscape 6, What a piece of s$#@ , anyone else had
problems with php and Netscape 6?


> I am making a drop down menu script in PHP so it is compatible with non
> JavaScript browsers like Netscape 6.0  The problem I am having is that
when
> I make tables it doesn't always load the background in the tables.  I
> suspect that maybe this is something with PHP because when I make html
> tables they seem to load pretty good.

If you're making it compatible with non-JS browsers, why bother making
the JS version?

There's nothing wrong with PHP, it's only doing what you tell it. If
your PHP code is flawed, the HTML it outputs will be flawed too 8)

Jason


-- 
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] mysql: dumping data

2001-05-17 Thread PeterOblivion

anyone have a CGI scipt/compiled linux cgi that will dump the contents of a 
file somewhere on the net into my mysql database?

I dont have telnet nor ftp access to my mysql server, and phpMyAdmin has 
failed everytime.

thanks

-- 
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] Installation PHP4 on UNIX problems

2001-05-17 Thread Christian Reiniger

On Thursday 17 May 2001 19:23, Andreas Pucko wrote:
> Hi there,
>
> I am trying to install PHP4 on a unix server.
>
> Apache is already running. I installed the binary version. after
> sending the command:
> ./configure -with-mysql -with-apache=../apache_1.3.x -enable-track-vars
> like in the manual I get the error message that there is no httpd.h
> file in the apache folder. And thats true.

Use --with-apxs instead of --with-apache. That should do the trick.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

void sleep(){for(long int sheep=0;!asleep();sheep++);}

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

2001-05-17 Thread Don Read


On 17-May-01 [EMAIL PROTECTED] wrote:
> i have a php script that has three variables that could be set to "1"
> depending on the values of a form being sent to the .php file.
> 
> $add
> $remove
> $view
> 
> i need to do some error control in my script to make certain that one and
> only one of these is set to "1". i am coming up with a very long
> control structure:
> 
>   if (($add="1") && ($remove="1") || ($add="1") && ($view="1") || etc...))
> 

if (($add + $remove + $view) > 1) {
die("I'm so confused ...");
}

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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] ftp_nlist not listing directories

2001-05-17 Thread Fredrik de Vibe

Hi

I'm having problems using ftp_nlist() to list directories. I've scanned
the internet and found that there's probably some incompability with the
version of wu-ftp used on the server and ftp_nlist(). With version
2.6.1, this doesn't work, but with version 2.5.0 it does. Anybody know
why this is? I've heard that there were serious bugs / security issues
in wu-ftp 2.5.0. Is the function ftp_nlist() based on a bug in wu-ftp in
order to work with directories or is there something else causing this?
Could this be a bug in PHP?


--Fredrik


-- 
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] How do I have a Authentication box pop up?

2001-05-17 Thread Matt Schroebel

There are some user notes under that manual page that might be of use to you.

> From: Brandon Orther [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 3:17 PM

> 
> For some reason that doesn't provoke a Pop-up. Maybe this is 
> because I am on  an IIS server.  Any Ideas?
> http://www.php.net/manual/en/features.http-auth.php
> 

-- 
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: Re: [PHP] preprocessing

2001-05-17 Thread Nathan Cook

This looks like it will do it.  I haven't tested it, so don't take my word for
it.

http://www.holotech.net/
 *  December 1999
 *
 /

  function PostIt($DataStream, $URL) {

//  Strip http:// from the URL if present
$URL = ereg_replace("^http://";, "", $URL);

//  Separate into Host and URI
$Host = substr($URL, 0, strpos($URL, "/"));
$URI = strstr($URL, "/");

//  Form up the request body
$ReqBody = "";
while (list($key, $val) = each($DataStream)) {
  if ($ReqBody) $ReqBody.= "&";
  $ReqBody.= $key."=".urlencode($val);
}
$ContentLength = strlen($ReqBody);

//  Generate the request header
$ReqHeader =
  "POST $URI HTTP/1.1\n".
  "Host: $Host\n".
  "User-Agent: PostIt\n".
  "Content-Type: application/x-www-form-urlencoded\n".
  "Content-Length: $ContentLength\n\n".
  "$ReqBody\n";

//  Open the connection to the host
$socket = fsockopen($Host, 80, &$errno, &$errstr);
if (!$socket) {
  $Result["errno"] = $errno;
  $Result["errstr"] = $errstr;
  return $Result;
}
$idx = 0;
fputs($socket, $ReqHeader);
while (!feof($socket)) {
  $Result[$idx++] = fgets($socket, 128);
}
return $Result;
  }
?>

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Nathan Cook" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Php List" <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 11:54 AM
Subject: Re: Re: [PHP] preprocessing


> In that case you may be able to assemble the headers of a get using the
header()
> function.  I will look up a few more things for you and get back to you after
> lunch! :)
>
> Nathan Cook
> [EMAIL PROTECTED]
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, May 17, 2001 11:51 AM
> Subject: RE: Re: [PHP] preprocessing
>
>
> >
> > This is a fairly solid suggestion, and it may be what I have to do. But,
> unfortunately, Page C is expecting a POST, not a GET, which may make it not
> work. Also, I would like to avoid this if possible due to some of the
sensitive
> information that will be being passed to and fro. Even if it will be done
using
> SSL.
> >
> > >Try going to the page with the vars you need in the URL.  i.e.:
> > >http://www.www.com/cgi-bin/script?var1=test&var2=testing
> > >If that works then just use a simple header location forward in script 'b':
> > >// process vars
> >
>header("LOCATION:http://www.www.com/cgi-bin/script?var1=test&var2=testing";);
> > >That way the user will never have to interact with page 'b'.  Note: do not
> start
> > >any output before the header command.
> > >If that doesn't work then there should be some other way of assembling
> cgi-post
> > >headers with the header() function.
> > >Good Luck.
> > >Nathan Cook
> > >[EMAIL PROTECTED]
> > >- Original Message -
> > >From: <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Sent: Thursday, May 17, 2001 11:18 AM
> > >Subject: [PHP] preprocessing
> > >>
> > >> I have what I feel to be a strange problem (I'm most likely wrong here).
> > >> I have page A, which is an internal page, which posts to page C which is
> > >external (belongs to another company). What I would like is to insert a
> > >preprocessing script (let's call it page b). So, the end result would be,
> users
> > >input data to page a, page a then posts to page b, page b processes all
> > >variables etc and then posts to page c. I don't want the customer, to ever
> > >really have to interact with page b. Is that possible?
> > >> If there is a command to do this, which I must've missed, that would
really
> be
> > >all I need ;)
> > >>
> > >> Louis G
> > >>
> > >> --
> > >> 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] A universal Database Class

2001-05-17 Thread Hoover, Josh

There are several database abstraction classes out there.  There are three
that come to my mind right away:

ADODB - http://php.weblogs.com/ADODB 
Metabase - http://phpclasses.upperdesign.com/browse.html/package/20/
PearDB - Not sure of the URL, but you can look in the PEAR directory of a
PHP install to see the code

Josh Hoover
KnowledgeStorm, Inc.
[EMAIL PROTECTED]

Searching for a new IT solution for your company? Need to improve your
product marketing? 
Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify
the process for you.
KnowledgeStorm - Your IT Search Starts Here 

> I am making a suite of online tools.  Right Now I am 
> connecting to a MS SQL
> 2000 database.  Is there any class out there that will let 
> you send a query
> to more than just one type of databases?  Like someone could 
> run it off a
> MSSQL server and another could run it off a MySQL database.



Re: [PHP] A universal Database Class

2001-05-17 Thread Rick St Jean

What you want is a database abstraction layer.  search the archives for 
pear or metabase.  Another option is use the lousy ODBC

At 03:21 PM 5/17/01, Brandon Orther wrote:
>Hello,
>
>I am making a suite of online tools.  Right Now I am connecting to a MS SQL
>2000 database.  Is there any class out there that will let you send a query
>to more than just one type of databases?  Like someone could run it off a
>MSSQL server and another could run it off a MySQL database.
>
>thanks
>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]

##
#  Rick St Jean,
#  [EMAIL PROTECTED]
#  President of Design Shark,
#  http://www.designshark.com/,  http://www.phpmailer.com/
#  Quick Contact:  http://www.designshark.com/messaging.ihtml
#  Tel: 905-684-2952
##


-- 
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] A universal Database Class

2001-05-17 Thread Brandon Orther

Hello,

I am making a suite of online tools.  Right Now I am connecting to a MS SQL
2000 database.  Is there any class out there that will let you send a query
to more than just one type of databases?  Like someone could run it off a
MSSQL server and another could run it off a MySQL database.

thanks
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] How do I have a Authentication box pop up?

2001-05-17 Thread Brandon Orther

For some reason that doesn't provoke a Pop-up. Maybe this is because I am on
an IIS server.  Any Ideas?

I am Running PHP4.0.5 on Windows2k Adv.

Thanks For The Help d:)

Brandon

-Original Message-
From: Sam Masiello [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 11:42 AM
To: Brandon Orther; PHP User Group
Subject: RE: [PHP] How do I have a Authentication box pop up?



See the following URL in the manual:

http://www.php.net/manual/en/features.http-auth.php

HTH

Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]

 -Original Message-
From:   Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent:   Thursday, May 17, 2001 1:48 PM
To: PHP User Group
Subject:[PHP] How do I have a Authentication box pop up?

Hello,

How to I make the browser pop up a authentication box?

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


--
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] load balancing...

2001-05-17 Thread Dan Harrington

Take a look at www.coyotepoint.com 
:-)

> -Original Message-
> From: Juan Claudio Santana Saldana [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 14, 2001 8:19 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] load balancing...
> 
> 
> Does anybody know how to do load balancing with php and apache ? can
> you recomend me any tutorial document or how to? Thank you.
> 
> 
> Claudio.
> 
> 

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

2001-05-17 Thread infoz

You'll actually want to do a little more than that, i.e. read the socket and
dump it to the browser so that the output from the page you're posting to
gets displayed.   There is another version of that function around that
handles that too.  I can post it later today if nobody else finds it first.
:)

- Tim

- Original Message -
From: "Johnson, Kirk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 2:31 PM
Subject: RE: [PHP] preprocessing


> Thanks, Tim!
>
> http://marc.theaimsgroup.com/?l=php-general&m=98582357009336&w=2
>
> Kirk



-- 
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] How do I have a Authentication box pop up?

2001-05-17 Thread Sam Masiello


See the following URL in the manual:

http://www.php.net/manual/en/features.http-auth.php

HTH

Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]

 -Original Message-
From:   Brandon Orther [mailto:[EMAIL PROTECTED]] 
Sent:   Thursday, May 17, 2001 1:48 PM
To: PHP User Group
Subject:[PHP] How do I have a Authentication box pop up?

Hello,

How to I make the browser pop up a authentication box?

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


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

2001-05-17 Thread Johnson, Kirk

Thanks, Tim!

http://marc.theaimsgroup.com/?l=php-general&m=98582357009336&w=2

Kirk

> -Original Message-
> From: infoz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 12:21 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] preprocessing
> 
> 
> There's a public domain function kicking around called 
> "post_to_host" or
> something like that which will do exactly what you wish.  If 
> you search the
> list archives I'm sure there will be several pointers to 
> where you can find
> it.
> 
> - Tim
> 
> 
> -- 
> 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] preprocessing

2001-05-17 Thread Johnson, Kirk

Louis, if you track this down, please post back to the list what you find.

TIA

Kirk

> -Original Message-
> From: infoz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 12:21 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] preprocessing
> 
> 
> There's a public domain function kicking around called 
> "post_to_host" or
> something like that which will do exactly what you wish.  If 
> you search the
> list archives I'm sure there will be several pointers to 
> where you can find
> it.
> 
> - Tim

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

2001-05-17 Thread infoz

There's a public domain function kicking around called "post_to_host" or
something like that which will do exactly what you wish.  If you search the
list archives I'm sure there will be several pointers to where you can find
it.

- Tim


-- 
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: Re: [PHP] preprocessing

2001-05-17 Thread Johnson, Kirk

I don't know of any way to make a script "self-submitting" for POST data,
wish I did. Alternatives: 

1. Do the processing with JavaScript on the original input page.
2. Get the other company to modify C to look for GET variables, and build a
query string as suggested earlier.
3. Add a simple FORM to B with just a Submit button, with a message "Please
click the Submit button to continue".

Kirk

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 11:51 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Re: [PHP] preprocessing
> 
> 

> >- Original Message -
> >From: <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, May 17, 2001 11:18 AM
> >Subject: [PHP] preprocessing
> >>
> >> I have what I feel to be a strange problem (I'm most 
> likely wrong here).
> >> I have page A, which is an internal page, which posts to 
> page C which is
> >external (belongs to another company). What I would like is 
> to insert a
> >preprocessing script (let's call it page b). So, the end 
> result would be, users
> >input data to page a, page a then posts to page b, page b 
> processes all
> >variables etc and then posts to page c. I don't want the 
> customer, to ever
> >really have to interact with page b. Is that possible?
> >> If there is a command to do this, which I must've missed, 
> that would really be
> >all I need ;)

-- 
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: Re: [PHP] preprocessing

2001-05-17 Thread Nathan Cook

In that case you may be able to assemble the headers of a get using the header()
function.  I will look up a few more things for you and get back to you after
lunch! :)

Nathan Cook
[EMAIL PROTECTED]

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 11:51 AM
Subject: RE: Re: [PHP] preprocessing


>
> This is a fairly solid suggestion, and it may be what I have to do. But,
unfortunately, Page C is expecting a POST, not a GET, which may make it not
work. Also, I would like to avoid this if possible due to some of the sensitive
information that will be being passed to and fro. Even if it will be done using
SSL.
>
> >Try going to the page with the vars you need in the URL.  i.e.:
> >http://www.www.com/cgi-bin/script?var1=test&var2=testing
> >If that works then just use a simple header location forward in script 'b':
> >// process vars
> >header("LOCATION:http://www.www.com/cgi-bin/script?var1=test&var2=testing";);
> >That way the user will never have to interact with page 'b'.  Note: do not
start
> >any output before the header command.
> >If that doesn't work then there should be some other way of assembling
cgi-post
> >headers with the header() function.
> >Good Luck.
> >Nathan Cook
> >[EMAIL PROTECTED]
> >- Original Message -
> >From: <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, May 17, 2001 11:18 AM
> >Subject: [PHP] preprocessing
> >>
> >> I have what I feel to be a strange problem (I'm most likely wrong here).
> >> I have page A, which is an internal page, which posts to page C which is
> >external (belongs to another company). What I would like is to insert a
> >preprocessing script (let's call it page b). So, the end result would be,
users
> >input data to page a, page a then posts to page b, page b processes all
> >variables etc and then posts to page c. I don't want the customer, to ever
> >really have to interact with page b. Is that possible?
> >> If there is a command to do this, which I must've missed, that would really
be
> >all I need ;)
> >>
> >> Louis G
> >>
> >> --
> >> 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] running a stand-alone PHP program

2001-05-17 Thread Nathan Cook

Not if you are currently running it as an apache module.  If you are running it
as a cgi, then it might.  But it sounds as if you are running it as an apache
module.

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "midget2000x" <[EMAIL PROTECTED]>
To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 10:38 AM
Subject: Re: [PHP] running a stand-alone PHP program


> OK, thanks.  This is great.  But will this affect my existing installation of
> PHP?  excuse the newbie questions!
>
> I appreciate your help.
>
> Thanks,
>
> Rory
>
> On Wed, 16 May 2001, Nathan Cook wrote:
> > Assuming you are running linux...
> >
> > Just remove the "--with-apache", from the ./configure statement... should
look
> > something like this
> >
> > # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql]
> > # make
> > # make install
> >
> > Should install to:
> > # /usr/local/bin/php
> >
> > then you can run scripts by:
> > # /usr/local/bin/php /path/to/script/scriptname
> >
> > Have Fun!
> > Nathan Cook
> > [EMAIL PROTECTED]
> > - Original Message -
> > From: "midget2000x" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 16, 2001 2:52 PM
> > Subject: RE: [PHP] running a stand-alone PHP program
> >
> >
> > > I suppose I need to be more clear.  I already have PHP running, but I want
to
> > > run actual PHP code that I write as a stand-alone program.  Is this what
> > you're
> > > doing?
> > >
> > > On Wed, 16 May 2001, you wrote:
> > > > yeah.  i run it as a CGI.
> > > >
> > > > compile it as a binary, then edit the apache config...
> > > >
> > > > that's it
> > > >
> > > > > -Original Message-
> > > > > From: midget2000x [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, May 16, 2001 4:18 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [PHP] running a stand-alone PHP program
> > > > >
> > > > >
> > > > > I apologize if this has already been covered...I can't seem to find it
in
> > the
> > > > > archives...
> > > > >
> > > > > can PHP be coded and run as a stand-alone program?  If so, where can I
get
> > more
> > > > > info on that?
> > > > >
> > > > > I am running Linux and would like to pass some data to PHP from a
> > > > > CGI program.
> > > > >
> > > > > Thanks!
> > > > >
> > > > > Rory
> > > > > ---
> > > > > providing the finest in midget technology
> > > > >
> > > > > --
> > > > > 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]
> > > --
> > > ---
> > > providing the finest in midget technology
> > >
> > > --
> > > 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]
> > >
> > >
> --
> ---
> providing the finest in midget technology
>


-- 
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: Re: [PHP] preprocessing

2001-05-17 Thread David VanHorn

At 10:48 AM 5/17/01 -0700, [EMAIL PROTECTED] wrote:

>Unfortunately, I don't control page c, or else this would be a mute point. 
>That's why I need page B. Good idea though.

Well, it sounds like an auto-redirect is about your only choice.

--
Dave's Engineering Page: http://www.dvanhorn.org
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9



-- 
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 do I have a Authentication box pop up?

2001-05-17 Thread Brandon Orther

Hello,

How to I make the browser pop up a authentication box?

Thanks
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: Re: [PHP] preprocessing

2001-05-17 Thread pkshifted


This is a fairly solid suggestion, and it may be what I have to do. But, 
unfortunately, Page C is expecting a POST, not a GET, which may make it not work. 
Also, I would like to avoid this if possible due to some of the sensitive information 
that will be being passed to and fro. Even if it will be done using SSL.

>Try going to the page with the vars you need in the URL.  i.e.:
>http://www.www.com/cgi-bin/script?var1=test&var2=testing
>If that works then just use a simple header location forward in script 'b':
>// process vars
>header("LOCATION:http://www.www.com/cgi-bin/script?var1=test&var2=testing";);
>That way the user will never have to interact with page 'b'.  Note: do not start
>any output before the header command.
>If that doesn't work then there should be some other way of assembling cgi-post
>headers with the header() function.
>Good Luck.
>Nathan Cook
>[EMAIL PROTECTED]
>- Original Message -
>From: <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, May 17, 2001 11:18 AM
>Subject: [PHP] preprocessing
>>
>> I have what I feel to be a strange problem (I'm most likely wrong here).
>> I have page A, which is an internal page, which posts to page C which is
>external (belongs to another company). What I would like is to insert a
>preprocessing script (let's call it page b). So, the end result would be, users
>input data to page a, page a then posts to page b, page b processes all
>variables etc and then posts to page c. I don't want the customer, to ever
>really have to interact with page b. Is that possible?
>> If there is a command to do this, which I must've missed, that would really be
>all I need ;)
>>
>> Louis G
>>
>> --
>> 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: Re: [PHP] preprocessing

2001-05-17 Thread pkshifted


Unfortunately, I don't control page c, or else this would be a mute point. That's why 
I need page B. Good idea though.

>At 10:18 AM 5/17/01 -0700, [EMAIL PROTECTED] wrote:
>>I have what I feel to be a strange problem (I'm most likely wrong here).
>>I have page A, which is an internal page, which posts to page C which is 
>>external (belongs to another company). What I would like is to insert a 
>>preprocessing script (let's call it page b). So, the end result would be, 
>>users input data to page a, page a then posts to page b, page b processes 
>>all variables etc and then posts to page c. I don't want the customer, to 
>>ever really have to interact with page b. Is that possible?
>>If there is a command to do this, which I must've missed, that would 
>>really be all I need ;)
>You can have tons of processing going on in a php script, but it sounds 
>like what you need is to do the processing at the top of page C, then once 
>that's done, generate output to the user as page C is doing now.   Just put 
>the processing code on top of the page, and you should be ok.
>Might need a while statement to check if it's "done" before proceeding.
>--
>Dave's Engineering Page: http://www.dvanhorn.org
>Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
>-- 
>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] running a stand-alone PHP program

2001-05-17 Thread midget2000x

OK, thanks.  This is great.  But will this affect my existing installation of
PHP?  excuse the newbie questions!

I appreciate your help.

Thanks,

Rory

On Wed, 16 May 2001, Nathan Cook wrote:
> Assuming you are running linux...
> 
> Just remove the "--with-apache", from the ./configure statement... should look
> something like this
> 
> # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql]
> # make
> # make install
> 
> Should install to:
> # /usr/local/bin/php
> 
> then you can run scripts by:
> # /usr/local/bin/php /path/to/script/scriptname
> 
> Have Fun!
> Nathan Cook
> [EMAIL PROTECTED]
> - Original Message -
> From: "midget2000x" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 16, 2001 2:52 PM
> Subject: RE: [PHP] running a stand-alone PHP program
> 
> 
> > I suppose I need to be more clear.  I already have PHP running, but I want to
> > run actual PHP code that I write as a stand-alone program.  Is this what
> you're
> > doing?
> >
> > On Wed, 16 May 2001, you wrote:
> > > yeah.  i run it as a CGI.
> > >
> > > compile it as a binary, then edit the apache config...
> > >
> > > that's it
> > >
> > > > -Original Message-
> > > > From: midget2000x [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, May 16, 2001 4:18 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] running a stand-alone PHP program
> > > >
> > > >
> > > > I apologize if this has already been covered...I can't seem to find it in
> the
> > > > archives...
> > > >
> > > > can PHP be coded and run as a stand-alone program?  If so, where can I get
> more
> > > > info on that?
> > > >
> > > > I am running Linux and would like to pass some data to PHP from a
> > > > CGI program.
> > > >
> > > > Thanks!
> > > >
> > > > Rory
> > > > ---
> > > > providing the finest in midget technology
> > > >
> > > > --
> > > > 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]
> > --
> > ---
> > providing the finest in midget technology
> >
> > --
> > 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]
> >
> >
-- 
---
providing the finest in midget technology

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




  1   2   3   >