[PHP-CVS] cvs: php4 /ext/mnogosearch README php_mnogo.c php_mnogo.h

2001-02-05 Thread Sergey Kartashoff

gluke   Mon Feb  5 00:42:54 2001 EDT

  Modified files:  
/php4/ext/mnogosearch   README php_mnogo.c php_mnogo.h 
  Log:
  Fixed mnogosearch protos. Fixed mnogosearch functions return values.
  A bug with capital letters break search has been fixed.
  @- Fixed mnogosearch protos. Fixed mnogosearch functions return values.
  @  A bug with capital letters break search has been fixed. (gluke)
  
  
Index: php4/ext/mnogosearch/README
diff -u php4/ext/mnogosearch/README:1.3 php4/ext/mnogosearch/README:1.4
--- php4/ext/mnogosearch/README:1.3 Fri Feb  2 04:54:14 2001
+++ php4/ext/mnogosearch/README Mon Feb  5 00:42:53 2001
@@ -1,5 +1,5 @@
 $Source: /local/repository/php4/ext/mnogosearch/README,v $
-$Id: README,v 1.3 2001/02/02 12:54:14 gluke Exp $
+$Id: README,v 1.4 2001/02/05 08:42:53 gluke Exp $
 
 mnoGoSearch extension module for PHP4.
 Basic mnoGoSearch function implementation.
@@ -12,14 +12,13 @@
   TODO
   
 
-1. Implement more UdmSearch functions.
+1. Implement more mnoGoSearch functions.
 
-2. Fix  config.m4 to detect whether UdmSearch is actually installed.
-Currently there is no any checking. ./configure just trust that UdmSearch
+2. Fix  config.m4 to detect whether mnoGoSearch is actually installed.
+Currently there is no any checking. ./configure just trust that mnoGoSearch
 does exist.
 
-3. Test with more databases. Currently tested with MySQL which is compiled into
-PHP4 by default and does not require any additional UdmSearch libraries.
-  Actually it should work fine with other supported database.
+3. Test with more databases. Currently tested with MySQL.
+Actually it should work fine with other supported databases.
 
 4. Write PHP interface documentation.
Index: php4/ext/mnogosearch/php_mnogo.c
diff -u php4/ext/mnogosearch/php_mnogo.c:1.5 php4/ext/mnogosearch/php_mnogo.c:1.6
--- php4/ext/mnogosearch/php_mnogo.c:1.5Fri Feb  2 07:49:58 2001
+++ php4/ext/mnogosearch/php_mnogo.cMon Feb  5 00:42:53 2001
@@ -1,5 +1,5 @@
 /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.5 2001/02/02 15:49:58 eschmid Exp $ */
+/* $Id: php_mnogo.c,v 1.6 2001/02/05 08:42:53 gluke Exp $ */
 
 /*
+--+
@@ -174,7 +174,7 @@
 }
 
 
-/* {{{ proto int mnogosearch_alloc_agent(string dbaddr [, string dbmode])
+/* {{{ proto int udm_alloc_agent(string dbaddr [, string dbmode])
Allocate mnoGoSearch session */
 DLEXPORT PHP_FUNCTION(udm_alloc_agent)
 {
@@ -233,7 +233,7 @@
 /* }}} */
 
 
-/* {{{ proto int udm_set_agent_param(string agent, int var, string val)
+/* {{{ proto int udm_set_agent_param(int agent, int var, string val)
Set mnoGoSearch agent session parameters */
 DLEXPORT PHP_FUNCTION(udm_set_agent_param)
 {
@@ -363,7 +363,7 @@
 /* }}} */
 
 
-/* {{{ proto int udm_find(int agent_identifier, string query)
+/* {{{ proto int udm_find(int agent, string query)
Perform search */
 DLEXPORT PHP_FUNCTION(udm_find)
 {
@@ -385,13 +385,17 @@
}
ZEND_FETCH_RESOURCE(Agent, UDM_AGENT *, yyagent, id, "mnoGoSearch-Agent", 
le_link);
convert_to_string_ex(yyquery);
-   Res=UdmFind(Agent,(*yyquery)->value.str.val);
-   ZEND_REGISTER_RESOURCE(return_value,Res,le_res);
+   
+   if (Res=UdmFind(Agent,UdmTolower((*yyquery)->value.str.val,Agent->charset))) {
+   ZEND_REGISTER_RESOURCE(return_value,Res,le_res);
+   } else {
+   RETURN_FALSE;
+   }   
 }
 /* }}} */
 
 
-/* {{{ proto int udm_get_res_field(int res_identifier, int row_num, int field_name)
+/* {{{ proto int udm_get_res_field(int res, int row, int field)
Fetch mnoGoSearch result field */
 DLEXPORT PHP_FUNCTION(udm_get_res_field){
pval **yyres, **yyrow_num, **yyfield_name;
@@ -440,8 +444,8 @@
 /* }}} */
 
 
-/* {{{ proto int udm_get_res_param(int res_identifier, int param_id)
-   mnoGoSearch result parameters */
+/* {{{ proto int udm_get_res_param(int res, int param)
+   Get mnoGoSearch result parameters */
 DLEXPORT PHP_FUNCTION(udm_get_res_param)
 {
pval ** yyres, ** yyparam;
@@ -473,7 +477,7 @@
 /* }}} */
 
 
-/* {{{ proto int udm_free_res(int res_identifier)
+/* {{{ proto int udm_free_res(int res)
mnoGoSearch free result */
 DLEXPORT PHP_FUNCTION(udm_free_res)
 {
@@ -492,12 +496,13 @@
}
ZEND_FETCH_RESOURCE(Res, UDM_RESULT *, yyres, -1, "mnoGoSearch-Result", 
le_res);
zend_list_delete((*yyres)->value.lval);
-
+   
+   RETURN_TRUE;
 }
 /* }}} */
 
 
-/* {{{ proto int udm_errno(int agent_identifier)
+/* {{{ proto int udm_errno(int agent)
mnoGoSearch error number */
 DLEXPORT PHP_FUNCTION(udm_errno)
 {
@@ -520,7 +525,7 @@
 /* }}} */
 
 
-/* {{{ proto int udm_error(int agent_identifier)
+/* {{{ proto string udm_error(int agent)
mnoGoSearch error message */
 DLEXPORT PHP_FUNCTION(udm_error)
 {
@@ -544,7 +549,7 @@
 /* }}} */
 
 
-/* {{{ proto int udm_free_agent(int agent_identifier)
+/* {{{ p

[PHP] Re: [PHP-WIN] RE: [PHP] Re: [PHP-WIN] For My Information

2001-02-05 Thread Ingo Baab

>

Berber-Guy,
I don't believe that there is any question today that apache [on ony platform],
is the best webserver you *can't* buy ;)
ingo baab

> > Guys,
> >
> > I don't believe that there is any question today that IIS5 on win2K
> > is the best webserver $$$ can buy.
> >
> > Sincerely
> >
> >   berber
> >
> > Visit http://www.weberdev.com Today!!!
> > To see where PHP might take you tomorrow.


-- 
PHP General Mailing List (http://www.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] Session With Cookies

2001-02-05 Thread Eelco de Vries

no offense for anyone at all. I was just wondering myself and threw it in
the group discussion.

Eelco.


> I never wanted this question to be an offense for anyone. I thank you all
> for your answers.
>
> Regards
> PHPLover
>
> Lux <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > It's unlikely I suppose, but there's a must-have book you should look at
> > if you want info on hacks, including browser hacks (Hacking Exposed:
> > Network Security Secrets and Solutions, 2nd Edition).  The cookie hack
> > that comes to mind only works in IE or MS products (but that's only
> > what, 90% of the web), but all it is is a line or so of html code that
> > somebody places on their site (say in an iframe...) that sends them all
> > your cookie data (if the user uses outlook, they can also just place it
> > in an email).  from there, they use the cookie data to pose as that
> > person on various sites trying to gain sensitive info.  but if you're
> > already giving them the password, how much more sensitive can you get?
> >
> > so really, if they don't close their browser for a while, this
> > possibility increases.  and it may be a slim possibility, but it's
> > better to be safe than sorry.
> >
> > later
> >
> > lux
> >
> > > Well .. I am ... nobody but the user itself can see the login and
> password
> > >
> > > in the cookie. Unless it's on non-SSL connection and somebody is
> > >
> > > packet-shiffing around. Otherwise there would be no leak for somebody
> else
> > >
> > > to get this information, is there?
> > >
> > > And if the user doesn't logout, the cookie is still destroyed when the
> > >
> > > browser is closed anyway.
> > >
> > >
> > >
> > > Eelco.
> >
> >
> > --
> >
> > John Luxford
> > Simian Systems
> >
> > w: www.simian.ca
> > e: [EMAIL PROTECTED]
> > p: 204.946.5955
> >
> > --
> >
> >
> > --
> > PHP General Mailing List (http://www.php.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] email function's sender

2001-02-05 Thread Michel Boucey

Hi ! 

i've the following trouble with php:

Since I've set sendmail_path to /var/qmail/bin/inject in php3.ini, all
emails coming from the http client come from me, i.e. my email address on
our server, and not from the apache client name, http ...

What's wrong in my conf ...

Thanks for help ...

Cordialement,

Michel Boucey   Administrateur Système
> Société Norm@net +33 2 31 27 13 45 <



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




[PHP] strange Compiling Errors / PHP4.0.4pl1

2001-02-05 Thread Thomas Weber

Hi,
i've compiled and installed PHP4.0.4pl1 on two systems without problems, but
on the third i get strange errors. The ./configure works, but at the make i
get some errors like "linux/limits.h: No such file or directory", even this
file is in /usr/include/. I have copied limits.h and errno.h to
/usr/include/linux/ and now this works. But now i get another big fat error.
I make a screenshot you find here: http://gotik.hn.org/tunix.gif
The System is a standard-install of SuSE Linux 7.0 with all that required
stuff, bison, flex, automake and so on.
(I tried the same with PHP4.0.3 but i get the same errors.)
Please help me!!!

Thank you,
Thomas Weber


CYNOBIA Community Online Service AG
Kühbachstraße 11
81543 München
fon 089-78 06 0(280)
fax 089-78 06 01 99
email [EMAIL PROTECTED]
net http://www.CYNOBIA.de




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

2001-02-05 Thread James Moore

jmoore  Mon Feb  5 02:18:14 2001 EDT

  Modified files:  
/php4/ext/standard  credits.c 
  Log:
  Adding Sebastian Bergmann to QA team list.
  
Index: php4/ext/standard/credits.c
diff -u php4/ext/standard/credits.c:1.3 php4/ext/standard/credits.c:1.4
--- php4/ext/standard/credits.c:1.3 Mon Jan 22 16:50:49 2001
+++ php4/ext/standard/credits.c Mon Feb  5 02:18:14 2001
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: credits.c,v 1.3 2001/01/23 00:50:49 jimw Exp $ */
+/* $Id: credits.c,v 1.4 2001/02/05 10:18:14 jmoore Exp $ */
 
 #include "php.h"
 #include "info.h"
@@ -94,7 +94,7 @@
if (flag & PHP_CREDITS_QA) {
php_info_print_table_start();
php_info_print_table_header(1, "PHP Quality Assurance Team");
-   php_info_print_table_row(1, "Andre Langhorst, Hellekin O. Wolf, Jalal 
Pushman, James Moore, Jani Taskinen, Joey Smith, Olivier Cahagne, Phil Driscoll, Zak 
Greant");
+   php_info_print_table_row(1, "Andre Langhorst, Hellekin O. Wolf, Jalal 
+Pushman, James Moore, Jani Taskinen, Joey Smith, Olivier Cahagne, Phil Driscoll, 
+Sebastian Bergmann, Zak Greant");
php_info_print_table_end();
}
 



-- 
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 /win32 time.c

2001-02-05 Thread James Moore


> I don't think you should be using static variables in the
> functions. Don't
> forget that you might have more than one thread accessing this
> function at
> a time (unless you came to the conclusion that a race here can't
> do any harm).

I dont think race conditions here will do any real harm but then again its
probably best to be safe. Having said that I am not 100% sure on how to make
it thread safe either which I would like to do. Are there any documents or
guidlines anywhere I can read about this? Its probably a good chance to
learn.

James


-- 
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] attempt to use an empty IV with mcrypt

2001-02-05 Thread Christian Reiniger

On Monday 05 February 2001 06:13, [EMAIL PROTECTED] wrote:
> I get the following warning when I turn on logging...
>
>
> Warning: attempt to use an empty IV, which is NOT recommend in
> /home/local/apache/htdocs/encrypt.php on line 21
>
>
> Here is the code

and which line is Nr. 21?

> $key = "testing";
> $input = "Secret data";
>
> $encrypted_data = mcrypt_ecb (MCRYPT_DES, $key, $input,
> MCRYPT_ENCRYPT);
>
> print "The CypherText in DES ECB is ".bin2hex
> ($encrypted_data)."\n";
>
>
> $encrypted_data = mcrypt_ecb (MCRYPT_TWOFISH, $key, $input,
> MCRYPT_ENCRYPT);
>
> print "The CypherText in TWOFISH ECB is ".bin2hex
> ($encrypted_data)."\n";
>
> $encrypted_data = mcrypt_cbc (MCRYPT_TWOFISH, $key, $input,
> MCRYPT_ENCRYPT);
>
> print "The CypherText in TWOFISH CBC is ".bin2hex
> ($encrypted_data)."\n";
>
> ?>

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

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 3600 hosts for known problems in 3 weeks

--
PHP General Mailing List (http://www.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] please help (network admin via web)

2001-02-05 Thread Christian Reiniger

On Monday 05 February 2001 08:01, niraj shah wrote:

> I am a 20 year old student doing a research project and I would like to
> have network administration via web. That is I want to change IP
> address os the system via web, want to do dns settings and also would
> like to do proxy setting via web using PHP scripts. I am working on
> RedHat 6.2 using apache as my web server.

Perhapy Webmin could help you?
http://www.webmin.com/webmin/

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

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 3600 hosts for known problems in 3 weeks

--
PHP General Mailing List (http://www.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] manage number of rows displayed

2001-02-05 Thread Christian Reiniger

On Monday 05 February 2001 21:23, [EMAIL PROTECTED] wrote:

> After I run a query, how do I set the number of rows returned to
> display as 3 or 4 columns in a page instead of one column as usual?

Ok, I gather from this that you use some Utility X to query database Y 
(you don't do it in PHP), and now want to know how to change the settings 
of X. Correct?

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

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 3600 hosts for known problems in 3 weeks

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




[PHP] Installation of PHP and Apache in RedHat 7.0

2001-02-05 Thread Sami Kristeri Maisniemi

If you have PHP 4.0 and Apache running in RedHat 7.0, you can propably
solve this problem immediately, but all advices are needed.

I have a beginner's problem, which is related to RedHat's unordinary way
to implemt Apache and PHP. I received detailed instructions how to install
both Apache and PHP, but the problem occurred when I tried to start Apache
and make a simple PHP script to work in my Linux computer.

First I was unable to locate 'apachectl' program to start apache. Then I
finally found from RedHat 7.0 reference guide that Apache can be started
by typing: './httpd start' which is located at '/etc/rc.d/init.d/'
directory.

The result is OK and when I type './httpd status', I receive a message
"... server is running ...".

However, my simple PHP script:



is not interpreted at all. Also the test cgi program of Apache is not
interpreted (I do not have any idea how that is implemented). I think
I installed PHP 4.0 and configured Apache's configuration file properly,
but is there anyway to verify that? Should I do also something else like
move the PHP script into a specified directory? How can I verify that
Apache is properly installed?

Regards, Sami

-
Sami Maisniemi  tel:+358 9 4580 854  
   Helsinki University of Technologymobile: +358 40 7499 088
 Department of Electrical and   email:  [EMAIL PROTECTED]
  Communication Engineering [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] Howto return multidimensional arrays from a PHP module

2001-02-05 Thread Thomas Wentzel

Hi all,

I've been using array_init and add_assoc_xxx to return an array from
within my PHP module... But how would I go about returning the following
stucture

Array (Array (Name, Type, Size))

tia
  T.

-- 
PHP General Mailing List (http://www.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] Howto return multidimensional arrays from a PHP module

2001-02-05 Thread Soeren Staun-Pedersen

On Mon, 5 Feb 2001, Thomas Wentzel wrote:

> Hi all,
> 
> I've been using array_init and add_assoc_xxx to return an array from
> within my PHP module... But how would I go about returning the following
> stucture

$a = array(1,2,3,4);
$b = arrar("foo"=>1,"bar"=>2);

return $a;

would work, as well as 

return $b;



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




RE: [PHP] Including Virtual Paths

2001-02-05 Thread PHPBeginner.com

You can then create your own own. ...  Just declare a variable called
$DOCUMENT_ROOT = 'c:\the\path\to\your\web\tree\' somewhere in configuartion
files of your website, or even as include_path in PHP.ini



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com



-Original Message-
From: James Crowley [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 2:48 AM
To: PHPBeginner.com
Subject: RE: [PHP] Including Virtual Paths


Thanks very much! However, I've just looked that up in the help, and
$DOCUMENT_ROOT only works for Apache...I'm running IIS 5 :-(

Regards,

- James

Editor, VB Web
==
Web   - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ#  - 60612011
==

-Original Message-
From: PHPBeginner.com [mailto:[EMAIL PROTECTED]]
Sent: 03 February 2001 18:55
To: James Crowley; [EMAIL PROTECTED]
Subject: RE: [PHP] Including Virtual Paths


it's very simple :

include("$DOCUMENT_ROOT/bin/header.asp");

(we are talking about the web root's full path, right ?)


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com



-Original Message-
From: James Crowley [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 04, 2001 3:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Including Virtual Paths


Hi,
When using ASP, I frequently reference virtual path such as

However, the PHP include() function doesn't seem to support this... What
can I do? I don't want to have to change the reference to reflect its
position in the site by adding ../ for every script.

Regards,

- James

Editor, VB Web
==
Web   - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ#  - 60612011
==

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 02 February 2001 13:02
To: [EMAIL PROTECTED]
Subject: php-general Digest 2 Feb 2001 13:01:55 - Issue 488



php-general Digest 2 Feb 2001 13:01:55 - Issue 488

Topics (messages 37764 through 37827):

Re: What version of Linux?
37764 by: Michael Hall

Re: encode string with spaces
37765 by: David Robley
37768 by: David Robley

Win2000 TCP/IP failure
37766 by: Toby Butzon
37827 by: Alain Fontaine

Re: C++ integration with PHP
37767 by: Toby Butzon

Re: contracting & consulting (was "[PHP] Pricing for PHP pr ogramming???")
37769 by: Dave VanAuken
37770 by: Ben Peter
37771 by: Maxim Maletsky
37775 by: Steve Werby
37826 by: Robin Vickery

Re: Java variables - PHP varialbles
37772 by: Nold, Mark

Php Database
37773 by: Vinicius Garcia Mommensohn

Re: Why?? SPRINTF("SELECT sequence,prodnum,childdesc);
37774 by: Steve Werby

Re: PHP a lightweight language?
37776 by: Nold, Mark
37783 by: John Hinsley
37784 by: Josh G

How do I get last inserted ID?
3 by: Sandeep Hundal
37778 by: Maxim Maletsky
37779 by: David Robley
37821 by: Andrew Golovin

Re: Pricing for PHP programming???
37780 by: Steve Werby
37781 by: Josh G
37786 by: Josh G
37797 by: Angus Mann

Re:What version of Linux?
37782 by: John Hinsley

Re: Message status - undeliverable
37785 by: Josh G

OT mod_rewrite says goodbye to POST vars (but interesting)
37787 by: Matt Friedman

Re: 404 error checker
37788 by: Louis LeBlanc

Automatic incoming mail notification
37789 by: Ankur Verma
37790 by: Josh G
37791 by: David Robley
37792 by: Ankur Verma
37793 by: Steve Werby
37802 by: Nicolas Windpassinger - Sun

how do I subscribe?
37794 by: David VanHorn
37795 by: Maxim Maletsky

Re: Variables within functions, out?
37796 by: Steve Werby

configuring headers in mail() ...
37798 by: Maxim Maletsky

PGP
37799 by: Martin Thoma
37801 by: Adrian Teasdale

Mysql Question
37800 by: Giancarlo

Re: Recommended Job Posting sites? Need to hire someone w/ PHP exp.
37803 by: Boaz Yahav

Apache won't start after installing php4
37804 by: Frank Passek

Zend IDE
37805 by: Alain Fontaine
37811 by: Andi Gutmans
37813 by: Alain Fontaine
37816 by: Zeev Suraski
37817 by: Alain Fontaine

Re: reload help!!!
37806 by: Wen Ni Leong

passing parameters
37807 by: Stinie Steinbach
37808 by: Alain Fontaine

Could PHP connect to Perl Program
37809 by: kn4279

Re: [Q] Domxml: unlink() method?
37810 by: Peter Sabaini

JavaScript, PHP and HTML
37812 by: Augusto Cesar Castoldi
37815 by: Juan
37819 by: kaab kaoutar

Re: Tab character
37814 by: Martin A. Marques

Re: Include " quotes inside textbox
37818 by: Christian Reinig

RE: [PHP] db paging with MS Sql

2001-02-05 Thread PHPBeginner.com

It is something like:

SELECT * FROM table LIMIT 0,10

and then on the next page the limit becomes 10,20 and so on 

A code ? ... hm ... not sure ...  but if you get any software that does this
kind of list it could give a more precise idea on what I am talking here
about...



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com


-Original Message-
From: Scott Parks [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 2:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] db paging with MS Sql


Has anyone seen a good lession or code example on paging records from MS Sql
7?  Say I have 300 records and
want to break them down to 10 per page using [previous | next ] and a list
of page numbers at the bottom.

tia


--
PHP General Mailing List (http://www.php.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] 2 questions

2001-02-05 Thread PHPBeginner.com

Well, Cobalt Raq4 is not an easy-to-compile-on Server ...

and 1 single IP when you get a dedicated server? no ...

Get something else ... for example I know that InsideCrew.net give you 15 IP
addresses for $125-$200 / month ...  And they will also let you choose the
OS ...



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com


-Original Message-
From: Adrian Teasdale [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 2:48 AM
To: PHP List Post
Subject: [PHP] 2 questions


Hi I have a couple of questions.  One about hosting and the other about IP
addresses.  The first on the IP's.

I have been speaking to a company that I am looking at getting a dedicated
server from.  They ONLY do one IP address per server and use name-based
hosting.  I have asked for dedicated IP's, but their answer has been that
all hosting companies are going to have to go to name-based hosting now.
What is everyone's feeling on this?  Years ago, the company I was with used
name-based and I remember that the search engines did not like this

On to hosting, the above server is a Cobalt Raq 4i.  Does anyone else on the
list use one of these and what do you think? I want to make sure that it's
easy enough to compile latest php and mysql whenever I want to

Thanks for any advice

Ade


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



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




RE: [PHP] Replacing A Word in HTML page

2001-02-05 Thread PHPBeginner.com

a Replacement using Case-Insensitive Regular Expression.

read it here : www.phph.net/eregi-replace



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: phpLover [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 3:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Replacing A Word in HTML page


Thanks for your answerm but what does eregi_replace() do?

Regards


"Steve Werby" <[EMAIL PROTECTED]> wrote in message
045801c08e7f$3c4f61c0$6401a8c0@mobile">news:045801c08e7f$3c4f61c0$6401a8c0@mobile...
> "phpLover" <[EMAIL PROTECTED]> wrote:
> > I want to read an HTML page from another site and replace certain
> characters
> > with capital letters and show them in another dynamically generated web
> page
> > on my site. I know this is possible in Perl, but can this be done in
PHP?
> If
> > yes, then how?
>
> It's definitely possible in PHP.  I've done it.  You probably want to use
a
> combination of fopen() and other file handling functions, eregi_replace()
> and str_replace().
>
> --
> Steve Werby
> COO
> 24-7 Computer Services, LLC
> Tel: 804.817.2470
> http://www.247computing.com/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



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



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




RE: [PHP] Email Selected Data

2001-02-05 Thread PHPBeginner.com

you need to have the $content line with (.) operator:

for ($i=0; $i<$num_rows; $i++)
{
  mysql_data_seek($SQLResult, $i);
  $array=mysql_fetch_array($SQLResult);
  $content .= printf("First Name: %s\nLast Name: %s\n",$array['FirstName'],
$array['LastName']);
}
mail($MAIL, "Order", $content , "From:[EMAIL PROTECTED]");



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 5:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Email Selected Data


Hi,

I am selecting data using the below and trying to insert it into a mail, it
does everything except send the data selected, anyone have an idea?

$SQLStatement = "SELECT * FROM Orders Where Status='N' Order by OrderID";
$SQLConn = mysql_connect($host, $user, $pass);
$db = mysql_select_db($dbase, $SQLConn);
$SQLResult = mysql_query($SQLStatement);
$num_rows=mysql_num_rows($SQLResult);

for ($i=0; $i<$num_rows; $i++)
 {
mysql_data_seek($SQLResult, $i);
  $array=mysql_fetch_array($SQLResult);
$content=printf("First Name: %s\nLast Name: %s\n",$array['FirstName'],
$array['LastName']);
}
mail($MAIL, "Order", $content , "From:[EMAIL PROTECTED]");

I know it is working to a degree because it prints out the data on the
resulting page and sends a blank email, it just doesn`t put it in the email.

TIA
Ade

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



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




RE: [PHP] upload

2001-02-05 Thread PHPBeginner.com

look at http://www.php.net/manual/en/features.file-upload.php
there are some introduction like example on Handling of Uploaded Files...



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: DragoslaV ( Paul ) [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 8:37 AM
To: [EMAIL PROTECTED]
Subject: [PHP] upload
Importance: High


Hello,

How can i upload a file from a client to server ? I tryed copy() but it
doesint works.

Paul



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




RE: [PHP] mail

2001-02-05 Thread PHPBeginner.com

Have you checked sendmail path in php.ini ?



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com



-Original Message-
From: Deependra B. Tandukar [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mail


Greetings!

I made one script with mail <"email address">. It works in my home computer
(Linux and php 4) and not working in my web server (Linux and php 4). What
can be the reason?

Looking forward to hearing from you.

DT


-- 
PHP General Mailing List (http://www.php.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] manage number of rows displayed

2001-02-05 Thread PHPBeginner.com

You don't really need a LIMIT statement in here. There are still 20 Records
to be shown on the page, right? The problem you have is the layout ...

then juts create (in your loop) the table in such a way that each 5 records
(or better say ~Num/4)  will output some new thing to compose your table...
or, make it be 4 different Arrays and loop them in a way to create an
adeguate table ...

SQL is not really helpful in here ...



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 6:20 AM
To: Milan Mlynarcik
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] manage number of rows displayed


No sure if i get it, very inexperience user here I am. Baiscally if the
number of records returns is 20 records, in stead of display all 20 recodrs
in one column in a page, I would like to display that as 4 columns and each
columns has 5 recodrs displayed, how can I use limit statement to do that?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Milan Mlynarcik <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>
Sent: Monday, February 05, 2001 2:03 AM
Subject: Re: [PHP] manage number of rows displayed


> You can use LIMIT statment in your query
>
> Milan Mlynarcik
> - Original Message -
> From: "Jacky@lilst" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 05, 2001 9:23 PM
> Subject: [PHP] manage number of rows displayed
>
>
> Hi,
> After I run a query, how do I set the number of rows returned to display
as
> 3 or 4 columns in a page instead of one column as usual?
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set for
> yourself"
>
>
>


--
PHP General Mailing List (http://www.php.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] Possible bug in pg_connect (4.0.3.pl1) ?

2001-02-05 Thread Evelio Martinez


Hi!

under 4.0.3pl1

Why this sentence works ?

 $conexion2 = pg_Connect("host=$servidor user=$usuario password=$pass
dbname=$bd port=$puerto");

and this one does not ?

 $conexion2 = pg_Connect("host=$servidor port=$puerto user=$usuario
password=$pass dbname=$bd");


It issues the following message
  Warning: 1 is not a valid PostgreSQL link resource



--
Evelio Martínez
Testanet. Dept. desarrollo software.
Av. Reino de Valencia, 15 - 5
46005 Valencia (Spain)
Tel: +34 96 395 90 00
Fax: +34 96 316 23 19





[PHP] RE: php-general Digest 2 Feb 2001 00:51:13 -0000 Issue 487

2001-02-05 Thread Tim Ward

If you want to do something like this you're better off with a while loop
$x = 1;
while($x < 10)
{   // do stuff with x
if (whatever) continue;
$x++;
};

incremeting a while loop instead of for seems daft until you want to
manipulate the incremented value within the loop.

Tim Ward
Senior Systems Engineer

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

>  -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: 02 February 2001 00:51
> To:   [EMAIL PROTECTED]
> Subject:  php-general Digest 2 Feb 2001 00:51:13 - Issue 487
> 
>  << Message: RE: Directory Listing with PHP >>  << Message: 
> NEWBIE QUESTION >>  << Message: Re: [PHP] NEWBIE QUESTION >>  
> << Message: PHP and report generation >>  << Message: RE: 
> [PHP] Symbolic link fails when User Authentication comes in 
> >>  << Message: Performance hit with certain apache configs? 
> >>  << Message: Setting The Font In SENDMAIL >>  << Message: 
> Re: [PHP] Is there a 'redo' loop control function? >>  << 
> Message: Email Attachment >>  << Message: details on imap 
> functions. >>  << Message: Re: [PHP] details on imap 
> functions. >>  << Message: Re: [PHP] details on imap 
> functions. >>  << Message: rephrasing: start session in 
> frame-index, continue in pages >>  << Message: Variables 
> within functions, out? >>  << Message: Closing Objects 
> "Cleaning Up" >>  << Message: Re: [PHP] Closing Objects 
> "Cleaning Up" >>  << Message: Re: [PHP] Closing Objects 
> "Cleaning Up" >>  << Message: Why?? SPRINTF("SELECT 
> sequence,prodnum,childdesc); >> 

-- 
PHP General Mailing List (http://www.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] Howto return multidimensional arrays from a PHP module

2001-02-05 Thread Thomas Wentzel

Thomas Wentzel wrote:
> 
> Hi Søren,
> 
> Thank you very much for your answer, but I'm afraid that it isn't that
> usefull to me... I don't have the luxury of using PHP as my PHP module
> is written in C!!
> 
> T.
> 
> Soeren Staun-Pedersen wrote:
> >
> > On Mon, 5 Feb 2001, Thomas Wentzel wrote:
> >
> > > Hi all,
> > >
> > > I've been using array_init and add_assoc_xxx to return an array from
> > > within my PHP module... But how would I go about returning the following
> > > stucture
> >
> > $a = array(1,2,3,4);
> > $b = arrar("foo"=>1,"bar"=>2);
> >
> > return $a;
> >
> > would work, as well as
> >
> > return $b;

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




[PHP] RE: Variables within functions, out?

2001-02-05 Thread Tim Ward



> -Original Message-
> From: James, Yz [mailto:[EMAIL PROTECTED]]
> Sent: 01 February 2001 22:22
> To: [EMAIL PROTECTED]
> Subject: Variables within functions, out?
> 
> 
> Hey guys.  Can I firstly say, thanks to all of you who helped 
> me out with my
> last question about importing MS Access databases into 
> MySQL...  It helped
> tons!
> 
> However, I have another question.
> 
> Firstly, I've strayed away from writing many of my own 
> functions, because
> they give me the fear.  But the code on the pages I am 
> creating has forced
> me to wake up...  I really sould think about cutting back on code.
> 
> SO, anyway, to cut to the chase, my question is this:  If I write a
> function, which performs checks and assigns variable based on 
> these checks,
> how do I get the assigned variables from within the function? 
>  For example
> (this is more than likely VERY wrong), something like this:
> 
> global.inc:
> 
>  
> function CheckBirthday() {
>   global $year,$month,$day;
> 
> if (($day) && ($month) && ($year)) {
> if (checkdate($day,$month,$year) {
> $birthday = "$year/$month/$day";
> } else {
> $birthday = "Invalid";
> }
> }
> }
> 
> ?>
> 

the correct use of a function would be ...
 function CheckBirthday($year,$month,$day) {
 
 if (($day) && ($month) && ($year)) {
 if (checkdate($day,$month,$year) {
 $birthday = "$year/$month/$day";
 } else {
 $birthday = "Invalid";
 };
 };
 return $birthday;
 }

this function can now be used by a calling program without the callong
program needing to know anything about it's internal working.

> File that would update / insert information to a MySQL database:
> 
>  
> // Connection details here
> 
> require("global.inc");
> 
> CheckBirthday();
> 
> $sql = "UPDATE MyTable
> SET
> birthday = \"$birthday\"
> WHERE id = \"$id\"
> ";
> 
> // etc
> 
> ?>
> 
> Even when I KNOW that I have included correct values, the 
> $birthday variable
> never shows up outside the function.  It's probably something 
> simple I'm
> missing, as in most cases ;)
> 
> Thanks for your patience,
> 
> James.
> 
> 
>

Tim Ward
Senior Systems Engineer

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

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




Re: [PHP] Howto return multidimensional arrays from a PHP module

2001-02-05 Thread Phil Driscoll

>Thomas Wentzel wrote:
>>
>> Hi Sren,
>>
>> Thank you very much for your answer, but I'm afraid that it isn't that
>> usefull to me... I don't have the luxury of using PHP as my PHP module
>> is written in C!!

Repost your question to the php-dev list. That's where the people who know
this stuff hang out. First, you might like to check the php dev archive as I
think I remember this question coming up a number of times in the past.

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org


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




[PHP] Breaking up a line and using the text?

2001-02-05 Thread Sam

Hi all, 

I was wondering if it is possible to break up a line of text from a
database, and split it into separate links, 

eg 

Original line
Hi my name is Sam Rose

Which can then be broken down into
Hi
My
Names
is
Sam Rose

Thanks in advance
Sam

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




[PHP] job search/posting software

2001-02-05 Thread Chuck Barnett

Does anyone know of any good software for creating a job posting/search
service?


Thanks,
Chuck



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




[PHP] Character translation in IE

2001-02-05 Thread Patrick Anderson

Hi,

I am using php, mysql and apache on a linuxserver to create some user
home pages,
and I have a problem with names including special chars.
If I retrieve an url including for example

/photos/BendsøeMartin97.jpg

everything is ok using netscape, but it doesn't display correct
using IE.

Apache error log reports: File does not exist:
/photos/BendsøeMartin97.jpg
Using netscape everything is ok and Apache access logs: GET
/photos/Bends%F8eMartin97.jpg


Is there a function to convert the special characters. I checked the
manual, but I only
found translation tables to html entities.

Thanks for any help,

Patrick.

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

2001-02-05 Thread Thomas Brusa

hello
I'm trying to parse and change a loaded xml-file using the DOM module.
I need to remove certain nodes and append new ones.
Is it really true that you can't remove a childnode 
while working with dom. 
in perl this would look somehow like this:

$doc1->removeChild($tmpele);
$tmpele->setOwnerDocument($doc2);
$somedoc2node->appendChild($tmpele);

thanx
tom

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




[PHP] FDF Toolkit uncompression error

2001-02-05 Thread Kurt R. Hoehn

Hello,

I've downloaded the FDF toolkit from adobe (fdftk4_05_C.tar.Z) and it
doesn't uncompress.  I've noticed that other people are using it.  Has
anyone else experianced this same problem and if so what was your work
around.

Thank You
Kurt



-- 
PHP General Mailing List (http://www.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] Character translation in IE

2001-02-05 Thread Juan

use the following :
 string rawurlencode (string str)

It translate any non standard URL ascii char into there %XX equivalent.


PA> Hi,

PA> I am using php, mysql and apache on a linuxserver to create some user
PA> home pages,
PA> and I have a problem with names including special chars.
PA> If I retrieve an url including for example

PA> /photos/BendsøeMartin97.jpg

PA> everything is ok using netscape, but it doesn't display correct
PA> using IE.

PA> Apache error log reports: File does not exist:
PA> /photos/BendsøeMartin97.jpg
PA> Using netscape everything is ok and Apache access logs: GET
PA> /photos/Bends%F8eMartin97.jpg


PA> Is there a function to convert the special characters. I checked the
PA> manual, but I only
PA> found translation tables to html entities.

PA> Thanks for any help,

PA> Patrick.



___
Massuelles Jean-Baptiste([EMAIL PROTECTED])
Société A Comme...
Tel : 03 80 700 702



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




[PHP] FDF Toolkit uncompression error

2001-02-05 Thread Kurt R. Hoehn

Hello,

I've downloaded the FDF toolkit from adobe (fdftk4_05_C.tar.Z) and it
doesn't uncompress.  I've noticed that other people are using it.  Has
anyone else experianced this same problem and if so what was your work
around.

Thank You
Kurt







-- 
PHP General Mailing List (http://www.php.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/mnogosearch README php_mnogo.c php_mnogo.h test.php

2001-02-05 Thread Sergey Kartashoff

gluke   Mon Feb  5 05:12:15 2001 EDT

  Modified files:  
/php4/ext/mnogosearch   README php_mnogo.c php_mnogo.h test.php 
  Log:
  Added new Udm_Add_Search_Limit mnoGoSearch extension function.
  Some bugfixes and example update.
  @- Added new Udm_Add_Search_Limit mnoGoSearch extension function.
  @  Some bugfixes and example update. (gluke)
  
  
Index: php4/ext/mnogosearch/README
diff -u php4/ext/mnogosearch/README:1.4 php4/ext/mnogosearch/README:1.5
--- php4/ext/mnogosearch/README:1.4 Mon Feb  5 00:42:53 2001
+++ php4/ext/mnogosearch/README Mon Feb  5 05:12:15 2001
@@ -1,8 +1,8 @@
 $Source: /local/repository/php4/ext/mnogosearch/README,v $
-$Id: README,v 1.4 2001/02/05 08:42:53 gluke Exp $
+$Id: README,v 1.5 2001/02/05 13:12:15 gluke Exp $
 
 mnoGoSearch extension module for PHP4.
-Basic mnoGoSearch function implementation.
+mnoGoSearch function implementation.
 
 If used with mysql you should not use bundled mysql library 
 in the php distribution. You should use native mysql 
@@ -12,7 +12,7 @@
   TODO
   
 
-1. Implement more mnoGoSearch functions.
+1. Implement all mnoGoSearch functions.
 
 2. Fix  config.m4 to detect whether mnoGoSearch is actually installed.
 Currently there is no any checking. ./configure just trust that mnoGoSearch
Index: php4/ext/mnogosearch/php_mnogo.c
diff -u php4/ext/mnogosearch/php_mnogo.c:1.6 php4/ext/mnogosearch/php_mnogo.c:1.7
--- php4/ext/mnogosearch/php_mnogo.c:1.6Mon Feb  5 00:42:53 2001
+++ php4/ext/mnogosearch/php_mnogo.cMon Feb  5 05:12:15 2001
@@ -1,5 +1,5 @@
 /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.6 2001/02/05 08:42:53 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.7 2001/02/05 13:12:15 gluke Exp $ */
 
 /*
+--+
@@ -51,6 +51,12 @@
 #define UDM_PARAM_STOPTABLE7
 #define UDM_PARAM_STOPFILE 8
 
+/* udm_add_search_limit constants */
+#define UDM_LIMIT_URL  1
+#define UDM_LIMIT_TAG  2
+#define UDM_LIMIT_LANG 3
+#define UDM_LIMIT_CAT  4
+
 #define UDM_TRACK_ENABLED  1
 #define UDM_TRACK_DISABLED 0
 
@@ -66,6 +72,7 @@
 function_entry mnogosearch_functions[] = {
PHP_FE(udm_alloc_agent, NULL)
PHP_FE(udm_set_agent_param, NULL)
+   PHP_FE(udm_add_search_limit,NULL)
PHP_FE(udm_free_agent,  NULL)
 
PHP_FE(udm_errno,   NULL)
@@ -133,6 +140,12 @@
REGISTER_LONG_CONSTANT("UDM_PARAM_STOPTABLE",UDM_PARAM_STOPTABLE,CONST_CS | 
CONST_PERSISTENT);  
REGISTER_LONG_CONSTANT("UDM_PARAM_STOPFILE",UDM_PARAM_STOPFILE,CONST_CS | 
CONST_PERSISTENT);

+   /* udm_add_search_limit constants */
+   REGISTER_LONG_CONSTANT("UDM_LIMIT_CAT",UDM_LIMIT_CAT,CONST_CS | 
+CONST_PERSISTENT);
+   REGISTER_LONG_CONSTANT("UDM_LIMIT_URL",UDM_LIMIT_URL,CONST_CS | 
+CONST_PERSISTENT);
+   REGISTER_LONG_CONSTANT("UDM_LIMIT_TAG",UDM_LIMIT_TAG,CONST_CS | 
+CONST_PERSISTENT);  
+   REGISTER_LONG_CONSTANT("UDM_LIMIT_LANG",UDM_LIMIT_LANG,CONST_CS | 
+CONST_PERSISTENT);
+   
/* udm_get_res_param constants */
REGISTER_LONG_CONSTANT("UDM_PARAM_FOUND",UDM_PARAM_FOUND,CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_PARAM_NUM_ROWS",UDM_PARAM_NUM_ROWS,CONST_CS | 
CONST_PERSISTENT);
@@ -353,8 +366,67 @@

break;

+   default:
+   php_error(E_WARNING,"Udm_Set_Agent_Param: Unknown agent 
+session parameter");
+   RETURN_FALSE;
+   break;
+   }
+   RETURN_TRUE;
+}
+/* }}} */
+
+
+/* {{{ proto int udm_add_search_limit(int agent, int var, string val)
+   Add mnoGoSearch search restrictions */
+DLEXPORT PHP_FUNCTION(udm_add_search_limit)
+{
+   pval **yyagent, **yyvar, **yyval;
+   char *val;
+   int var;
+   UDM_AGENT * Agent;
+
+   switch(ZEND_NUM_ARGS()){
+   
+   case 3: 
+   if(zend_get_parameters_ex(3,&yyagent,&yyvar,&yyval)==FAILURE){
+   RETURN_FALSE;
+   }
+   convert_to_long_ex(yyvar);
+   convert_to_string_ex(yyval);
+   ZEND_FETCH_RESOURCE(Agent, UDM_AGENT *, yyagent, -1, 
+"mnoGoSearch-agent", le_link);
+   var = (*yyvar)->value.lval;
+   val = (*yyval)->value.str.val;
+   
+   break;
+   
+   default:
+   WRONG_PARAM_COUNT;
+   break;
+   }
+   
+   switch(var){
+   case UDM_LIMIT_URL: 
+   UdmAddURLLimit(Agent->Conf,val);
+   
+   break;
+   
+   case UDM

Re: [PHP] Breaking up a line and using the text?

2001-02-05 Thread jaskirat

Hi,
Read about ereg_replace() function in PHP.
some thing like 
$string = ereg_replace(" ","\n",$string)

should do the trick for you.

HTH
Jaski

At 01:00 PM 2/5/01 +, Sam wrote:
>Hi all, 
>
>I was wondering if it is possible to break up a line of text from a
>database, and split it into separate links, 
>
>eg 
>
>Original line
>   Hi my name is Sam Rose
>
>Which can then be broken down into
>   Hi
>   My
>   Names
>   is
>   Sam Rose
>
>Thanks in advance
>Sam
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

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




[PHP] fonts in php generated images

2001-02-05 Thread Scott Poarch

Does anyone have any leads on how to get your own fonts into gifs created by
PHP? The manual isn't much help (at least to me), and info seems scarce.
I've got a fairly decent postcard app up at champfactory.com, but I can't
get it to use the eurostyle font my client is asking for.

Any help would be greatly appreciated.
- - - - - - - - - - - - - -
Scott Poarch
GlobalHost.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] XML-DOM

2001-02-05 Thread Peter Sabaini

On Mon, Feb 05, 2001 at 02:06:13PM +0100, Thomas Brusa wrote:
> hello
> I'm trying to parse and change a loaded xml-file using the DOM module.
> I need to remove certain nodes and append new ones.
> Is it really true that you can't remove a childnode 
> while working with dom. 
> in perl this would look somehow like this:
> 
>   $doc1->removeChild($tmpele);
>   $tmpele->setOwnerDocument($doc2);
>   $somedoc2node->appendChild($tmpele);
> 
> thanx
> tom

seems to be. i asked the same question some days ago and have no
direct solution so far. 

what i did to circumvent this is doing a xml->xml transformation (with
sablotron), copying everything but the node i want to delete.

the xsl looks like:

 -- snip --

http://www.w3.org/1999/XSL/Transform"> 










 -- /snip --

everything but nodes with id of %deleteme% gets copied. this of course
ain't very pretty but works...

ru,
peter.
-- 
Peter Sabaini [EMAIL PROTECTED]
NETCONOMY Onlineberatungs- und -management Gmbh & Co KG
www.netconomy.net - Schoenaugasse 64, 8010 Graz
Tel. +43-(0)316 875-3081.



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




[PHP] Is this a bug ?

2001-02-05 Thread Sébastien ROZIER

Hello,
when I use this syntax:
champs[0] is a string, which is the name of an HTML form variable.

class test
   {
   var champs;

   function verif()
   {
   for ($i = 0; $i < count($this->champs) ; $i++)
   {
   global $$this->champs[$i][0];
   $tmp = $this->champs[$i][0];
   $this->champs[$i][1] = $$tmp;
   }
   }
   }

Everything works properly, but when I use this :
class test
   {
   var champs;

   function verif()
   {
   for ($i = 0; $i < count($this->champs) ; $i++)
   {
global $$this->champs[$i][0];
$this->champs[$i][1] = $$this->champs[$i][0];
   }
   }
   }

It doesn't work ($this->champs[$i][1] is empty).
My problem is : why is the global instruction working whereas the newt 
line isn't with this formulation (I have to use a temporary variable 
which I then can reference).
Thanx for any help, and apologize my poor English.
S. ROZIER


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




[PHP] Java Servlet Support

2001-02-05 Thread Shawn J. Wallace

Can anyone tell me exactly what using --with-servlet[=DIR] will give me?

I mean, does that compile in servlet support?  Are there PHP functions for 
executing servlets?  What's the deal exactly...

Shawn

---
Shawn J. Wallace ([EMAIL PROTECTED])
Justweb Inc. - http://www.justweb.com
(519)652-6599 or (800)343-9312


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




[PHP] Which Regex library?

2001-02-05 Thread Shawn J. Wallace

I'm getting some strange things happening using regex's where it will skip 
certain matches for no apparant reason.

I know the regex itself is fine, it's too simple to screw up...  So I 
noticed that there is a compile option --with-regex=TYPE

Does anyone know exactly what the differences are between the php, system, 
and apache regex libraries?  Which should I use to fix this strangeness?

I'm recompiling right now with --with-regex=apache to see if that changes 
anything...  I just don't want to break any other programs.

Shawn

---
Shawn J. Wallace ([EMAIL PROTECTED])
Justweb Inc. - http://www.justweb.com
(519)652-6599 or (800)343-9312


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

2001-02-05 Thread johnny p.

What is the expression that seems to be failing?  give an example,
perhaps it's your code.

johnny p.

> -Original Message-
> From: Shawn J. Wallace [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 05, 2001 8:09 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Which Regex library?
>
>
> I'm getting some strange things happening using regex's where
> it will skip
> certain matches for no apparant reason.
>
> I know the regex itself is fine, it's too simple to screw up...  So I
> noticed that there is a compile option --with-regex=TYPE
>
> Does anyone know exactly what the differences are between the
> php, system,
> and apache regex libraries?  Which should I use to fix this
> strangeness?
>
> I'm recompiling right now with --with-regex=apache to see if
> that changes
> anything...  I just don't want to break any other programs.
>
> Shawn
>
> ---
> Shawn J. Wallace ([EMAIL PROTECTED])
> Justweb Inc. - http://www.justweb.com
> (519)652-6599 or (800)343-9312
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
>


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




[PHP] Session-variables

2001-02-05 Thread spider

Is it ok to mail questions to this list? If so;

Is there something similar like the "session variables" of ASP in PHP,
or do one have
to use (client-side) cookies instead?

/thanks/me


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




RE: [PHP] Which Regex library?

2001-02-05 Thread Shawn J. Wallace

Ok, this is from memory, but.. I'm trying to pull the IP addresses of mail 
relays out of an email - and they are of the form [xxx.xxx.xxx.xxx], so I 
do something like:

ereg('\[(0-9\.)*]', $email, $res)

It finds some but not all of them in the email.  What I really do is put 
that in a while statement and replace each found ip with a marker so I can 
repeat the regex again and again.
---
Shawn J. Wallace ([EMAIL PROTECTED])
Justweb Inc. - http://www.justweb.com
(519)652-6599 or (800)343-9312


-- 
PHP General Mailing List (http://www.php.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/mnogosearch config.m4

2001-02-05 Thread Sergey Kartashoff

gluke   Mon Feb  5 06:00:35 2001 EDT

  Modified files:  
/php4/ext/mnogosearch   config.m4 
  Log:
  Fixed default search path.
  @- Fixed default search path. (gluke)
  
  
Index: php4/ext/mnogosearch/config.m4
diff -u php4/ext/mnogosearch/config.m4:1.2 php4/ext/mnogosearch/config.m4:1.3
--- php4/ext/mnogosearch/config.m4:1.2  Wed Jan 31 06:04:29 2001
+++ php4/ext/mnogosearch/config.m4  Mon Feb  5 06:00:35 2001
@@ -1,16 +1,16 @@
 dnl $Source: /local/repository/php4/ext/mnogosearch/config.m4,v $
-dnl $Id: config.m4,v 1.2 2001/01/31 14:04:29 gluke Exp $
+dnl $Id: config.m4,v 1.3 2001/02/05 14:00:35 gluke Exp $
 
 PHP_ARG_WITH(mnogosearch,for mnoGoSearch support,
 [  --with-mnogosearch[=DIR]   Include mnoGoSearch support.  DIR is the 
mnoGoSearch base
-  install directory, defaults to /usr/local/udmsearch.])
+  install directory, defaults to /usr/local/mnogosearch.])
 
   if test "$PHP_MNOGOSEARCH" != "no"; then
   
 if test "$PHP_MNOGOSEARCH" = "yes"; then
-  MNOGOSEARCH_BINDIR=/usr/local/udmsearch/bin
-  MNOGOSEARCH_INCDIR=/usr/local/udmsearch/include
-  MNOGOSEARCH_LIBDIR=/usr/local/udmsearch/lib
+  MNOGOSEARCH_BINDIR=/usr/local/mnogosearch/bin
+  MNOGOSEARCH_INCDIR=/usr/local/mnogosearch/include
+  MNOGOSEARCH_LIBDIR=/usr/local/mnogosearch/lib
 else
   MNOGOSEARCH_BINDIR=$PHP_MNOGOSEARCH/bin
   MNOGOSEARCH_INCDIR=$PHP_MNOGOSEARCH/include



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

2001-02-05 Thread Andrei Zmievski

andrei  Mon Feb  5 06:27:10 2001 EDT

  Modified files:  
/php4   TODO 
  Log:
  Whitespace.
  
  
Index: php4/TODO
diff -u php4/TODO:1.111 php4/TODO:1.112
--- php4/TODO:1.111 Sun Feb  4 01:20:31 2001
+++ php4/TODO   Mon Feb  5 06:27:10 2001
@@ -14,10 +14,10 @@
 
 global
 --
-   * when used in standalone (skell-script like) mode don't urldecode
- arguments passed to php. right now it's not possible to say
-   /usr/local/bin/php somescript.php dog+cat.txt
- as "dog+cat.txt" will arrive in php as "dog cat.txt". 
+* when used in standalone (skell-script like) mode don't urldecode
+  arguments passed to php. right now it's not possible to say
+/usr/local/bin/php somescript.php dog+cat.txt
+  as "dog+cat.txt" will arrive in php as "dog cat.txt". 
 * make everything on the language-level independent of your locale setings.
 * always build the standalone executable as well as the chosen SAPI 
   target.
@@ -52,16 +52,16 @@
 -
 * add remarks in the documentation which functions are not implemented on win32.
 * add remarks in the documentation which functions are not binary-safe.
-   * improve documentation for the sablotron extension
-   * update curl documentation
-   * write documentation for the bzip2 extension
-   * write documentation for the zziplib extension
+* improve documentation for the sablotron extension
+* update curl documentation
+* write documentation for the bzip2 extension
+* write documentation for the zziplib extension
 
 ext/curl
 
-   * Use the cURL write handler to save data for use when returning data or 
outputting
- data.
-   * Have a warning scheme for when people use unsupported features.
+* Use the cURL write handler to save data for use when returning data or 
+outputting
+  data.
+* Have a warning scheme for when people use unsupported features.
 
 ext/dav
 
@@ -71,8 +71,8 @@
 
 * all OCIFetch*() functions should return 0 for no more data and false on error.
 * have a flag that trims trailing spaces from CHAR fields on retrieval.
-   * make allow_call_time_pass_reference=Off working.
-   * for additional todo information, see oci8.c, in ext/oci8
+* make allow_call_time_pass_reference=Off working.
+* for additional todo information, see oci8.c, in ext/oci8
 
 ext/pcre
 
@@ -80,9 +80,9 @@
 
 ext/sablot
 --
-   * Re-write the error handling and reporting interface
-   * Cleanup the underlying code a bit
-   * Add proper support for the message handlers
+* Re-write the error handling and reporting interface
+* Cleanup the underlying code a bit
+* Add proper support for the message handlers
 
 ext/session
 ---
@@ -93,8 +93,8 @@
 
 ext/sockets
 ---
-   * Make the extension work on windows
-   * Make the extension work with Solaris and the Sun GCC
+* Make the extension work on windows
+* Make the extension work with Solaris and the Sun GCC
 
 ext/standard
 
@@ -117,7 +117,7 @@
 
 ext/zziplib
 
-   * more fully support the zziplib api
+* more fully support the zziplib api
 
 ext/wddx
 



-- 
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] HTTP post requests

2001-02-05 Thread Matthew Brealey

I need to do an HTTP post from a PHP script; I want to set username=.

What is the correct way to do this in PHP?


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




[PHP] How to save something in a Java Applet as an IMAGE file?

2001-02-05 Thread Winnie

hi,

how can i do this? i have a java applet on my site which allows users to
create their own drawings. i want to provide a "Email this to me" option,
which will save the applet drawing and email it to the user. is there any
way i can achieve this?

thanks!
winnie


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.230 / Virus Database: 111 - Release Date: 25-Jan-01



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

2001-02-05 Thread Hardy Merrill

Look at
   http://www.php.net/manual/en/html/ref.session.html

HTH.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com

spider [[EMAIL PROTECTED]] wrote:
> Is it ok to mail questions to this list? If so;
> 
> Is there something similar like the "session variables" of ASP in PHP,
> or do one have
> to use (client-side) cookies instead?
> 
> /thanks/me
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.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: One IP per Server / Cobalt RaQ4 [was 2 questions]

2001-02-05 Thread Steve Werby

"PHPBeginner.com" <[EMAIL PROTECTED]> wrote:
> Well, Cobalt Raq4 is not an easy-to-compile-on Server ...

I'm just curious, what are you basing this on?  Compiling Apache on it with
all of the modules compiled in by default might be tricky, but in my
experience compiling PHP, MySQL and anything not used directly by the GUI is
rarely more difficult than compiling on any Linux box.  I'm not pushing
Cobalt products - that doesn't benefit me in anyway, but the RaQx servers
are a solution I'd recommend to individuals if it seems like a good match
based on their skills and needs - despite some of the downsides of the RaQs.

> and 1 single IP when you get a dedicated server? no ...

Well, it really depends what your needs are.  If you can accomplish
everything you need using a single IP and name-based hosting then you really
don't need additional IPs.  I don't believe the original poster ever stated
why he would need additional IPs, even after being informed what situations
would require them.

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.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] HTTP post requests

2001-02-05 Thread Vahan Yerkanian

Greetings, 

first of all you'll need to have all of your variables in one line:
like this for example
$vars="var1=".urlencode($var1)."&var2=".urlencode($var2);

then you need to post the following 
$header="POST /your_script.php HTTP/1.0\r\nContent-length:
".strlen($vars)\r\n\r\n$vars\r\n\r\n";

echo $header

Of course these are not the complete headers browser sends,

HTH,
-- 
Vahan Yerkanian   Email: [EMAIL PROTECTED]
Leading Web Developer / Designer  Phone: (374) 158-2723
Web Development DepartmentFax:   (374) 128-5082
ARMINCO Global Telecommunications http://www.arminco.com

Matthew Brealey wrote:
> 
> I need to do an HTTP post from a PHP script; I want to set username=.
> 
> What is the correct way to do this in PHP?
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

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




[PHP] Making a object from one class available to all objects in the calling class

2001-02-05 Thread Stephen Maher

Hi,

Can someone advise on the following.

class class_y
{
function test() {
return "test";
}
}

class  class_x
{
function x {
$n = new $y;
}

function z {
$n->test();
}
}

I need the object of class_y available to the other objects of classx
but I cant figure out how I do this. Any ideas?

Regards, Steve Maher



Re: [PHP] How to save something in a Java Applet as an IMAGE file?

2001-02-05 Thread Phil Driscoll

>how can i do this? i have a java applet on my site which allows users to
>create their own drawings. i want to provide a "Email this to me" option,
>which will save the applet drawing and email it to the user. is there any
>way i can achieve this?

We have a parametric CAD system which runs as a Java applet. To save
drawings, it can try to do a local save, so we have the option to 'Save via
server' in which case the applet POSTs the data to a cgi program on the web
server and opens up a new window to handle the response. The file can then
be saved from the web browser.

Check out

http://www.dtonline.org/apps/object/app.exe?1&2&1&1&10&2&0

The cgi program is written in C, but an equivalent could be knocked up in
PHP in a few minutes. If you really need to email the drawing, then you
could get the PHP program to email the drawing as an attachment instead.

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.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] Breaking up a line and using the text?

2001-02-05 Thread Steve Werby

"Sam" <[EMAIL PROTECTED]> wrote:
> I was wondering if it is possible to break up a line of text from a
> database, and split it into separate links,
> Original line
> Hi my name is Sam Rose
>
> Which can then be broken down into
> Hi
> My
> Names
> is
> Sam Rose

Sam, do you want to turn them into hyperlinks?  If your data is really that
clean explode() should do the trick, otherwise you may want to look at
split().  Here's a solution using explode().  See the PHP manual for
details.  FYI, unless you have some way planned for grouping together words
(like "Sam Rose") the PHP code will split them apart.

// $string is a string pulled from a database.
// explode() below splits $string into an array by splitting into array
elements when encounters " " in code.
// In your example, $words[0] = "Hi"; $words[1] = "My"; ...; $words[5] =
"Rose";
$words = explode( " ", $string );
// Loop through array and build string $output containing hyperlinks.
for ( $i = 0; $i < count( $words ); $i++ )
{
$output .= "{$words[$i]}";
}
// Print hyperlinks.
echo $output;

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/


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




[PHP-CVS] cvs: php4 / TODO

2001-02-05 Thread David Croft

david   Mon Feb  5 06:29:21 2001 EDT

  Modified files:  
/php4   TODO 
  Log:
  2 things to do
  
  
Index: php4/TODO
diff -u php4/TODO:1.112 php4/TODO:1.113
--- php4/TODO:1.112 Mon Feb  5 06:27:10 2001
+++ php4/TODO   Mon Feb  5 06:29:21 2001
@@ -5,12 +5,15 @@
 
 * allow foreach ($array as $k => &$val) syntax. right now we cannot 
   traverse an array without copying each element.
+* allow foreach ($array as $k => list($a, $b)) syntax for multi
+  dimensional arrays.
 * look at replacing c-lib call tolower().
 * make hash API functions work with HASH_OF() to save time.
 * native large number support (probably with GNU GMP)
 * Const'ify APIs. Right now, many functions leave parameters untouched,
   but don't declare those as const. This makes interaction with other
   interfaces difficult which pass const parameters to us. 
+* add try..catch/throw exception handling
 
 global
 --



-- 
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] Breaking up a line and using the text?

2001-02-05 Thread Christian Reiniger

On Monday 05 February 2001 13:59, jaskirat wrote:

> $string = ereg_replace(" ","\n",$string)

simpler and faster: str_replace(), explode() and split()

> >Original line
> > Hi my name is Sam Rose
> >
> >Which can then be broken down into
> > Hi
> > My
> > Names
> > is
> > Sam Rose

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

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka", but "That's funny..."

- Isaac Asimov

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

2001-02-05 Thread Steve Werby

"Sébastien ROZIER" <[EMAIL PROTECTED]> wrote:
> when I use this syntax:
> champs[0] is a string, which is the name of an HTML form variable.
>
> class test
>{
>var champs;

When initiating a variable you need to prefix it with "$". So the line above
should be:

var $champs;

If it's an array you may want to initiate it like:

var $champs = array();

I don't have the time to analyze your code in full right now, but hopefully
this will get you started.

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.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] Making a object from one class available to all objects in the calling class

2001-02-05 Thread Christian Reiniger

On Monday 05 February 2001 15:52, Stephen Maher wrote:
> Hi,
> 
> Can someone advise on the following.
> 
> class class_y
> {
> function test() {
> return "test";
> }
> }
> 
> class  class_x
> {
> function x {
> $n = new $y;
> }
> 
> function z {
> $n->test();
> }
> }
> 
> I need the object of class_y available to the other objects of classx
> but I cant figure out how I do this. Any ideas?

class class_x
{
 function x { 
 $this->n = new $y; 
 } 
  
 function z { 
 $this->n->test(); 
 } 

 var n;
} 


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

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka", but "That's funny..."

- Isaac Asimov

--
PHP General Mailing List (http://www.php.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 -> HTML via PHP

2001-02-05 Thread Brian V Bonini

Has anyone successfully used PHP to
transform XML to HTML on the fly?

Can you point me to some info/tutorials.

-Brian
***



-- 
PHP General Mailing List (http://www.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 save something in a Java Applet as an IMAGE file?

2001-02-05 Thread Winnie

Hi Phil

Thanks so much for your response, I did check out the site but the applet
takes forever to load n a 56 k modem. Is it possible for me to take a look
at this CGI program? If not, I would really appreciate a bit more detailed
idea to POST the data to a PHP program. How to this in Java?

Thanks!
Winnie




""Phil Driscoll"" <[EMAIL PROTECTED]> wrote in message
001701c08f83$2caf7d40$0c81@philsntserver">news:001701c08f83$2caf7d40$0c81@philsntserver...
> >how can i do this? i have a java applet on my site which allows users to
> >create their own drawings. i want to provide a "Email this to me" option,
> >which will save the applet drawing and email it to the user. is there any
> >way i can achieve this?
>
> We have a parametric CAD system which runs as a Java applet. To save
> drawings, it can try to do a local save, so we have the option to 'Save
via
> server' in which case the applet POSTs the data to a cgi program on the
web
> server and opens up a new window to handle the response. The file can then
> be saved from the web browser.
>
> Check out
>
> http://www.dtonline.org/apps/object/app.exe?1&2&1&1&10&2&0
>
> The cgi program is written in C, but an equivalent could be knocked up in
> PHP in a few minutes. If you really need to email the drawing, then you
> could get the PHP program to email the drawing as an attachment instead.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.230 / Virus Database: 111 - Release Date: 25-Jan-01



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

2001-02-05 Thread James Moore

IIRC sterling (with the help of lots of cherry-beer) put some docus into the
CVS the otherday, checkout http://snaps.php.net/manual for the latest
version of the manual with documentation for XSL functions which are now
avalible in PHP.

James

> -Original Message-
> From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
> Sent: 05 February 2001 15:17
> To: PHP Lists
> Subject: [PHP] XML -> HTML via PHP
>
>
> Has anyone successfully used PHP to
> transform XML to HTML on the fly?
>
> Can you point me to some info/tutorials.
>
> -Brian
> ***
>
>
>
> --
> PHP General Mailing List (http://www.php.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] HTTP post requests

2001-02-05 Thread Matthew Brealey

I need to do an HTTP post from a PHP script; I want to set username=.

What is the correct way to do this in PHP?



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




Re: [PHP] XML -> HTML via PHP

2001-02-05 Thread Steve Werby

"Brian V Bonini" <[EMAIL PROTECTED]> wrote:
> Has anyone successfully used PHP to
> transform XML to HTML on the fly?

Yes.

> Can you point me to some info/tutorials.

Try phpbuilder.com and zend.com.  I know one or both had a tutorial that's
easy to follow.  You'll also need to have PHP compiled with XML support.

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.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] Is this a bug ?

2001-02-05 Thread Sébastien ROZIER

OK sorry, I did put the "$", and adding = array() is still not working
Thanx for any help

Steve Werby wrote:

> "Sébastien ROZIER" <[EMAIL PROTECTED]> wrote:
> 
>> when I use this syntax:
>> champs[0] is a string, which is the name of an HTML form variable.
>> 
>> class test
>>{
>>var champs;
> 
> 
> When initiating a variable you need to prefix it with "$". So the line above
> should be:
> 
> var $champs;
> 
> If it's an array you may want to initiate it like:
> 
> var $champs = array();
> 
> I don't have the time to analyze your code in full right now, but hopefully
> this will get you started.
> 
> --
> Steve Werby
> COO
> 24-7 Computer Services, LLC
> Tel: 804.817.2470
> http://www.247computing.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] Problem with Zend Encoder testdrive - Win2k

2001-02-05 Thread Zeev Suraski

Carsten,

This is a known limitation in the initial release of the encoder.  The 
license file must be stored in C:\Program Files\Zend, even if your standard 
Program Files directory is in E:.

It will be fixed in future versions.

Zeev

At 19:00 4/2/2001, Carsten Gehling wrote:
>Downloaded the Encoder testdrive and installed it with a license file
>(zend_encoder.dat). Did what the manual stated, except that I installed it
>on E:\program files\zend instead of C:\program files\zend (I did modify the
>install_license.reg before installing it into the registration database)
>
>When I run the zendenc.exe, I get a dialog stating that it cannot find the
>license data. I'm able to specify it manually, but then I get another
>errormessage saying "Error in saving configuration settings".
>
>Anyone else had this problem?
>
>- Carsten
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.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] Error on mail attachment

2001-02-05 Thread Tobias Talltorp

I get a strange error when I am trying to send a mail with an attachment.
I used the class below, but I get two error messages.
1. Unknown has generated errors and will be closed by windows...
2.
CGI ERROR
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
ERROR: could not get the task list

How do I fix this?

I use php 4.0.3pl 1 (CGI), Win2k.


*  Modified by Tobias Ratschiller <[EMAIL PROTECTED]>:
*  - General code clean-up
*  - separate body- and from-property
*  - killed some mostly un-necessary stuff
*/

   class mime_mail
{
var $parts;
var $to;
var $from;
var $headers;
var $subject;
var $body;
 /*
 * void mime_mail()
 * class constructor
 */
function mime_mail()
 {
 $this->parts = array();
 $this->to =  "";
 $this->from =  "";
 $this->subject =  "";
 $this->body =  "";
 $this->headers =  "";
 }
 /*
 * void add_attachment(string message, [string name], [string cty
   pe])
 * Add an attachment to the mail object
 */
function add_attachment($message, $name =  "", $ctype =
   "application/octet-stream")
 {
 $this->parts[] = array (
  "ctype" => $ctype,
  "message" => $message,
  "encode" => $encode,
  "name" => $name
 );
 }
   /*
*  void build_message(array part=
*  Build message parts of an multipart mail
*/
   function build_message($part)
{
$message = $part[ "message"];
$message = chunk_split(base64_encode($message));
$encoding =  "base64";
return  "Content-Type: ".$part[ "ctype"].
   ($part[ "name"]? "; name = \"".$part[ "name"].
   "\"" :  "").

   "\nContent-Transfer-Encoding: $encoding\n\n$message\n";
}
   /*
*  void build_multipart()
*  Build a multipart mail
*/
   function build_multipart()
{
$boundary =  "b".md5(uniqid(time()));
$multipart =
   "Content-Type: multipart/mixed; boundary = $boundary\n\nThis is a MIME
encoded message.\n\n--$boundary";
for($i = sizeof($this->parts)-1; $i >= 0; $i--)
   {
   $multipart .=  "\n".$this->build_message($this->parts[$i]).
   "--$boundary";
   }
return $multipart.=  "--\n";
}
   /*
*  void send()
*  Send the mail (last class-function to be called)
*/
   function send()
{
$mime =  "";
if (!empty($this->from))
   $mime .=  "From: ".$this->from. "\n";
if (!empty($this->headers))
   $mime .= $this->headers. "\n";

if (!empty($this->body))
   $this->add_attachment($this->body,  "",  "text/plain");
$mime .=  "MIME-Version: 1.0\n".$this->build_multipart();
mail($this->to, $this->subject,  "", $mime);
}
   };  // end of class
   /*
* Example usage
*
*/
$attachment = fread(fopen("images/jean.jpg", "r"),
filesize("images/jean.jpg"));
$mail = new mime_mail();
$mail->from = "[EMAIL PROTECTED]";
$mail->headers = "Errors-To: [EMAIL PROTECTED]";
$mail->to = "[EMAIL PROTECTED]";
$mail->subject = "Testing...";
$mail->body = "This is just a test.";
$mail->add_attachment("$attachment", "images/jean.jpg", "image/jpeg");
$mail->send();


   ?>



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




[PHP] pdf question

2001-02-05 Thread Conover, Ryan

Is it possible to output to more than one pdf file at one time.

Ryan

-- 
PHP General Mailing List (http://www.php.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 5 Feb 2001 15:39:08 -0000 Issue 494

2001-02-05 Thread php-general-digest-help


php-general Digest 5 Feb 2001 15:39:08 - Issue 494

Topics (messages 38184 through 38254):

Re: Learning MySQL
38184 by: Sean Cazzell
38186 by: Michael Kimsal
38191 by: Jeff Lacy

Re: upload
38185 by: Sean Cazzell
38211 by: PHPBeginner.com

Re:Apache and PHP
38187 by: John Hinsley

Re: Pricing for PHP programming???
38188 by: Randy Katz

Re: [PHP-DB] & [PHP] .htpasswd?
38189 by: Thor Arne Madland

attempt to use an empty IV with mcrypt
38190 by: twm139.its.to
38201 by: Christian Reiniger

mail
38192 by: Deependra B. Tandukar
38212 by: PHPBeginner.com

please help (network admin via web)
38193 by: niraj shah
38202 by: Christian Reiniger

manage number of rows displayed
38194 by: Jacky.lilst
38195 by: Jacky.lilst
38203 by: Christian Reiniger
38213 by: PHPBeginner.com

Re: [PHP-WIN] RE: [PHP] Re: [PHP-WIN] For My Information
38196 by: Ingo Baab

Re: Session With Cookies
38197 by: Eelco de Vries

email function's sender
38198 by: Michel Boucey

strange Compiling Errors / PHP4.0.4pl1
38199 by: Thomas Weber

Installation of PHP and Apache in RedHat 7.0
38200 by: Sami Kristeri Maisniemi

Howto return multidimensional arrays from a PHP module
38204 by: Thomas Wentzel
38205 by: Soeren Staun-Pedersen
38216 by: Thomas Wentzel
38218 by: Phil Driscoll

Re: Including Virtual Paths
38206 by: PHPBeginner.com

Re: db paging with MS Sql
38207 by: PHPBeginner.com

Re: 2 questions
38208 by: PHPBeginner.com

Re: Replacing A Word in HTML page
38209 by: PHPBeginner.com

Re: Email Selected Data
38210 by: PHPBeginner.com

Possible bug in pg_connect (4.0.3.pl1) ?
38214 by: Evelio Martinez

Re: php-general Digest 2 Feb 2001 00:51:13 - Issue 487
38215 by: Tim Ward

Re: Variables within functions, out?
38217 by: Tim Ward

Breaking up a line and using the text?
38219 by: Sam
38226 by: jaskirat
38242 by: Steve Werby
38243 by: Christian Reiniger

job search/posting software
38220 by: Chuck Barnett

Character translation in IE
38221 by: Patrick Anderson
38224 by: Juan

XML-DOM
38222 by: Thomas Brusa
38228 by: Peter Sabaini

FDF Toolkit uncompression error
38223 by: Kurt R. Hoehn
38225 by: Kurt R. Hoehn

fonts in php generated images
38227 by: Scott Poarch

Is this a bug ?
38229 by: Sébastien ROZIER
38244 by: Steve Werby
38251 by: Sébastien ROZIER

Java Servlet Support
38230 by: Shawn J. Wallace

Which Regex library?
38231 by: Shawn J. Wallace
38232 by: johnny p.
38234 by: Shawn J. Wallace

Session-variables
38233 by: spider
38237 by: Hardy Merrill

HTTP post requests
38235 by: Matthew Brealey
38239 by: Vahan Yerkanian
38249 by: Matthew Brealey

How to save something in a Java Applet as an IMAGE file?
38236 by: Winnie
38241 by: Phil Driscoll
38247 by: Winnie

Re: One IP per Server / Cobalt RaQ4 [was 2 questions]
38238 by: Steve Werby

Making a object from one class available to all objects in the calling class
38240 by: Stephen Maher
38245 by: Christian Reiniger

XML -> HTML via PHP
38246 by: Brian V Bonini
38248 by: James Moore
38250 by: Steve Werby

Re: Problem with Zend Encoder testdrive - Win2k
38252 by: Zeev Suraski

Error on mail attachment
38253 by: Tobias Talltorp

pdf question
38254 by: Conover, Ryan

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



You need to go get yourself a copy of the MySQL book from New
Riders.  Stay away from the O'Reilly one, it sucks.


Regards,

Sean





I'd second Sean's endorsement of the New Riders book.  I generally
am a fan of Oreilly books, but I can't figure out *what* was going
on there with the Mysql book.  It's actually mysql and msql covered in one
book, with less docs than you can get online, from what I saw, and
seemingly very little in the way of actual usage/administration/case
studies.


Sean Cazzell wrote:

> You need to go get yourself a copy of the MySQL book from New
> Riders.  Stay away from the O'Reilly one, it sucks.
>
> Regards,
>
> Sean
>
> --





Use a mysql mailing list and search around on the net.  Don't be afraid to
try things.  There are lots of tutorials out there, but I would ask the
mailing list because they are filled with people who will help you, but you
should try to help other people in the mailing list, too.  Just and idea :-)

Jeff



""Jeff Oien"" <[EMAIL PROTECTED]> wr

RE: [PHP] Which Regex library?

2001-02-05 Thread johnny p.

well, i would try this:
ereg('([0-9]+\.){4}', $email, $res);

I'm not sure if that will work, but your expression is definitely not
correct.  I would reduce it down to its most basic element, perhaps, and
try that:

ereg('[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+', $email, $res);

If that works, then just use that.

johnny p.

> -Original Message-
> From: Shawn J. Wallace [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 05, 2001 8:17 AM
> To: johnny p.
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Which Regex library?
>
>
> Ok, this is from memory, but.. I'm trying to pull the IP
> addresses of mail
> relays out of an email - and they are of the form
> [xxx.xxx.xxx.xxx], so I
> do something like:
>
> ereg('\[(0-9\.)*]', $email, $res)
>
> It finds some but not all of them in the email.  What I
> really do is put
> that in a while statement and replace each found ip with a
> marker so I can
> repeat the regex again and again.
> ---
> Shawn J. Wallace ([EMAIL PROTECTED])
> Justweb Inc. - http://www.justweb.com
> (519)652-6599 or (800)343-9312
>
>
> --
> PHP General Mailing List (http://www.php.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-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c php_mnogo.h test.php

2001-02-05 Thread Sergey Kartashoff

gluke   Mon Feb  5 07:15:09 2001 EDT

  Modified files:  
/php4/ext/mnogosearch   php_mnogo.c php_mnogo.h test.php 
  Log:
  Added new Udm_Clear_Search_Limits mnogosearch extension function.
  @- Added Udm_Clear_Search_Limits mnoGoSearch extension function.
  
  
Index: php4/ext/mnogosearch/php_mnogo.c
diff -u php4/ext/mnogosearch/php_mnogo.c:1.7 php4/ext/mnogosearch/php_mnogo.c:1.8
--- php4/ext/mnogosearch/php_mnogo.c:1.7Mon Feb  5 05:12:15 2001
+++ php4/ext/mnogosearch/php_mnogo.cMon Feb  5 07:15:08 2001
@@ -1,5 +1,5 @@
 /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.7 2001/02/05 13:12:15 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.8 2001/02/05 15:15:08 gluke Exp $ */
 
 /*
+--+
@@ -72,17 +72,20 @@
 function_entry mnogosearch_functions[] = {
PHP_FE(udm_alloc_agent, NULL)
PHP_FE(udm_set_agent_param, NULL)
+   
PHP_FE(udm_add_search_limit,NULL)
-   PHP_FE(udm_free_agent,  NULL)
-
+   PHP_FE(udm_clear_search_limits, NULL)
+   
PHP_FE(udm_errno,   NULL)
PHP_FE(udm_error,   NULL)
 
PHP_FE(udm_find,NULL)
-   PHP_FE(udm_free_res,NULL)
-   PHP_FE(udm_get_res_field,   NULL)
PHP_FE(udm_get_res_param,   NULL)
-
+   PHP_FE(udm_get_res_field,   NULL)
+   
+   PHP_FE(udm_free_res,NULL)
+   PHP_FE(udm_free_agent,  NULL)
+   
{NULL, NULL, NULL}
 };
 
@@ -430,6 +433,32 @@
RETURN_FALSE;
break;
}
+   RETURN_TRUE;
+}
+/* }}} */
+
+
+/* {{{ proto int udm_clear_search_limits(int agent)
+   Clear all mnoGoSearch search restrictions */
+DLEXPORT PHP_FUNCTION(udm_clear_search_limits)
+{
+   pval ** yyagent;
+   UDM_AGENT * Agent;
+   switch(ZEND_NUM_ARGS()){
+   case 1: {
+   if (zend_get_parameters_ex(1, &yyagent)==FAILURE) {
+   RETURN_FALSE;
+   }
+   }
+   break;
+   default:
+   WRONG_PARAM_COUNT;
+   break;
+   }
+   ZEND_FETCH_RESOURCE(Agent, UDM_AGENT *, yyagent, -1, "mnoGoSearch-Agent", 
+le_link);
+   
+   UdmClearLimits(Agent->Conf);
+   
RETURN_TRUE;
 }
 /* }}} */
Index: php4/ext/mnogosearch/php_mnogo.h
diff -u php4/ext/mnogosearch/php_mnogo.h:1.4 php4/ext/mnogosearch/php_mnogo.h:1.5
--- php4/ext/mnogosearch/php_mnogo.h:1.4Mon Feb  5 05:12:15 2001
+++ php4/ext/mnogosearch/php_mnogo.hMon Feb  5 07:15:08 2001
@@ -1,5 +1,5 @@
 /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.h,v $ */
-/* $Id: php_mnogo.h,v 1.4 2001/02/05 13:12:15 gluke Exp $ */
+/* $Id: php_mnogo.h,v 1.5 2001/02/05 15:15:08 gluke Exp $ */
 
 /* 
+--+
@@ -48,16 +48,19 @@
 
 DLEXPORT PHP_FUNCTION(udm_alloc_agent);
 DLEXPORT PHP_FUNCTION(udm_set_agent_param);
+
 DLEXPORT PHP_FUNCTION(udm_add_search_limit);
-DLEXPORT PHP_FUNCTION(udm_free_agent);
+DLEXPORT PHP_FUNCTION(udm_clear_search_limits);
 
 DLEXPORT PHP_FUNCTION(udm_error);
 DLEXPORT PHP_FUNCTION(udm_errno);
 
 DLEXPORT PHP_FUNCTION(udm_find);
-DLEXPORT PHP_FUNCTION(udm_free_res);
 DLEXPORT PHP_FUNCTION(udm_get_res_field);
 DLEXPORT PHP_FUNCTION(udm_get_res_param);
+
+DLEXPORT PHP_FUNCTION(udm_free_res);
+DLEXPORT PHP_FUNCTION(udm_free_agent);
 
 #else
 
Index: php4/ext/mnogosearch/test.php
diff -u php4/ext/mnogosearch/test.php:1.5 php4/ext/mnogosearch/test.php:1.6
--- php4/ext/mnogosearch/test.php:1.5   Mon Feb  5 05:12:15 2001
+++ php4/ext/mnogosearch/test.php   Mon Feb  5 07:15:08 2001
@@ -1,6 +1,6 @@
 
 
 
@@ -43,6 +43,8 @@
 // Udm_Add_Search_Limit($udm,UDM_LIMIT_TAG,"01");
 // Udm_Add_Search_Limit($udm,UDM_LIMIT_CAT,"01");
 // Udm_Add_Search_Limit($udm,UDM_LIMIT_LANG,"en");
+
+//  Udm_Clear_Search_Limits($udm);

 // Stage 4: perform search 
 



-- 
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] Make good money online! It's easy ....

2001-02-05 Thread NEWS!!

Please see the bottom of the message for the remove instuctions.  

What you are about to read is tried, true, proven and effective.  Above all, this 
offer 
is utterly and ridicously excellent!!

Have you ever tried or considered making money using the internet?  Are you 
marketing or promoting a business online?  There is a lot of money to be made on the 
internet and in reality, anyone can do it!  Why not get your share?  Read on and 
weep with joy, if you would like to know exactly how to begin making money online 
right away!

FREEDOM - Working on the internet allows you the freedom to work at home, or 
wherever you keep a computer with an internet connection.

FLEXIBILITY - Work when you want, choose your own hours!  No time clocks 
here!  Spend more time with your family, and supplement your current income.  
Maybe even give up your day job. 

There's definately more money to be made on the internet.  In fact there are huge 
amounts, but lets not get carried away.  The secret is to have the right system, as 
you 
must have the right method for marketing and promoting your business.  Of course 
you will firstly need a money generating business, if you don't already have one.  If 
you need an online business, you will be referred to a reputable one if you read on.

Prepare to be amazed!
The following info and programmes would cost you in excess of $1000.00, if you 
bought them singularly over your internet travels.  Not to mention the time, and 
painstakingly gruelling effort you are saved.  It took me years to perfect, collect, 
and 
put together this system.  Nowhere else will you find such a complete package.  
Experienced marketers keep these secrets closely guarded from possible 
competition.

METHOD - You must promote your business to as many people as you can.  The 
more exposure, the more money you will generate.  Classified sites, FFA sites and 
search engine submissions are all great to mess around with, but are not worth the 
time that you put in.  Replies, hits and sales from these advertising methods are 
dismal 
to say the least.  Opt in lists are much the same.  So many people use these methods, 
that the chance of your sales ad being noticed are slim.  The moment I discovered 
bulk emailing my profits soared literally overnight.  Bulk mailing reaches you your 
target customers and reaches them quickly and efficiently.
Bulk mailing is the simplest way to get your advertisement seen by your target 
audience. You could think of it as dropping thousands of flyers advertising your 
business from an aeroplane over a city, some will be read and some will not. The law 
of averages applies to bulk mailing, sales can be increased by a catchy sales ad or 
decreased by a boring, uninspiring ad. Bulk mailing is wrongly frowned apon by a 
section of the internet community. Bulk emailing is an amazing new way of advertising 
and if gone about correctly you can avoid the hassles and achieve your aim - to 
generate sales. There are the cowboy bulk emailers who send out huge amounts of 
mail everyday, they do not give recipients the option to be removed from thier lists 
and basically don't give a damn. These 'cowboys' are the cause of the bad press on 
bulk mailing, they may make a lot of money in the short time they are mailing, but 
they 
never last long.   Internet service providers will not stand for that kind of 
behavior. 
The methods I am about to outline to you here will have you profiting continuosly for 
years to come, not just for a couple of days. You will not be sending out mail 
blindly, 
but in a sensible and controlled manner.  If you are going to send out bulk email, 
then 
why not do it the right way to start with and save yourself and others a lot of 
headaches.  There are thousands upon thousands of people out there who are ready 
and willing to respond to your ads and purchase your products.  Get out there and be 
seen, stand out from the crowd and reap the rewards. It is not as hard as you may 
think!  You must have a system to be successful and to work out the correct system 
for you could take years of trial and error. There are not many successful marketers 
out there who are willing to give away their secrets such as I have here!  
To save you gruelling and lengthy task of learning to make money online, I have 
outlined and supplied you with the complete, ready to go system.  I fully guarantee 
the system and the associated programmes.  They will work for you!

First you will need the right business opportunity or product to sell.  You can search 
around for one yourself, but beware of scams.  I will refer you to a great business 
opp later in this message.  You will need to write a killer ad that grabs peoples 
attention, try different ads and gauge the responses.

To send bulk  mail you need a reliable bulk mailing programme, I will refer you to a 
great one later in this message.  Once again, there are many different programmes 
around and some are better than others.  The

[PHP] Why doesn't this work? Please trouble-shoot my script.

2001-02-05 Thread chip . wiegand



Hi,
Maybe someone can take a look at the script below and tell how to make the
bottom part work
the same way the top part works. The top part (select box) works where the one
item chosen is
written to a hidden file and passed on  to the next page, then on and on through
several more
pages and to the last page that emails the chosen items to our marketing dept.
Problem is,
it only allows one choice at a time. I tried it with the multiple option set but
the final form shows
only the last item chosen from the list of multiple items. So I tried with the
checkboxes, but that
doesn't work at  all.




Simrad USA Brochures Request Page



\n";
  }
?>
 Please choose the brochures you are interested in receiving.
 
 Select ...
 AP11
 AP12/AP14
 AP20 Series
 AP35
 AP45
 AP9MK3
 Tiller/Wheel Pilots
 WP5000
 
 
 
 AP11
 AP12/14
 AP20 Series
 AP35
  AP45
  AP9MK3
 Tiller/Wheelpilots
WP5000


 
 


---
On the checkboxes I had at first specified the name and value fields, but that
didn't work either.
My goal is to have the above list allow multiple choices that are passed to the
next page,
and so on through about 6 pages to the final page. Even better yet would be a
text box where
the end-user could specify a quantity of brochures, for multiple choices, that
would be my
preferred form.

Thankyou for your help,

Chip Wiegand
Computer Services
[EMAIL PROTECTED]
Simrad, Inc
Lynnwood, WA
425-712-1138

"There is no reason anyone would want a computer in their home."
 --Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977
  (-- Then why do I have nine? Somebody help me!)



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




[PHP] RE: Making a object from one class available to all objects in the calling class

2001-02-05 Thread Tim Ward

I haven't tested this, but assuming you meant an instance of class_y being
available to each instance of class_x ...


 class  class_x
 {  var y_of_x;

function class_x() // i.e. constructor
{   $this->y_of_x = new class_y();
}

 function x {
 $n = new $y;
 }
 
 function z {
 $n->test();
 }
 }

> Hi,
> 
> Can someone advise on the following.
> 
> class class_y
> {
> function test() {
> return "test";
> }
> }
> 
> class  class_x
> {
> function x {
> $n = new $y;
> }
> 
> function z {
> $n->test();
> }
> }
> 
> I need the object of class_y available to the other objects of classx
> but I cant figure out how I do this. Any ideas?
> 
> Regards, Steve Maher

Tim Ward
Senior Systems Engineer

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

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




[PHP] array max min

2001-02-05 Thread rui



Hi there, i have a little problem,

suppose i have a multidimensional array ex:

row[monthnr][daynr][hour][numberofusers]
row[monthnr][daynr][hour][numberofmails]
row[monthnr][daynr][hour][numberofdownloads]

the values in the array are a sql result query, soh not all of them are
filled like it is possible that row[12][1][23] is undefined.

i need to tag the value that is maximum and minimum foreach number of
users, numberof mails and numberofdownloads in the same month for example, i
tried all kinds of sort but it never makes a numeric comparison, maybe because
of the return of the sql result, anyone has any idea?

thanks in advance

   Rui Barreiros
  Software Developer

WEBSOLUT - Soluções Internet
Emailto: [EMAIL PROTECTED] 
Personal Info: http://websolut.net/people/rui.html

As informações contidas neste email são confidenciais
e destinam-se apenas à(s) pessoa(s) a quem foi enviado:
http://websolut.net/confidencialidade-responsabilidade.html


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




[PHP] GD

2001-02-05 Thread Brandon Orther

Hello,

Does anyone have a tutorial getting started with the GD lib?

Thank you,


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.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] array max min

2001-02-05 Thread Steve Werby

<[EMAIL PROTECTED]> wrote:
> suppose i have a multidimensional array ex:
>
> row[monthnr][daynr][hour][numberofusers]
> row[monthnr][daynr][hour][numberofmails]
> row[monthnr][daynr][hour][numberofdownloads]
>
> the values in the array are a sql result query, soh not all of
them are
> filled like it is possible that row[12][1][23] is undefined.
>
> i need to tag the value that is maximum and minimum foreach number
of
> users, numberof mails and numberofdownloads in the same month for example,
i

You might want to try to get this info directly from an SQL query.  It'll
probably be much faster than a PHP solution involving looping through each
available month and finding the max and min for 3 different keys.  If you
decide to do this you'll probably want to nest "while ( list( $key, $val ) =
each( $row[$i][number..] )" type statements, but given that the key "hour"
isn't really needed you may have to transform your array and I really don't
think this solution is as elegant as using a database query.

SELECT month,
   MAX(numberofusers) AS numberofusers_max,
   MIN(numberofusers) AS numberofusers_min,
   ...,
   MIN(numberofdownloads) AS numberofdownloads_min
FROM my_table
GROUP BY month
WHERE where_clause;

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.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] job search/posting software

2001-02-05 Thread Nathan Cassano

At CJHunter.com we use swish-e http://sunsite.berkeley.edu/SWISH-E/ in
conjunction with custom php scripts to make our job and resumes searches.

-Original Message-
From: Chuck Barnett [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:46 AM
To: PHP General List
Subject: [PHP] job search/posting software


Does anyone know of any good software for creating a job posting/search
service?


Thanks,
Chuck



--
PHP General Mailing List (http://www.php.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-I18N] Make good money online! It's easy ....

2001-02-05 Thread NEWS!!

Please see the bottom of the message for the remove instuctions.  

What you are about to read is tried, true, proven and effective.  Above all, this 
offer 
is utterly and ridicously excellent!!

Have you ever tried or considered making money using the internet?  Are you 
marketing or promoting a business online?  There is a lot of money to be made on the 
internet and in reality, anyone can do it!  Why not get your share?  Read on and 
weep with joy, if you would like to know exactly how to begin making money online 
right away!

FREEDOM - Working on the internet allows you the freedom to work at home, or 
wherever you keep a computer with an internet connection.

FLEXIBILITY - Work when you want, choose your own hours!  No time clocks 
here!  Spend more time with your family, and supplement your current income.  
Maybe even give up your day job. 

There's definately more money to be made on the internet.  In fact there are huge 
amounts, but lets not get carried away.  The secret is to have the right system, as 
you 
must have the right method for marketing and promoting your business.  Of course 
you will firstly need a money generating business, if you don't already have one.  If 
you need an online business, you will be referred to a reputable one if you read on.

Prepare to be amazed!
The following info and programmes would cost you in excess of $1000.00, if you 
bought them singularly over your internet travels.  Not to mention the time, and 
painstakingly gruelling effort you are saved.  It took me years to perfect, collect, 
and 
put together this system.  Nowhere else will you find such a complete package.  
Experienced marketers keep these secrets closely guarded from possible 
competition.

METHOD - You must promote your business to as many people as you can.  The 
more exposure, the more money you will generate.  Classified sites, FFA sites and 
search engine submissions are all great to mess around with, but are not worth the 
time that you put in.  Replies, hits and sales from these advertising methods are 
dismal 
to say the least.  Opt in lists are much the same.  So many people use these methods, 
that the chance of your sales ad being noticed are slim.  The moment I discovered 
bulk emailing my profits soared literally overnight.  Bulk mailing reaches you your 
target customers and reaches them quickly and efficiently.
Bulk mailing is the simplest way to get your advertisement seen by your target 
audience. You could think of it as dropping thousands of flyers advertising your 
business from an aeroplane over a city, some will be read and some will not. The law 
of averages applies to bulk mailing, sales can be increased by a catchy sales ad or 
decreased by a boring, uninspiring ad. Bulk mailing is wrongly frowned apon by a 
section of the internet community. Bulk emailing is an amazing new way of advertising 
and if gone about correctly you can avoid the hassles and achieve your aim - to 
generate sales. There are the cowboy bulk emailers who send out huge amounts of 
mail everyday, they do not give recipients the option to be removed from thier lists 
and basically don't give a damn. These 'cowboys' are the cause of the bad press on 
bulk mailing, they may make a lot of money in the short time they are mailing, but 
they 
never last long.   Internet service providers will not stand for that kind of 
behavior. 
The methods I am about to outline to you here will have you profiting continuosly for 
years to come, not just for a couple of days. You will not be sending out mail 
blindly, 
but in a sensible and controlled manner.  If you are going to send out bulk email, 
then 
why not do it the right way to start with and save yourself and others a lot of 
headaches.  There are thousands upon thousands of people out there who are ready 
and willing to respond to your ads and purchase your products.  Get out there and be 
seen, stand out from the crowd and reap the rewards. It is not as hard as you may 
think!  You must have a system to be successful and to work out the correct system 
for you could take years of trial and error. There are not many successful marketers 
out there who are willing to give away their secrets such as I have here!  
To save you gruelling and lengthy task of learning to make money online, I have 
outlined and supplied you with the complete, ready to go system.  I fully guarantee 
the system and the associated programmes.  They will work for you!

First you will need the right business opportunity or product to sell.  You can search 
around for one yourself, but beware of scams.  I will refer you to a great business 
opp later in this message.  You will need to write a killer ad that grabs peoples 
attention, try different ads and gauge the responses.

To send bulk  mail you need a reliable bulk mailing programme, I will refer you to a 
great one later in this message.  Once again, there are many different programmes 
around and some are better than others.  The

php-i18n Digest 5 Feb 2001 15:58:41 -0000 Issue 49

2001-02-05 Thread php-i18n-digest-help


php-i18n Digest 5 Feb 2001 15:58:41 - Issue 49

Topics (messages 110 through 111):

Invitation to a new Web site on politics and culture
110 by: editor.schenkreport.com

Make good money online! It's easy 
111 by: NEWS!!

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



This is an invitation to you to visit a new Web site, THE SCHENK
REPORT (http://www.SchenkReport.com), where the subjects are politics
and culture from a generally liberal point of view.

THE SCHENK REPORT features: 

**Insightful commentary, generally from the left but sometimes veering
off in other directions. Regular contributors include: 

Walt Brasch, an award-winning reporter and editor who is now a
professor of journalism in Pennsylvania. Among his virtues is that his
writing is often very funny.
 
Arthur Joel Katz, a retired TV and film executive whose favorite
causes include defending the First Amendment and pointing out the
insanity of the War on Drugs. 

Charles Schenk, editor and founder of THE SCHENK REPORT. I have 25
years experience in journalism. My special interests include the
Balkans, where I lived and taught English for two years. I reported
from the Balkans during the NATO bombing of Yugoslavia in 1999. (My
"Macedonian Diary" pieces are available at THE SCHENK REPORT. From the
Front Page, click on The Columnists, then look for "Macedonian
Diary.")

**There's a big page of Bushisms and a free Bushisms screensaver
guaranteed to irk the Republican in the next cubicle. 

**Another feature is Abortion Watch, a running chronology of the Bush
II administration's assault on a woman's right to choose. 

**THE SCHENK REPORT has lots of links to other writers, most of them
on the left, and to dozens of organizations that help to mobilize and
inform liberals.

**There's a column for letters to the editor, so readers can talk back
to us. 

In other words, if you're not really busy right now, it's worth a
click. The address is http://www.SchenkReport.com. 

Thanks. 

Sincerely, Charles Schenk
Editor, THE SCHENK REPORT

P.S. While you're there, sign up for the free newsletter by email. If
you don't have time to visit right now, but want to know about new
features as they're added, click on [EMAIL PROTECTED]
(You can end your subscription at any time with this email address:
[EMAIL PROTECTED])





Please see the bottom of the message for the remove instuctions.  

What you are about to read is tried, true, proven and effective.  Above all, this 
offer 
is utterly and ridicously excellent!!

Have you ever tried or considered making money using the internet?  Are you 
marketing or promoting a business online?  There is a lot of money to be made on the 
internet and in reality, anyone can do it!  Why not get your share?  Read on and 
weep with joy, if you would like to know exactly how to begin making money online 
right away!

FREEDOM - Working on the internet allows you the freedom to work at home, or 
wherever you keep a computer with an internet connection.

FLEXIBILITY - Work when you want, choose your own hours!  No time clocks 
here!  Spend more time with your family, and supplement your current income.  
Maybe even give up your day job. 

There's definately more money to be made on the internet.  In fact there are huge 
amounts, but lets not get carried away.  The secret is to have the right system, as 
you 
must have the right method for marketing and promoting your business.  Of course 
you will firstly need a money generating business, if you don't already have one.  If 
you need an online business, you will be referred to a reputable one if you read on.

Prepare to be amazed!
The following info and programmes would cost you in excess of $1000.00, if you 
bought them singularly over your internet travels.  Not to mention the time, and 
painstakingly gruelling effort you are saved.  It took me years to perfect, collect, 
and 
put together this system.  Nowhere else will you find such a complete package.  
Experienced marketers keep these secrets closely guarded from possible 
competition.

METHOD - You must promote your business to as many people as you can.  The 
more exposure, the more money you will generate.  Classified sites, FFA sites and 
search engine submissions are all great to mess around with, but are not worth the 
time that you put in.  Replies, hits and sales from these advertising methods are 
dismal 
to say the least.  Opt in lists are much the same.  So many people use these methods, 
that the chance of your sales ad being noticed are slim.  The moment I discovered 
bulk emailing my profits soared literally overnight.  Bulk mailing reaches you your 
target customers and reaches them quickly and efficiently.
Bulk mailing is the simplest way to get your advertisem

[PHP] AS400 SQL Errors and Resources

2001-02-05 Thread Karl J. Stubsjoen

Hello,

I reallize that the SQL syntax should be similar among all DB's which allow
SQL, but there are slight differences amongst them.  With that said, I have
written an SQL statement to the AS400 and am getting errors back.  So, and I
don't have ANY, I need a site to visit where I can reference DB2 and SQL for
the AS400.
Here is my error code:

SQL error: [IBM][CLI Driver][AS] SQL0401N The data types of the operands for
the operation "= " are not compatible. SQLSTATE=42818 , SQL state 42818 in
SQLExecDirect

Any ideas?
Was this Off-Topic?
Any suggestions where I could post these questions?

Thanks guys!

Karl


-- 
PHP General Mailing List (http://www.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] Making a object from one class available to all objects in the calling class

2001-02-05 Thread szii

IMHO, I'd use 

class class_y
{
function test()
{
return "test";
}
}

class  class_x
{
$var m_SomeOtherClass;
function x()
{
$this->m_SomeOtherClass = new class_y;
}

function z()
{
$this->m_SomeOtherClass->test();
}
}

AFAIK, there's no real way to "embed" a class definition
within another class definition.  Not quite sure why you'd
want to, either, but it's your code. =)

'Luck!

-Szii


At 02:52 PM 2/5/2001 +, Stephen Maher wrote:
>Hi,
>
>Can someone advise on the following.
>
>class class_y
>{
>function test() {
>return "test";
>}
>}
>
>class  class_x
>{
>function x {
>$n = new $y;
>}
>
>function z {
>$n->test();
>}
>}
>
>I need the object of class_y available to the other objects of classx
>but I cant figure out how I do this. Any ideas?
>
>Regards, Steve Maher
>

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




[PHP] Cobalt RaQ

2001-02-05 Thread szii

After hearing about "Coalt RaQ" a number of times on the list,
I thought I'd cruise over and check them out.

After doing so, I'm of the opinion that I'm missing something.

$1,200 USD for a 300Mhz 1u box?  $2,699 for a $450 w/256M RAM?
$3,599 for a $450 w/512 RAM and a dual 30G HDs?

What am I missing?  You can get a dual-P3 800 w/ 256 RAM
and a single 15G HD in a 1u for $2400 USD.  With RAM and
HDs being so cheap now, Is there something special about 
the RaQs?  Software?  Support?  I just don't see anything to 
warrant the higher pricing.  Are they RISC based and use the 
more expensive Sun chips with 2M SRAM?

Thanks...

-Szii

-- 
PHP General Mailing List (http://www.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] array max min

2001-02-05 Thread rui


On 05-Feb-2001 Steve Werby wrote:
> <[EMAIL PROTECTED]> wrote:
>> suppose i have a multidimensional array ex:
>>
>> row[monthnr][daynr][hour][numberofusers]
>> row[monthnr][daynr][hour][numberofmails]
>> row[monthnr][daynr][hour][numberofdownloads]
>>
>> the values in the array are a sql result query, soh not all of
> them are
>> filled like it is possible that row[12][1][23] is undefined.
>>
>> i need to tag the value that is maximum and minimum foreach number
> of
>> users, numberof mails and numberofdownloads in the same month for example,
> i
> 
> You might want to try to get this info directly from an SQL query.  It'll
> probably be much faster than a PHP solution involving looping through each
> available month and finding the max and min for 3 different keys.  If you
> decide to do this you'll probably want to nest "while ( list( $key, $val ) =
> each( $row[$i][number..] )" type statements, but given that the key "hour"
> isn't really needed you may have to transform your array and I really don't
> think this solution is as elegant as using a database query.
> 
> SELECT month,
>MAX(numberofusers) AS numberofusers_max,
>MIN(numberofusers) AS numberofusers_min,
>...,
>MIN(numberofdownloads) AS numberofdownloads_min
> FROM my_table
> GROUP BY month
> WHERE where_clause;
> 
> --
> Steve Werby
> COO
> 24-7 Computer Services, LLC
> Tel: 804.817.2470
> http://www.247computing.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]

i thought about that, but i gave up on my first attempt on doing so, because
mysql complained about my query, it seems that it doesn't allow to use the
max() function with a sum() function, an example of the query is:

SELECT month,
   daynr,
   hour,
   sum(numberofusers),
   sum(numberofmails),
   sum(numberofdownloads)
FROM table
GOURP BY month, daynr, hour
WHERE where_clause;

and mysql complaints when i do another column with max(sum(numberofusers)) :\

i think i'm doomed with the big loop thing :\

   Rui Barreiros
  Software Developer

WEBSOLUT - Soluções Internet
Emailto: [EMAIL PROTECTED] 
Personal Info: http://websolut.net/people/rui.html

As informações contidas neste email são confidenciais
e destinam-se apenas à(s) pessoa(s) a quem foi enviado:
http://websolut.net/confidencialidade-responsabilidade.html


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




RE: [PHP] Cobalt RaQ

2001-02-05 Thread K.M. The

The reason they're so expensive is not the hardware, it's the complete
webbased administration tool you're paying for. The users these products are
targeted at, are those who can't administrate a server through a standard
SSH/Telnet connection.

Vincent The

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 6:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Cobalt RaQ


After hearing about "Coalt RaQ" a number of times on the list,
I thought I'd cruise over and check them out.

After doing so, I'm of the opinion that I'm missing something.

$1,200 USD for a 300Mhz 1u box?  $2,699 for a $450 w/256M RAM?
$3,599 for a $450 w/512 RAM and a dual 30G HDs?

What am I missing?  You can get a dual-P3 800 w/ 256 RAM
and a single 15G HD in a 1u for $2400 USD.  With RAM and
HDs being so cheap now, Is there something special about
the RaQs?  Software?  Support?  I just don't see anything to
warrant the higher pricing.  Are they RISC based and use the
more expensive Sun chips with 2M SRAM?

Thanks...

-Szii

--
PHP General Mailing List (http://www.php.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] include files

2001-02-05 Thread David VanHorn

I've got kind of a deep page structure, lots of subdirs.
I'm having trouble with an include directive.
The problem is a footer that I use on all pages, which resides in the base
directory.

The footer file includes another file, which I use if there is no menu.
footer.inc has menu, and includes footer-nomenu.inc
footer-nomenu.inc may be used alone.

I know this works, in footer.inc, to pull up nomenu.


However, is there a more "generic" way to specify the server root as the path?
I'd rather not expose my directory structure in the PHP code.
I tried various versions of ../ and ../../ without success.
--
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]




Re: [PHP] Java Servlet Support

2001-02-05 Thread Alex Akilov

Shawn,

The PHP distribution contains various SAPIs (server API's).  Examples
are CGI, Apache, ISAPI, NSAPI and Servlet.  Each of these SAPIs is
optimized to host the PHP interpreter in the respective environment.
Thus, if you want to run PHP in Apache, you can use the Apache SAPI
(also known as mod_php) instead of CGI which will give you much better
performance as well as being able to take advantage of the capabilities
of that API.

The sapi/servlet option is essentially a Java servlet that you add to
your Java webserver just like you would any other servlet and it invokes
the PHP engine through JNI and reflection (so you could reference Java
objects from within your PHP script).  This option is much more
efficient then just running the ext/java extension (which allows you to
access Java objects from PHP by starting up a JVM per session) since the
JVM used is already running in the Java webserver and can be managed
much better by the latter than anything ext/java can attempt to do.
Note that using this SAPI implies that PHP will be running in your Java
Webserver instead of on your HTTP webserver (e.g. Apache) which could
have implications (hopefully for the better) unless they're both running
on the same physical machine.

Let me know if you have other questions.

Alex


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

2001-02-05 Thread Julian Morcinek

I'ts also the small footprint (ideal for racking at large ISP's and Data
Centres:  the prime market positioning of these boxes) and excellent MTBF's
(they just keep on trucking..)

You can also install SSH to maintain an encrypted 'telnet' session.

Julian
- Original Message -
From: "K.M. The" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 05, 2001 5:18 PM
Subject: RE: [PHP] Cobalt RaQ


> The reason they're so expensive is not the hardware, it's the complete
> webbased administration tool you're paying for. The users these products
are
> targeted at, are those who can't administrate a server through a standard
> SSH/Telnet connection.
>
> Vincent The
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 05, 2001 6:12 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Cobalt RaQ
>
>
> After hearing about "Coalt RaQ" a number of times on the list,
> I thought I'd cruise over and check them out.
>
> After doing so, I'm of the opinion that I'm missing something.
>
> $1,200 USD for a 300Mhz 1u box?  $2,699 for a $450 w/256M RAM?
> $3,599 for a $450 w/512 RAM and a dual 30G HDs?
>
> What am I missing?  You can get a dual-P3 800 w/ 256 RAM
> and a single 15G HD in a 1u for $2400 USD.  With RAM and
> HDs being so cheap now, Is there something special about
> the RaQs?  Software?  Support?  I just don't see anything to
> warrant the higher pricing.  Are they RISC based and use the
> more expensive Sun chips with 2M SRAM?
>
> Thanks...
>
> -Szii
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] Why doesn't this work? Please trouble-shoot my script.

2001-02-05 Thread chip

I tried your suggestion, as you can see from the script below, but it
still does not work, I get the
word 'array' where I should get the selected options.
--




Simrad USA Brochures Request Page



\n";
  }
?>
 Please choose the brochures you are interested in receiving.
 
 Select ...
 AP11
 AP12/AP14
 AP20 Series
 AP35
 AP45
 AP9MK3
 Tiller/Wheel Pilots
 WP5000
 
 
 
 AP11
 AP12/14
 AP20 Series
 AP35
  AP45
  AP9MK3
  Tiller/Wheelpilots
  WP5000
 
 
 




Chip Wiegand
Computer Services
[EMAIL PROTECTED]
Simrad, Inc
Lynnwood, WA
425-712-1138

"There is no reason anyone would want a computer in their home."
 --Ken Olson, president, chairman and founder of Digital Equipment
Corp., 1977
  (-- Then why do I have nine? Somebody help me!)


Please respond to [EMAIL PROTECTED]
To: Chip Wiegand
cc:

Subject: Re: [PHP] Why doesn't this work? Please trouble-shoot my
script.




On Monday, February 5, 2001, at 10:59 AM, [EMAIL PROTECTED] wrote:

> Maybe someone can take a look at the script below and tell how to make
the
> bottom part work
> the same way the top part works.

put square brackets immediately after the name element of your select
and checkbox tags. i.e.:






:: Andrew Rush :: Lead Systems Developer :: MaineToday.com ::
**

"Crippled but free, blind all the time, i was learning to see"

- J. Garcia / R. Hunter
**


The  views expressed herein are not necessarily those of my employer,
but
they let me have them anyway.






-- 
PHP General Mailing List (http://www.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] array max min

2001-02-05 Thread Steve Werby

<[EMAIL PROTECTED]> wrote:
> i thought about that, but i gave up on my first attempt on doing so,
because
> mysql complained about my query, it seems that it doesn't allow to use the
> max() function with a sum() function, an example of the query is:
>
> SELECT month,
>daynr,
>hour,
>sum(numberofusers),
>sum(numberofmails),
>sum(numberofdownloads)
> FROM table
> GOURP BY month, daynr, hour
> WHERE where_clause;
>
> and mysql complaints when i do another column with max(sum(numberofusers))
:\

You just need to add a column max(numberofusers).  You've already grouped by
month, day and hour so:

sum(numberofusers) => total # of users for that month/day/hour/
max(numberofusers) => max # of users for any record for that month/day/hour

If you're really trying to get the total # of users for the single
month/day/hour with the most users then you need a second query.  If you can
put into sentences exactly what you're trying to do, we can probably help
you a little better.

> i think i'm doomed with the big loop thing :\

Nah, I think you can avoid it.  MySQL is your friend.  

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.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] GD for: PHP on WIN

2001-02-05 Thread Brandon Orther

Hello,

Can anyone tell me a simple way to install the GDlib for php on a windows
machine?

Thank you,


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.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] GD for: PHP on WIN

2001-02-05 Thread Alexander Wagner

Brandon Orther wrote:
> Can anyone tell me a simple way to install the GDlib for php on a
> windows machine?

Some binary PHP-Distrobutions on php4win.de include GDlib.

Wagner

-- 
Three may keep a secret, if two of them are dead.

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




[PHP] Off the point! (Apache)

2001-02-05 Thread Scott Fletcher

Hi!

Anyone know the url address for the apache newsgroup?  I don't seem to
be able to find one.

Just wanting to ask a question or two at the apache newsgroup.  The
questions are is there every a ModSSL and OpenSSL that would work on windows
machine, along with apache and php?  Somebody at work is giving me a hard
time about switching from UNIX to windows.  Windows suck!

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]




Re: [PHP] include files

2001-02-05 Thread Steve Werby

"David VanHorn" <[EMAIL PROTECTED]> wrote:
> I know this works, in footer.inc, to pull up nomenu.
> 
>
> However, is there a more "generic" way to specify the server root as the
path?
> I'd rather not expose my directory structure in the PHP code.

How about the environment variable $DOCUMENT_ROOT (you may need to access as
$GLOBALS[DOCUMENT_ROOT] depending on your code).  Put  in
a webpage to see all of the goodies available to you.  I personally prefer
to keep the bulk of my PHP code outside the document root, in a directory
parallel to it.  I define a constant INC_PATH typically parallel to the
document root using code similar to the following:

// Set INC_PATH.
ereg( "(.*)web_directory.*", $SCRIPT_FILENAME, $regs );
define( "INC_PATH", $regs[1] . "inc_directory/" );

Then I include files as follows:

include( INC_PATH . "inc_common.php" );

Very portable.

> I tried various versions of ../ and ../../ without success.

This isn't very portable anyway.  You don't want to have to change paths if
you move a file to a deeper subdirectory.

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.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] saving images from mysql to file

2001-02-05 Thread Phillip M.(Mike) Bishop

I have a mysql database of images that I would like to save each image to a file on my 
server. Hw do I read the image from mysql and write it to a file?

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

2001-02-05 Thread szii

1u is 1u.  There's no difference in size between the RaQ and a
standard 1u box, like the ones I described in my previous
post.

-Szii

At 05:32 PM 2/5/2001 -, Julian Morcinek wrote:
>I'ts also the small footprint (ideal for racking at large ISP's and Data
>Centres:  the prime market positioning of these boxes) and excellent MTBF's
>(they just keep on trucking..)
>
>You can also install SSH to maintain an encrypted 'telnet' session.
>
>Julian
>- Original Message -
>From: "K.M. The" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, February 05, 2001 5:18 PM
>Subject: RE: [PHP] Cobalt RaQ
>
>
>> The reason they're so expensive is not the hardware, it's the complete
>> webbased administration tool you're paying for. The users these products
>are
>> targeted at, are those who can't administrate a server through a standard
>> SSH/Telnet connection.
>>
>> Vincent The
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, February 05, 2001 6:12 PM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] Cobalt RaQ
>>
>>
>> After hearing about "Coalt RaQ" a number of times on the list,
>> I thought I'd cruise over and check them out.
>>
>> After doing so, I'm of the opinion that I'm missing something.
>>
>> $1,200 USD for a 300Mhz 1u box?  $2,699 for a $450 w/256M RAM?
>> $3,599 for a $450 w/512 RAM and a dual 30G HDs?
>>
>> What am I missing?  You can get a dual-P3 800 w/ 256 RAM
>> and a single 15G HD in a 1u for $2400 USD.  With RAM and
>> HDs being so cheap now, Is there something special about
>> the RaQs?  Software?  Support?  I just don't see anything to
>> warrant the higher pricing.  Are they RISC based and use the
>> more expensive Sun chips with 2M SRAM?
>>
>> Thanks...
>>
>> -Szii
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>

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




RE: [PHP] include files

2001-02-05 Thread Brian V Bonini

DOCUMENT_ROOT  ???
http://php.net/manual/en/language.variables.predefined.php


> -Original Message-
> From: David VanHorn [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 05, 2001 12:16 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] include files
>
>
> I've got kind of a deep page structure, lots of subdirs.
> I'm having trouble with an include directive.
> The problem is a footer that I use on all pages, which resides in the base
> directory.
>
> The footer file includes another file, which I use if there is no menu.
> footer.inc has menu, and includes footer-nomenu.inc
> footer-nomenu.inc may be used alone.
>
> I know this works, in footer.inc, to pull up nomenu.
> 
>
> However, is there a more "generic" way to specify the server root
> as the path?
> I'd rather not expose my directory structure in the PHP code.
> I tried various versions of ../ and ../../ without success.
> --
> Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




RE: [PHP] Why doesn't this work? Please trouble-shoot my script.

2001-02-05 Thread MarkRoedel

> -Original Message-
> From: chip [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 05, 2001 11:37 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Why doesn't this work? Please trouble-shoot my
> script.
> 
> 
> I tried your suggestion, as you can see from the script below, but it
> still does not work, I get the word 'array' where I should get the
> selected options.
> 
> 
> 
> 
> Simrad USA Brochures Request Page
> 
> 
> 
>  $name;
> $value;
> while (list($name, $value) = each($HTTP_POST_VARS))
>   {
>echo "\n";

Since you're dealing with a situation where $value may actually be an
array, perhaps you should consider serializing it first?

(from http://php.net/serialize)

serialize - Generates a storable representation of a value 
Description

string serialize (mixed value)


Serialize() returns a string containing a byte-stream representation of
value that can be stored anywhere. 

This is useful for storing or passing PHP values around without losing
their type and structure. 

To make the serialized string into a PHP value again, use unserialize().
Serialize() handles the types integer, double, string, array
(multidimensional) and object (object properties will be serialized, but
methods are lost). 


---
Mark Roedel| "A wise man once told me that everything in 
Systems Programmer |  life is either a lesson or a joke.  Our task
LeTourneau University  |  is to figure out which is which..."
Longview, Texas, USA   | -- Chris Savage

--
PHP General Mailing List (http://www.php.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 / README.CVS-RULES

2001-02-05 Thread Andrei Zmievski

andrei  Mon Feb  5 09:11:32 2001 EDT

  Modified files:  
/php4   README.CVS-RULES 
  Log:
  One more notice about using names with NEWS entries.
  
  
Index: php4/README.CVS-RULES
diff -u php4/README.CVS-RULES:1.7 php4/README.CVS-RULES:1.8
--- php4/README.CVS-RULES:1.7   Tue Jul 25 19:10:18 2000
+++ php4/README.CVS-RULES   Mon Feb  5 09:11:32 2001
@@ -64,7 +64,8 @@
 It is important to note that if your comment or news logline spans multiple
 lines, you have to put # or @ at the beginning of _every_ such line. Every 
 entry in NEWS has to have a name after it, so if you did it with someone's 
-help, put both your names there.
+help, put both your names there. Your name WILL NOT be automatically put
+at the end of the NEWS entry - so, please provide it yourself.
 
 Example. Say you modified two files, datetime.c and string.c. In datetime.c
 you added a new format option for date() function, and in string.c you fixed



-- 
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] How to reference global variables in strings

2001-02-05 Thread Karl J. Stubsjoen

If you don't prefix a global variable with $ then how can you interpit a
global variable within a string?  AS IN:

define ("MY_PATH", "/home/me/");

print("This is My Path:  MY_PATH or is it?");


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




[PHP] GD font errors

2001-02-05 Thread Brandon Orther

Hello,

I am trying to get started with GD and I am gettign an error saying there
isn't a font.


Warning:  Could not find/open font in
c:\apache\htdocs\sitemaestro\gd\test.php on line 4

Warning:  Could not find/open font in
c:\apache\htdocs\sitemaestro\gd\test.php on line 15

Warning:  Could not find/open font in
c:\apache\htdocs\sitemaestro\gd\test.php on line 16

Warning:  ImageGif: No GIF support in this PHP build in
c:\apache\htdocs\sitemaestro\gd\test.php on line 17

is the error I am getting  can someone please let me know what folder I
supposed to have my fonts in?

Thank you,


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com



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




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

2001-02-05 Thread Andrei Zmievski

andrei  Mon Feb  5 09:37:50 2001 EDT

  Modified files:  
/php4/ext/standard  basic_functions.c 
  Log:
  Allow calling static methods via call_user_method_* functions.
  
  
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.300 
php4/ext/standard/basic_functions.c:1.301
--- php4/ext/standard/basic_functions.c:1.300   Sun Jan 21 09:26:43 2001
+++ php4/ext/standard/basic_functions.c Mon Feb  5 09:37:47 2001
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: basic_functions.c,v 1.300 2001/01/21 17:26:43 rasmus Exp $ */
+/* $Id: basic_functions.c,v 1.301 2001/02/05 17:37:47 andrei Exp $ */
 
 #include "php.h"
 #include "php_main.h"
@@ -1656,8 +1656,8 @@
efree(params);
RETURN_FALSE;
}
-   if (Z_TYPE_PP(params[1]) != IS_OBJECT) {
-   php_error(E_WARNING,"2nd argument is not an object\n");
+   if (Z_TYPE_PP(params[1]) != IS_OBJECT && Z_TYPE_PP(params[1]) != IS_STRING) {
+   php_error(E_WARNING,"2nd argument is not an object or class name\n");
efree(params);
RETURN_FALSE;
}
@@ -1693,7 +1693,8 @@
 WRONG_PARAM_COUNT;
 }
convert_to_string_ex(method_name);
-   convert_to_object_ex(obj);
+   if (Z_TYPE_PP(obj) != IS_OBJECT && Z_TYPE_PP(obj) != IS_STRING)
+   convert_to_object_ex(obj);
convert_to_array_ex(params);
 
 params_ar = HASH_OF(*params);



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




  1   2   >