Re: [PHP] Variable Problem when UPGRADING...

2001-01-29 Thread Philip Olson

this has to do with error reporting,

using the function : 
http://www.php.net/manual/en/function.error-reporting.php 

definition of types : 
http://www.php.net/manual/en/phpdevel-errors.php

you may have E_ALL or E_NOTICE on within php.ini


philip olson
http://www.cornado.com/

On Mon, 29 Jan 2001, James Smith wrote:

> Alright, when i was programming with PHP3, I would use
> if statements like this:
> 
> if(!$submit) {
>// display form
> } else {
>// display signup complete
> }
> 
> to make multiple pages.  Or I would do this:
> 
> if($action == "signup") {
>if(!$submit) {
>   //display form
>} else {
>   // display signup complete
>}
> }
> if($action == "login") {
>// show login screen
> }
> 
> But now I get an error like this:
> 
> Warning: Undefined variable: submit in
> c:\apache\htdocs\test.php on line 3
> 
> I don't know if I misconfigured my php.ini file or
> what.
> 
> Thanks,
> 
> James
> 
> __
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


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




Re: [PHP] Editor

2001-01-29 Thread Philip Olson



http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=editor

Marc is thee best place to scour (as is google!), in terms of the archive,
not sure what you've tried but jic.  pretty much any editor will give you
lines -- here's the gist of editors in no particular order and of course
there are others :

windows
- homesite
- editplus
- ultraedit
- textpad
- zend ide
- phpedit

unix
- vi(m)
- emacs
- bluefish
- nedit

mac
- bbedit


regards,

philip olson
http://www.cornado.com/

On Tue, 30 Jan 2001 [EMAIL PROTECTED] wrote:

> Hi,
> 
> I know this has been asked before but I can`t seem to get the archive email 
> thingy to work, basically I`m looking for a free or cheap editor that has the 
> lines numbered so that it`s a bit easier for me to debug my scripts.
> 
> TIA
> Ade
> 
> -- 
> 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] session problem can't pass

2001-01-29 Thread GITD DCH

hello,

I am developing a website which extensively use the session function of php. 
I have meet the following problem: the server for development was placed in 
the intranet originally and when it moved to DM zone yesterday, and then all 
session value can't pass any more! I had checked that all sid value were 
passed correctly between every page, but all registered session value can't 
pass. I saw that there is an entry: session.referer_check in the php.ini. Is 
it necessary to set anything in this entry if the web server was placed in 
DM zone?
thx

Wilson
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Variable Problem when UPGRADING...

2001-01-29 Thread James Smith

Alright, when i was programming with PHP3, I would use
if statements like this:

if(!$submit) {
   // display form
} else {
   // display signup complete
}

to make multiple pages.  Or I would do this:

if($action == "signup") {
   if(!$submit) {
  //display form
   } else {
  // display signup complete
   }
}
if($action == "login") {
   // show login screen
}

But now I get an error like this:

Warning: Undefined variable: submit in
c:\apache\htdocs\test.php on line 3

I don't know if I misconfigured my php.ini file or
what.

Thanks,

James

__
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




Re: [PHP] Editor

2001-01-29 Thread Christian Sakshaug

Try www.phpedit.com or www.ultraedit.com (30$)


At 08:37 30.01.2001, you wrote:
>Hi,
>
>I know this has been asked before but I can`t seem to get the archive email
>thingy to work, basically I`m looking for a free or cheap editor that has the
>lines numbered so that it`s a bit easier for me to debug my scripts.
>
>TIA
>Ade
>
>--
>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]



Best Regards, Christian Sakshaug
-- 
Email: [EMAIL PROTECTED]
Web:   www.sakshaug.net
Tel:+47 913 95 618



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

2001-01-29 Thread jeremy brand

http://www.vim.org/

:set nu

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"LINUX is obsolete"  -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   http://www.JEEP-FOR-SALE.com/ -- I need a buyer
  Get your own Free, Private email at http://www.smackdown.com/

On Tue, 30 Jan 2001 [EMAIL PROTECTED] wrote:

> Date: Tue, 30 Jan 2001 02:37:36 EST
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: [PHP] Editor
> 
> Hi,
> 
> I know this has been asked before but I can`t seem to get the archive email 
> thingy to work, basically I`m looking for a free or cheap editor that has the 
> lines numbered so that it`s a bit easier for me to debug my scripts.
> 
> TIA
> Ade
> 
> -- 
> 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] Editor

2001-01-29 Thread Website4S

Hi,

I know this has been asked before but I can`t seem to get the archive email 
thingy to work, basically I`m looking for a free or cheap editor that has the 
lines numbered so that it`s a bit easier for me to debug my scripts.

TIA
Ade

-- 
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] Server VS Client script validation

2001-01-29 Thread Michael Hall


Client side validation is not very secure. Someone may be able to play
around with your script and send back whatever they like.

Mick

On Mon, 29 Jan 2001, kaab kaoutar wrote:

> Hi!
> What's best ? using client script while validating form inputs(javasript or 
> vbscript) or using php for validating!
> with the first way, i can trigger alert ! however with the second one, i 
> have to show up a whole page for just saying that there are errors, go back 
> to the form !
> any ideas ?
> thanks
> 
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Anyone out there that can help before my brain gets to hot? -> Solution #1

2001-01-29 Thread Christian Sakshaug

Thanks to Brad Jackson, solution #1 is out ->
 http://www.sakshaug.net/phps/loop.phps





Best Regards, Christian Sakshaug
-- 
Email: [EMAIL PROTECTED]
Web:   www.sakshaug.net
Tel: +47 913 95 618



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

2001-01-29 Thread Maxim Maletsky

 

Maxim Maletsky - [EMAIL PROTECTED]  
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com  
http://www.japaninc.net  
http://www.lincmedia.co.jp  


 



-- 
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-CVS] cvs: php4 /ext/satellite namedvalue_to_zval.c typecode.c

2001-01-29 Thread David Eriksson

erikssonMon Jan 29 22:43:36 2001 EDT

  Modified files:  
/php4/ext/satellite namedvalue_to_zval.c typecode.c 
  Log:
  Applied patch from Oleg Sharoiko <[EMAIL PROTECTED]> to fix bug in 
satellite_any_to_zval_sequence
  
  
Index: php4/ext/satellite/namedvalue_to_zval.c
diff -u php4/ext/satellite/namedvalue_to_zval.c:1.2 
php4/ext/satellite/namedvalue_to_zval.c:1.3
--- php4/ext/satellite/namedvalue_to_zval.c:1.2 Fri Sep  1 15:29:00 2000
+++ php4/ext/satellite/namedvalue_to_zval.c Mon Jan 29 22:43:35 2001
@@ -17,7 +17,7 @@
  */
 
 /*
- * $Id: namedvalue_to_zval.c,v 1.2 2000/09/01 22:29:00 eriksson Exp $
+ * $Id: namedvalue_to_zval.c,v 1.3 2001/01/30 06:43:35 eriksson Exp $
  * vim: syntax=c tabstop=2 shiftwidth=2
  */
 
@@ -83,7 +83,7 @@
const CORBA_any * pSource, zval * pDestination)
 {
int i;
-   int length = 0;
+   int length = 0, step;
void ** pp_members = NULL;
zend_bool success = FALSE;
CORBA_NamedValue source_item;
@@ -121,13 +121,17 @@
array_init(pDestination);
 #endif
 
+   step = content_type->length ? content_type->length : 1;
+
for (i = 0; i < length; i++)
{
p_destination_item = NULL;
memset(&source_item, 0, sizeof(CORBA_NamedValue));
 
source_item.argument._type = content_type;
-   source_item.argument._value = &pp_members[i];
+   source_item.argument._value = pp_members;
+
+   pp_members += step;
 
ALLOC_ZVAL(p_destination_item);

@@ -236,6 +240,7 @@
}
}
 
+   return TRUE;
 
 error: 
return FALSE;
@@ -292,7 +297,7 @@
 
default:
 /* printf("unsupported corba TCKind %i\n", kind);*/
-/* php_error(E_WARNING, "unsupported corba TCKind %i", kind);*/
+   zend_error(E_WARNING, "(satellite) unsupported corba TCKind 
+%i", kind);
}
 
return success;
Index: php4/ext/satellite/typecode.c
diff -u php4/ext/satellite/typecode.c:1.2 php4/ext/satellite/typecode.c:1.3
--- php4/ext/satellite/typecode.c:1.2   Fri Sep  1 15:29:00 2000
+++ php4/ext/satellite/typecode.c   Mon Jan 29 22:43:35 2001
@@ -17,7 +17,7 @@
  */
 
 /*
- * $Id: typecode.c,v 1.2 2000/09/01 22:29:00 eriksson Exp $
+ * $Id: typecode.c,v 1.3 2001/01/30 06:43:35 eriksson Exp $
  * vim: syntax=c tabstop=2 shiftwidth=2
  */
 
@@ -132,8 +132,7 @@
 
if (type_code == NULL)
{
-/* printf("unknown type for member %s\n", 
-   IDL_IDENT(IDL_LIST(declaration).data).str);*/
+   zend_error(E_WARNING, "(Satellite) unknown type for member 
+%s", IDL_IDENT(IDL_LIST(declaration).data).str);
goto error;
}




-- 
PHP CVS 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] Problems with PHP mail()

2001-01-29 Thread Louis LeBlanc

Hey all.  I am running RH6.2, Apache 1.3.14/php4.04.  I am trying to
make a simple mail() call to send myself a message when a 404 is sent -
as a means of monitoring dead links.

Anyway, I have the sendmail path set (/usr/sbin/sendmail -t -i), but
something isn't working right.

Here is the mail() usage as I have it:
mail("$emailaddress", "404 Error Report", $message);

Here is the maillog output:

Jan 30 01:03:52 acadia sendmail[21394]: BAA21394: from=nobody, size=257,
class=0, pri=30257, nrcpts=1,
msgid=<[EMAIL PROTECTED]>,
relay=nobody@localhost
Jan 30 01:03:52 acadia sendmail[21397]: BAA21394: SYSERR(nobody): Cannot
exec /usr/cyrus/bin/deliver: Permission denied
Jan 30 01:03:52 acadia sendmail[21396]: BAA21394: to=leblanc+webmaster,
ctladdr=nobody (99/99), delay=00:00:00, xdelay=00:00:00, mailer=cyrus,
relay=webmaster, stat=Operating system error

As you can see, it is a permissions problem.

Any way to get around this?

TIA
Lou
-- 
Louis LeBlanc
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
[EMAIL PROTECTED]
http://acadia.ne.mediaone.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] checkdnsrr

2001-01-29 Thread Cameron

Warning: checkdnsrr() is not supported in this PHP build in
/usr/local/apache/htdocs/squirrelmail/plugins/filters/filters.php on
line 203

what module do i need to compile into php to get the function working?

http://www.gattcomp.com.au/~gamr/test.php
for a list of already compiled modules . . .


-- 
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 php listen to server ports

2001-01-29 Thread David Harrison

http://www.php.net/manual/en/ref.sockets.php has a cut'n'paste sample that
works perfectly. 

--dave

> -Original Message-
> From: Scott Mebberson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 30 January 2001 3:37 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Can php listen to server ports
> 
> 
> Hi Guys,
> 
> Can php listen to server ports to capture any data that is 
> coming in? I am
> running linux and PHP so if there is anyother way to get the 
> information
> into PHP.
> 
> Anything you can offer will be a great help.
> 
> Thanks
> 
> Scott.
> 
> 
> 
> -- 
> 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 php listen to server ports

2001-01-29 Thread Scott Mebberson

Hi Guys,

Can php listen to server ports to capture any data that is coming in? I am
running linux and PHP so if there is anyother way to get the information
into PHP.

Anything you can offer will be a great help.

Thanks

Scott.



-- 
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: html_mime_mail.class - - help

2001-01-29 Thread Finesse

all you have to do is after accepting the variables just send them to
foo.php.

//you can skip this file. its only for the purpose of showing which
variables are to be used

";

  $html .="";

  echo "";
  echo "";
  echo "";
  echo "";
  echo "";
  echo "";
  echo "";

?>


***
//foo.php


add_html_image($back_color, $pic_select, 'image/jpeg');
$mail->add_html($html, $text);

$mail->build_message();

$mail->send($recip_name, $recip_email, $sender_name, $sender_email,
'Sub: Hi');

?>




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: [PHP] HELP!. INstalling PHP4 on a Cobalt RAQ 2!

2001-01-29 Thread Nold, Mark


- 
Disclaimer: The information contained in this email is intended only for the
use of the person(s) to whom it is addressed and may be confidential or
contain legally privileged information. If you are not the intended
recipient you are hereby notified that any perusal, use, distribution,
copying or disclosure is strictly prohibited. If you have received this
email in error please immediately advise us by return email at
[EMAIL PROTECTED] and delete the email document without making a
copy. 

-
 
RE: 
 
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up

 
You could install flex and bison as Rasmus suggested. I found a similiar
problem on my Sun box. I found that all i had to do was include the path to
the "lex" executable in my $PATH. 
 
This is wierd because i though the "checking for flex... lex" actually would
have tested whether lex was there.
 
Hope this helps.
 
mn
 

Mark Nold
[EMAIL PROTECTED]  
Senior Consultant
 
Change is inevitable, except from vending machines. 

 

-- 
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] Disable print button of client browser

2001-01-29 Thread Maxim Maletsky

There's NO METHOD~~!!!

any one can just hit print-screen and dump whatever your monitor was showing
into PhotoShop (which will print it on request)
:-))

Cheers,
Maxim Maletsky 

-Original Message-
From: Usman Ghani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 1:38 PM
To: PHP Email List
Subject: [PHP] Disable print button of client browser


Hello
Can anybody tell me how to disable the print button of the client browser?
If there is any method please let me know.
Thanks in advance

Usman

-- 
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] Disable print button of client browser

2001-01-29 Thread Josh G

No, no damn way, and besides, I can alt-prtscn and paste it into
something else and print from there anyway.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Usman Ghani" <[EMAIL PROTECTED]>
To: "PHP Email List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 3:38 PM
Subject: [PHP] Disable print button of client browser


Hello
Can anybody tell me how to disable the print button of the client browser?
If there is any method please let me know.
Thanks in advance

Usman



-- 
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] Disable print button of client browser

2001-01-29 Thread Usman Ghani

Hello
Can anybody tell me how to disable the print button of the client browser? If there is 
any method please let me know.
Thanks in advance

Usman



Re: [PHP] Nesting 'foreach ()'

2001-01-29 Thread Philip Olson


Perhaps :

http://php.net/ChangeLog-4.php

Under 4.0.2 it says :

"Fixed problem with nested foreach()'s. (Andi, Zend Engine)"

philip

On Tue, 30 Jan 2001, Chris Fry wrote:

> Tim,
> 
> Works fine in 4.04pl1 on NT.
> 
> I think you should have curly braces round the inner foreach as well?
> 
> $fred = array(1,2,3,4,5,6);
> foreach ($fred as $fred1)
> {   foreach ($fred as $fred2) {
> echo "$fred1 : $fred2";
> }
> };
> 
> 
> Chris Fry
> 
> Tim Ward wrote:
> 
> > according to the online refernce foreach() doesn't change the array pointer.
> > However the following code:
> >
> > $fred = array(1,2,3,4,5,6);
> > foreach ($fred as $fred1)
> > {   foreach ($fred as $fred2)
> > echo "$fred1 : $fred2";
> > };
> >
> > returns:
> >
> > 1 : 1
> > 1 : 2
> > 1 : 3
> > 1 : 4
> > 1 : 5
> > 1 : 6
> >
> > and stops there, implying that the second foreach() is interfering with the
> > first.
> >
> > I've got around this in my actual case by creating two arrays and adding to
> > the second as well as the first, but this won't always be as convenient. Is
> > this a known bug or is the manual wrong?
> >
> > ... by the way
> >
> > $fred = array(1,2,3,4,5,6);
> > $fred2 = $fred;
> > foreach ($fred as $fred1)
> > {   foreach ($fred2 as $fred2)
> > echo "$fred1 : $fred2";
> > };
> >
> > ... doesn't work either which would normally imply that $fred2 is a pointer
> > to $fred rather than a copy. Can this be the case?
> >
> > I am using version 4.0.0
> >
> > Tim Ward
> > Senior Systems Engineer
> >
> > Please refer to the following disclaimer in respect of this message:
> > http://www.stivesdirect.com/e-mail-disclaimer.html
> >
> > --
> > 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] VIRUS ON LIST?

2001-01-29 Thread Brian White

You left some attributes off:

   

At 20:02 29/01/2001 -0700, Ashley M. Kirchner wrote:
>Maxim Maletsky wrote:
>
> > my firewall reports this at last once a moth ...
>
> 
>   So, uuhhh, how many moths have you caught so far?  Must be
>   quite an insect collection by now.  You may want to clean out
>   your firewall before it gets clogged up by all those moths.
> 
>
> AMK4
>
>--
>H | Hi, I'm currently out of my mind.  Please leave a message.  BP!
>   |
>   ~
>   Ashley M. Kirchner    .   303.442.6410 x130
>   Director of Internet Operations / SysAdmin. 800.441.3873 x130
>   Photo Craft Laboratories, Inc. .eFax 248.671.0909
>   http://www.pcraft.com  .3550 Arapahoe Ave, #6
>   .. .  .  . .Boulder, CO 80303, U.S.A.
>
>
>
>--
>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]

-
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [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] Nesting 'foreach ()'

2001-01-29 Thread Chris Fry

Tim,

Works fine in 4.04pl1 on NT.

I think you should have curly braces round the inner foreach as well?

$fred = array(1,2,3,4,5,6);
foreach ($fred as $fred1)
{   foreach ($fred as $fred2) {
echo "$fred1 : $fred2";
}
};


Chris Fry

Tim Ward wrote:

> according to the online refernce foreach() doesn't change the array pointer.
> However the following code:
>
> $fred = array(1,2,3,4,5,6);
> foreach ($fred as $fred1)
> {   foreach ($fred as $fred2)
> echo "$fred1 : $fred2";
> };
>
> returns:
>
> 1 : 1
> 1 : 2
> 1 : 3
> 1 : 4
> 1 : 5
> 1 : 6
>
> and stops there, implying that the second foreach() is interfering with the
> first.
>
> I've got around this in my actual case by creating two arrays and adding to
> the second as well as the first, but this won't always be as convenient. Is
> this a known bug or is the manual wrong?
>
> ... by the way
>
> $fred = array(1,2,3,4,5,6);
> $fred2 = $fred;
> foreach ($fred as $fred1)
> {   foreach ($fred2 as $fred2)
> echo "$fred1 : $fred2";
> };
>
> ... doesn't work either which would normally imply that $fred2 is a pointer
> to $fred rather than a copy. Can this be the case?
>
> I am using version 4.0.0
>
> Tim Ward
> Senior Systems Engineer
>
> Please refer to the following disclaimer in respect of this message:
> http://www.stivesdirect.com/e-mail-disclaimer.html
>
> --
> 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]


[PHP] Nesting 'foreach ()'

2001-01-29 Thread Tim Ward

according to the online refernce foreach() doesn't change the array pointer.
However the following code:

$fred = array(1,2,3,4,5,6);
foreach ($fred as $fred1)
{   foreach ($fred as $fred2)
echo "$fred1 : $fred2";
};

returns:

1 : 1
1 : 2
1 : 3
1 : 4
1 : 5
1 : 6

and stops there, implying that the second foreach() is interfering with the
first.

I've got around this in my actual case by creating two arrays and adding to
the second as well as the first, but this won't always be as convenient. Is
this a known bug or is the manual wrong?

... by the way 

$fred = array(1,2,3,4,5,6);
$fred2 = $fred;
foreach ($fred as $fred1)
{   foreach ($fred2 as $fred2)
echo "$fred1 : $fred2";
};

... doesn't work either which would normally imply that $fred2 is a pointer
to $fred rather than a copy. Can this be the case?

I am using version 4.0.0

Tim Ward
Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


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

2001-01-29 Thread Josh G

str_replace()

I think the syntax is 

$foo = str_replace($old_foo,"http://www.something.com","");

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
  

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 2:41 PM
Subject: [PHP] strings


> How can i make http://www.something.com/blah/blah.zip into 
> 
> blah/blah.zip
> 
> http://www.somethingcom is a constant.. always the same thing
> 
> how can i cut it out?
> 
> thnx
> 
> - Peter
> 
> 
> -- 
> 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] strings

2001-01-29 Thread PeterOblivion

How can i make http://www.something.com/blah/blah.zip into 

blah/blah.zip

http://www.somethingcom is a constant.. always the same thing

how can i cut it out?

thnx

- Peter


-- 
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] Passing HTTP_COOKIE_VARS to functions

2001-01-29 Thread Jamie

Can anyone tell me why  this piece of code is not working - I'm finding that
if I pass values rather then the HTTP_COOKIE_VARS["cookiename"] to the
function it seems to work but I want to have this value a variable cookie
(for obvious reasons). I cannot seem to find any more information on this
function other then it is better to use this method rather then just using
the $cookiename variable as it stops the variable being passed through the
URL - though using these variables works fine.

//a function to load Registered Users pref's overiteing Guest pref's
function PrefResults($user, $password)
{
global $DB_Server, $HTTP_Host, $DB_Login, $DB_Password, $DB_Name, $DocRoot,
$language_pref, $currency_pref, $notifyme_pref, $page_pref;

$db = mysql_connect("$DB_Server", "$DB_Login","$DB_Password");
mysql_select_db("$DB_Name",$db);
$result = mysql_query("SELECT language_pref, currency_pref, page_pref,
notifyme_pref FROM users WHERE user_id=$user AND password=$password",$db);
$pref_settings = mysql_fetch_array($result);
   $language_pref = $pref_settings["language_pref"];
   $currency_pref = $pref_settings["currency_pref"];
   $notifyme_pref = $pref_settings["notifyme_pref"];
   $page_pref = $pref_settings["page_pref"];
}




PrefResults($HTTP_COOKIE_VARS["cookie_user"],$HTTP_COOKIE_VARS["cookie_passw
ord"]);



Regards
Jamie



-- 
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] VIRUS ON LIST?

2001-01-29 Thread Ashley M. Kirchner

Maxim Maletsky wrote:

> my firewall reports this at last once a moth ...


  So, uuhhh, how many moths have you caught so far?  Must be
  quite an insect collection by now.  You may want to clean out
  your firewall before it gets clogged up by all those moths.


AMK4

--
H | Hi, I'm currently out of my mind.  Please leave a message.  BP!
  |
  ~
  Ashley M. Kirchner    .   303.442.6410 x130
  Director of Internet Operations / SysAdmin. 800.441.3873 x130
  Photo Craft Laboratories, Inc. .eFax 248.671.0909
  http://www.pcraft.com  .3550 Arapahoe Ave, #6
  .. .  .  . .Boulder, CO 80303, U.S.A.



-- 
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] when using die(), how can i get the line number that errored?

2001-01-29 Thread Maxim Maletsky

$res = mysql_query($badsqlstatement) or die(errtrapper().' at line
('.__LINE__.')');

Cheers,
Maxim Maletsky

-Original Message-
From: Noah Spitzer-Williams [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 6:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP] when using die(), how can i get the line number that
errored?


here's my code:

$res = mysql_query($badsqlstatement) or die(errtrapper());

inside errtrapper(), is there a way to find out what line this error
occurred?

thanks!!

- Noah



-- 
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] VIRUS ON LIST?

2001-01-29 Thread Maxim Maletsky

my firewall reports this at last once a moth ... 

Cheers,
Maxim Maletsky

-Original Message-
From: Chuck Mayo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 8:50 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] VIRUS ON LIST?


I don't want to be an alarmist, but wanted to give everyone a heads-up. Our
firewall at corporate scrubbed a virus from a mail sent to the php-db list
from
"Angel2 Gabriel Lena Valega". The virus was in an attachment named
"Emanuel.exe"
and the message subject was  "i need help with odbc!"

John Coonrod wrote:

> Right. That's what I saw here also: a virus attachment from Angel2 Gabriel
> Lena Valega in Peru
>
> = Original Message from Chuck Mayo <[EMAIL PROTECTED]> at 1/29/01 6:17
pm
> >Virus in this mail?
> >
> >Angel2 Gabriel Lena Valega wrote:
> >
> >> --  Virus Warning Message (on the network)
> >>
> >> Found virus TROJ_NAVIDAD.E in file Emanuel.exe
> >> The file is deleted.
> >>
> >> -
> >>
> >>

> >>
> >> --  Virus Warning Message (on the network)
> >>
> >> Emanuel.exe is removed from here because it contains a virus.
> >>
> >> -
> >
> >
> >--
> >PHP Database 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]
>
> 
> Dr. John Coonrod, Vice President, [EMAIL PROTECTED]
> The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org


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

2001-01-29 Thread Maxim Maletsky

Just add the full path of your web server into your include_path (php.ini) -
this should work the best for you.

Cheers,
Maxim Maletsky

-Original Message-
From: Toby Miller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 8:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP] $DOCUMENT_ROOT


Whenever I include files in Apache I always do it like this:

include($DOCUMENT_ROOT."/folder/file.php");

However, now I am doing a site in IIS and I do not have $DOCUMENT_ROOT at my
disposal. What do most of you usually do to workaround this? Aside from
installing Apache and Linux and bypassing the whole Windows thing :)

Thanks,
Toby


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

2001-01-29 Thread Maxim Maletsky

Yeah, apparently the server was a bit down these hours ...  no one received
anything ...

Cheers,
Maxim Maletsky

-Original Message-
From: Joe Sheble aka Wizaerd [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 10:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] testing


I haven't received any emails from this list in over 24 hours... is it down 
or it it me just not receiving them

Joseph E. Sheble
[EMAIL PROTECTED]

Wizaerd's Realm
http://www.wizaerd.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] can .inc run php script?

2001-01-29 Thread Maxim Maletsky

Yup,

you can even run .maxim or .john if you add them into apache's httpd.conf,
or without adding anything you can just include() any possible kind of file
into .php file and it will be processed just as a .php file.

Cheers,
Maxim Maletsky

-Original Message-
From: John LYC [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 28, 2001 8:31 PM
To: PHP List
Subject: [PHP] can .inc run php script?


hi all,

can .inc file run scripts...

example...

//config.inc

function watever()
{
//do something
$var = something;
return $var;
}

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

2001-01-29 Thread Maxim Maletsky

if you are sure $date will *always* be of the same format:

function date_manipulator($date=0)
{
   Global $year,$day,$month;  // I should update your variables from a
previous call, if you don't need it - don't use it ...
   if($date!=0) {
  $year = substring($date,0,4);
  $month = substring($date,4,6); // you mean that the month follows the
year? (not clear in your example)
  $day = substring($date,6,8);
  return "Today's date is $day $month $year"; or use mktime() etc ... 
   }
}


Cheers,
Maxim Maletsky


-Original Message-
From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 4:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem!


1.
$date = "20010101";

How could I output 01 01 2001 (or make it 3 variables, like day, month,
year)?

2.
What is the best way to encrypt (using PHP and MySQL)?

Could you please answer me directly by mailadr. ([EMAIL PROTECTED]), because
I'm currently not a member of this list at home! 

-
Fredrik A. Takle
[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] Resize the pop-up window

2001-01-29 Thread Maxim Maletsky

Here's an example from some of my old code:






 ';
 ?>'.three_dots(trim($name),0,$sections[$db][3][0]).'';
?>



hey, this yes WILL HELP YOU ALL:
http://developer.irt.org/script/script.htm

Lots of good Javascript tips! 

Cheers,
Maxim Maletsky

-Original Message-
From: david klein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 4:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Resize the pop-up window


Hello, I know this question is out of PHP, but I'll very appreciate if some 
guru here could help me out.

I have a link, which will pop up a new window, but the problem is: I don't 
know how to resize the new popped-up window.

My code is like this:

 intel connection 


Thank you very much in advance.

David
_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Importing MS Access into MySQL?

2001-01-29 Thread Maxim Maletsky

just what my problem was 2 month ago...  

here we go: 

http://dbtools.vila.bol.com.br/

this little toy will seat on your windows machine administering your mySQL
database. It has an MSAccess-mySQL import feature very easy to use. Try to
do so and check if your data went transferred ok.

NOTE: You will need to review your MSAccess table structure, things like
field names, properties and other attributes

make yourself a copy first and play with it for a while ... but it is easy
enough to do this way

P.S: When I needed it that much I found a bunch of good advices in
PHP-General Archives at http://marc.theaimsgroup.com/?l=php-general&r=1&w=2

Cheers,
Maxim Maletsky 

-Original Message-
From: James, Yz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 6:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Importing MS Access into MySQL?


Hey all,

I heard somewhere (I think) that it's possible to import a Microsoft Access
file (when saved as a delimited text file) into a MySQL table  Just
wondering whether or not this is true, and if it is, where I might find a
tutorial / some literature on how I might go about doing it.

Thanks, as always, in advance :)

James.



-- 
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] Apache/PHP Configuration Problem on NT5

2001-01-29 Thread Maxim Maletsky

Have you touched any .htaccess file? 
Then maybe that's the problem ... 

I've no idea what you misconfigured at all, but I know that a
misconfiguration of .htaccess gives you the exactly same error (500) and the
error log line is often looking very similar,

Cheers,
Maxim Maletsky

-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 5:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Apache/PHP Configuration Problem on NT5


I have set up an ErrorDocument 404 in httpd.conf to point to a PHP file in 
the root of my documents.  It was working, now suddenly it has stopped 
working.  Here's the scenario:

When I attempt to view a page that is not there, I receive a 500 Internal 
Error Message, as follows:



Internal Server Error
The server encountered an internal error or misconfiguration and was unable 
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform them

of the time the error occurred, and anything you might have done that may 
have caused the error.

More information about this error may be available in the server error log.

Apache/1.3.14 Server at swifte.dev Port 8080



If I look at the error log, I find the following line:

[Sun Jan 28 15:18:35 2001] [error] [client 127.0.0.1] Premature end of 
script headers: c:/program files/php/php.exe



Any ideas on how to fix this problem?
_
Get your FREE download of MSN Explorer at http://explorer.msn.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] ereg()

2001-01-29 Thread Maxim Maletsky

only letters and space ?

if (eregi("^[A-Z ]+$", $firstname))

this will return true only if a case-insensitive string will contain only
letters and spaces... (and the string must not be NULL)

if (eregi("^([A-Z]+( )*[A-Z]+)$", trim($firstname)))\

this will return "Maxim Maletsky", "   Maxim Maletsky " but not "Maxim
Maletsky, jr" or even "MaximMaletsky  "

Cheers,
Maxim Maletsky

-Original Message-
From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 7:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] ereg()


Hi
is the following right?
ereg("[a-zA-Zéêèë\sbàäïüöûâç-]", $firstname)
cause even when i type a number it accepts it ! however i want only letters 
- and space !
thanks

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] PHP + send mail using remote smtp server ?

2001-01-29 Thread Maxim Maletsky

Yes, Check the PHP.ini file, it can be easily configured there,

Cheers,
Maxim Maletsky

-Original Message-
From: Samuel Tran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 1:29 AM
To: php-general
Subject: [PHP] PHP + send mail using remote smtp server ?


Hello everybody !

Is it possible to send mail using PHP and a mail server that is
different from the Web Server ?

I would appreciate any help.

Thank you.

Sam


-- 
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] outlook & php

2001-01-29 Thread Maxim Maletsky

What about some sort of page open of JavaScript with the email in a SRC
string, so then the page opened proceed and close?

PHP and Outlook? no other ideas ...  MS and JavaScript? can work sometimes
.. 

Cheers,
Maxim Maletsky

-Original Message-
From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 8:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] outlook & php


hi!
do someone knows how to trigger a php file from outlook?
i have an html file where user adds his email address, if the email does not

exist, a mail undelevery will be recieved in a certain email address, so 
what i like to do, is that, once an email is received, the email address 
will be sent as argument to a program that will deleted it rom my database!
thanks
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] can .inc run php script?

2001-01-29 Thread John LYC

THANKS EVERYONE!!!...


John LYC wrote:

> hi all,
>
> can .inc file run scripts...
>
> example...
>
> //config.inc
>
> function watever()
> {
> //do something
> $var = something;
> return $var;
> }
>
> 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]




[PHP] can .inc run php script?

2001-01-29 Thread John LYC

hi all,

can .inc file run scripts...

example...

//config.inc

function watever()
{
//do something
$var = something;
return $var;
}

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] File upload problem

2001-01-29 Thread Hugo Trovao Mota

Hi!

I've recently upgraded my system to Redhat 7, running Apache 1.3.14, PHP 
4.0.4pl1 and mod_perl 1.24.
Since that, some of my PHP scripts just stopped working (they worked just 
fine before).

When I use file upload, all the uploaded files get a "free bonus" 
'Content-Type' header that makes them unusable.
For example, I can't display uploaded GIFs or JPGs because of the added 
'Content-Type' line.

Is this a bug in PHP 4.0.4pl1? Is it something in my php.ini?



Regards,

  Hugo Trovao Mota




-- 
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-CVS] cvs: php4 /ext/com conversion.c typedef_VARIANT.c

2001-01-29 Thread Harald Radi

phanto  Mon Jan 29 18:09:38 2001 EDT

  Modified files:  
/php4/ext/com   typedef_VARIANT.c conversion.c 
  Log:
  pass another com object as parameter
  

Index: php4/ext/com/typedef_VARIANT.c
diff -u php4/ext/com/typedef_VARIANT.c:1.2 php4/ext/com/typedef_VARIANT.c:1.3
--- php4/ext/com/typedef_VARIANT.c:1.2  Mon Jan 29 13:54:09 2001
+++ php4/ext/com/typedef_VARIANT.c  Mon Jan 29 18:09:38 2001
@@ -145,7 +145,7 @@
break;
 
case OE_IS_OBJECT:
-   if(strstr(overloaded_property->element.value.str.val, 
"value"))
+   if(!strcmp(overloaded_property->element.value.str.val, 
+"value"))
php_variant_to_pval(var_arg, &result, 0);
else
{
@@ -192,197 +192,197 @@
 
type.type = IS_STRING;

-   if(strstr(arg_property->value.str.val, "bVal"))
+   if(!strcmp(arg_property->value.str.val, "bVal"))
{
type.value.str.val = "VT_UI1";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "iVal"))
+   else if(!strcmp(arg_property->value.str.val, "iVal"))
{
type.value.str.val = "VT_I2";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "lVal"))
+   else if(!strcmp(arg_property->value.str.val, "lVal"))
{
type.value.str.val = "VT_I4";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "fltVal"))
+   else if(!strcmp(arg_property->value.str.val, "fltVal"))
{
type.value.str.val = "VT_R4";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "dblVal"))
+   else if(!strcmp(arg_property->value.str.val, "dblVal"))
{
type.value.str.val = "VT_R8";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "boolVal"))
+   else if(!strcmp(arg_property->value.str.val, "boolVal"))
{
type.value.str.val = "VT_BOOL";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "scode"))
+   else if(!strcmp(arg_property->value.str.val, "scode"))
{
type.value.str.val = "VT_ERROR";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "cyVal"))
+   else if(!strcmp(arg_property->value.str.val, "cyVal"))
{
type.value.str.val = "VT_CY";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "date"))
+   else if(!strcmp(arg_property->value.str.val, "date"))
{
type.value.str.val = "VT_DATE";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "bstrVal"))
+   else if(!strcmp(arg_property->value.str.val, "bstrVal"))
{
type.value.str.val = "VT_BSTR";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "pdecVal"))
+   else if(!strcmp(arg_property->value.str.val, "pdecVal"))
{
type.value.str.val = "VT_DECIMAL|VT_BYREF";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "punkVal"))
+   else if(!strcmp(arg_property->value.str.val, "punkVal"))
{
type.value.str.val = "VT_UNKNOWN";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "pdispVal"))
+   else if(!strcmp(arg_property->value.str.val, "pdispVal"))
{
type.value.str.val = "VT_DISPATCH";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "parray"))
+   else if(!strcmp(arg_property->value.str.val, "parray"))
{
type.value.str.val = "VT_ARRAY";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "pbVal"))
+   else if(!strcmp(arg_property->value.str.val, "pbVal"))
{
type.value.str.val = "VT_UI1|VT_BYREF";
php_pval_to_variant_ex(value, var_arg, &type);
}
-   else if(strstr(arg_property->value.str.val, "piVal"))
+   else if(!strcmp(arg_property->value.str.val, "piVal"))
{
type.value.str.val = "VT_I2|VT

Re: [PHP] Problem!

2001-01-29 Thread Jeff Warrington

In article <000a01c08960$f60d33e0$6dc94382@hp>, "Fredrik Arild Takle"
<[EMAIL PROTECTED]> wrote:

$date = "20010101";
$newdate = strtotime($date);
$formatted = date("m d Y",$newdate);

list($mon, $day, $year) =
array(date("m",$newdate),date("d",$newdate),date("Y",$newdate));



> 1.
> $date = "20010101";
> 
> How could I output 01 01 2001 (or make it 3 variables, like day, month,
> year)?
> 
> 2.
> What is the best way to encrypt (using PHP and MySQL)?
> 
> Could you please answer me directly by mailadr. ([EMAIL PROTECTED]),
> because I'm currently not a member of this list at home! 
> 
> -
> Fredrik A. Takle [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] form validation :ereg ()

2001-01-29 Thread Jeff Warrington

In article <[EMAIL PROTECTED]>, "kaab kaoutar"
<[EMAIL PROTECTED]> wrote:

If you wish to include a hyphen in the allowed character list of a 
pattern match, you must include it as the last character.

So what you want should be more like:

if (eregi("[^a-zA-Zëàéêêàäïüöûâç-]",$name)) {
print("your name can't include non-letter, etc");
}

You can add space with:  [:space:] within the charachter
class ([^a-zA-Z[:space:]ëàéêêàäïüöûâç-])

Jeff


> Hi again!
> 
> I still did not fix my prob : I want to check, in a form, that the name
> input may include an alphabetical  letter a- z, A-Z, or a space, or -,
> or à, or ä or ü etc how can i do that ? i used  
> ereg("([a-z,A-Z][ë,à]?)",$name) then
> (!ereg("([a-z,A-Z,é,ê,è,ë,-,\t,à,ä,ï,ü,ö,û,â,ç])", $name))
> i get the following warnin :REG_ERANGE:,invalid character range by the
> way how to add space " " and "-" ?
> 
> Please help!
> 
> Thanks
> 
> 
> _
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.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] RE: PHP and Oracle resources

2001-01-29 Thread Nold, Mark


- 
Disclaimer: The information contained in this email is intended only for the
use of the person(s) to whom it is addressed and may be confidential or
contain legally privileged information. If you are not the intended
recipient you are hereby notified that any perusal, use, distribution,
copying or disclosure is strictly prohibited. If you have received this
email in error please immediately advise us by return email at
[EMAIL PROTECTED] and delete the email document without making a
copy. 

-

It's actually pretty easy, just have a read and have a go :)
http://www.php.net/manual/en/ref.oci8.php there are several examples there.

As far as resources, your best bet is to use a DB abstraction library like
PHPLib or the PEAR DB stuff. Im not sure where these projects are at the
moment, but using DB abstraction stops you worrying about those DB specific
calls... but i doubts id want to try to learn something more with such a
close deadline)

Anyway the worlds most basic Oracle query follows.

http://www.php.net/manual/en/function.ocilogon.php

// Also look at http://www.php.net/manual/en/function.ocifetchstatement.php
for easier/faster fetching of data.

$sql = "
SELECT
 table_type,
 table_code,
 table_desc
FROM 
 msf010 
WHERE
 table_type = 'MT'";

//OCIInternalDebug(1);

$connection_id = ocilogon("USERNAME","PASSWORD","TNSNAME");
$result_id = ociparse($connection_id, $sql);
$success = ociexecute($result_id);

if($success){
  while(@ocifetchinto($result_id,&$row,OCI_ASSOC+OCI_RETURN_NULLS)){
$data[] = $row;
  }
  ocifreestatement($result_id);
}else{
  $error= OCIError();
  echo "Error is $error\n";
}
ocilogoff($result_id);




function makeTable($data, $options = ""){
  // This is an extremely simple table generator function
  $table = "\n";
  while(list($key,$row) = each($data)){ 
$table .= "";
while(list($col,$val) = each($row)){
  $table .= "$val";
}
$table .= "\n";
  }
  $table .= "\n";
  return $table;
}

echo makeTable($data,"border=1 cellspacing=0");
?>






Mark Nold
[EMAIL PROTECTED]  
Senior Consultant
 
Change is inevitable, except from vending machines. 



-Original Message-
From: Kristofer Widholm [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 28, 2001 1:47 PM
To: PHP List Post
Subject: PHP and Oracle resources


Well, I've been given the joyous task of implementing the DaveTV 
project at CBS via PHP, using Oracle as a database.

I've never used Oracle before.

Looking at the PHP functions for Oracle, and having heard about it in 
the past, it seems like quite a different approach than any SQL 
database I've ever used.  I still don't get the whole point of cursor 
objects, etc. :-)

It would all be pretty hilarious if it weren't so real, and with a 
big fat deadline looming smack for the end of February.

To get to the point: Anyone have any good PHP & Oracle tutorials, 
resources, books, etc, to point me to?  EVERYTHING I see is MySQL, 
MySQL, MySQL, and all I get for Oracle are lists of unexplained PHP 
function calls.

Just point me in the right direction. I can walk there myself.

Thanks for the help.

Kristofer
-- 
__

Kristofer Widholm
Web Pharmacy
[EMAIL PROTECTED]
191 Grand Street, Brooklyn  NY  11211
718.599.4893
__

--
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] ' VS "

2001-01-29 Thread Philip Olson


Hello Jonathan,

Not sure on the exact numbers but consider :

print "hello, this has one $variable in it yet all is interpreted";

print 'hello, Concatenating is a ' . $another . ' way!';

not sure the exact performance increases but if done a million times it
should be noticable.  i happen to be mildy anal on this and even seeing
stuff like this :

$var = "some words";

bothers me.  some good basic information on this can be found here :

http://www.zend.com/zend/tut/using-strings.php

http://www.php.net/manual/en/language.types.string.php

of course this all is preference and depends on the situation as doing
this :

   $var = 'a ' . $b . ' c ' . $d . ' e ' . $f . ' g';

is downright silly.


philip

On Mon, 29 Jan 2001, Jonathan Sharp wrote:

> I read somewhere that when PHP encounters a single quote ' it doesn't parse
> the contents for any variables or such...but if it encounters the double
> quote " it does. How much of a performance increase (very very very very
> small I'd imagine) would this provide? Any thoughts on coding style?
> 
> -Jonathan Sharp
> 
> Director of Technology - Imprev Inc.
> Renwick Development Group - Flyerware
> http://www.flyerware.com/
> Phone: (425)688-9200
> Cell: (425)766-1398
> EPage: [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] expressions

2001-01-29 Thread Jeff Warrington

In article <94t6hv$903$[EMAIL PROTECTED]>, "Kumanan"
<[EMAIL PROTECTED]> wrote:

if (eregi("[^0-9]{3}",$co_area)) {
print("area code must be digits");
}

or 

if (eregi("[^[:digit:]]{3}",$co_area))

if you use the POSIX regex fields.



> hi, im trying to fix this couple of hours but i couldnt find the
> mistake... can somebody look at it...
> 
> first i want to check the $co_area for 3 digital  ... it must contain 3
> digital
> 
> if  ($co_area != !ereg("([0-9]{3})",$co_area))
> { echo " * Area code must be 3 digital"; }
> 
> 
> second...
> 
> nickname check works but the first letter could be any number or any
> letters
> 
> with this code it accept only letters as first character... i just
> want any letter or numbers or - _ symboles from 3 to 12 characters...
> 
> if ($nickname != !eregi("^[-\._\.0-9a-zA-Z]{3,12}$",$nickname))
>  {
>  $error ="Nickname must be Alphanumeric[ a-z 0-9; - _ ; 3 - 12
> characters ]";
>  $flak=1;
>  }
> 

First mistake when using character classes in the pattern is that the
hyphen must be at the end if it is to be included. Otherwise the hyphen
is seen to be part of the range (0-9 or A-Z):

so, ^[0-9a-zA-Z._-]{3,12} 

instead of what you have.  You also should not need the trailing $. 
As in the first example, don't use the 'double negative' approach.

use:

if (eregi("^[^0-9a-zA-z._-]{3,12}",$nickname)) {
echo "only alphanumeric buddy!";
}

I didn't test this but it should be closer to success.

Jeff


> 
> i hope someone can help me to fix this...
> 
> thanx
> 
> kumanan [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] PEAR?

2001-01-29 Thread Sterling Hughes

> I came across http://pear.php.net/ So what is this? I found this in the
PHP
> Developers Cookbook by SAMS...Right now it only has a few documentation
and
> coding standards...are there more plans for this?
>

Good choice in reading ;-).

PEAR, the web site is currently not that functional, but rather contains
minimal information about the goals and ideas of PEAR.  If your looking to
obtain pear classes and have php4 or greater, guess what?  you already have
those classes, PHP4 (every distribution of) comes with an updated set of
classes.  If you need classes that are available in later versions of PHP4
(such as Net_Curl) you can either do a simple checkout of the pear directory
in PHP's CVS::

cvs -z3 -d :pserver:[EMAIL PROTECTED]:/repository login   --> password is
phpfi
cvs -z3 -d :pserver:[EMAIL PROTECTED]:/repository co php4/pear

and you should get the latest and greatest version of pear

If your not adept with CVS, you can send me a mail for any class you want
(or to the list)...

There should be at least nightly builds (if that term could be used) on
pear.php.net, I'll send you a note when there are

Best Regards,

Sterling Hughes
[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] ereg_replace all items in a array

2001-01-29 Thread Jeff Warrington

In article <[EMAIL PROTECTED]>, "Joseph H
Blythe" <[EMAIL PROTECTED]> wrote:

What is happening is that you are replacing the variable $replaced
on each iteration of the while loop. As a result, $replaced is only
storing the most recent match.

To see this, try this out:

$keywords = "foo";
$data = "This is a lower foo. This is an upper FOO. This is a ucase Foo";

$lower = strtolower($keywords);
$upper = strtoupper($keywords);
$ucase = ucwords($keywords);
$words = array($lower, $upper, $ucase);

while ( list($key, $val) = each($words) ) {
print("key: $key => val: $val");
$hilite = "" . $val . "";
$replaced[] = ereg_replace($val, $hilite, $data);
}
for($i=0;$i";
}

The first print statement will show you what keywords we are
focusing on. The ereg_replace in this case is appending an arrary.
If you then walk that array, you will see that each of your keywords
was matched and highlited.  

that should get you a little further along.

Jeff


> G'day PHP'ers
> 
> I am trying highlight the results from a search, so far I have this
> working but only if the string is an exact match ie: case sensitive, for
> example:
> 
>  $keywords = "foo";
> $data = "This is a lower foo. This is an upper FOO. This is a ucase
> Foo";
> 
> $lower = strtolower($keywords);
> $upper = strtoupper($keywords);
> $ucase = ucwords($keywords);
> $words = array($lower, $upper, $ucase);
> 
> while ( list($key, $val) = each($words) ) {
> $hilite = "" . $val . "";
> $replaced = ereg_replace($val, $hilite, $data);
> }
> 
> echo $replaced;
> ?>
> 
> Now as metioned this seems to work only for "foo" does anyone have any
> idea why? 
> 
> Also I need to be able to support mutiple keywords ie: foo Foo FOO, so
> basically I know I could split(" ", $keywords) then some how traverse
> the array making a new array of all possible case combinations then in
> my while loop replace each occurance found in $data with the highlighted
> replacment, sounds easy hmm
> 
> If anyone has any ideas or can see what I am doing wrong so far, it
> would be mutch appreciated.
> 
> 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]




[PHP] ' VS "

2001-01-29 Thread Jonathan Sharp

I read somewhere that when PHP encounters a single quote ' it doesn't parse
the contents for any variables or such...but if it encounters the double
quote " it does. How much of a performance increase (very very very very
small I'd imagine) would this provide? Any thoughts on coding style?

-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [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] ibm-db2 support

2001-01-29 Thread [EMAIL PROTECTED]

Yup.  Install the "DB2 Application Development" package and it'll give you
the
headers.

-Szii

- Original Message -
From: Bill Sneed <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 28, 2001 12:49 PM
Subject: [PHP] ibm-db2 support


> Greetings:
>
> I'm using RH6.2, DB2 V7.1, PHP-4.0.4pl1, Apache 1.3.14, and Pgsql 7.0.3.
>
> I've been able to ./configure  successfully support for apache, pgsql, &
> db2 but come time to compile, make ends with the following error:
>
> In file included from internal_functions.c:38:
> /usr/local/php-4.0.4pl1/ext/odbc/php_odbc.h:60:sqlcli.h:
> no such file or directory
> .
> .
> .
> make ends.
>
> Anyone have an idea what's going on and how to fix it??
>
> TIA.
>
> bill sneed, prospect, maine.
>
>
> --
> 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] $DOCUMENT_ROOT

2001-01-29 Thread Jonathan Sharp

define('DOCUMENT_ROOT', 'C:\path\to\document\root');
NOTE! This would define a global variable to all your scripts without the $
dollar sign.

include(DOCUMENT_ROOT."/folder/file.php");

-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [EMAIL PROTECTED]

-Original Message-
From: CC Zona [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 5:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $DOCUMENT_ROOT


In article <039901c08a48$3d4b5740$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Toby Miller") wrote:

> Whenever I include files in Apache I always do it like this:
>
> include($DOCUMENT ROOT."/folder/file.php");
>
> However, now I am doing a site in IIS and I do not have $DOCUMENT ROOT at
> my disposal. What do most of you usually do to workaround this? Aside from
> installing Apache and Linux and bypassing the whole Windows thing :)

Why not either include the doc root in the include_path of php.ini? Or
define you own DOCUMENT_ROOT constant?

--
CC

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

2001-01-29 Thread Jonathan Sharp

I came across http://pear.php.net/ So what is this? I found this in the PHP
Developers Cookbook by SAMS...Right now it only has a few documentation and
coding standards...are there more plans for this?

-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [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] Problem!

2001-01-29 Thread Benjamin Munoz


Stephen,

If this date format is coming from a MySQL database (frequently the case),
you might want to look at the date formatting functions of MySQL.
http://www.mysql.com/doc/D/a/Date_and_time_functions.html.  

ex. select DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y');

One drawback is that this is not standard SQL, so it's not too portable, if
you are concerned with that.

-Ben

-Original Message-
From: Stephan Ahonen [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 5:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem!


<<1.
$date = "20010101";

How could I output 01 01 2001 (or make it 3 variables, like day, month,
year)?>>

$year = substr($date,0,4);
$month = substr($date,4,2);
$day = substr($date,6,2);

...Assuming that the date is stored in mmdd format.


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

2001-01-29 Thread CC Zona

In article <039901c08a48$3d4b5740$[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] ("Toby Miller") wrote:

> Whenever I include files in Apache I always do it like this:
> 
> include($DOCUMENT ROOT."/folder/file.php");
> 
> However, now I am doing a site in IIS and I do not have $DOCUMENT ROOT at 
> my disposal. What do most of you usually do to workaround this? Aside from 
> installing Apache and Linux and bypassing the whole Windows thing :)

Why not either include the doc root in the include_path of php.ini? Or 
define you own DOCUMENT_ROOT constant?

-- 
CC

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

2001-01-29 Thread Stephan Ahonen

<<1.
$date = "20010101";

How could I output 01 01 2001 (or make it 3 variables, like day, month,
year)?>>

$year = substr($date,0,4);
$month = substr($date,4,2);
$day = substr($date,6,2);

...Assuming that the date is stored in mmdd format.


-- 
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] when using die(), how can i get the line number that errored?

2001-01-29 Thread David Harrison

print __LINE__

Will print the line number (as per
http://www.php.net/manual/en/language.constants.php). 

--dave 

> -Original Message-
> From: Noah Spitzer-Williams [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 29 January 2001 7:21 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] when using die(), how can i get the line number that
> errored?
> 
> 
> here's my code:
> 
> $res = mysql_query($badsqlstatement) or die(errtrapper());
> 
> inside errtrapper(), is there a way to find out what line this error
> occurred?
> 
> thanks!!
> 
> - Noah
> 
> 
> 
> -- 
> 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] Sybase port definition

2001-01-29 Thread Sloboda, Jaroslav

Hi folk's

I have one problem our sybase  uses port 5000
how can i tel php to send all traffic on this port ?

thank's

jaro

-- 
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] when using die(), how can i get the line number that errored?

2001-01-29 Thread Noah Spitzer-Williams

here's my code:

$res = mysql_query($badsqlstatement) or die(errtrapper());

inside errtrapper(), is there a way to find out what line this error
occurred?

thanks!!

- Noah



-- 
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] Sending Download Header

2001-01-29 Thread Natasha

The filename is just the name, the content is what
matters, and also wanted to know if echoing binary
data is ok ?

and what about images, can i send it through octect
stream ? will they turn up right ?

--- WreckRman2 <[EMAIL PROTECTED]> wrote:
> When doing this does the $file_name have to be in
> the current directory or
> can it be a URL?
> 
> 
> - Original Message -
> From: Bojan Gajic <[EMAIL PROTECTED]>
> To: Natasha <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Saturday, January 27, 2001 2:13 PM
> Subject: Re: [PHP] Sending Download Header
> 
> 
> >
> > header("Content-Disposition: attachment;
> filename=$file_name");
> > header("Content-Type: application/octet-stream");
> file://or any other MIME
> type
> > 
> > echo "Content";
> >
> > HTH,
> > Bojan Gajic
> >
> >
> > Natasha wrote:
> >
> > > Hi,
> > >
> > > I'm making a small thing, that sends download
> response
> > > to the header, so that I can build a file from
> some
> > > data in the mysql, and send the data. It can be
> both
> > > text and binary data, could some one help out
> how to
> > > go about this ?
> > >
> > > I know about Content-Disposition, but I don't
> know to
> > > build it.
> > >
> > > thanks.
> > >
> > >
> __
> > > 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]
> >
> >
> > --
> > 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]
> >
> 


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




[PHP-CVS] cvs: php4 /pear PEAR.php.in /pear/tests pear_error.phpt pear_error3.phpt

2001-01-29 Thread Stig Bakken

ssb Mon Jan 29 16:55:27 2001 EDT

  Added files: 
/php4/pear/testspear_error3.phpt 

  Modified files:  
/php4/pear  PEAR.php.in 
/php4/pear/testspear_error.phpt 
  Log:
  @Added raiseError and setErrorHandling methods to PEAR class (Stig, PEAR)
  # This allows all objects to have their own default error handling
  # or use a global default.
  
  

Index: php4/pear/PEAR.php.in
diff -u php4/pear/PEAR.php.in:1.11 php4/pear/PEAR.php.in:1.12
--- php4/pear/PEAR.php.in:1.11  Tue Jan  9 17:01:52 2001
+++ php4/pear/PEAR.php.in   Mon Jan 29 16:55:27 2001
@@ -17,7 +17,7 @@
 // |  Stig Bakken <[EMAIL PROTECTED]>   |
 // +--+
 //
-// $Id: PEAR.php.in,v 1.11 2001/01/10 01:01:52 ssb Exp $
+// $Id: PEAR.php.in,v 1.12 2001/01/30 00:55:27 ssb Exp $
 //
 
 define('PEAR_ERROR_RETURN', 1);
@@ -30,6 +30,9 @@
 define('PEAR_INSTALL_DIR', '@PEAR_INSTALLDIR@');
 define('PEAR_EXTENSION_DIR', '@EXTENSION_DIR@');
 
+$_PEAR_default_error_mode = PEAR_ERROR_RETURN;
+$_PEAR_default_error_options = E_USER_NOTICE;
+$_PEAR_default_error_callback = '';
 $_PEAR_destructor_object_list = array();
 
 //
@@ -60,6 +63,9 @@
// {{{ properties
 
var $_debug = false;
+var $_default_error_mode = null;
+var $_default_error_options = null;
+var $_default_error_handler = '';
 
// }}}
 
@@ -115,6 +121,124 @@
}
 
 // }}}
+// {{{ setErrorHandling()
+
+/**
+ * Sets how errors generated by this DB object should be handled.
+ * Can be invoked both in objects and statically.  If called
+ * statically, setErrorHandling sets the default behaviour for all
+ * PEAR objects.  If called in an object, setErrorHandling sets
+ * the default behaviour for that object.
+ *
+ * @param $mode int
+ *one of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT,
+ *PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE or
+ *PEAR_ERROR_CALLBACK.
+ *
+ * @param $options mixed
+ *Ignored unless $mode is PEAR_ERROR_TRIGGER or
+ *PEAR_ERROR_CALLBACK.  When $mode is PEAR_ERROR_TRIGGER,
+ *this parameter is expected to be an integer and one of
+ *E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR.  When
+ *$mode is PEAR_ERROR_CALLBACK, this parameter is expected
+ *to be the callback function or method.  A callback
+ *function is a string with the name of the function, a
+ *callback method is an array of two elements: the element
+ *at index 0 is the object, and the element at index 1 is
+ *the name of the method to call in the object.
+ *
+ * @see PEAR_ERROR_RETURN
+ * @see PEAR_ERROR_PRINT
+ * @see PEAR_ERROR_TRIGGER
+ * @see PEAR_ERROR_DIE
+ * @see PEAR_ERROR_CALLBACK
+ *
+ * @since PHP 4.0.5
+ */
+
+function setErrorHandling($mode, $options = null)
+{
+if (isset($this)) {
+$setmode = &$this->_default_error_mode;
+$setoptions = &$this->_default_error_options;
+$setcallback = &$this->_default_error_callback;
+} else {
+$setmode = &$GLOBALS['_PEAR_default_error_mode'];
+$setoptions = &$GLOBALS['_PEAR_default_error_options'];
+$setcallback = &$GLOBALS['_PEAR_default_error_callback'];
+}
+
+switch ($mode) {
+case PEAR_ERROR_RETURN:
+case PEAR_ERROR_PRINT:
+case PEAR_ERROR_TRIGGER:
+case PEAR_ERROR_DIE:
+case null:
+$setmode = $mode;
+$setoptions = $options;
+break;
+
+case PEAR_ERROR_CALLBACK:
+$setmode = $mode;
+if (is_string($options) ||
+(is_array($options) && sizeof($options) == 2 &&
+ is_object($options[0]) && is_string($options[1]))) {
+$setcallback = $options;
+} else {
+trigger_error(E_USER_WARNING, "invalid error callback");
+}
+break;
+
+default:
+trigger_error(E_USER_WARNING, "invalid error mode");
+break;
+}
+}
+
+// }}}
+// {{{ raiseError()
+
+/**
+ * This method is called by DB to generate an error.
+ *
+ * @since PHP 4.0.5
+ */
+
+function &raiseError($message = null, $code = null, $mode = null,
+ $options = null, $userinfo = null)
+{
+if ($mode === null) {
+$mode = $this->_default_error_mode;
+if ($mode === null) {
+$mode = $GLOBALS['_PEAR_default_error_mode'];
+}
+}
+
+if ($mode == PEAR_ERROR_TRIGGER && $options === null) {
+$options = $this->_default_error_

[PHP] FTP rawcommands -> FXP

2001-01-29 Thread Andreas Richter

I need a function to exec raw commands on a server, like "LIST" and esp. "LIST -al". I 
going to use it for programming a public php-fxp client.


mfg 



[PHP] APC version 1.0.7 released

2001-01-29 Thread George Schlossnagle

Changes in this version:

1.0.7:
+ partially fixed for Solaris [gws 01.29.2001]
+ fixed mtime support for relative includes [gws 01.29.2001]
+ code cleanup [yg,ta,gws 01.29.2001]
+ support for mtime in mmap [yg,gws 01.27.2001]
+ fixed indexed-array initialization bug [djc,gws 01.27.2001]


This should be the first version which fully supports phplib.

apc is available at http://apc.communityconnect.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] PHP/MySQL question

2001-01-29 Thread Joe Sheble (Wizaerd)

// loops through the entire recordset
while( $qrResults = mysql_fetch_array( $rQuery )) {
print( $qrResults["SomeField"]
}

// reset the recordpointer to the first record
mysql_data_seek( $rQuery, 0 );

Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=

> -Original Message-
> From: Julia A . Case [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 4:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP/MySQL question
>
>
> Is it possible to move through an array that is returned as a recordset
> and then move back to the beginning of the array.
>
> Julia
>
> --
> [  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
> [Programmer at large] [  but is that what ships are really for.]
> [   Admining Linux  ] [   To thine own self be true.   ]
> [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
>
>
> --
> 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] Using PHP as generic security wrapper for content

2001-01-29 Thread Aaron D. Turner

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


While this isn't a really a PHP problem, I figured I can't be the first
person to ever have tried to solve this problem.  Basically I have a web
site with many kinds of content (static html, PHP, cgi's of various
flavors, etc) and I'm looking to create a way to do user authentication
and authorization against a DB for all this content.  While there are
various existing solutions to do this (like mod_auth_db), none of them
seemed to fit my requirements:

1) Support *my* MySQL database schema 
2) Light memory usage (ie, no modperl)
3) Support any kind of content (cgi, php, static html, etc)
4) Not require changes to existing content (ie, I don't want to do a 
require "security.php"; in all the php pages I want to secure).

The closest I've come so far is using mod_layout to allow my custom PHP
script to generate HTTP headers so that I can do the user authentication
myself.  This is actually working very well for most pages and is
completely content agnostic since it's sourced via the Apache server, not
the content.

The problem with this is that mod_layout's LayoutHTTPHeader option seems
to be eating any POST's that CGI's or PHP scripts use.  The mod_layout
list has been completely useless in trying to find the answer to this
issue.

So, does anyone have another viable solution to this problem?  Are there
any builtin PHP options to source a php script during the http header
generation process for any content (not just other PHP scripts)?  Are
there any other modules other than mod_layout that can do this?  I know I
can do this with mod_perl, but it's a lot more memory intensive than PHP
so I'd like to avoid it if possible.

Thanks.

- -- 
Aaron Turner <[EMAIL PROTECTED]|synfin.net|linuxkb.org>  URI:www.synfin.net
They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety. -- Benjamin Franklin

pub 1024D/F86EDAE6  Sig: 3167 CCD6 6081 0FFC B749  9A8F 8707 9817 F86E DAE6
All emails by me are PGP signed; a lack of a signature indicates a forgery.
I have retired my PGP 2.6.2 key: FBE1 CEED 57E4 AB80  596E 60BF 451B 20E8 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc

iEYEARECAAYFAjp2CJUACgkQhweYF/hu2ubc2gCfWeJTNlVgKrv/CrOyHoqRzbaI
XLkAn2LuiTg0lkYIyAdutAqXRyPnT8i4
=ytFC
-END PGP SIGNATURE-



-- 
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] Resize the pop-up window

2001-01-29 Thread Chris Hayes

> I have a link, which will pop up a new window, but the problem is: I don't
> know how to resize the new popped-up window.
> 
> My code is like this:
> 
>  intel connection 

 * for 3.0+ browsers open a window with javascript (see www.irt.org window 
FAQ's) and set size in window features
 * for 4.0+ browsers maybe there are some DHTML ways to set browser size but 
i'm sure it will be a headache to make it work for IE as well as NS as well 
as Mozilla.
good luck,
Chris






--  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --


 

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

2001-01-29 Thread Slappy Smith

I get this error, even when trying to start apache with the -X option:
(tail end of strace on httdp -X)

6421  open("/etc/httpd/php3.ini", O_RDONLY) = 5
6421  ioctl(5, TCGETS, 0xbfffc8e8)  = -1 ENOTTY (Inappropriate ioctl
for device)
6421  read(5, "[PHP_3]\n\n;;;\n; A"..., 8192) = 8192
6421  read(5, "eadlen for an explanation of uod"..., 8192) = 4370
6421  read(5, "", 3822) = 0
6421  read(5, "", 8192) = 0
6421  ioctl(5, TCGETS, 0xbfffc8d4)  = -1 ENOTTY (Inappropriate ioctl
for device)
6421  --- SIGSEGV (Segmentation fault) ---
6421  +++ killed by SIGSEGV +++


Ive seen a few message on the web but no answers.
Any help would be greatly appreciated.

Thanks,
Jimmy
---
Q: Backstreet Boys or N'Sync? 
  A: Both of them. In a house, on fire, surrounded by 
trick fire extinguishers filled with gasoline.
---

-- 
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] Invoke PHP script from onLoad handler?

2001-01-29 Thread Kristofer Widholm

Here's what you wrote, 01-01-27:

>OK, I've gone back through the archives and now understand the situation
>with client- and server-side. I just wasn't thinking it through.
>
>Spawning a window to let PHP query the db and somehow passing returned
>values back to the parent window is something I could do, I suppose, but
>it seems that what I and the other zillion people who keep asking the
>same question need is a way to get to our databases using a client-side
>technology like Javascript.

If it's not an enormous amount of data the user will be working with, 
and they're just reading it and not inputting new values (a set 
number of options, etc.), you could just load all the data into 
JavaScript arrays at the initial load. Whenever a part of any form or 
window is changed, the displayed data would be changed as well via 
JavaScript, without the need for any database query.

Kristofer
-- 
__

Kristofer Widholm
Web Pharmacy
[EMAIL PROTECTED]
191 Grand Street, Brooklyn  NY  11211
718.599.4893
__

-- 
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: filename length ...

2001-01-29 Thread Josh G

There's no filename length, but the url string (even for POST I belive)
must total < 4096 characters.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "George Edmonds" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 10:47 AM
Subject: RE: filename length ...


> On a GET URL,  yes there is a limit of i think its the 256,  but on a POST
> if memory serves you can go as high as you want,  or well lets put it this
> way,  posting i havent hit a limit yet
>
>
>
>
> George R. Edmonds
> Director of Technology
>Strategy Source
> Pager: (888) 914-6551
> Office: (202) 296-4200
> Fax:(202) 296-4295
>
> "Make everything as simple as possible, but no simpler." - Albert Einstein
>
> -Original Message-
> From: David L. Penton [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 5:49 PM
> To: ActiveServerPages
> Subject: RE: filename length ...
>
>
> Since a filename can be no longer than 256 characters, have you tried it?
>
> Have you tried different lengths?
>
> The length will depend on the browser (IE, Netscape, Mosaic, etc) and
> serving software (IIS, Apache, O'Reilly, etc)
>
>
> David L. Penton, MCP
> Consultant
> "Mathematics is music for the mind, and Music is Mathematics for the
> Soul. - J.S. Bach"
> [EMAIL PROTECTED] 
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 11:04 AM
>
> Is there any limit on the filename length on URL line?
>
> TIA.
>
>
> ---
> You are currently subscribed to activeserverpages as:
> [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
>
> -
> Administrated by 15 Seconds : http://www.15Seconds.com
> List Archives/Search : http://local.15Seconds.com/search
> Subscription Information : http://www.15seconds.com/listserv.htm
> Advertising Information: http://www.internet.com/mediakit/
>
>
> ---
> You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> -
> Administrated by 15 Seconds : http://www.15Seconds.com
> List Archives/Search : http://local.15Seconds.com/search
> Subscription Information : http://www.15seconds.com/listserv.htm
> Advertising Information: http://www.internet.com/mediakit/
>
>


-- 
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 and Oracle resources

2001-01-29 Thread Markus Fischer

On Sun, Jan 28, 2001 at 12:46:37AM -0500, Kristofer Widholm wrote : 
> Well, I've been given the joyous task of implementing the DaveTV 
> project at CBS via PHP, using Oracle as a database.
> 
> I've never used Oracle before.
> 
> Looking at the PHP functions for Oracle, and having heard about it in 
> the past, it seems like quite a different approach than any SQL 
> database I've ever used.  I still don't get the whole point of cursor 
> objects, etc. :-)

It's ain't that hard. Just use OCILogon to connect, then
OCIParse to parse the sql statement and finally OCIExecute it.
Loop through your result data with OCIFetchInto.

The Shitload of possible errors should be abstracted into
a class.

m.

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

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

2001-01-29 Thread Markus Fischer

On Sat, Jan 27, 2001 at 09:57:35PM -0500, [ rswfire ] wrote : 
> 3.  How can I turn on directory browsing?  I am receiving a Forbidden error 
> whenever there isn't a default document in a directory.

htpd.conf:

Options Indexes


or in .htaccess
Options Indexes


You'll find all documentation at apaches website [1].

m.

[1] http://httpd.apache.org/docs/mod/directives.html

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

-- 
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] VIRUS ON LIST?

2001-01-29 Thread Chuck Mayo

I don't want to be an alarmist, but wanted to give everyone a heads-up. Our
firewall at corporate scrubbed a virus from a mail sent to the php-db list from
"Angel2 Gabriel Lena Valega". The virus was in an attachment named "Emanuel.exe"
and the message subject was  "i need help with odbc!"

John Coonrod wrote:

> Right. That's what I saw here also: a virus attachment from Angel2 Gabriel
> Lena Valega in Peru
>
> = Original Message from Chuck Mayo <[EMAIL PROTECTED]> at 1/29/01 6:17 pm
> >Virus in this mail?
> >
> >Angel2 Gabriel Lena Valega wrote:
> >
> >> --  Virus Warning Message (on the network)
> >>
> >> Found virus TROJ_NAVIDAD.E in file Emanuel.exe
> >> The file is deleted.
> >>
> >> -
> >>
> >>   
> >>
> >> --  Virus Warning Message (on the network)
> >>
> >> Emanuel.exe is removed from here because it contains a virus.
> >>
> >> -
> >
> >
> >--
> >PHP Database 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]
>
> 
> Dr. John Coonrod, Vice President, [EMAIL PROTECTED]
> The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org


-- 
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] Automate the apache authentication process

2001-01-29 Thread Jason Murray

> However, Apache htpasswd is an interactive program and we 
> need manually input the password, is there a way to automate 
> and batch process this using php scripts?

[jason@phpdev htdocs]$ /usr/local/apache/bin/htpasswd --help
Usage:
htpasswd [-cmdps] passwordfile username
htpasswd -b[cmdps] passwordfile username password

 -c  Create a new file.
 -m  Force MD5 encryption of the password.
 -d  Force CRYPT encryption of the password (default).
 -p  Do not encrypt the password (plaintext).
 -s  Force SHA encryption of the password.
 -b  Use the password from the command line rather than prompting for it.

Looks like you should be able to run htpasswd as a fire-and-forget
operation, just play with the flags.

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] IIS and $PHP_AUTH_USER

2001-01-29 Thread Shane McBride

I am getting a whole lot closer to getting IIS to work with PHP loading as ISAPI.

Now, when I try to get authorized, it never works. It's probably a varialbe in the 
.ini file I have not set. I keep getting the user prompt box, and the realm changes 
after the first login failure

NT5
PHP 4.0.4pl1

Here's the code:

?>  
  // Check to see if $PHP_AUTH_USER already contains info
  if (!isset($PHP_AUTH_USER)) {
// If empty, send header causing dialog box to appear
 header('WWW-Authenticate: Basic realm="TBCC"');
 header('HTTP/1.0 401 Unauthorized');
 echo 'Authorization Required!';
 exit;
  } else if (isset($PHP_AUTH_USER)) {
 if (($PHP_AUTH_USER !="admin") || ($PHP_AUTH_PW !="admin")) {
   header('WWW-Authenticate: Basic realm="TBCC"');
   header('HTTP/1.0 401 Unauthorized');
   echo 'Authorization Required!';
   exit;
}
 }
?>



It worked!





[PHP] Automate the apache authentication process

2001-01-29 Thread david klein

I am using apache authentication. The problem is: I want the user to be able 
to get registered throught the web GUI, and all the users' password and 
userID will be kept in the database. In my mind, I can use php later to get 
all these userID/password, and run the apache htpasswd to register these 
users.

However, Apache htpasswd is an interactive program and we need manually 
input the password, is there a way to automate and batch process this using 
php scripts?

Thanks,
David


_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Server VS Client script validation

2001-01-29 Thread Steve Edberg

At 11:27 AM + 1/29/01, kaab kaoutar wrote:
>Hi!
>What's best ? using client script while validating form 
>inputs(javasript or vbscript) or using php for validating!
>with the first way, i can trigger alert ! however with the second 
>one, i have to show up a whole page for just saying that there are 
>errors, go back to the form !
>any ideas ?
>thanks
>

Best way is to do it both ways:

JavaScript to make a more user-friendly page, and server-side 
validation in case  JavaScript is disabled AND to catch programs that 
simulate posts by writing directly to a socket. It's really easy to 
do that  - via telnet to port 80, for example, or via PHP (see the 
posttohost function at one of the code libraries - see px.sklar.com, 
or phpbuilder.com, or on of the other resources).

- steve

-- 
+--- "They've got a cherry pie there, that'll kill ya" --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+-- FBI Special Agent Dale Cooper ---+

-- 
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] [NEWBIE] PHP.INI

2001-01-29 Thread Jani Taskinen

On Mon, 29 Jan 2001, Steve Haemelinck wrote:

>I want to put the php.ini in /etc/php
>
>Which argument do I have to attach to ./configure --?=/etc/php to accomplish
>this ?

Try running ./configure --help sometimes.. :)

Anyway, the right argument is --with-config-file-path

--Jani


-- 
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/MySQL question

2001-01-29 Thread Johannes Janson

reset($array), if this is what you need.
this resets (who would have thought it?) the internal pointer back to the
first
position.


""Julia A . Case"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is it possible to move through an array that is returned as a recordset
> and then move back to the beginning of the array.
>
> Julia
>
> --
> [  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
> [Programmer at large] [  but is that what ships are really for.]
> [   Admining Linux  ] [   To thine own self be true.   ]
> [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
>
>
> --
> 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] Interactive external program execution

2001-01-29 Thread Paul

I'm running php4 as a CGI binary. 

During the course of a cronjob scheduled script, I need to execute an
external program which connects to another server using an
implementation of eftp (sort of ftp for ISDN). The eftp program returns
no success/error codes, is moderately unstable, and the remote
server/network is often unavailable - thus blind automation is out of
the question. On a good day,  however, it all works and data/info is
sent to STDOUT.

My problem is this: how to make my script interact with the eftp
program? I need to start it, check for a successful connection, move
files around locally, upload/download files, send emails, log data, etc,
etc, depending on which commands were successful and which were not.

The only thing I'm getting back is the STDOUT stream? How can I capture
this in real time (as opposed to in a big lump once the program has
finished), pause the eftp program, parse the output then send suitable
commands back to the eftp program?

I've checked out most of the likely functions (popen() was looking good
for a while, exec() and system() seem to offer little scope for
interactivity) but there always seems to be a 'gotcha' at some point.

If anyone has some insight into this problem, their help, or a pointer
in the right direction, would be appreciated.

All the best,
-- 
Paul

Replace "spamtrap" with "paul" to reply by e-mail

-- 
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] regex with non-ascii characters

2001-01-29 Thread Remco Chang

hi,

just a quick question...  i can't seem to have ereg() work with non-ascii
characters such as the character 'ö'.

is this something that i can work around?

remco chang
www.bountyquest.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-CVS] cvs: php4 /ext/domxml config.m4

2001-01-29 Thread Jani Taskinen

sniper  Mon Jan 29 15:15:12 2001 EDT

  Modified files:  
/php4/ext/domxmlconfig.m4 
  Log:
  Fixed bug #8946. In some systems the libxml.* is actually libxml2.* 
  
  
Index: php4/ext/domxml/config.m4
diff -u php4/ext/domxml/config.m4:1.19 php4/ext/domxml/config.m4:1.20
--- php4/ext/domxml/config.m4:1.19  Fri Dec  8 05:09:32 2000
+++ php4/ext/domxml/config.m4   Mon Jan 29 15:15:11 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.19 2000/12/08 13:09:32 sniper Exp $
+dnl $Id: config.m4,v 1.20 2001/01/29 23:15:11 sniper Exp $
 dnl config.m4 for extension domxml
 
 AC_DEFUN(PHP_DOM_CHECK_VERSION,[
@@ -46,8 +46,14 @@
 
   AC_ADD_INCLUDE($DOMXML_DIR/include)
 
+  if test -f $DOMXML_DIR/lib/libxml2.a -o -f $DOMXML_DIR/lib/libxml2.s? ; then
+DOM_LIBNAME="xml2"
+  else
+DOM_LIBNAME="xml"
+  fi
+
   PHP_SUBST(DOMXML_SHARED_LIBADD)
-  AC_ADD_LIBRARY_WITH_PATH(xml, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD)
+  AC_ADD_LIBRARY_WITH_PATH($DOM_LIBNAME, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD)
 
   if test $HAVE_ZLIB; then
 old_withval=$withval



-- 
PHP CVS 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/MySQL question

2001-01-29 Thread Julia A . Case

Is it possible to move through an array that is returned as a recordset 
and then move back to the beginning of the array.

Julia

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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] Server VS Client script validation

2001-01-29 Thread Toby Butzon

Make the form page post to itself and use default values of . The initial form will be blank, but
subsequent failing attempts will have the values the visitor already
entered. You can also add red text to the form to show what exactly was
wrong, etc.

Then, to handle posts that are successful, you'll need to use something
like this:

if () { // post is acceptable - process the info
  include("file/to/handle/post.php");
} else { // post failed
?>





I know some people might say this is bad style, but it works. It can be
cleaned up some, but this is good enough IMO.

--toby

kaab kaoutar wrote:
> 
> Hi!
> What's best ? using client script while validating form inputs(javasript or
> vbscript) or using php for validating!
> with the first way, i can trigger alert ! however with the second one, i
> have to show up a whole page for just saying that there are errors, go back
> to the form !
> any ideas ?
> thanks
> 
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] [NEWBIE] PHP.INI

2001-01-29 Thread Johannes Janson

Hi,

I'm not sure but I think it's "--with-config-file-path=/path/to/dir.

Good Luck
Johannes



""Steve Haemelinck"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
003901c08a14$3f692bd0$0200a8c0@shaemeli">news:003901c08a14$3f692bd0$0200a8c0@shaemeli...
> I want to put the php.ini in /etc/php
>
> Which argument do I have to attach to ./configure --?=/etc/php to
accomplish
> this ?
>
> THX
>
>
> --
> 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] $DOCUMENT_ROOT

2001-01-29 Thread Toby Miller

Whenever I include files in Apache I always do it like this:

include($DOCUMENT_ROOT."/folder/file.php");

However, now I am doing a site in IIS and I do not have $DOCUMENT_ROOT at my disposal. 
What do most of you usually do to workaround this? Aside from installing Apache and 
Linux and bypassing the whole Windows thing :)

Thanks,
Toby




Re: [PHP] Problem with a regex!

2001-01-29 Thread Stephan Ahonen

> Your not going to find {title} when $var = "TITLE".  Everything PHP is
case
> sensitive.

If it absolutely *has* to be case insensitive, you can use eregi instead of
ereg.


-- 
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] Thumbnails and PHP

2001-01-29 Thread Todd Cary

What is the best way to display thumbnail photos and their titles with
HTML/PHP?  Table?

If I do  and  all works fine - the
's "word wrap".  But, when I do  and , I get a horizontal scroll bar and the 's go off to
the left.

Todd



--
Todd Cary
Ariste Software
[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] MS SQL 7.0 - Functions

2001-01-29 Thread Santhyago Bueno Gallão

Hi,

Which are the functions of php to controler a data base Microsoft SQL 7?
>From which version is possible PHP - MSSQL?
I have that to install some module?

Tanks,


Santhyago

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




RE: [PHP] Problems with majodomo

2001-01-29 Thread Brian V Bonini

I missed the beginning of this thread,
I've got a subscribe routine set up on a website
for Majordomo, what are you trying to do? Bring
me up to speed

-Brian

> -Original Message-
> From: Alan Todd [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 10:33 AM
> To: Phpg
> Subject: [PHP] Problems with majodomo
> 
> 
> I was wondering if anyone has set it up from a website. the problem i am
> having is it does send the comfirmation back
> i have
> mail("$majordomo", "", "$action $list $email","From: $email");
> where $action is subscribe or unsubscribe and $list is oe they pick
> 
> Thanks
> ALan
> 
> /'^'\
>( o o )
> ---oOOO--(_)--OOOo
> Alan Todd
> Infoave.net
> Web Development
> ICQ : 159944
> 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] LOOKING FOR CODE LOCATION IN PHP SOURCE....

2001-01-29 Thread Joe Sheble (Wizaerd)


I don't believe this is a PHP function, but rather a function of the browser
if using the 

Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=

> -Original Message-
> From: Tim Meader [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 8:36 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] LOOKING FOR CODE LOCATION IN PHP SOURCE
>
>
> Hey all, I've come to the realization that if I intend to be able
> to write
> a file to disk AS it's being uploaded via http, I will need to modify the
> PHP source directly. Just wondering, anyone know in what source file I
> should be looking for the HTTP UPLOAD handling code, I've looked through
> quite a few files in the /ext/standard source directory, to no avail yet.
> Thank you in advance to any and all for your help
>
>
> Tim Meader
> [EMAIL PROTECTED]
> ACS Government Solutions Group
>
>
> --
> 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] AUTH_PW & External Authentication

2001-01-29 Thread david klein

I don't think it is easy to steal the password by using PHP_AUTH_PW.  
PHP_AUTH_PW is cached in the browser, if you exit the browser, nobody can 
steal it. If the other people is using a different browser, there is no way 
for him to steal it even if he is accessing the same URL.

Just my understanding.

David


>From: Chen Shiyuan <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] AUTH_PW & External Authentication
>Date: Fri, 26 Jan 2001 23:50:17 +0800 (SGT)
>
>Hello everyone!
>
>I am currently using Apache-1.3.14 with php-4.0.4pl1 compiled statically
>into it and running on RedHat Linux 6.2 . Apache is configured to do
>authentication for certain URLs via a auth_ldap module which is
>dynamically loaded when Apache starts.
>
>I noticed that when I access the protected URL, PHP_AUTH_PW will give me
>the password for the user who is currently logged to the protected site.
>If I recall correctly, earlier versions of PHP4 and PHP3 didn't have
>this "feature" .
>
>This "feature" creates a problem when the protected URL is shared by
>many parties with each party providing it's own services under the
>protected URL as any party would be able to "steal" the
>username/password without the end user knowing. The username/password is
>used to control who has access to the protected URL and the parties are
>not required to make use of the password.
>
>Is there anyway to disable this "feature" or is the disclosure of the
>password a bug?
>
>Many thanks for any advice!
>
>--
>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]
>

_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Resize the pop-up window

2001-01-29 Thread david klein

Joe,

Got it! Thank you very much. Now the codes are like this:


Re: [PHP] Maximum execution time exceeded!

2001-01-29 Thread Kyle Jerviss

That loop will never end.  Generally, the loop body should manipulate
some part of the loop ending condition.

initialize $i before the loop
replace the second loop with "if($prescene2==0){$i++;}"

Chakravarthy K Sannedhi wrote:
> 
> hi all,
> 
> when i am trying to calculate the number of rows with a '0' in a
> particular column using the following code, it is giving the 'Maximum
> execution time exceeded' message, eventhough after i gave
> set_time_limit(60), it didn't worked, infact now it is even worse the
> browser is getting siezed.
> 
> $result=mysql_query("select * from mytable");
> while ($avgrow=mysql_fetch_array($result))
> {
> $prescene2 = $avgrow["scene2"];
> $prescene4 = $avgrow["scene4"];
> $prescene5 = $avgrow["scene5"];
> $prescene7 = $avgrow["scene7"];
> $prescene8 = $avgrow["scene8"];
> $prescene9 = $avgrow["scene9"];
> $i = 1;
> while ($prescene2 == 0) {
> $i=$i+1;
> }
> }
> printf ("Number of zeros=%d",$i);
> 
> Can any one please help me with this.
> 
> TIA
> kalyan
> 
> __
> 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]

-- 
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] Importing MS Access into MySQL?

2001-01-29 Thread Jon Snell

There are a few ways to do this...

1) Save your data to a comma separated list and use the import features of
mysql.  This is the easiest option for one time use.
2) Use MyODBC, create a link table, and paste the rows into it.  This is one
of the easier options if you plan on doing it repeatedly.

Jon Snell

-Original Message-
From: James, Yz [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 3:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Importing MS Access into MySQL?


Hey all,

I heard somewhere (I think) that it's possible to import a Microsoft Access
file (when saved as a delimited text file) into a MySQL table  Just
wondering whether or not this is true, and if it is, where I might find a
tutorial / some literature on how I might go about doing it.

Thanks, as always, in advance :)

James.



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

2001-01-29 Thread christopher calicott

I know this has been discussed several times before, but the only actual
class I've found information on - tap internet - had a problem and cancelled
their class.  I am willing to travel within the US to take a comprehensive
PHP and/or mySQL/PHP class, but I can't find one to take.

Could you please share any/all information you have on PHP classes that are
now available?

-=- christopher calicott

P L U S H,  L T D.
7979 Westheimer #1601
Houston, Texas 77063
Main: (713) 789-0690
Cell: (832) 689-6009
ICQ: 2520536
www.pureplush.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] Cookie with Netscape

2001-01-29 Thread Eugene Yi (InfoSpace Inc)

Yeah, that's what I read from the documentation but it works in IE.  I mean
I place the print right after the setcookie command, and it prints the
cookie value when successfully set.  Of course, the next page will fail
because of the print before header.

> -Original Message-
> From: Aaron D. Turner [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 2:42 PM
> To: Eugene Yi (InfoSpace Inc)
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Cookie with Netscape
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> 
> That's becuase the cookie variable is not available to PHP 
> until the next
> page load.  It's a limitation of cookies/HTTP not PHP.
> 
> On Mon, 29 Jan 2001, Eugene Yi (InfoSpace Inc) wrote:
> 
> > Thank you for your feedback!  I tried it but it didn't make 
> a difference.  I
> > printed the var right after the set and it returns null.
> > 
> > setcookie("cbcookie1",$domain,0,"/","mydomain.com");
> > $domain   = $HTTP_COOKIE_VARS["cbcookie1"];
> > echo "domain($domain)";
> > 
> > > -Original Message-
> > > From: Aaron D. Turner [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, January 29, 2001 2:29 PM
> > > To: Eugene Yi (InfoSpace Inc)
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: [PHP] Cookie with Netscape
> > > 
> > > 
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA1
> > > 
> > > 
> > > On Mon, 29 Jan 2001, Eugene Yi (InfoSpace Inc) wrote:
> > > 
> > > > I set up a cookie using the following command and it works 
> > > fine under IE but
> > > > not in Netscape.  Am I doing something wrong?
> > > > 
> > > > setcookie("mycookie[1]",$domain,"","/","mydomain.com");
> > > 
> > > Should be:
> > > 
> > > setcookie("mycookie[1]", $domain, 0, "/", "mydomain.com");
> > > 
> > > the expire time is an integer, not a string.
> > > 
> > > - -- 
> > > Aaron Turner <[EMAIL PROTECTED]|synfin.net|linuxkb.org>  
> > > URI:www.synfin.net
> > > They that can give up essential liberty to obtain a little 
> > > temporary safety 
> > > deserve neither liberty nor safety. -- Benjamin Franklin
> > > 
> > > pub 1024D/F86EDAE6  Sig: 3167 CCD6 6081 0FFC B749  9A8F 8707 
> > > 9817 F86E DAE6
> > > All emails by me are PGP signed; a lack of a signature 
> > > indicates a forgery.
> > > I have retired my PGP 2.6.2 key: FBE1 CEED 57E4 AB80  596E 
> > > 60BF 451B 20E8 
> > > -BEGIN PGP SIGNATURE-
> > > Version: GnuPG v1.0.4 (GNU/Linux)
> > > Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc
> > > 
> > > iEYEARECAAYFAjp17rkACgkQhweYF/hu2ubpNgCdH1/7RrnWldqfUfjJntSSe3D9
> > > lhEAnjquZx1k+m+LgPzZV0xSr/k15iNJ
> > > =iVu3
> > > -END PGP SIGNATURE-
> > > 
> > > 
> > 
> > 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc
> 
> iEYEARECAAYFAjp18dUACgkQhweYF/hu2uZ+LwCfZfjsoyS7ZLXCyZs+9BwYEhCR
> 4KkAnj39fqbYrykBB1TovSGx4kMBQ9gN
> =rwDT
> -END PGP SIGNATURE-
> 
> 

-- 
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 Backup Daemon

2001-01-29 Thread Michael A. Peters

Howdy,

The company I work for has developed a backup daemon for MySQL (Windows and x86 Linux) 
that uses a php web interface.
We will be destributing it commercially, but would like to offer it for beta testing 
to a limited number of users.

If anyone here has interest in testing the software, please contact us at 
[EMAIL PROTECTED]
Please, do NOT reply to the list!!

I'm sending the offer to the list because I feel that users of this list, many of whom 
use MySQL on a daily basis, could greatly benefit from such a tool and are likely to 
represent the needs of our customers.

Its suppose to work for regularly scheduled backup of multiple servers as well as 
restore the databases should all hell break loose.

If you are interested, please send an e-mail to < [EMAIL PROTECTED] > including 
what platform (Wndows, Linux, both) you would like to run it on, and we'll send you 
more information.

We plan to make it available for linux on PowerPC and Sparc64 as well, but not now.

Thank you for your time.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
Abriasoft Senior Developer

http://www.abriasoft.com/

(510)  623-9726x357
Fax: (510) 249-9125
--
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] IIS and PHP authorization

2001-01-29 Thread Ernest E Vogelsinger

At 06:48 28.01.2001, Rasmus Lerdorf said:
[snip]
>There is an ISAPI module.
[snip] 

yes, which is more than unstable as I found... Using a good machine (2xXeon
550, 512 MB, NT4/SP6a/IIS4) it constantly crashed being a filter, and
crashed being used as MIME plugin latest at the 6th page access.


 ...ebird

   >O Ernest E. Vogelsinger
   (\)http://www.1-at-web.at/
^ ICQ#   13394035


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