Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread chris herring

forgot to mention that ascii/binary is auto in cuteftp
- Original Message -
From: "chris herring" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 19, 2001 1:51 AM
Subject: Re: [PHP] Newbie Help!! Please Look!


> right up my alley... I use cuteftp, and it usually does all this stuff for
> you. all you have to do is right click on the file you want to edit, and
it
> opens it up in notepad, or the editor you choose. just make sure you save
> the file before you close it. after that cuteftp will have a window that
> says "upload" or "cancel".. choose upload. if you wish to change the
editor,
> just go to edit>settings in cuteftp, and find the text that says "helper
> applications" in the window that pops up. click that, and you can choose
> your program.
> - Original Message -
> From: "Tony Daniels" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 18, 2001 10:18 PM
> Subject: [PHP] Newbie Help!! Please Look!
>
>
> > Hello,
> >
> > I need to know if there is a program out there that I can use to edit
> > the PHP files.  I use CuteFTP to download the files from my server as I
> > need to change some wording around from time to time.  Does anyone know
> > the correct procedure for downloading a php file with CuteFTP and then a
> > program that I can use to edit the text I need to edit.  Then also, the
> > correct way to upload it back to the server using CuteFTP.  Do I use
> > Binary or ACII.
> >
> > Or, if I am way off and there is a program that makes CuteFTP look
> > silly, please let me know this also.  I am open for any suggestions, as
> > long as they are detailed.  Please email responses to [EMAIL PROTECTED]
> > .
> >
> > Thank you!
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


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




Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread chris herring

right up my alley... I use cuteftp, and it usually does all this stuff for
you. all you have to do is right click on the file you want to edit, and it
opens it up in notepad, or the editor you choose. just make sure you save
the file before you close it. after that cuteftp will have a window that
says "upload" or "cancel".. choose upload. if you wish to change the editor,
just go to edit>settings in cuteftp, and find the text that says "helper
applications" in the window that pops up. click that, and you can choose
your program.
- Original Message -
From: "Tony Daniels" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 10:18 PM
Subject: [PHP] Newbie Help!! Please Look!


> Hello,
>
> I need to know if there is a program out there that I can use to edit
> the PHP files.  I use CuteFTP to download the files from my server as I
> need to change some wording around from time to time.  Does anyone know
> the correct procedure for downloading a php file with CuteFTP and then a
> program that I can use to edit the text I need to edit.  Then also, the
> correct way to upload it back to the server using CuteFTP.  Do I use
> Binary or ACII.
>
> Or, if I am way off and there is a program that makes CuteFTP look
> silly, please let me know this also.  I am open for any suggestions, as
> long as they are detailed.  Please email responses to [EMAIL PROTECTED]
> .
>
> Thank you!
>
>
> --
> PHP General Mailing List (http://www.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] HTMLSpecialchars

2001-04-18 Thread Brian Clark

Hi Dddogbruce,

@ 1:06:08 AM on 4/19/2001, Dddogbruce (@home.com) wrote:

> I'm having a problem with HTMLspecialchars and nl2br interfearing with
> each other.  Obviously, I'm trying to stop malicous HTML/scripts from
> being entered into my guestbook, but I'm also trying to add spacing.
> nl2br adds , but HTMLspecialchars tells it to not show that.

Are you sure you wouldn't rather strip all HTML? I would do that then
implement my own special "tagged" language. A lot of developers go
with the [url]htp://www.example.com[/url] type of thing.

You can strip HTML with:



> Anyways, I'm sure there is a way around this.  All help is welcome, so
> I'm eager for replys.  Thank you very, very much!

I wouldn't store 's, or any HTML for that matter, in your database
unless there's just no other choice. If you do, you wind up having to
patch a lot of small problems -- like converting 's back to
newlines if you were to quote original posts in a , for
example. If you have 's instead of the original newline
characters, then you run it through nl2br() again, you end up with
double the breaks.


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



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




[PHP] Weird Ordering & Queries

2001-04-18 Thread Chris Aitken

Ive come up with a curly problem and im wondering if anyone can shed some 
lights on it. I looked under the SELECT part of Mysql but it didnt seem to 
cover this and I didnt know how to phrase it.

What I have is a displayed list on the site. This data that makes up the 
list comes from 2 tables. 'item' and 'location' are the 2 table names. For 
each item there is 1 entry in the item table. But under location there is 
several entries depending on where the part is. Its done this way to log a 
history of whether the item has been sent out, or received in. Each entry 
in the location table is date stamped and records the items location, and 
the item_id field.

Currently I am doing my list like this.

$item_q=mysql_query("select * from item order by item name");
while ($item=mysql_fetch_array($item_q)) {
 $location_q=mysql_query("select * from location where 
item_id=$item_q[item_id] order by date desc limit=1");
 $location=mysql_fetch_array($location_q);
 echo"$itemlist[item_name] - $location[location] - $location[date]";
}

The reason I do it this way is that I firstly need it to list all items, 
but then next step (and next SELECT) it grabs the most recent entry in 
location for that item. My problem is, I need to be able to combine the 
SELECT queries into 1, so that I can order by either Location, Date or Name


Im not sure if this sort of thing is possible but it would make life so 
much easier if I could do it.


Thanks


Chris




--
   Chris Aitken - Webmaster/Database Designer - IDEAL Internet
email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
 

   Unix -- because a computer's a terrible thing to waste!


-- 
PHP General Mailing List (http://www.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] global sessions

2001-04-18 Thread CC Zona

In article <9bjvo1$irv$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Ben") 
wrote:

> i'm trying to use sessions with my project, but it seems that registered
> variables in a session aren't global by default.

They should be.  Can you show an example of the code that leads you to 
believe they're not?

> It doesn't even seem like the session is global, because if I reference the
> sessionid (which only shows up if cookies are disabled)
> by using , it shows up within a function, if I reference it from
> within the function.

That's because SID is a constant (no dollar sign).  Only variables have to 
be declared as global before using the global version in a function.

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

2001-04-18 Thread Jason Murray

> I'm having a problem with HTMLspecialchars and nl2br interfearing with
> each other.  Obviously, I'm trying to stop malicous HTML/scripts from
> being entered into my guestbook, but I'm also trying to add spacing.
> nl2br adds , but HTMLspecialchars tells it to not show that.
> 
> Anyways, I'm sure there is a way around this.  All help is welcome, so
> I'm eager for replys.  Thank you very, very much!

\n"
  ." \n"
  ." \n"
  ."";

// Convert < to <, etc
$output = htmlentities($content);

// change newlines to s
$output = nl2br($output);

?>

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]




Re: [PHP] HTMLSpecialchars

2001-04-18 Thread David Robley

On Thu, 19 Apr 2001 14:36, [EMAIL PROTECTED] wrote:
> I'm having a problem with HTMLspecialchars and nl2br interfearing with
> each other.  Obviously, I'm trying to stop malicous HTML/scripts from
> being entered into my guestbook, but I'm also trying to add spacing.
> nl2br adds , but HTMLspecialchars tells it to not show that.
>
> Anyways, I'm sure there is a way around this.  All help is welcome, so
> I'm eager for replys.  Thank you very, very much!
>
> -Owen

Perhaps if you do the nl2br after rather than before htmlspecialchars? Or 
just use nl2br when you actually display the text, rather than trying to 
put the  in your database.

-- 
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

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




[PHP] HTMLSpecialchars

2001-04-18 Thread Dddogbruce \(@home.com\)

I'm having a problem with HTMLspecialchars and nl2br interfearing with
each other.  Obviously, I'm trying to stop malicous HTML/scripts from
being entered into my guestbook, but I'm also trying to add spacing.
nl2br adds , but HTMLspecialchars tells it to not show that.

Anyways, I'm sure there is a way around this.  All help is welcome, so
I'm eager for replys.  Thank you very, very much!

-Owen


-- 
PHP General Mailing List (http://www.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/odbc php_odbc.c

2001-04-18 Thread Andi Gutmans

andiWed Apr 18 21:16:28 2001 EDT

  Modified files:  
/php4/ext/odbc  php_odbc.c 
  Log:
  - \r\n -> \n
  
  
Index: php4/ext/odbc/php_odbc.c
diff -u php4/ext/odbc/php_odbc.c:1.79 php4/ext/odbc/php_odbc.c:1.80
--- php4/ext/odbc/php_odbc.c:1.79   Wed Apr 18 19:31:23 2001
+++ php4/ext/odbc/php_odbc.cWed Apr 18 21:16:27 2001
@@ -15,12 +15,12 @@
| Authors: Stig Sæther Bakken <[EMAIL PROTECTED]>|
|  Andreas Karajannis <[EMAIL PROTECTED]>  |
|  Frank M. Kromann <[EMAIL PROTECTED]> Support for DB/2 CLI |
-   | Kevin N. Shallow <[EMAIL PROTECTED]> Velocis Support |
+   | Kevin N. Shallow <[EMAIL PROTECTED]> Velocis Support |
| Daniel R. Kalowsky <[EMAIL PROTECTED]>
   |
+--+
  */
 
-/* $Id: php_odbc.c,v 1.79 2001/04/19 02:31:23 kalowsky Exp $ */
+/* $Id: php_odbc.c,v 1.80 2001/04/19 04:16:27 andi Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -65,7 +65,7 @@
 
 #define SAFE_SQL_NTS(n) ((SWORD) ((n)?(SQL_NTS):0))
 
-static unsigned char a3_arg3_and_3_force_ref[] = { 3, BYREF_NONE, BYREF_FORCE, 
BYREF_FORCE };
+static unsigned char a3_arg3_and_3_force_ref[] = { 3, BYREF_NONE, BYREF_FORCE, 
+BYREF_FORCE };
 
 function_entry odbc_functions[] = {
 PHP_FE(odbc_error, NULL)
@@ -1364,7 +1364,7 @@
break;
case 3:
if (zend_get_parameters_ex(3, &pv_res, &pv_row, &pv_res_arr) 
== FAILURE)
-   WRONG_PARAM_COUNT;
+   WRONG_PARAM_COUNT;
SEPARATE_ZVAL(pv_row);
convert_to_long_ex(pv_row);
rownum = (*pv_row)->value.lval;
@@ -1919,11 +1919,11 @@
return FALSE;
}
}
-/*  Possible fix for bug #
- *  Needs testing on UnixODBC < 2.0.5 though.
- *  #if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC)
- *  Uncomment the line above, and comment line below to fully test */
-#ifdef HAVE_EMPRESS
+/*  Possible fix for bug #
+ *  Needs testing on UnixODBC < 2.0.5 though.
+ *  #if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC)
+ *  Uncomment the line above, and comment line below to fully test */
+#ifdef HAVE_EMPRESS
{
int direct = 0;
chardsnbuf[300];



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




Re: [PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-18 Thread Andi Gutmans

Why do you need that SEPARATE_ZVAL()? You seem to be using pv_row as read-only.
Also can you please try not to commit \r\n but only \n?

Thanks,

Andi

At 02:31 AM 4/19/2001 +, Dan Kalowsky wrote:
>kalowskyWed Apr 18 19:31:23 2001 EDT
>
>   Modified files:
> /php4/ext/odbc  php_odbc.c
>   Log:
>   corrects bug #7488, patch supplied by submitter ([EMAIL PROTECTED]).
>   quick local tests show it to work.
>
>
>Index: php4/ext/odbc/php_odbc.c
>diff -u php4/ext/odbc/php_odbc.c:1.78 php4/ext/odbc/php_odbc.c:1.79
>--- php4/ext/odbc/php_odbc.c:1.78   Mon Apr 16 19:02:36 2001
>+++ php4/ext/odbc/php_odbc.cWed Apr 18 19:31:23 2001
>@@ -15,11 +15,12 @@
> | Authors: Stig Sæther Bakken <[EMAIL PROTECTED]>|
> |  Andreas Karajannis <[EMAIL PROTECTED]>  |
> |  Frank M. Kromann <[EMAIL PROTECTED]> Support for DB/2 CLI |
>-   | Kevin N. Shallow <[EMAIL PROTECTED]> Velocis Support |
>+   | Kevin N. Shallow <[EMAIL PROTECTED]> Velocis Support |
>+   | Daniel R. Kalowsky 
><[EMAIL PROTECTED]>   |
> +--+
>   */
>
>-/* $Id: php_odbc.c,v 1.78 2001/04/17 02:02:36 kalowsky Exp $ */
>+/* $Id: php_odbc.c,v 1.79 2001/04/19 02:31:23 kalowsky Exp $ */
>
>  #include "php.h"
>  #include "php_globals.h"
>@@ -64,7 +65,7 @@
>
>  #define SAFE_SQL_NTS(n) ((SWORD) ((n)?(SQL_NTS):0))
>
>-static unsigned char a3_arg3_force_ref[] = { 3, BYREF_NONE, BYREF_ALLOW, 
>BYREF_FORCE };
>+static unsigned char a3_arg3_and_3_force_ref[] = { 3, BYREF_NONE, 
>BYREF_FORCE, BYREF_FORCE };
>
>  function_entry odbc_functions[] = {
>  PHP_FE(odbc_error, NULL)
>@@ -85,7 +86,7 @@
> PHP_FE(odbc_prepare, NULL)
> PHP_FE(odbc_execute, NULL)
> PHP_FE(odbc_fetch_row, NULL)
>-   PHP_FE(odbc_fetch_into, a3_arg3_force_ref)
>+   PHP_FE(odbc_fetch_into, a3_arg3_and_3_force_ref)
> PHP_FE(odbc_field_len, NULL)
> PHP_FE(odbc_field_scale, NULL)
> PHP_FE(odbc_field_name, NULL)
>@@ -1363,7 +1364,8 @@
> break;
> case 3:
> if (zend_get_parameters_ex(3, &pv_res, &pv_row, 
> &pv_res_arr) == FAILURE)
>-   WRONG_PARAM_COUNT;
>+   WRONG_PARAM_COUNT;
>+   SEPARATE_ZVAL(pv_row);
> convert_to_long_ex(pv_row);
> rownum = (*pv_row)->value.lval;
> break;
>@@ -1380,11 +1382,6 @@
> WRONG_PARAM_COUNT;
> }
>  #endif
>-
>-   if (!ParameterPassedByReference(ht, numArgs)) {
>-   php_error(E_WARNING, "Array not passed by reference in 
>call to odbc_fetch_into()");
>-   RETURN_FALSE;
>-   }
>
> ZEND_FETCH_RESOURCE(result, odbc_result *, pv_res, -1, "ODBC 
> result", le_result);
>
>@@ -1922,7 +1919,11 @@
> return FALSE;
> }
> }
>-#ifdef HAVE_EMPRESS
>+/*  Possible fix for bug #
>+ *  Needs testing on UnixODBC < 2.0.5 though.
>+ * #if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC)
>+ *  Uncomment the line above, and comment line below to fully test */
>+#ifdef HAVE_EMPRESS
> {
> int direct = 0;
> chardsnbuf[300];
>
>
>
>--
>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 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]




Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Brian Clark

Hi Tony,

@ 11:24:30 PM on 4/18/2001, Tony Daniels wrote:

> I used notepad and it shows some weird symbols like darkened in
> squares. That is why I was wondering if there was a specific
> program. Is there any way to get rid of the squares?

Those are 'end of line characters' that your Operating System doesn't
understand. You'll probably see that if you're editing files that were
created on Linux or Unix. Likewise, if you edit the files on a PC then
upload them in your native format, to Unix or Linux they're going to
end up having ^M's at the end of each line.

Your best bet is to grab a fairly decent Programmer's Editor that can
tell the difference and (re)act accordingly.

Some good ones that come to mind are EditPlus (I've used it) or TextPad
(I prefer it). You can find others in quite a long list here:



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



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




[PHP-CVS] cvs: php4 /ext/iconv iconv.c

2001-04-18 Thread Andi Gutmans

andiWed Apr 18 21:02:03 2001 EDT

  Modified files:  
/php4/ext/iconv iconv.c 
  Log:
  - WS
  
  
Index: php4/ext/iconv/iconv.c
diff -u php4/ext/iconv/iconv.c:1.10 php4/ext/iconv/iconv.c:1.11
--- php4/ext/iconv/iconv.c:1.10 Thu Mar 29 01:37:09 2001
+++ php4/ext/iconv/iconv.c  Wed Apr 18 21:02:03 2001
@@ -106,7 +106,8 @@
DISPLAY_INI_ENTRIES();
 }
 
-int php_iconv_string(char *in_p, char **out, char *in_charset, char *out_charset) {
+int php_iconv_string(char *in_p, char **out, char *in_charset, char *out_charset)
+{
 unsigned int in_size, out_size;
 char *out_buffer, *out_p;
 iconv_t cd;



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




Re: [PHP] Creating UTF-8 characters from scratch

2001-04-18 Thread Yasuo Ohgaki

My mail client converted invalid char code for the original post to '?'.
Anyway, PHP works well with multi-byte chars and it works well with UTF-8/EUC at
least.
Not sure if PHP work well with KOI, though.

This works.  $value = 'ABCDabcd日本語文字列12341234';
(This mail's char code  must be UTF-8 if it's working ok, and you should be able
to view some kanji if you have font)

--
Yasuo Ohgaki


""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message
9blmbg$k8k$[EMAIL PROTECTED]">news:9blmbg$k8k$[EMAIL PROTECTED]...
> I don't know about "Cyrillic", but anyway,
>
> Why not just assign UTF-8 char codes to variables?
> (It would be nice if there is hex2bin(), though. You can use sprintf() assign
> sort of binary value, but it would not work well to assign multi-byte char
> values since it interpret as integer)
>
> I think PHP is basically multi-byte char safe. (Code like BIG5 would not work,
> though)
>
> I use PostgreSQL with EUC-JP for backend and client.
> (PostgreSQL supports UTF-8 also and you don't have to do anything special for
> UTF-8 as well as various EUC/Mule codes. PostgreSQL users also can rely on
> automatic code conversion between backend and client. For example, I can use
EUC
> for client while backend is using UTF8.)
>
> It's possible to pass query like this to pg_exec()
> (You will see some garbage unless your mail client support JIS char code which
> is one of  multi-byte char code)
>
> $text = 'PgSQL work well with ';
> $query =<< INSERT INTO employee (
>   id,
>   name,
>   country,
>   single_byte_char_and_multi_byte_char
> ) VALUES (
>   12345,
>   '',
>   '??',
>   '$text'
> );
> EOQ;
>
>
> I don't have enough experience with MySQL and multi-byte chars, but you should
> be able to do similar thing.
>
> All you need is database, editor and input method that supports multi-byte
> chars.
>
> Regards,
> --
> Yasuo Ohgaki
>
>
> "Dennis Gearon" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I want to try inserting a UTF-8 string into a varchar field. I'd like to
> > try something like cyrillic, which I know uses multiple byte characters
> > mixed with single byte characters. Anyone know how to create binary
> > values as an argument to insert into a field?
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] Different Question??

2001-04-18 Thread Tony Daniels

Thanks once again!!

Jason Murray wrote:

> > $recipient = $email;
> >   $headers = "From: Sirplus.tv <[EMAIL PROTECTED]>\n";
> >   $headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
> >
> > This grabs the email address out of MySql and send them the email that
> > would be following.  However, I want a copy to go to me as well.  What
> > line of code to I input.
>
> $headers .= "Bcc: [EMAIL PROTECTED]\n";
>
> This will set a Bcc header, so you'll see the mail, but the recipient
> won't know it.
>
> 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 General Mailing List (http://www.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] special thanks to Chis Fry, this is great list!!

2001-04-18 Thread Jacky

As the title say, I would like to make a special thanks to one of our member Chris Fry 
and to say this is great list!!
Thank for all help :-)
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"



RE: [PHP] Different Question??

2001-04-18 Thread Jason Murray

> $recipient = $email;
>   $headers = "From: Sirplus.tv <[EMAIL PROTECTED]>\n";
>   $headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
> 
> This grabs the email address out of MySql and send them the email that
> would be following.  However, I want a copy to go to me as well.  What
> line of code to I input.

$headers .= "Bcc: [EMAIL PROTECTED]\n";

This will set a Bcc header, so you'll see the mail, but the recipient 
won't know it.

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] Different Question??

2001-04-18 Thread Tony Daniels

Hello,

Thank you for the quick help on the apparant easy question.  Here is
another easy one.  Here is a portion of the code of one of my files.

$recipient = $email;
  $headers = "From: Sirplus.tv <[EMAIL PROTECTED]>\n";
  $headers .= "X-Sender: <[EMAIL PROTECTED]>\n";

This grabs the email address out of MySql and send them the email that
would be following.  However, I want a copy to go to me as well.  What
line of code to I input.

Thanks in advance.


-- 
PHP General Mailing List (http://www.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] SESSIONS, a weird, funny yet strange error happens to wrong people...

2001-04-18 Thread Maxim Maletsky


hello guys...

On one of our websites, where we use sessions, a funny error have happened.


Warning: open(/tmp/sess_b5ad1e0878dee63fa8a780df44af3ea7, O_RDWR) failed:
File exists (17) in page.japaninc.inc on line 109


The funny side of it is that no one has ever seen it except our manager
(what a luck) from his PC only. I guess, we developers, visit our art-work
much more often than our manager... 

She's seen it twice already, first time was a month-two ago and now again. I
ignored it the first time, I though - well, happens... But now I start to
think it is a bit weird (and dangerous for carrier). 

Any of you have any idea why this "rare" error keeps happening on her
browser and NEVER on any of developer's? (nor even any other employee of our
200> company ever complained)...

What to fix?

Sincerely,

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

[EMAIL PROTECTED]

www.j-door.com
www.japaninc.net
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]


Re: [PHP] Creating UTF-8 characters from scratch

2001-04-18 Thread Yasuo Ohgaki

I don't know about "Cyrillic", but anyway,

Why not just assign UTF-8 char codes to variables?
(It would be nice if there is hex2bin(), though. You can use sprintf() assign
sort of binary value, but it would not work well to assign multi-byte char
values since it interpret as integer)

I think PHP is basically multi-byte char safe. (Code like BIG5 would not work,
though)

I use PostgreSQL with EUC-JP for backend and client.
(PostgreSQL supports UTF-8 also and you don't have to do anything special for
UTF-8 as well as various EUC/Mule codes. PostgreSQL users also can rely on
automatic code conversion between backend and client. For example, I can use EUC
for client while backend is using UTF8.)

It's possible to pass query like this to pg_exec()
(You will see some garbage unless your mail client support JIS char code which
is one of  multi-byte char code)

$text = 'PgSQL work well with ';
$query =<< wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I want to try inserting a UTF-8 string into a varchar field. I'd like to
> try something like cyrillic, which I know uses multiple byte characters
> mixed with single byte characters. Anyone know how to create binary
> values as an argument to insert into a field?
>
> --
> PHP General Mailing List (http://www.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 Help!! Please Look!

2001-04-18 Thread Jack Dempsey

its not so much learning "telnet" as learning unix or linux...but as far as
editing text files, its easy...here're some basic commands to get you
started:

telnet www.yourhost.com
login: 
password: 
prompt$ pico yourfile.php

i find pico to be the quickest and easiest (and probably the "weakest") of
the text editors on *nix systems...start with it and progress if you want...
you can use the arrow keys as you'd expect...edit your file then hit
control-x, y, return to save and quit from your file and pico...at any time
you can also use ctrl-o to save your progress without quitting...

the squares in notepad were a result of you taking a file from a *nix
systemtry opening it with wordpad, and you should be fine...

-jack

-Original Message-
From: Tony Daniels [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 11:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie Help!! Please Look!


I wish I knew how to use Telnet.  Maybe I'll search and learn.

Thank you for your help!

Jack Dempsey wrote:

> PHP files are text files, thus you can use any text editor to make your
> changes. On Windows, the simplest way would be to use notepad or wordpad
to
> edit and save your changes. On other platforms like unix/linux you could
use
> pico, vi, or emacs to name a few.
> If you have telnet access to the server, it'd be easier to just code your
> changes on the server, bypassing the need for ftp'ing.
> To download a file, do the same as you would with any other file. In
CuteFTP
> you can drag the file from the server window to your desktop (or wherver
> your default save location is) and save it there. Then, when you upload,
> since its text, you don't need to set it to binary.
> I use CuteFTP for uploading and downloading files, but when coding
anything,
> I find it easier to just telnet in and use pico (now I submit to flames
from
> BOTH the vi and emacs lovers =P )
>
> best of luck,
> jack
>
> -Original Message-
> From: Tony Daniels [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 11:18 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Newbie Help!! Please Look!
>
> Hello,
>
> I need to know if there is a program out there that I can use to edit
> the PHP files.  I use CuteFTP to download the files from my server as I
> need to change some wording around from time to time.  Does anyone know
> the correct procedure for downloading a php file with CuteFTP and then a
> program that I can use to edit the text I need to edit.  Then also, the
> correct way to upload it back to the server using CuteFTP.  Do I use
> Binary or ACII.
>
> Or, if I am way off and there is a program that makes CuteFTP look
> silly, please let me know this also.  I am open for any suggestions, as
> long as they are detailed.  Please email responses to [EMAIL PROTECTED]
> .
>
> Thank you!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


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



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




[PHP] No more help needed! I get the picture!!

2001-04-18 Thread Tony Daniels

Thanks Everyone!!  That was quick and painless!

Tony Daniels wrote:

> Hello,
>
> I need to know if there is a program out there that I can use to edit
> the PHP files.  I use CuteFTP to download the files from my server as I
> need to change some wording around from time to time.  Does anyone know
> the correct procedure for downloading a php file with CuteFTP and then a
> program that I can use to edit the text I need to edit.  Then also, the
> correct way to upload it back to the server using CuteFTP.  Do I use
> Binary or ACII.
>
> Or, if I am way off and there is a program that makes CuteFTP look
> silly, please let me know this also.  I am open for any suggestions, as
> long as they are detailed.  Please email responses to [EMAIL PROTECTED]
> .
>
> Thank you!
>
> --
> PHP General Mailing List (http://www.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 Help!! Please Look!

2001-04-18 Thread Tony Daniels

Ah, that helps tons.

Thank you!!

Jason Murray wrote:

> > I used notepad and it shows some weird symbols like darkened
> > in squares.  That is why I was wondering if there was a specific
> > program.  Is there any way to get rid of the squares?
>
> The squares are characters Notepad doesn't recognise.
>
> If you see them in anything, not just PHP files, open it in WordPad.
>
> Me, I use HomeSite.
>
> Jason
>
> --
> Jason Murray
> [EMAIL PROTECTED]
> Web Design Team, Melbourne IT
> Fetch the comfy chair!
>
> --
> PHP General Mailing List (http://www.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 Help!! Please Look!

2001-04-18 Thread Jason Murray

> I used notepad and it shows some weird symbols like darkened 
> in squares.  That is why I was wondering if there was a specific 
> program.  Is there any way to get rid of the squares?

The squares are characters Notepad doesn't recognise.

If you see them in anything, not just PHP files, open it in WordPad.

Me, I use HomeSite.

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!

-- 
PHP General Mailing List (http://www.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 Help!! Please Look!

2001-04-18 Thread Jason Lotito

> -Original Message-
> From: Tony Daniels [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 8:18 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Newbie Help!! Please Look!
> 
> 
> Hello,
> 
> I need to know if there is a program out there that I can use to edit
> the PHP files.

Any text editor.  Example: Notepad.

>  I use CuteFTP to download the files from my server as I
> need to change some wording around from time to time.  Does anyone know
> the correct procedure for downloading a php file with CuteFTP and then a
> program that I can use to edit the text I need to edit.

1) Download the php file just like you would a html file.
2) Edit the file using a text editor.

>  Then also, the
> correct way to upload it back to the server using CuteFTP.  Do I use
> Binary or ACII.

Neither.  You use ASCII.

> 
> Or, if I am way off and there is a program that makes CuteFTP look
> silly, please let me know this also.

I don't think so, though funny is a relative word.  I use WS_FTP.

>  I am open for any suggestions, as
> long as they are detailed.  Please email responses to [EMAIL PROTECTED]

You mean to reply to the PHP Mailing list, right?

> .
> 
> Thank you!

Your welcome.

-- 
PHP General Mailing List (http://www.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 Help!! Please Look!

2001-04-18 Thread Tony Daniels

I wish I knew how to use Telnet.  Maybe I'll search and learn.

Thank you for your help!

Jack Dempsey wrote:

> PHP files are text files, thus you can use any text editor to make your
> changes. On Windows, the simplest way would be to use notepad or wordpad to
> edit and save your changes. On other platforms like unix/linux you could use
> pico, vi, or emacs to name a few.
> If you have telnet access to the server, it'd be easier to just code your
> changes on the server, bypassing the need for ftp'ing.
> To download a file, do the same as you would with any other file. In CuteFTP
> you can drag the file from the server window to your desktop (or wherver
> your default save location is) and save it there. Then, when you upload,
> since its text, you don't need to set it to binary.
> I use CuteFTP for uploading and downloading files, but when coding anything,
> I find it easier to just telnet in and use pico (now I submit to flames from
> BOTH the vi and emacs lovers =P )
>
> best of luck,
> jack
>
> -Original Message-
> From: Tony Daniels [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 11:18 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Newbie Help!! Please Look!
>
> Hello,
>
> I need to know if there is a program out there that I can use to edit
> the PHP files.  I use CuteFTP to download the files from my server as I
> need to change some wording around from time to time.  Does anyone know
> the correct procedure for downloading a php file with CuteFTP and then a
> program that I can use to edit the text I need to edit.  Then also, the
> correct way to upload it back to the server using CuteFTP.  Do I use
> Binary or ACII.
>
> Or, if I am way off and there is a program that makes CuteFTP look
> silly, please let me know this also.  I am open for any suggestions, as
> long as they are detailed.  Please email responses to [EMAIL PROTECTED]
> .
>
> Thank you!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


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




Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Tony Daniels

I used notepad and it shows some weird symbols like darkened in squares.  That
is why I was wondering if there was a specific program.  Is there any way to
get rid of the squares?

Thank for your help.

Jason Murray wrote:

> > I need to know if there is a program out there that I can use to edit
> > the PHP files.  I use CuteFTP to download the files from my server as I
> > need to change some wording around from time to time.  Does anyone know
> > the correct procedure for downloading a php file with CuteFTP and then a
> > program that I can use to edit the text I need to edit.  Then also, the
> > correct way to upload it back to the server using CuteFTP.  Do I use
> > Binary or ACII.
>
> PHP files (unless optimised by Zend or something) are just plain text
> files. You can use either Binary or ASCII mode to up/download them, and
> your text editor of choice (Notepad, PFM, HomeSite, or for the masochists,
> MS Word :)) to edit them and save them.
>
> 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 General Mailing List (http://www.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 Help!! Please Look!

2001-04-18 Thread Jack Dempsey

PHP files are text files, thus you can use any text editor to make your
changes. On Windows, the simplest way would be to use notepad or wordpad to
edit and save your changes. On other platforms like unix/linux you could use
pico, vi, or emacs to name a few.
If you have telnet access to the server, it'd be easier to just code your
changes on the server, bypassing the need for ftp'ing.
To download a file, do the same as you would with any other file. In CuteFTP
you can drag the file from the server window to your desktop (or wherver
your default save location is) and save it there. Then, when you upload,
since its text, you don't need to set it to binary.
I use CuteFTP for uploading and downloading files, but when coding anything,
I find it easier to just telnet in and use pico (now I submit to flames from
BOTH the vi and emacs lovers =P )

best of luck,
jack

-Original Message-
From: Tony Daniels [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 11:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Newbie Help!! Please Look!


Hello,

I need to know if there is a program out there that I can use to edit
the PHP files.  I use CuteFTP to download the files from my server as I
need to change some wording around from time to time.  Does anyone know
the correct procedure for downloading a php file with CuteFTP and then a
program that I can use to edit the text I need to edit.  Then also, the
correct way to upload it back to the server using CuteFTP.  Do I use
Binary or ACII.

Or, if I am way off and there is a program that makes CuteFTP look
silly, please let me know this also.  I am open for any suggestions, as
long as they are detailed.  Please email responses to [EMAIL PROTECTED]
.

Thank you!


--
PHP General Mailing List (http://www.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 Help!! Please Look!

2001-04-18 Thread Jason Murray

> I need to know if there is a program out there that I can use to edit
> the PHP files.  I use CuteFTP to download the files from my server as I
> need to change some wording around from time to time.  Does anyone know
> the correct procedure for downloading a php file with CuteFTP and then a
> program that I can use to edit the text I need to edit.  Then also, the
> correct way to upload it back to the server using CuteFTP.  Do I use
> Binary or ACII.

PHP files (unless optimised by Zend or something) are just plain text
files. You can use either Binary or ASCII mode to up/download them, and
your text editor of choice (Notepad, PFM, HomeSite, or for the masochists,
MS Word :)) to edit them and save them.

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] Newbie Help!! Please Look!

2001-04-18 Thread Tony Daniels

Hello,

I need to know if there is a program out there that I can use to edit
the PHP files.  I use CuteFTP to download the files from my server as I
need to change some wording around from time to time.  Does anyone know
the correct procedure for downloading a php file with CuteFTP and then a
program that I can use to edit the text I need to edit.  Then also, the
correct way to upload it back to the server using CuteFTP.  Do I use
Binary or ACII.

Or, if I am way off and there is a program that makes CuteFTP look
silly, please let me know this also.  I am open for any suggestions, as
long as they are detailed.  Please email responses to [EMAIL PROTECTED]
.

Thank you!


-- 
PHP General Mailing List (http://www.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] best way to include html?

2001-04-18 Thread Duke

I'm setting up an html "shell" for my webpage that I include with my php
code so I don't have to see html crap and whatnot.
I'm wondering what the best way is to insert the html "shell" into my code?
Should I just echo the file, should I include(), require(), include_once(),
or require_once()??
One section of the shell, which is in a separate file, is an html form -
would that change the way I include that particular section of html?
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-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-18 Thread Dan Kalowsky

kalowskyWed Apr 18 19:31:23 2001 EDT

  Modified files:  
/php4/ext/odbc  php_odbc.c 
  Log:
  corrects bug #7488, patch supplied by submitter ([EMAIL PROTECTED]). 
  quick local tests show it to work.  
  
  
Index: php4/ext/odbc/php_odbc.c
diff -u php4/ext/odbc/php_odbc.c:1.78 php4/ext/odbc/php_odbc.c:1.79
--- php4/ext/odbc/php_odbc.c:1.78   Mon Apr 16 19:02:36 2001
+++ php4/ext/odbc/php_odbc.cWed Apr 18 19:31:23 2001
@@ -15,11 +15,12 @@
| Authors: Stig Sæther Bakken <[EMAIL PROTECTED]>|
|  Andreas Karajannis <[EMAIL PROTECTED]>  |
|  Frank M. Kromann <[EMAIL PROTECTED]> Support for DB/2 CLI |
-   | Kevin N. Shallow <[EMAIL PROTECTED]> Velocis Support |
+   | Kevin N. Shallow <[EMAIL PROTECTED]> Velocis Support |
+   | Daniel R. Kalowsky <[EMAIL PROTECTED]>
+   |
+--+
  */
 
-/* $Id: php_odbc.c,v 1.78 2001/04/17 02:02:36 kalowsky Exp $ */
+/* $Id: php_odbc.c,v 1.79 2001/04/19 02:31:23 kalowsky Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -64,7 +65,7 @@
 
 #define SAFE_SQL_NTS(n) ((SWORD) ((n)?(SQL_NTS):0))
 
-static unsigned char a3_arg3_force_ref[] = { 3, BYREF_NONE, BYREF_ALLOW, BYREF_FORCE 
};
+static unsigned char a3_arg3_and_3_force_ref[] = { 3, BYREF_NONE, BYREF_FORCE, 
+BYREF_FORCE };
 
 function_entry odbc_functions[] = {
 PHP_FE(odbc_error, NULL)
@@ -85,7 +86,7 @@
PHP_FE(odbc_prepare, NULL)
PHP_FE(odbc_execute, NULL)
PHP_FE(odbc_fetch_row, NULL)
-   PHP_FE(odbc_fetch_into, a3_arg3_force_ref)
+   PHP_FE(odbc_fetch_into, a3_arg3_and_3_force_ref)
PHP_FE(odbc_field_len, NULL)
PHP_FE(odbc_field_scale, NULL)
PHP_FE(odbc_field_name, NULL)
@@ -1363,7 +1364,8 @@
break;
case 3:
if (zend_get_parameters_ex(3, &pv_res, &pv_row, &pv_res_arr) 
== FAILURE)
-   WRONG_PARAM_COUNT;
+   WRONG_PARAM_COUNT;
+   SEPARATE_ZVAL(pv_row);
convert_to_long_ex(pv_row);
rownum = (*pv_row)->value.lval;
break;
@@ -1380,11 +1382,6 @@
WRONG_PARAM_COUNT;
}
 #endif
-   
-   if (!ParameterPassedByReference(ht, numArgs)) {
-   php_error(E_WARNING, "Array not passed by reference in call to 
odbc_fetch_into()");
-   RETURN_FALSE;
-   }
 
ZEND_FETCH_RESOURCE(result, odbc_result *, pv_res, -1, "ODBC result", 
le_result);

@@ -1922,7 +1919,11 @@
return FALSE;
}
}
-#ifdef HAVE_EMPRESS
+/*  Possible fix for bug #
+ *  Needs testing on UnixODBC < 2.0.5 though.
+ *  #if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC)
+ *  Uncomment the line above, and comment line below to fully test */
+#ifdef HAVE_EMPRESS
{
int direct = 0;
chardsnbuf[300];



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




Re: [PHP] PHP for Apache 2.0

2001-04-18 Thread August Zajonc

I've got PHP up and running partially under Apache 2.0 quite some time ago,
however despite the sweetness of Apache 2, this is probably not something
you want to do. Looking forward to PHP coming out more fully for Apache 2.0,
if there is anything we can do to help it along I'm all ears.

August

- Original Message -
From: "Alexander Wagner" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Saturday, April 14, 2001 11:07 AM
Subject: Re: [PHP] PHP for Apache 2.0


> Patrick Dunford wrote:
> > According to Apache, modules made for Apache 1.3 will not work as-is
> > in 2.0 due to changes in the API.
> >
> > Is a version of PHP 4 for Apache 2.0 coming out?
>
> Try the configure-option --with-apxs2 instead of --with-apxs and it
> should work with Apache 2.
>
> PHP 4 supports far more than one Webserver-API.
>
> regards
> Wagner
>
> --
> 'When the computer industry is at a low, beer drinking is at a high.'
> Jon 'maddog' Hall said.
> By combining both industries into a single course you can make sure you
> always have a job.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] Re: thank you very much

2001-04-18 Thread [EMAIL PROTECTED]

Chris
Apologise for sending you message directly, just one last thing about what I
have tried to to do, basically after I got list of string from
HTTP_POST_VAR, it will be like 12154, how do I make it to be 1,2,1,5,4 so
that I can put that in variable to put it in query?
I tried connect it like this "val" . ", " ;
and it returns 1,2,1,5,4, instead of 1,2,1,5,4 and it screw up query.
Thank again for this help, I am pretty sure this will be last question about
this :-)
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Chris Fry <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 5:59 PM
Subject: Re: thank you very much


> Jacky,
>
> Happy to help - I went through a lot of pain myself the first time I tried
to do
> something like this!
>
> Regards
>
> Chris
>
> "Jacky@lilst" wrote:
>
> > Chris
> > Nothing but thank you very much, I managed to got the value of the ID
list
> > out according to your advice now.
> > cheers
> > Jack
> > [EMAIL PROTECTED]
> > "There is nothing more rewarding than reaching the goal you set for
> > yourself"
> > - Original Message -
> > From: Chris Fry <[EMAIL PROTECTED]>
> > To: Jacky@lilst <[EMAIL PROTECTED]>
> > Sent: Wednesday, April 18, 2001 4:52 AM
> > Subject: Re: what about the include files in your example?
> >
> > > Jacky,
> > >
> > > You don't need the include files - they are a style sheet and some
table
> > > definitions for my db.
> > >
> > > Just remove the includes and substitute your database stuff for mine.
> > >
> > > Regards
> > >
> > > Chris
> > >
> > >
> > > "Jacky@lilst" wrote:
> > >
> > > > What about those include file in your example? what do I have to do
with
> > > > them?
> > > > Jack
> > > > [EMAIL PROTECTED]
> > > > "There is nothing more rewarding than reaching the goal you set for
> > > > yourself"
> > > > - Original Message -
> > > > From: Chris Fry <[EMAIL PROTECTED]>
> > > > To: Jacky <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, April 18, 2001 4:43 AM
> > > > Subject: Re: [PHP] Variable variable
> > > >
> > > > > Sorry - fogot the url: it's getting late!
> > > > >
> > > > > http://sis.quillsoft.com.au/checkboxtest.php
> > > > >
> > > > > Chris
> > > > >
> > > > > Jacky wrote:
> > > > >
> > > > > > Hi all
> > > > > > I have a form with check box and name of those checkboxes is
usuing
> > > > variable lke this,
> > > > > >
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > and when I submit the form to page foo.php4, at that page, I use
> > > > Variable variable to call the value of the check box to see if it
> > checked
> > > > like this
> > > > > >
> > > > > > $quey = "select id from table";
> > > > > > $result = .. ( assumeing it is done and i got value for $id
for
> > all
> > > > records from table)
> > > > > >
> > > > > > if ($$id =="on"){
> > > > > > echo "on";
> > > > > > }else{
> > > > > > echo "off";
> > > > > > }
> > > > > >
> > > > > > It always returns echo "off", why is that?
> > > > > > cheers
> > > > > > Jack
> > > > > > [EMAIL PROTECTED]
> > > > > > "There is nothing more rewarding than reaching the goal you set
for
> > > > yourself"
> > > > >
> > > > > --
> > > > > 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.
> > > > >
> > > > >
> > > > >
> > >
> > > --
> > > 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
> > > Mob

[PHP-CVS] Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO-4.1.txt

2001-04-18 Thread Stig Sæther Bakken

["Sean R. Bright" <[EMAIL PROTECTED]>]
> To continue a tangent... I don't like the idea of having the PEAR
> fetching/installation mechanism written in PHP (already some base code in
> PEAR to do this).  It seems to me that it forces the user to download/build
> PHP and then download and rebuild PHP with any extensions that don't come in
> the base distribution.  Instead it should be a binary that can be compiled
> before PHP is built, can download and configure any extensions requested and
> then build the resulting PHP binary.  We can also build in a dependency
> mechanism where for example, someone chooses to install a PEAR module (be it
> PHP or C) and the required extensions would be downloaded as well.
> 
> Just my $0.02

I see your point, but personally I code 5 times faster in PHP than in
C, and I want to get this done now, not next year. :-)

When we're past the prototyping phase and stuff stabilizes, a C
rewrite may be a good idea, but I don't think it is now.

 - Stig

-- 
  Stig Sæther Bakken <[EMAIL PROTECTED]>
  Fast Search & Transfer ASA, Trondheim, Norway

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




Re: [PHP] PUT Method using PHP4/Apache ...

2001-04-18 Thread The Hermit Hacker


Is there maybe somethign in php.ini or in the php compile that has to be
enabled, that I'm not find/cluing into?

On Wed, 18 Apr 2001, The Hermit Hacker wrote:

>
> I've read through:
>
> http://php.net/manual/pt_BR/features.file-upload.put-method.php
>
> I added:
>
> Script PUT /put.php
>
> to my apache config file ... everything as far as Netscape Composer is
> concerned looks right, but it isn't working.
>
> I changed my put.php script so that it output all ENV variables to a log
> file:
>
> ===
>   $fp = fopen("/tmp/log.txt","w+");
>  $temp="PHP_PUT_FILENAME: $PHP_UPLOADED_FILE_NAME\n";
>  $vars = get_defined_vars();
>  foreach ($vars as $test => $value) {
>   if (is_array($value)) {
>foreach ($value as $subtest => $subvalue) {
> $temp .= "$subtest: $subvalue\n";
>}
>   } else {
>$temp .= "$test: $value\n";
>   }
>  }
>  fwrite($fp, $temp);
>  $temp="DOCUMENT_ROOT: $DOCUMENT_ROOT\n";
>  fwrite($fp, $temp);
>  $temp="REQUEST_URI: $REQUEST_URI\n";
>  fwrite($fp, $temp);
>  fclose($fp);
> ?>
> 
>
> But PHP_PUT_FILENAME isn't being set:
>
> ===
> hub# grep PUT update/log.txt
> PHP_PUT_FILENAME:
> REQUEST_METHOD: PUT
> REQUEST_METHOD: PUT
> temp: PHP_PUT_FILENAME:
> hub# grep FILE update/log.txt
> PHP_PUT_FILENAME:
> SCRIPT_FILENAME: /home/vhosts/farelist.com/www/put.php
> SCRIPT_FILENAME: /home/vhosts/farelist.com/www/put.php
> temp: PHP_PUT_FILENAME:
> hub# grep ^PHP update/log.txt
> PHP_PUT_FILENAME:
> PHP_SELF: /put.php/test/Untitled.htm2
> PHP_SELF: /put.php/test/Untitled.htm2
> ==
>
> Am I missing something obvious here?
>
> Thanks ...
>
> Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
> Systems Administrator @ hub.org
> primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.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]
>
>

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.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] Global variables

2001-04-18 Thread Philip Olson


> At 1:16 AM + 4/19/01, Philip Olson wrote:
> >   
> > 
> >   
> 
> don't do that, at least I think it will recursively traverse the 
> $GLOBALS arrary (since $GLOBALS itself is $GLOBAL) and you will never 
> end.

This is true with print_r($GLOBALS) up until 4.0.4 where it was fixed,
which is why I used var_dump in the example although print_r is much
prettier :-)

regards,
Philip


-- 
PHP General Mailing List (http://www.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] XML - simple get data from elements

2001-04-18 Thread Manuel Lemos

Hello,

Mark Bean wrote:
> 
> I have a valid XML file that all I want to do is assign to variables the
> data in the elements  and .  I know nothing about XML and
> am not a programmer.  Are there any good tutorials out there to do something
> as simple as what I'm looking for?  Will expat do what I'm looking for?  I
> think that I installed PHP properly for XML support.  Is there a way to
> verify this?

You may want to try this XML generic parser class. What it does is to
build an associative array of XML elements that you may traverse and
assign the variables when you find the relevant XML tags.

http://phpclasses.UpperDesign.com/browse.html/package/4

Manuel Lemos

-- 
PHP General Mailing List (http://www.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] Global variables

2001-04-18 Thread Aaron Tuller

At 1:16 AM + 4/19/01, Philip Olson wrote:
>   
> 
>   

don't do that, at least I think it will recursively traverse the 
$GLOBALS arrary (since $GLOBALS itself is $GLOBAL) and you will never 
end.

-aaron

-- 
PHP General Mailing List (http://www.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] Global variables

2001-04-18 Thread Philip Olson


Have a look at the enormous $GLOBALS array, something like :

  

  

As previously mentioned, phpinfo() provides some pretty information and it
may be more what you want.  Regarding $GLOBALS, (as quoted from the
manual) :

  "The $GLOBALS array is an associative array with the name of the global
   variable being the key and the contents of that variable being the
   value of the array element."

Also, be sure to look around here :

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


regards,
philip


On Wed, 18 Apr 2001, JCampbell wrote:

> I know there is a way to do it in Perl, but is there anyway in PHP to
> display all of the global variables. Such as OS, browser, date/time,
> that sort of thing
> 
> I know I could print each one seperately, but are they all stored in
> an array somewhere?
> 


-- 
PHP General Mailing List (http://www.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] RE: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO-4.1.txt

2001-04-18 Thread Sean R. Bright


To continue a tangent... I don't like the idea of having the PEAR
fetching/installation mechanism written in PHP (already some base code in
PEAR to do this).  It seems to me that it forces the user to download/build
PHP and then download and rebuild PHP with any extensions that don't come in
the base distribution.  Instead it should be a binary that can be compiled
before PHP is built, can download and configure any extensions requested and
then build the resulting PHP binary.  We can also build in a dependency
mechanism where for example, someone chooses to install a PEAR module (be it
PHP or C) and the required extensions would be downloaded as well.

Just my $0.02

> -Original Message-
> From: Ron Chmara [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 8:53 PM
> To: Zeev Suraski
> Cc: Frank M. Kromann; Sterling Hughes; Stig Sather Bakken; php-dev
> mailinglist; Stig Sather Bakken
> Subject: Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO-4.1.txt
>
>
> On Wednesday, April 18, 2001, at 05:33  PM, Zeev Suraski wrote:
> > Guys,
> > Over the years, there's always been a tendency to think
> about things
> > which are 10 steps ahead.  It never worked, and I don't
> think it would
> > work here either.
>
> Well, a program spec (or idea) is certainly not the reality
> of the final
> codebase.
>
> But if we don't think a few steps ahead, (or at least know where it's
> going), it's kind of hard to determine the steps to take here
> and now,
> or know where it's really going. I posted a list, and we
> discovered that
> PEAR already has dependancies on some /ext's, and (by
> implication) that
> if this continues in PEAR, eventually many of the minor ext's
> may need
> to be built to run PEAR in which case we may want to
> leave the /ext
> directory out of PEAR entirely.
>
> If something is going to be a possibility, it should probably be
> considered before we build ourselves into a corner, and
> implementing it
> becomes impossible.
>
> >  Whether or not we separate modules *at all* will greatly
> depend on how
> > good an implementation we end up having.
>
> Agreed 100%.
> But that implementation, as it happens requires some feedback and
> discussion, doesn't it?
>
> >  How many of them we end up separating will also depend on
> that.  Let's
> > just wait with those discussions until they're somehow
> connected with
> > reality.
>
> Counterpoint to this, of course, is that if we _would_ be doing this
> with a PEAR scheme, we'd need to design that into PEAR, preferrably
> without having to re-write PEAR from scratch to accomodate
> this idea. :-)
>
>
> -Ronabop
>
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>


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




RE: [PHP] Global variables

2001-04-18 Thread Jason Murray

> I know there is a way to do it in Perl, but is there anyway 
> in PHP to display all of the global variables. Such as OS, 
> browser, date/time, that sort of thing
> 
> I know I could print each one seperately, but are they all 
> stored in an array somewhere?

 

That should show you everything...

-- 
PHP General Mailing List (http://www.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] Global variables

2001-04-18 Thread JCampbell

I know there is a way to do it in Perl, but is there anyway in PHP to display all of 
the global variables. Such as OS, browser, date/time, that sort of thing

I know I could print each one seperately, but are they all stored in an array 
somewhere?



RE: [PHP] Add data to three tables at once from one form

2001-04-18 Thread Jason Murray

> Add two more sets of statements like those you have for the 
> first query. That's it.  There's nothing special to do.

MySQL also lets you stack insert statements:

$sql="INSERT INTO t1 ('A'); INSERT INTO t2 ('B'); INSERT INTO t3 ('C');"

This would work (but if you get an error, you'll have trouble debugging it.

It'll also save minutely on execution since it only needs to call
mysql_query
once instead of three times.

I prefer to use three explicit statements and query calls.

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]




Re: [PHP] Add data to three tables at once from one form

2001-04-18 Thread Steve Werby

"Fates" <[EMAIL PROTECTED]> wrote:
> I know how to add data to one table but how do I add data to three
> tables from one form?
>
>  I want to do this with just one form and on one web page so it doesn't
> post to another page.
>
> How do I set up the insert statement?
>
>$query = "INSERT INTO $table VALUES ('$menu_id', '$server',
> '$menunumber', '$menuname')";
>
>  $result = mysql_db_query($dbname, $query);

Add two more sets of statements like those you have for the first query.
That's it.  There's nothing special to do.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.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] how to scale down image using ImageMagick?

2001-04-18 Thread Noah Spitzer-Williams

morgan,
this is starting to work! the 175x175 does resize it to a width of 175
while retaining the aspect ratio.

however when i tried using the less than sign, the windows nt
command prompt is treating it as saving the output to a file:

c:\progra~1\imagem~1\mogrify.exe -geometry 175x175> picture.jpeg

imagemagick replies with : missing image file name. this is because the >
sign is telling windows to save the output to a file.
i tried putting a 1 after the > sign and it made a blank file with filename
of '1'.

how can i get around this? i couldnt figure out how to use -identify, it was
not in the docs

Thanks so much!

- Noah


"Morgan Curley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
according to the docs use
-geometry 175x175> picture.jpeg

man mogrify:
  -geometry x{+-}{+-}{%}{!}{<}{>}
   preferred width and height of the image.  See X(1) for
details about the geometry specification.

   By default, the width and height are maximum values.  That
is, the image is expanded or contracted to
   fit the width and height value while maintaining the aspect
ratio of the image.  Append an exclamation
   point to the geometry to force the image size to exactly the
size you specify.  For example, if you
   specify 640x480! the image width is set to 640 pixels and
height to 480.  If only one factor is speci­
   fied, both the width and height assume the value.

   To specify a percentage width or height instead, append
%.  The image size is multiplied by the width
   and height percentages to obtain the final image
dimensions.  To increase the size of an image, use a
   value greater than 100 (e.g. 125%).  To decrease an image's
size, use a percentage less than 100.

   Use > to change the dimensions of the image only if its size
exceeds the geometry specification.  <
   resizes the image only if its dimensions is less than the
geometry specification.  For example, if you
   specify 640x480> and the image size is 512x512, the image
size does not change.  However, if the image
   is 1024x1024, it is resized to 640x480.

it looks like mogrify bases its resizing on the first value that is diff
than the one supplied i.e. if your image is 200x50 it will scale it to
175x? but if it is 50x200 it will scale it to ?x175

if it is important you not resize based on height use identify to get the
geometry first.

morgan


At 04:27 PM 4/18/2001, Noah Spitzer-Williams wrote:
>I have a bunch of pictures all in ranging filesizes and dimensions. I want
>to resize the ones that over 175 pixels wide to a 175 pixel wide picture
>however i want the height to scale down (ie. i dont want a really thin
>picture, i just want it to be what it would be if it were resized). i have
>this but i cant figure out how to just scale down the width:
>
>c:\progra~1\imagem~1\mogrify.exe -geometry 175x30! picture.jpeg
>
>the '!' forces those sizes to be used but obvoiusly i dont want the height
>to be 30. i want it to be whatever it should be so the picture doesnt look
>flattened.
>
>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] Add data to three tables at once from one form

2001-04-18 Thread Fates

I know how to add data to one table but how do I add data to three
tables from one form?

 I want to do this with just one form and on one web page so it doesn't
post to another page.

How do I set up the insert statement?

   $query = "INSERT INTO $table VALUES ('$menu_id', '$server',
'$menunumber', '$menuname')";

 $result = mysql_db_query($dbname, $query);



Anyting special I have to do with the form submit?




-- 
PHP General Mailing List (http://www.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] `AM_PROG_LIBTOOL' not found in library

2001-04-18 Thread Kelly Cochran


Do a 'which libtool' and I'd hazard a guess that it'll find the one in
/usr/local/bin first.  As it's using that libtool (dir: /usr/local/bin)
and your normal automake (dir: /usr/bin), the dirs don't match and
aclocal fails, as the warning mentions.  Either switch your path around
to move /usr/local/bin after /usr/bin (and end up using the libtool your
system came with), or reconfigure and reinstall libtool 1.3.5 starting
with "./configure --prefix=/usr" which will cause it to install into
/usr/bin, /usr/share, etc.  (otherwise it defaults to /usr/local which
is likely the problem you have right now).

Pablo Sabatino wrote:
> 
>   Hello!!
>   I am using php4-cvs on Linux Suse 6.4.
>   I issued the command ./buildconf and got a message:
> 
>   pablo@pablito:~/php4 > ./buildconf
>   buildconf: checking installation...
>   buildconf: autoconf version 2.13 (ok)
>   buildconf: automake version 1.4 (ok)
>   buildconf: libtool version 1.3.5 (ok)
> 
> 
>   WARNING: automake and libtool are installed in different
>directories.  This may cause aclocal to fail.
>continuing anyway
>   aclocal: configure.in: 810: macro `AM_PROG_LIBTOOL' not found in library
>   make[1]: *** [aclocal.m4] Error 1
>   make: *** [all] Error 2
>   pablo@pablito:~/php4 >
> 
>   pablo@pablito:~/php4 > whereis libtool
>   libtool: /usr/bin/libtool /usr/local/bin/libtool /usr/share/libtool
>   pablo@pablito:~/php4 > whereis automake
>   automake: /usr/bin/automake /usr/share/automake
>   pablo@pablito:~/php4 > whereis automake
>   automake: /usr/bin/automake /usr/share/automake
>   pablo@pablito:~/php4 >
> 
>   I installed libtool-1.3.5.
>   Help me, please!!
>   Pablo Sabatino..

-- -
Kelly Cochran  <[EMAIL PROTECTED]>
Technical Staff - funschool.com Corporation

-- 
PHP General Mailing List (http://www.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] `AM_PROG_LIBTOOL' not found in library

2001-04-18 Thread Pablo Sabatino




  Hello!!
  I am using php4-cvs on Linux Suse 6.4.
  I issued the command ./buildconf and got a message:

  pablo@pablito:~/php4 > ./buildconf 
  buildconf: checking installation...
  buildconf: autoconf version 2.13 (ok)
  buildconf: automake version 1.4 (ok)
  buildconf: libtool version 1.3.5 (ok)
   

  WARNING: automake and libtool are installed in different
   directories.  This may cause aclocal to fail.
   continuing anyway
  aclocal: configure.in: 810: macro `AM_PROG_LIBTOOL' not found in library
  make[1]: *** [aclocal.m4] Error 1
  make: *** [all] Error 2
  pablo@pablito:~/php4 > 

  pablo@pablito:~/php4 > whereis libtool
  libtool: /usr/bin/libtool /usr/local/bin/libtool /usr/share/libtool
  pablo@pablito:~/php4 > whereis automake
  automake: /usr/bin/automake /usr/share/automake
  pablo@pablito:~/php4 > whereis automake
  automake: /usr/bin/automake /usr/share/automake
  pablo@pablito:~/php4 > 


  I installed libtool-1.3.5.
  Help me, please!!
  Pablo Sabatino..





-- 
PHP General Mailing List (http://www.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] 2. run: PHP4 parsing canceled

2001-04-18 Thread Norbert Pfeiffer

Hello generals,

I work since version 3.0.3 with PHP and had until today no
problems with it. In this week, three Interpreter have adjusted
her service to three same computers, with Win98 and OmniHTTPd,
one after the other.
I have tested all versions of PHP4,
no one works more, also the newest not.

Then I have replaced PHP4 with PHP3 and all problems were missing.
This participates no lasting solution however since many Scriptes
use the advantages of PHP4 which now works no longer.

To the better understanding,
I have a protocol-departure and the php.ini attached.

It will be very happy me, if can be helped me.
Therefore thank you in advance.

With very hopeful greetings


Norbert Pfeiffer
_
tel+49-(0)2292-681769
mobil  +49-(0)177-2363368
-
e.o.m.




-- 
PHP General Mailing List (http://www.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(PHP_4_0_5) /ext/mcrypt mcrypt.c

2001-04-18 Thread Derick Rethans

derick  Wed Apr 18 15:15:39 2001 EDT

  Modified files:  (Branch: PHP_4_0_5)
/php4/ext/mcryptmcrypt.c 
  Log:
  - MFH (bug #8839 again)
  
  
Index: php4/ext/mcrypt/mcrypt.c
diff -u php4/ext/mcrypt/mcrypt.c:1.45.2.2 php4/ext/mcrypt/mcrypt.c:1.45.2.3
--- php4/ext/mcrypt/mcrypt.c:1.45.2.2   Wed Apr 18 02:48:38 2001
+++ php4/ext/mcrypt/mcrypt.cWed Apr 18 15:15:39 2001
@@ -466,14 +466,14 @@
Z_STRLEN_PP(key), max_key_size);
php_error (E_NOTICE, dummy);
}
-   strncpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key));
+   memcpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key));
 
if (Z_STRLEN_PP(iv) != iv_size) {
sprintf (dummy, "iv size incorrect; supplied length: %d, needed: %d", 
Z_STRLEN_PP(iv), iv_size);
php_error (E_WARNING, dummy);
}
-   strncpy (iv_s, Z_STRVAL_PP(iv), iv_size);
+   memcpy (iv_s, Z_STRVAL_PP(iv), iv_size);
 
RETVAL_LONG (mcrypt_generic_init (td, key_s, Z_STRLEN_PP(key), iv_s));
efree (iv_s);
@@ -1236,13 +1236,15 @@
}
key_length_sizes = mcrypt_enc_get_supported_key_sizes (td, &count);
if (count == 0 && key_length_sizes == NULL) { /* all lengths 1 - k_l_s = OK */
-   key_s = estrdup (Z_STRVAL_PP(key));
use_key_length = Z_STRLEN_PP(key);
+   key_s = emalloc (use_key_length);
+   memset (key_s, 0, use_key_length);
+   memcpy (key_s, Z_STRVAL_PP(key), use_key_length);
}
else if (count == 1) {  /* only m_k_l = OK */
key_s = emalloc (key_length_sizes[0]);
memset (key_s, 0, key_length_sizes[0]);
-   strcpy (key_s, Z_STRVAL_PP(key));
+   memcpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key));
use_key_length = key_length_sizes[0];
}
else { /* derterminating smallest supported key > length of requested key */
@@ -1256,7 +1258,7 @@
}
key_s = emalloc (use_key_length);
memset (key_s, 0, use_key_length);
-   strcpy (key_s, Z_STRVAL_PP(key));
+   memcpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key));
}
mcrypt_free (key_length_sizes);




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

2001-04-18 Thread Derick Rethans

derick  Wed Apr 18 15:14:07 2001 EDT

  Modified files:  
/php4/ext/mcryptmcrypt.c 
  Log:
  - Fixed some more problems with keys being chopped off (fix for bug #8839)
  
  
Index: php4/ext/mcrypt/mcrypt.c
diff -u php4/ext/mcrypt/mcrypt.c:1.48 php4/ext/mcrypt/mcrypt.c:1.49
--- php4/ext/mcrypt/mcrypt.c:1.48   Mon Apr  9 17:09:17 2001
+++ php4/ext/mcrypt/mcrypt.cWed Apr 18 15:14:06 2001
@@ -466,14 +466,14 @@
Z_STRLEN_PP(key), max_key_size);
php_error (E_NOTICE, dummy);
}
-   strncpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key));
+   memcpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key));
 
if (Z_STRLEN_PP(iv) != iv_size) {
sprintf (dummy, "iv size incorrect; supplied length: %d, needed: %d", 
Z_STRLEN_PP(iv), iv_size);
php_error (E_WARNING, dummy);
}
-   strncpy (iv_s, Z_STRVAL_PP(iv), iv_size);
+   memcpy (iv_s, Z_STRVAL_PP(iv), iv_size);
 
RETVAL_LONG (mcrypt_generic_init (td, key_s, Z_STRLEN_PP(key), iv_s));
efree (iv_s);
@@ -1236,13 +1236,15 @@
}
key_length_sizes = mcrypt_enc_get_supported_key_sizes (td, &count);
if (count == 0 && key_length_sizes == NULL) { /* all lengths 1 - k_l_s = OK */
-   key_s = estrdup (Z_STRVAL_PP(key));
use_key_length = Z_STRLEN_PP(key);
+   key_s = emalloc (use_key_length);
+   memset (key_s, 0, use_key_length);
+   memcpy (key_s, Z_STRVAL_PP(key), use_key_length);
}
else if (count == 1) {  /* only m_k_l = OK */
key_s = emalloc (key_length_sizes[0]);
memset (key_s, 0, key_length_sizes[0]);
-   strcpy (key_s, Z_STRVAL_PP(key));
+   memcpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key));
use_key_length = key_length_sizes[0];
}
else { /* derterminating smallest supported key > length of requested key */
@@ -1256,7 +1258,7 @@
}
key_s = emalloc (use_key_length);
memset (key_s, 0, use_key_length);
-   strcpy (key_s, Z_STRVAL_PP(key));
+   memcpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key));
}
mcrypt_free (key_length_sizes);




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




RE: [PHP] Password Generator?

2001-04-18 Thread Nathan Cassano

Random Pronounceable Password Generator
This function generates random pronounceable passwords. (ie jachudru,
cupheki)

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

-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 1:20 PM
To: PHP-General List
Subject: [PHP] Password Generator?



Is there an easy way to generate generic passwords based on
(combined) dictionary words?  (ej: take two different words and put them
together)

AMK4


-- 
PHP General Mailing List (http://www.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] where to get info on developing web e-mail

2001-04-18 Thread Plutarck

Check out PHPost at webgadgets.com for some non-IMAP email tips.


--
Plutarck
Should be working on something...
...but forgot what it was.


"Henrik Hansen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "Szeto" <[EMAIL PROTECTED]> wrote:
>
>  > Hello,
>  >
>  > * i wondering where to get ifo on developing web e-mail
>  > * what standard should i use to deveping to software
>
> look at the imap functions in the php manual they are what you need to
> develop what you need.
>
> --
> Henrik Hansen
>
>
> --
> PHP General Mailing List (http://www.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] stripslashes() equivalent when magic_quotes_sybase = on?

2001-04-18 Thread Rasmus Lerdorf

stripslashes() sees the magic_quotes_sybase setting and behaves
accordingly.

-Rasmus

On Wed, 18 Apr 2001, Johnson, Kirk wrote:

> With magic_quotes_sybase = on, a single quote in Get/Post/Cookie data gets
> escaped with another single quote. Is there a function analagous to
> stripslashes that will strip off the escaping quote?
>
> TIA
>
> Kirk
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.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] regex and mysql - looking for opinions.

2001-04-18 Thread Plutarck

I use a special function just for reforming input, but they use the
following bits with PCRE:

 $replace_wordwhite = '/[^\w\s]/';
 $replace_word = '/\W/';
 $replace_num = '/\D/';
 $replace_email = '/[^\w\-\.@]/';


Works pretty well and it's quite useful for killing useless input without
returning errors, so the username (for instance) "B{o}b" it made into "Bob".
That way it's more or less forgiving of morons and malicious users alike :)


--
Plutarck
Should be working on something...
...but forgot what it was.


"Larry Hotchkiss" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Im working on a site utilizing apaches/mysqp and of course php. Im
> working through the basic framwork creating forms to collect user input
> and do various searches etc. I was curious as to what most people find
> the best way keep thier mysql queries from getting messed up by user
> entered data. None of my searches or database data has or needs any sort
> of punctuation, so I was thinking of striping it all out from form
> input. What method is everyone else using?
>
>
> --
> Larry H.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



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




Re: [PHP] how to scale down image using ImageMagick?

2001-04-18 Thread Morgan Curley

according to the docs use
-geometry 175x175> picture.jpeg

man mogrify:
  -geometry x{+-}{+-}{%}{!}{<}{>}
   preferred width and height of the image.  See X(1) for 
details about the geometry specification.

   By default, the width and height are maximum values.  That 
is, the image is expanded or contracted to
   fit the width and height value while maintaining the aspect 
ratio of the image.  Append an exclamation
   point to the geometry to force the image size to exactly the 
size you specify.  For example, if you
   specify 640x480! the image width is set to 640 pixels and 
height to 480.  If only one factor is speci­
   fied, both the width and height assume the value.

   To specify a percentage width or height instead, append 
%.  The image size is multiplied by the width
   and height percentages to obtain the final image 
dimensions.  To increase the size of an image, use a
   value greater than 100 (e.g. 125%).  To decrease an image's 
size, use a percentage less than 100.

   Use > to change the dimensions of the image only if its size 
exceeds the geometry specification.  <
   resizes the image only if its dimensions is less than the 
geometry specification.  For example, if you
   specify 640x480> and the image size is 512x512, the image 
size does not change.  However, if the image
   is 1024x1024, it is resized to 640x480.

it looks like mogrify bases its resizing on the first value that is diff 
than the one supplied i.e. if your image is 200x50 it will scale it to 
175x? but if it is 50x200 it will scale it to ?x175

if it is important you not resize based on height use identify to get the 
geometry first.

morgan


At 04:27 PM 4/18/2001, Noah Spitzer-Williams wrote:
>I have a bunch of pictures all in ranging filesizes and dimensions. I want
>to resize the ones that over 175 pixels wide to a 175 pixel wide picture
>however i want the height to scale down (ie. i dont want a really thin
>picture, i just want it to be what it would be if it were resized). i have
>this but i cant figure out how to just scale down the width:
>
>c:\progra~1\imagem~1\mogrify.exe -geometry 175x30! picture.jpeg
>
>the '!' forces those sizes to be used but obvoiusly i dont want the height
>to be 30. i want it to be whatever it should be so the picture doesnt look
>flattened.
>
>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] Password Generator?

2001-04-18 Thread Plutarck

I believe there is an article on phpbuilder.com on "pronouncable passwords",
which is probably what you'll want to actually do. Using real words would
just be way too resource intensive.

I'd give you the direct link to the article, but it seems my internet
connection only works for NNTP and ftp downloads...my HTTP has broken for
the moment, and I have no idea why ;(


--
Plutarck
Should be working on something...
...but forgot what it was.


""Ashley M. Kirchner"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Is there an easy way to generate generic passwords based on
> (combined) dictionary words?  (ej: take two different words and put them
> together)
>
> AMK4
>
> --
> W |
>   |  I haven't lost my mind; it's backed up on tape somewhere.
>   |
>   ~
>   Ashley M. Kirchner    .   303.442.6410 x130
>   SysAdmin / Websmith   . 800.441.3873 x130
>   Photo Craft Laboratories, Inc. .eFax 248.671.0909
>   http://www.pcraft.com  . 3550 Arapahoe Ave #6
>   .. .  .  . .   Boulder, CO 80303, USA
>
>
>
> --
> PHP General Mailing List (http://www.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] Graphic process within PHP

2001-04-18 Thread Matt McClanahan

On Wed, Apr 18, 2001 at 02:37:00PM -, SED wrote:

> Hi,
> 
> Recently I noticed e-mails on this list about Imlib2 and GD2 extensions
> which I was not aware of. So I started to wander if there are more
> extensions working with PHP which allows graphic process (the only one I
> knew was GD). Is it? If so, is it possible to use these extensions on all
> platforms (which PHP supports) and with all web servers?

I'm not aware of other graphics-related extensions, but two other common
ways of processing images with PHP are to shell out to ImageMagick or
NetPBM.  As you look through the various PHP code repositories out
there, you'll probably notice a fair number of scripts that use one of
these two apps.

As for portability, PHP extensions can require certain platforms to
work.  Unfortunately Imlib2 falls into this category, because it
doesn't (And almost certainly never will) support Windows.

Matt

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




Re: [PHP] XML - simple get data from elements

2001-04-18 Thread Joe Stump

I wrote an article for PHPBuilder.com - I would start there - I made it as easy as 
possible.

--Joe

On Wed, Apr 18, 2001 at 04:58:28PM -0400, Mark Bean wrote:
> I have a valid XML file that all I want to do is assign to variables the 
> data in the elements  and .  I know nothing about XML and 
> am not a programmer.  Are there any good tutorials out there to do something 
> as simple as what I'm looking for?  Will expat do what I'm looking for?  I 
> think that I installed PHP properly for XML support.  Is there a way to 
> verify this?
> 
> Thanks,
> Mark
> 
> _
> 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]


/* Joe Stump
 * Sr. PHP Developer 
 * http://www.Care2.com http://www.joestump.net http://gtk.php-coder.net
 */


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




Re: [PHP] Finding the records that are NOT linked

2001-04-18 Thread Joe Stump

On your join instead of doing ID=ID do ID!=ID 

--Joe

On Wed, Apr 18, 2001 at 09:55:05PM +0100, Simon Kimber wrote:
> Hi all,
> 
> I have written a PHP/MySQL "top-sites" program.  It has two tables,
> link_sites, which contains the details of all the sites signed up
> (ID,url,title,description) and link_stats in which a new record is inserted
> every time a visitor links in from one of those sites
> (ID,siteID,clientIP,datestamp).
> 
> Can anyone help me write a SQL query to pull out all the sites in link_sites
> that are not mentioned in link_stats..  ie the ones that have never been
> clicked..
> 
> Cheers
> 
> Simon Kimber
> Funny.co.uk - The Comedy Portal
> http://www.funny.co.uk/
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


/* Joe Stump
 * Sr. PHP Developer 
 * http://www.Care2.com http://www.joestump.net http://gtk.php-coder.net
 */


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




Re: [PHP] Characters counting

2001-04-18 Thread Joe Stump

look into the substr() function in PHP

--Joe

On Tue, Apr 18, 2000 at 09:23:39PM +0200, Jorn van Eck wrote:
> Hi there,
> 
> Does someone know how to display for example150 characters from a $ set by
> MySQL?
> --
> Jorn van Eck
> Student Information Engineering
> Almere
> Tel: +31 614430902
> E-mail: [EMAIL PROTECTED]
> Website: http://www.iie.nl/~eck13
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


/* Joe Stump
 * Sr. PHP Developer 
 * http://www.Care2.com http://www.joestump.net http://gtk.php-coder.net
 */


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




Re: [PHP] Regular Expression

2001-04-18 Thread Martín Marqués

On Jue 19 Abr 2001 00:23, Andrew Braund wrote:
> LinuxSA http://www.linuxsa.org.au/  meeting a couple of days ago was
> on regex, some notes are at;
> http://www.fornax.net/regex2/
> or part 1 at;
> http://www.fornax.net/regex/

Isn't there a place with printable versions?

Saludos... :-)

-- 
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-
Martin Marques  |[EMAIL PROTECTED]
Programador, Administrador  |   Centro de Telematica
   Universidad Nacional
del Litoral
-

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




RE: [PHP] Regular Expression

2001-04-18 Thread Andrew Braund

LinuxSA http://www.linuxsa.org.au/  meeting a couple of days ago was
on regex, some notes are at;
http://www.fornax.net/regex2/
or part 1 at;
http://www.fornax.net/regex/

HTH
Andrew Braund

> -Original Message-
> From: Jeroen Geusebroek [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 19 April 2001 06:25
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Regular Expression
> 
> 
> 
> >oops. The expression should read '/\[([^\]]+)\]/'
> 
> Thanks all, i used this code and it works:
> 
>   preg_match("/\[(.+)\]/",$msg_array[$i],$segments);
>   $title = trim($segments[1]); 
>   $description = ereg_replace("\[ $title \]", "", 
> $msg_array[$i]);
> 
> Does anyone know a good regex tutorial? I'll probably bump 
> into it again.
> Regex'es seem to be very usefull.
> 
> Regards,
> 
> Jeroen Geusebroek


-- 
PHP General Mailing List (http://www.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] Password Generator?

2001-04-18 Thread David VanHorn

At 02:20 PM 4/18/01 -0600, Ashley M. Kirchner wrote:

> Is there an easy way to generate generic passwords based on
>(combined) dictionary words?  (ej: take two different words and put them
>together)

Would be huge, and vulnerable to dictionary attack (of course)
You'd have to have a file containing all possible dictionary words, then 
the rest is dead easy, just do a randomized grab of two words from the pile.


I've seen PHP code for pronouncable non-words, like "optogru" and "umoktin"
These are far more secure.
--
Dave's Engineering Page: http://www.dvanhorn.org
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9



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




[PHP] stripslashes() equivalent when magic_quotes_sybase = on?

2001-04-18 Thread Johnson, Kirk

With magic_quotes_sybase = on, a single quote in Get/Post/Cookie data gets
escaped with another single quote. Is there a function analagous to
stripslashes that will strip off the escaping quote?

TIA

Kirk

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




Re: [PHP] PHP Enabled Web Hosts

2001-04-18 Thread Philip Olson

Some places to look :

General web hosts :
  http://hosts.php.net/

Free web hosts:
  http://www.faqts.com/knowledge-base/view.phtml/aid/4058/fid/27

Other discussions :
  http://marc.theaimsgroup.com/?l=php-general&s=web+host

Regards,
Philip


On Wed, 18 Apr 2001, Corin Rathbone wrote:

> Hi all,
>   I am a student and with little money, I am  trying to find a low-cost or
> preferably free web host with PHP and if possible MySQL. Any suggestions
> would be most helpful.
> 
> Regards,
> Corin Rathbone
> [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] PHP and Double?

2001-04-18 Thread Larry Hotchkiss

There are prolly a few ways to do it, using split() may be easiest.

Jason Caldwell wrote:
> 
> how can i separate the digits in a Double number?
> 
> for example:
> 
> if i have 3.2 i would like to separate the digits into 3 and 2 and assign
> each to its own variable, like so
> 
> numb1 = 3
> numb2 = 2
> 
> thanks.
> 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]

-- 
Larry Hotchkiss
Universal Capital
612-551-9309
http://www.unicap.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 and Double?

2001-04-18 Thread Augusto Cesar Castoldi

Take a look here:

http://www.php.net/manual/en/ref.math.php

regards,

Augusto

On Wed, 18 Apr 2001, Jason Caldwell wrote:

> how can i separate the digits in a Double number?
> 
> for example:
> 
> if i have 3.2 i would like to separate the digits into 3 and 2 and assign
> each to its own variable, like so
> 
> numb1 = 3
> numb2 = 2
> 
> thanks.
> 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 General Mailing List (http://www.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] XML - simple get data from elements

2001-04-18 Thread Mark Bean

I have a valid XML file that all I want to do is assign to variables the 
data in the elements  and .  I know nothing about XML and 
am not a programmer.  Are there any good tutorials out there to do something 
as simple as what I'm looking for?  Will expat do what I'm looking for?  I 
think that I installed PHP properly for XML support.  Is there a way to 
verify this?

Thanks,
Mark

_
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] Regular Expression

2001-04-18 Thread Jeroen Geusebroek


>oops. The expression should read '/\[([^\]]+)\]/'

Thanks all, i used this code and it works:

preg_match("/\[(.+)\]/",$msg_array[$i],$segments);
$title = trim($segments[1]); 
$description = ereg_replace("\[ $title \]", "", $msg_array[$i]);

Does anyone know a good regex tutorial? I'll probably bump into it again.
Regex'es seem to be very usefull.

Regards,

Jeroen Geusebroek

-- 
PHP General Mailing List (http://www.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 Double?

2001-04-18 Thread Steve Werby

"Jason Caldwell" <[EMAIL PROTECTED]> wrote:
> how can i separate the digits in a Double number?
>
> for example:
>
> if i have 3.2 i would like to separate the digits into 3 and 2 and assign
> each to its own variable, like so
>
> numb1 = 3
> numb2 = 2

Use explode() to explode on the "." and save into an array.  Key 0 will be
the integer and key 1 will be the decimal component (without the ".").  Or
if you don't like that use floor() to round it down to next lowest integer
and save that as $integer and then subtract it from the original value to
get the decimal component and use substr() to return everything, but the
first character.  Clearly, the first method is cleaner, but I posed the
second option (which I'd never use) just to demonstrate there are plenty of
solutions for most situations.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.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] ACSII in PHP

2001-04-18 Thread Frank M. Kromann

You can use

$temp = ord("A");

And you will then see that it's 65 end not 99 :-)

- Frank

> Is there any function in PHP that I could use to know the number of the
> ASCII table of letter "A" for example?
> 
> 
> something like: $tmp=function_name("A");
> 
> $tmp==99 ("A" is 99 in ASCII table).
> 
> regards,
> 
> Augusto
> 
> 
> -- 
> PHP General Mailing List (http://www.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 + apache.src.rpm

2001-04-18 Thread Martín Marqués

Have a look at this:

http://www.jasons.org/modssl.php

You might find it usefull.

Saludos... :-)

On Mié 18 Abr 2001 23:18, Robert Mena wrote:
> Hi, I've donwloaded apache_1.3.12.src.rpm from
> RedHat's site and I am trying to build it.
>
> Unfortunately it keeps giving me error
>
> + adding selected modules
> o rewrite_module uses ConfigStart/End
>   disabling DBM support for mod_rewrite
>   (perhaps you need to add -ldbm, -lndbm or -lgdbm
> to EXTRA_LIBS)
> o db_auth_module uses ConfigStart/End
> Error: None of Berkeley-DB 1.x, 2.x or 3.x libraries
> found.
>Either disable mod_auth_db or provide us with
> the paths
>to the Berkeley-DB include and library files.
>(Hint: INCLUDES, LDFLAGS, LIBS)
>
> The "funny" things it that I do have db1, db3 and gdbm
> (devel also) installed.
>
> rpm -qi db1
> Name: db1
> Relocations: /usr
> Version : 1.85
> Vendor: Red Hat, Inc.
> Release : 4 Build
> Date: Thu 17 Aug 2000
> 09:06:58 PM AMT
> Install date: Fri 03 Nov 2000 08:03:45 AM AMT
> Build Host:
> porky.devel.redhat.com
> Group   : System Environment/Libraries   Source
> RPM:
> db1-1.85-4.src.rpm
> Size: 76370
> License: BSD
> Packager: Red Hat, Inc.
> 
> URL : http://www.sleepycat.com
> Summary : The BSD database library for C (version
> 1).
>
> ldconfig -v shows
> libdb1 e db3
>
> ldconfig -v | grep db
> ldconfig: Path `/usr/lib' given more than once
> libnss_db.so.2 -> libnss_db.so.2.0.0
> libnss_db.so.1 -> libnss_db.so.1.0.0
> libdb-3.1.so -> libdb-3.1.so
> libpwdb.so.0 -> libpwdb.so.0.61.1
> libthread_db.so.1 -> libthread_db-1.0.so
> libgdbm.so.2 -> libgdbm.so.2.0.0
> libdb.so.3 -> libdb2.so.3
> libdb.so.2 -> libdb1.so.2
> libkdb5.so.3 -> libkdb5.so.3.0
>
> I am using the original .spec. and a standard RH 7.0 +
> upgrades machine
>
> Why is this related to php ? Because I'll need to
> compile apache with phtreads support in order to use
> php+oracle.
>
> thanks.
>
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/

-- 
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-
Martin Marques  |[EMAIL PROTECTED]
Programador, Administrador  |   Centro de Telematica
   Universidad Nacional
del Litoral
-

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




Re: [PHP] ACSII in PHP

2001-04-18 Thread Steve Werby

"Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote:
> Is there any function in PHP that I could use to know the number of the
> ASCII table of letter "A" for example?

It's chr() or ord().  I don't recall which (one is the inverse of the other)
so check the online manual.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


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




Re: [PHP] Finding the records that are NOT linked

2001-04-18 Thread Steve Werby

"Simon Kimber" <[EMAIL PROTECTED]> wrote:
> I have written a PHP/MySQL "top-sites" program.  It has two tables,
> link_sites, which contains the details of all the sites signed up
> (ID,url,title,description) and link_stats in which a new record is
inserted
> every time a visitor links in from one of those sites
> (ID,siteID,clientIP,datestamp).
>
> Can anyone help me write a SQL query to pull out all the sites in
link_sites
> that are not mentioned in link_stats..  ie the ones that have never been
> clicked..

Read the manual about LEFT JOIN syntax.  In a nutshell you need something
like:

SELECT *
FROM link_sites
LEFT JOIN link_stats ON link_sites.ID=link_stats.ID
WHERE link_stats.ID IS NULL

In regular language, it means:

Look through *all* of the records from link_sites, join them with records
from link_stats with an ID that matches the ID from link_sites and then only
show records where there isn't a matching record in link_stats (in which
case it's NULL).

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.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] PHP and Double?

2001-04-18 Thread Jason Caldwell

how can i separate the digits in a Double number?

for example:

if i have 3.2 i would like to separate the digits into 3 and 2 and assign
each to its own variable, like so

numb1 = 3
numb2 = 2

thanks.
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] ACSII in PHP

2001-04-18 Thread Augusto Cesar Castoldi

Is there any function in PHP that I could use to know the number of the
ASCII table of letter "A" for example?


something like: $tmp=function_name("A");

$tmp==99 ("A" is 99 in ASCII table).

regards,

Augusto


-- 
PHP General Mailing List (http://www.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] Creating UTF-8 characters from scratch

2001-04-18 Thread Dennis Gearon

I want to try inserting a UTF-8 string into a varchar field. I'd like to
try something like cyrillic, which I know uses multiple byte characters
mixed with single byte characters. Anyone know how to create binary
values as an argument to insert into a field?

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




[PHP] how to scale down image using ImageMagick?

2001-04-18 Thread Noah Spitzer-Williams

I have a bunch of pictures all in ranging filesizes and dimensions. I want
to resize the ones that over 175 pixels wide to a 175 pixel wide picture
however i want the height to scale down (ie. i dont want a really thin
picture, i just want it to be what it would be if it were resized). i have
this but i cant figure out how to just scale down the width:

c:\progra~1\imagem~1\mogrify.exe -geometry 175x30! picture.jpeg

the '!' forces those sizes to be used but obvoiusly i dont want the height
to be 30. i want it to be whatever it should be so the picture doesnt look
flattened.

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] PHP Enabled Web Hosts

2001-04-18 Thread Corin Rathbone

Hi all,
I am a student and with little money, I am  trying to find a low-cost or
preferably free web host with PHP and if possible MySQL. Any suggestions
would be most helpful.

Regards,
Corin Rathbone
[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] Password Generator?

2001-04-18 Thread Ashley M. Kirchner


Is there an easy way to generate generic passwords based on
(combined) dictionary words?  (ej: take two different words and put them
together)

AMK4

--
W |
  |  I haven't lost my mind; it's backed up on tape somewhere.
  |
  ~
  Ashley M. Kirchner    .   303.442.6410 x130
  SysAdmin / Websmith   . 800.441.3873 x130
  Photo Craft Laboratories, Inc. .eFax 248.671.0909
  http://www.pcraft.com  . 3550 Arapahoe Ave #6
  .. .  .  . .   Boulder, CO 80303, USA



-- 
PHP General Mailing List (http://www.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 + apache.src.rpm

2001-04-18 Thread Robert Mena

Hi, I've donwloaded apache_1.3.12.src.rpm from
RedHat's site and I am trying to build it.

Unfortunately it keeps giving me error

+ adding selected modules
o rewrite_module uses ConfigStart/End
  disabling DBM support for mod_rewrite
  (perhaps you need to add -ldbm, -lndbm or -lgdbm
to EXTRA_LIBS)
o db_auth_module uses ConfigStart/End
Error: None of Berkeley-DB 1.x, 2.x or 3.x libraries
found.
   Either disable mod_auth_db or provide us with
the paths
   to the Berkeley-DB include and library files.
   (Hint: INCLUDES, LDFLAGS, LIBS)

The "funny" things it that I do have db1, db3 and gdbm
(devel also) installed.

rpm -qi db1
Name: db1 
Relocations: /usr
Version : 1.85 
Vendor: Red Hat, Inc.
Release : 4 Build
Date: Thu 17 Aug 2000
09:06:58 PM AMT
Install date: Fri 03 Nov 2000 08:03:45 AM AMT 
Build Host:
porky.devel.redhat.com
Group   : System Environment/Libraries   Source
RPM:
db1-1.85-4.src.rpm
Size: 76370   
License: BSD
Packager: Red Hat, Inc.

URL : http://www.sleepycat.com
Summary : The BSD database library for C (version
1).

ldconfig -v shows
libdb1 e db3

ldconfig -v | grep db
ldconfig: Path `/usr/lib' given more than once
libnss_db.so.2 -> libnss_db.so.2.0.0
libnss_db.so.1 -> libnss_db.so.1.0.0
libdb-3.1.so -> libdb-3.1.so
libpwdb.so.0 -> libpwdb.so.0.61.1
libthread_db.so.1 -> libthread_db-1.0.so
libgdbm.so.2 -> libgdbm.so.2.0.0
libdb.so.3 -> libdb2.so.3
libdb.so.2 -> libdb1.so.2
libkdb5.so.3 -> libkdb5.so.3.0

I am using the original .spec. and a standard RH 7.0 +
upgrades machine

Why is this related to php ? Because I'll need to
compile apache with phtreads support in order to use
php+oracle.

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] Finding the records that are NOT linked

2001-04-18 Thread Simon Kimber

Hi all,

I have written a PHP/MySQL "top-sites" program.  It has two tables,
link_sites, which contains the details of all the sites signed up
(ID,url,title,description) and link_stats in which a new record is inserted
every time a visitor links in from one of those sites
(ID,siteID,clientIP,datestamp).

Can anyone help me write a SQL query to pull out all the sites in link_sites
that are not mentioned in link_stats..  ie the ones that have never been
clicked..

Cheers

Simon Kimber
Funny.co.uk - The Comedy Portal
http://www.funny.co.uk/


-- 
PHP General Mailing List (http://www.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 and mysql - looking for opinions.

2001-04-18 Thread Larry Hotchkiss

Im working on a site utilizing apaches/mysqp and of course php. Im
working through the basic framwork creating forms to collect user input
and do various searches etc. I was curious as to what most people find
the best way keep thier mysql queries from getting messed up by user
entered data. None of my searches or database data has or needs any sort
of punctuation, so I was thinking of striping it all out from form
input. What method is everyone else using?


-- 
Larry H.

-- 
PHP General Mailing List (http://www.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] Characters counting

2001-04-18 Thread Johannes Janson

Hi,

to get the first 150 chars of a mysql filed do this:
SELECT LEFT(YourField, '150') FROM YourTable WHERE YourCondition=true;
This does it in MySQL and for PHP follow the mentioned substr-method.

cheers
Johannes

""Jorn van Eck"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9bkpd8$r77$[EMAIL PROTECTED]">news:9bkpd8$r77$[EMAIL PROTECTED]...
> Hi there,
>
> Does someone know how to display for example150 characters from a $ set by
> MySQL?
> --
> Jorn van Eck
> Student Information Engineering
> Almere
> Tel: +31 614430902
> E-mail: [EMAIL PROTECTED]
> Website: http://www.iie.nl/~eck13
>
>
>
> --
> PHP General Mailing List (http://www.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] where to get info on developing web e-mail

2001-04-18 Thread Henrik Hansen

"Szeto" <[EMAIL PROTECTED]> wrote:

 > Hello,
 > 
 > * i wondering where to get ifo on developing web e-mail
 > * what standard should i use to deveping to software

look at the imap functions in the php manual they are what you need to
develop what you need.

-- 
Henrik Hansen


-- 
PHP General Mailing List (http://www.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] Characters counting

2001-04-18 Thread Jack Dempsey

What exactly do you need?
If you have a variable that contains a string, you can do
echo substr($var,0,150)
to print the first 150 characters...
or, are you trying to limit the amount in the mysql query? I believe you
have to get the whole result then limit it in php, but others might know
better about that...

-jack

-Original Message-
From: Jorn van Eck [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 3:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Characters counting


Hi there,

Does someone know how to display for example150 characters from a $ set by
MySQL?
--
Jorn van Eck
Student Information Engineering
Almere
Tel: +31 614430902
E-mail: [EMAIL PROTECTED]
Website: http://www.iie.nl/~eck13



--
PHP General Mailing List (http://www.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] Characters counting

2001-04-18 Thread Jorn van Eck

Hi there,

Does someone know how to display for example150 characters from a $ set by
MySQL?
--
Jorn van Eck
Student Information Engineering
Almere
Tel: +31 614430902
E-mail: [EMAIL PROTECTED]
Website: http://www.iie.nl/~eck13



-- 
PHP General Mailing List (http://www.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] New problem with PHP "odbc_exec".

2001-04-18 Thread Scott Fletcher

The table in the SQL have primary key already and I get this error message.
So, I'll try your recommendation to disable part of the PHP script and
recompile.  Sometime it is better to move on than to struggle over it
because no one seem to have the answer to the problem.

Thanks,
 Scott

""Andrew Hill"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Scott,
>
> This error indicates that there is no index/primary key on a table that
the
> result set is coming from - and PHP has told the driver read the result
set
> into a into a cursor (which requires a primary key).
>
> Adding a primary key to the table will fix this, or passing a different
> cursor type - keyset driven cursors are essentially 'sliding windows' -
they
> read a set of rows in, and then scroll back and forth.  Upon reaching the
> end of the set, they grab the next keyset in the direction of scroll, etc.
>
> Alternatively, instead of adding the primary key, you can disable "#define
> HAVE_SQL_EXTENDED_FETCH 1 " in php_odbc.h and recompile.  This will
prevent
> PHP from atomatically setting a cursor.
>
> Best regards,
> Andrew
> --
> Andrew Hill - OpenLink Software
> Director Technology Evangelism
> Universal Data Access Integration
> http://www.openlinksw.com
>
> > -Original Message-
> > From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 18, 2001 9:37 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] New problem with PHP "odbc_exec".
> >
> >
> >   Hi!  I don't understand why PHP is having trouble with the
> > odbc_exec.  Is
> > there a bug in PHP code?  Here's what the error messages said!
> >
> >   "SQL error: [OpenLink][ODBC][Driver]No key columns found for table
> > referenced by keyset driven cursor., SQL state IM909 in SQLExecDirect".
> >
> >   This show that it had to do with primary (or secondary) keys or index
> > issues.  I'm using MS-SQL Sever and this table I'm using in the database
> > have primary key already!
> >
> >   So, what can I do to fix it?  I need it to be working.  When I use the
> > Linux odbctest command and it execute without a problem.  So, it
> > is obvious
> > the problem lie with PHP code, odbc_exec();
> >
> > 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 General Mailing List (http://www.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 Digest 18 Apr 2001 19:05:01 -0000 Issue 635

2001-04-18 Thread php-general-digest-help


php-general Digest 18 Apr 2001 19:05:01 - Issue 635

Topics (messages 49133 through 49246):

mySQL - select column
49133 by: Julian Wood

Re: Is it possible to parse a variable by character?
49134 by: CC Zona
49143 by: Sean Coyle
49144 by: Sean Coyle
49170 by: Wico de Leeuw
49192 by: Christian Reiniger
49194 by: Christian Reiniger
49204 by: Sean Coyle
49239 by: Yasuo Ohgaki

Re: need help
49135 by: Geir Eivind Mork
49136 by: David Robley
49233 by: Joe Stump

Re: PHP/OCI8 design for persistent connection tuning
49137 by: Remigiusz Sokolowski

Variable variable
49138 by: Jacky
49139 by: Ulf Wendel
49140 by: Chris Fry
49141 by: Jacky
49142 by: Jacky
49149 by: Chris Fry
49150 by: Jacky
49161 by: Chris Fry
49175 by: Plutarck
49211 by: Steve Werby
49213 by: Rasmus Lerdorf
49223 by: Steve Werby
49226 by: Rasmus Lerdorf
49228 by: Plutarck

Cannot destroy session cookie
49145 by: Jens Kisters
49197 by: Johannes Janson
49224 by: Jens Kisters
49227 by: Johannes Janson

Re: highlighting search results (revisited)
49146 by: Matt Williams
49163 by: Matt Williams

checkbox validation
49147 by: Jacky
49148 by: Matt Williams
49168 by: Robert Vetter

to find out which checkbox is checked
49151 by: Jacky
49153 by: Martin Cabrera Diaubalick

Re: SSL SSL SSL SSL -- READ THIS!!
49152 by: Jens Fisch
49242 by: Toby Miller

Re: HTTP_POST_VARS not and array when used in a function?
49154 by: Alexander Skwar

Re: function to add %20 in place of blank  spaces
49155 by: Alexander Skwar

Re: php like cgi
49156 by: Alexander Skwar

php equivalent for `command`
49157 by: Greig, Euan
49158 by: Jason Brooke
49162 by: Greig, Euan
49219 by: Plutarck

how do I find out which checkbox is checked when form get submit
49159 by: Jacky
49165 by: Matt Williams
49171 by: Szii

print_r style array content
49160 by: Chien-pin Wang
49181 by: Neil Kimber
49189 by: Christian Reiniger

shm_attach not found
49164 by: Patrick Lai

Connection to postgresql DB used by 2 scripts ?
49166 by: Picard, Cyril
49172 by: Johannes Janson
49184 by: Picard, Cyril
49215 by: Plutarck

sessions
49167 by: Ben
49182 by: Plutarck

What is cookies
49169 by: Bertrand TACHAGO
49177 by: Plutarck

write to a file
49173 by: Wade Halsey

Re: Site Sessions: Online/Offline - help?
49174 by: Richard

Images only with 256 Colors?!
49176 by: Nils Sondermann
49205 by: Rasmus Lerdorf
49216 by: Yasuo Ohgaki

Re: How do i include ASP script into PHP...??!
49178 by: Christian Reiniger

Regular Expression
49179 by: Jeroen Geusebroek
49193 by: Wico de Leeuw
49229 by: Christian Reiniger
49230 by: Christian Reiniger

Re: Persistent connection & many scripts ?
49180 by: Christian Reiniger
49183 by: Picard, Cyril
49217 by: Plutarck
49218 by: Picard, Cyril
49220 by: Plutarck

FastCGI and PHP
49185 by: Alexander Skwar

Re: Importing Data from Text File
49186 by: Plutarck

Security
49187 by: Alessandro F. Rocha
49201 by: Phil Driscoll

global sessions
49188 by: Ben
49209 by: Plutarck

Re: Is there such an array like $array[][]?
49190 by: Tim Ward

Re: mysql error code - how to debug
49191 by: Plutarck

unixodbc problem
49195 by: Przem Kowalczyk

Re: Wrox - Beginning PHP4 Ch12 example problem
49196 by: Dave Mateer

HTTP_POST_VARS variable names?
49198 by: Mat Marlow
49199 by: Johannes Janson
49200 by: Renze Munnik
49206 by: Plutarck

Re: Why is this happening
49202 by: Boget, Chris

WDDX Deserialisation problem/bug?
49203 by: Darren Beale

Connection with a Palm
49207 by: Renzi, Sebastian
49210 by: Plutarck
49212 by: Renzi, Sebastian
49221 by: Plutarck

New problem with PHP "odbc_exec".
49208 by: Scott Fletcher
49214 by: Yasuo Ohgaki
49246 by: Andrew Hill

Graphic process within PHP
49222 by: SED

wddx installation
49225 by: Markus Maussner
49232 by: Markus Maussner

temp file part II
49231 by: Randy Johnson

Best non-tackified grip enhancer for golfers>
49234 by: OWQj5h9v0.excite.com
49235 by: Kurth Bemis

sybase database connections and ipchains...
49236 by: Robman

PHP Polls in popup window
49237 by: Mohamedou
49238 by: Seung-woo Nam

PUT Method using PHP4/Apache ...
49240 by: The Hermit Hacker

a different type of mail proble

RE: [PHP] New problem with PHP "odbc_exec".

2001-04-18 Thread Andrew Hill

Scott,

This error indicates that there is no index/primary key on a table that the
result set is coming from - and PHP has told the driver read the result set
into a into a cursor (which requires a primary key).

Adding a primary key to the table will fix this, or passing a different
cursor type - keyset driven cursors are essentially 'sliding windows' - they
read a set of rows in, and then scroll back and forth.  Upon reaching the
end of the set, they grab the next keyset in the direction of scroll, etc.

Alternatively, instead of adding the primary key, you can disable "#define
HAVE_SQL_EXTENDED_FETCH 1 " in php_odbc.h and recompile.  This will prevent
PHP from atomatically setting a cursor.

Best regards,
Andrew
--
Andrew Hill - OpenLink Software
Director Technology Evangelism
Universal Data Access Integration
http://www.openlinksw.com

> -Original Message-
> From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 9:37 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] New problem with PHP "odbc_exec".
>
>
>   Hi!  I don't understand why PHP is having trouble with the
> odbc_exec.  Is
> there a bug in PHP code?  Here's what the error messages said!
>
>   "SQL error: [OpenLink][ODBC][Driver]No key columns found for table
> referenced by keyset driven cursor., SQL state IM909 in SQLExecDirect".
>
>   This show that it had to do with primary (or secondary) keys or index
> issues.  I'm using MS-SQL Sever and this table I'm using in the database
> have primary key already!
>
>   So, what can I do to fix it?  I need it to be working.  When I use the
> Linux odbctest command and it execute without a problem.  So, it
> is obvious
> the problem lie with PHP code, odbc_exec();
>
> 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] Reynolds & Reynolds - php use

2001-04-18 Thread Jerry Lake

Has anyone here ever had to work with a
Reynolds and Reynolds system ? they make
auto dealer management software. It is a
closed system, but apparently sites like
autotrader.com access them from various
dealers to extract inventory data...autotrader
appears to use jsp, so I assume that I can
use php as well. if any one has any experience
with anything remotely like this, please let me know

Thanks,

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Plutarck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 4:59 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Importing Data from Text File


Use file() to read the file up into an array (we'll call it $array).

Then I would personally use:

foreach ($array as $val)
{
 trim($val);
 $arr = explode("\t", $val); // "\t" means tab, but it will not work if
it's only spaces instead of a real tab

 $stock_name = $arr[0];
 $stock_desc = $arr[1];
 $stock_length = $arr[2];
 $stock_qty = $arr[3];
 $stock_price = $arr[4];

 // Do your insert/update SQL query right here, before the ending
bracket.

}


There you go. Now inside that loop you have 5 variables with the values they
should have, ready for you to do whatever you'd like with them.

If your wondering, trim() is used to remove the newline characters and
extraneous spaces from the begining and end of the string. As long as they
are using an actual "tab" button between each piece of data, and only ONE
tab, it works.

Tell me if this works for you. If it doesn't I can rethink it :)


--
Plutarck
Should be working on something...
...but forgot what it was.

"Chris Aitken" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Everyone,
>
> Ive been asked to do a task here at my work and its something ive never
> done before. I was hoping you guys could point me in the right direction
so
> I can research some more and discover how in the hell im gonna do this :)
>
> Basically, I have been issued a TAB delimited text file which I need to
> process and insert all the data into a table. Here is a basic example of
> what I need to do..
>
> Say the text file had the following lines (thousands of them, 1 record per
> line)
>
> Screw   Big 12  200 1.99
> Screw   Big 10  400 1.50
>
> And I wanted to import each line into a table (Mysql DB) that had 6 fields
> (5 for each of the above plus an autoincremented ID field
>
> stock_id
> stock_name
> stock_desc
> stock_length
> stock_qty
> stock_price
>
>
> Any suggestions and direction pointing will be greatly appreciated.
>
>
>
>
> --
>Chris Aitken - Webmaster/Database Designer - IDEAL Internet
> email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
>  
>
>Unix -- because a computer's a terrible thing to waste!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



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




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


[PHP] array_count_values

2001-04-18 Thread Matthew Luchak

 
can someone give a quick hint as to why this does not work:
 
$array = split ("\n", $contents);
$stuff = array_count_values ($array); 
echo $stuff[nuts];
 
or even:
 
$array = array (split ("\n", $contents));
$stuff = array_count_values ($array); 
echo $stuff[nuts];
 
 
thnx...
 
matthew

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




Re: [PHP] mySQL Question....

2001-04-18 Thread Toby Miller

How about actually using distinct?

SELECT DISTINCT(email_addr) FROM myTable WHERE x = 1

--Toby

- Original Message - 
From: "Jason Caldwell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 1:47 AM
Subject: [PHP] mySQL Question


> if i perform a SELECT query (say) like the following:
> 
> SELECT email_addr FROM myTable WHERE x = 1
> 
> in this query i want to pull-out (or list) all email addresses where x
> equals 1, however, suppose i don't want any duplicate email addresses...
> 
> would i use ORDER BY and COUNT(*) to get listing of non-duplicate email
> addresses, and just ignore the COUNT() ?
> 
> 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] SSL SSL SSL SSL -- READ THIS!!!!!!

2001-04-18 Thread Toby Miller


- Original Message -
From: "phpman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 4:55 PM
Subject: [PHP] SSL SSL SSL SSL -- READ THIS!!


> How do I establish an SSL socket connection with PHP?
> I have PHP compiled in an Apache Mod_SSL server. Do I need to compile PHP
> with
> some sort of open_ssl option? I have --enable-sockets in the command line.
> Please help!!!
>
> -dave
>
>
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.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] a different type of mail problem

2001-04-18 Thread Joe Sheble (Wizaerd)

I am using the following function to send out emails via PHP:

function SendEMail( $to, $subject, $body ) {
$additionalHeaders = "MIME-Version: 1.0\n";
$additionalHeaders .= "Content-type: text/html; 
charset=\"iso-8859-1\"\n";
$additionalHeaders .= "Content-Transfer-Encoding: 7bit\n";
$additionalHeaders .= "Return-path:[EMAIL PROTECTED]\n";
$additionalHeaders .= "Reply-To:[EMAIL PROTECTED]\n";
$additionalHeaders .= "Sender:[EMAIL PROTECTED]\n";

mail( $to, $subject, $body, "From: [EMAIL PROTECTED]\n" . 
$additionalHeaders );
}

This way I get consistent headers...

However, when I actually get the emails here are the headers I get:

Envelope-to: [EMAIL PROTECTED]
Delivery-date: Wed, 18 Apr 2001 12:49:29 -0400
Received: from nobody by artemis.jtlnet.com with local (Exim 3.20 #1)
  id 14pv8z-0004VT-00
  for [EMAIL PROTECTED]; Wed, 18 Apr 2001 12:49:29 -0400
To: [EMAIL PROTECTED]
Subject: [TCE] - Confirmation Required
From: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Reply-To: [EMAIL PROTECTED]
Message-Id: <[EMAIL PROTECTED]>
Sender: Nobody <[EMAIL PROTECTED]>
Date: Wed, 18 Apr 2001 12:49:29 -0400

Notice the Sender element does not reflect what I've sent, showing Nobody 
instead.  My hosting provider states it's because their upstream demanded 
them to set it up this way to prevent spam emails...

Is this accurate?  If not, what can I tell my ISP to change how emails are 
sent out?



-- 
PHP General Mailing List (http://www.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] PUT Method using PHP4/Apache ...

2001-04-18 Thread The Hermit Hacker


I've read through:

http://php.net/manual/pt_BR/features.file-upload.put-method.php

I added:

Script PUT /put.php

to my apache config file ... everything as far as Netscape Composer is
concerned looks right, but it isn't working.

I changed my put.php script so that it output all ENV variables to a log
file:

===
 $value) {
  if (is_array($value)) {
   foreach ($value as $subtest => $subvalue) {
$temp .= "$subtest: $subvalue\n";
   }
  } else {
   $temp .= "$test: $value\n";
  }
 }
 fwrite($fp, $temp);
 $temp="DOCUMENT_ROOT: $DOCUMENT_ROOT\n";
 fwrite($fp, $temp);
 $temp="REQUEST_URI: $REQUEST_URI\n";
 fwrite($fp, $temp);
 fclose($fp);
?>


But PHP_PUT_FILENAME isn't being set:

===
hub# grep PUT update/log.txt
PHP_PUT_FILENAME:
REQUEST_METHOD: PUT
REQUEST_METHOD: PUT
temp: PHP_PUT_FILENAME:
hub# grep FILE update/log.txt
PHP_PUT_FILENAME:
SCRIPT_FILENAME: /home/vhosts/farelist.com/www/put.php
SCRIPT_FILENAME: /home/vhosts/farelist.com/www/put.php
temp: PHP_PUT_FILENAME:
hub# grep ^PHP update/log.txt
PHP_PUT_FILENAME:
PHP_SELF: /put.php/test/Untitled.htm2
PHP_SELF: /put.php/test/Untitled.htm2
==

Am I missing something obvious here?

Thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.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] Is it possible to parse a variable by character?

2001-04-18 Thread Yasuo Ohgaki
I got reply from core developer implementing new syntax. The implementation of
syntax $var{index} is not finished yet. So PHP programmers are NOT supposed to
use it yet. If you are curious, take a look at php-lang list archive.

Again

$var{index} is NOT supposed to used. (yet)

--
Yasuo Ohgaki


"CC Zona" <[EMAIL PROTECTED]> wrote in message
9bjdbf$aq1$[EMAIL PROTECTED]">news:9bjdbf$aq1$[EMAIL PROTECTED]...
> In article <9bjcj6$dg6$[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED] ("Yasuo Ohgaki") wrote:
>
> > I'm not sure if accessing string as array is going to be depreciated or not.
> > (Or is it already depreciated???)
>
> I made a note of this a while ago when it came up on the list, because
> initially it sounded to me too like it was being deprecated.  It's not.
> It's the current *method* for accessing string offsets that is expected to
> be deprecated in the near future.  So instead of using $string[offset], we
> just should get into the habit of using $string{offset} now to save
> ourselves the hassle of going back to fix it later.
>
> --
> 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]


Re: [PHP] PHP Polls in popup window

2001-04-18 Thread Seung-woo Nam

Hi:
You can use JavaScript for a popup window. Look up for window.open()
function. You can pass the result to that output from PHP script.

Seung-woo Nam

Mohamedou wrote:
> 
> Hello all,
> 
> I have integrated a simple text based poll script in my homepage.
> But I want get the survey results in a popup window, if somebody votes.
> 
> How can I make that?
> 
> Moh
>

-- 
PHP General Mailing List (http://www.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 Polls in popup window

2001-04-18 Thread Mohamedou

Hello all,

I have integrated a simple text based poll script in my homepage.
But I want get the survey results in a popup window, if somebody votes.

How can I make that?

Moh


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




  1   2   3   >