RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne eds to be fixed NOW. Please advise.

2001-02-20 Thread Boaz Yahav

Since I can't get to your URL I can only give ideas :)

Did you try to upgrade the IE on one of the computers to IE5.5 and see
if the problem goes away?

Do you use a proxy?

Are your security settings set to default?

Sincerely

  berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.

-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:33 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-Original Message-
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced  This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

  berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)

Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php 
?db=opp_post
 
The download of the specified resource has filed.

 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help

RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne eds to be fixed NOW. Please advise.

2001-02-20 Thread Boaz Yahav

btw, how long does the script run b4 you get the error?

Sincerely

  berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:33 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-Original Message-
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced  This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

  berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)

Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php 
?db=opp_post
 
The download of the specified resource has filed.

 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet word

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

2001-02-20 Thread Sascha Schumann

sas Tue Feb 20 23:18:30 2001 EDT

  Modified files:  
/php4/ext/standard  file.c filestat.c 
  Log:
  Correctly check for the existence of the st_rdev field.
  
  Note that this field is required to exist for SUSv3 conformance.
  
  Submitted by: [EMAIL PROTECTED]
  PR: #9358
  
  
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.141 php4/ext/standard/file.c:1.142
--- php4/ext/standard/file.c:1.141  Fri Feb 16 05:13:52 2001
+++ php4/ext/standard/file.cTue Feb 20 23:18:28 2001
@@ -20,7 +20,7 @@
+--+
  */
 
-/* $Id: file.c,v 1.141 2001/02/16 13:13:52 eschmid Exp $ */
+/* $Id: file.c,v 1.142 2001/02/21 07:18:28 sas Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -1624,8 +1624,10 @@
add_assoc_long ( return_value , "uid" , stat_sb.st_uid );
add_assoc_long ( return_value , "gid" , stat_sb.st_gid );
 
-#ifdef HAVE_ST_BLKSIZE
+#ifdef HAVE_ST_RDEV
add_assoc_long ( return_value, "rdev" , stat_sb.st_rdev );
+#endif
+#ifdef HAVE_ST_BLKSIZE
add_assoc_long ( return_value , "blksize" , stat_sb.st_blksize );
 #endif

Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.53 php4/ext/standard/filestat.c:1.54
--- php4/ext/standard/filestat.c:1.53   Thu Feb 15 12:33:09 2001
+++ php4/ext/standard/filestat.cTue Feb 20 23:18:28 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: filestat.c,v 1.53 2001/02/15 20:33:09 eschmid Exp $ */
+/* $Id: filestat.c,v 1.54 2001/02/21 07:18:28 sas Exp $ */
 
 #include "php.h"
 #include "safe_mode.h"
@@ -593,7 +593,7 @@
add_next_index_long(return_value, stat_sb->st_nlink);
add_next_index_long(return_value, stat_sb->st_uid);
add_next_index_long(return_value, stat_sb->st_gid);
-#ifdef HAVE_ST_BLKSIZE
+#ifdef HAVE_ST_RDEV
add_next_index_long(return_value, stat_sb->st_rdev);
 #else
add_next_index_long(return_value, -1);



-- 
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 / acinclude.m4

2001-02-20 Thread Sascha Schumann

sas Tue Feb 20 23:39:13 2001 EDT

  Modified files:  
/php4   acinclude.m4 
  Log:
  Instead of assuming that sendmail lives in /usr/lib, if we don't find it,
  we also check /usr/lib now.
  
  PR: #9362
  
  
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.120 php4/acinclude.m4:1.121
--- php4/acinclude.m4:1.120 Sun Jan  7 03:36:15 2001
+++ php4/acinclude.m4   Tue Feb 20 23:39:13 2001
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.120 2001/01/07 11:36:15 venaas Exp $
+dnl $Id: acinclude.m4,v 1.121 2001/02/21 07:39:13 sas Exp $
 dnl
 dnl This file contains local autoconf functions.
 
@@ -387,7 +387,7 @@
 ])
 
 AC_DEFUN(PHP_PROG_SENDMAIL,[
-AC_PATH_PROG(PROG_SENDMAIL, sendmail, /usr/lib/sendmail, 
$PATH:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib)
+AC_PATH_PROG(PROG_SENDMAIL, sendmail,[], 
+$PATH:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib)
 if test -n "$PROG_SENDMAIL"; then
   AC_DEFINE(HAVE_SENDMAIL,1,[whether you have sendmail])
 fi



-- 
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] URGENT: IE pops-up an Error and File Download Fails. Ne eds to be fixed NOW. Please advise.

2001-02-20 Thread Maxim Maletsky

Well, it doesn't make any sense upgrading. On my Mac all works fine, on my
Win2K I usually use Opera 5 identified as MSIE and it works as well.

Proxy, nope I go behind it.
Some go thru...

the problem stays no matter what.

Security settings? 
again, makes no sense, I think, most of the users having this problem have
never touched Internet Options.
server? no SSL, nothing... accessible internally, behind firewall.

I wonder what is the problem of Explorer in terms of compatibility with
headers, flushes and other PHP Functions directly influencing browsers.

I've seen that error (from different machines, locations but always on
MSIE5*) on a whole bunch of websites running on PHP, including PHP.net.
And now that I think, these usually were databases etc... Like function
reference on PHP.net

I know that what I am saying doesn't really make much sense - PHP is on
server and a browser is on client side. I just wonder if there can be some
other details something with web server ?... 

Cheers,
Maxim Maletsky



-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:30 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


Since I can't get to your URL I can only give ideas :)

Did you try to upgrade the IE on one of the computers to IE5.5 and see
if the problem goes away?

Do you use a proxy?

Are your security settings set to default?

Sincerely

  berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.

-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:33 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-Original Message-
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced  This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

  berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)

Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php 
?db=opp

[PHP-CVS] cvs: php4 /sapi/cgi php_getopt.h

2001-02-20 Thread Sascha Schumann

sas Tue Feb 20 23:41:01 2001 EDT

  Modified files:  
/php4/sapi/cgi  php_getopt.h 
  Log:
  There is no need to declare ap_php_(opterr|optopt) with external linkage
  as they are not used outside of getopt.c.
  
  PR: #9364
  
  
Index: php4/sapi/cgi/php_getopt.h
diff -u php4/sapi/cgi/php_getopt.h:1.2 php4/sapi/cgi/php_getopt.h:1.3
--- php4/sapi/cgi/php_getopt.h:1.2  Thu Feb 10 08:44:58 2000
+++ php4/sapi/cgi/php_getopt.h  Tue Feb 20 23:41:01 2001
@@ -3,7 +3,5 @@
 
 extern char *ap_php_optarg;
 extern int ap_php_optind;
-extern int ap_php_opterr;
-extern int ap_php_optopt;
 
 int ap_php_getopt(int argc, char* const *argv, const char *optstr);



-- 
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] AIX 4.3.3 + Oracle 9iAS + PHP 4.0.4pl1 with OCI8 instructions

2001-02-20 Thread Michael Champagne

I just wanted to post this out here so nobody else has to go through the 
pain that I've gone through.  Here's my instructions on installing PHP 
4.0.4pl1 with OCI8 support on an AIX 4.3.3 box running Oracle's 9i 
Internet Application Server.  Please email me if this helps you so I will 
feel better about the hours I spent trying to get this to work.

NOTE: I ran all of this as the oracle user and I had my ORACLE_HOME set to 
/ias/6iserver.  This shouldn't be necessary since we specify this on the 
configure line but I did it to be safe.  Also, replace any references to 
the /ias directory below with whatever your 9iAS ORACLE_HOME is.

Add -I/ias/Apache/perl/lib/5.00503 to the end of the #!perl call at the 
top of the apxs script.  A perl module (strict.pm) is required but is not 
found in the include path when the configure script runs apxs.
Also, I'm not sure why, but Oracle 9iAS automatically assumes everyone is 
running Solaris.  In the apxs script change any '-DSOLARIS2=260' 
references to -DAIX=43.

NOTE: When I tested this I replaced the default Oracle 9iAS apxs script 
with the default Apache apxs script from the AIX distribution and put in 
all the Oracle specific environment variables.  I think this should work 
with the 9iAS apxs script if modified as detailed above.

AIX has a sparsely documented bug where alloca() is not defined on the 
system and the PHP configure script does not handle this properly.  We 
need to add -ma to any cc calls to get around this.  Export this in the CC 
environment variable as follows:

Run 
export CC='cc -Dinline= -ma'
./configure --with-apxs=/ias/Apache/Apache/bin/apxs 
--with-oci8=/ias/6iserver --without-mysql --prefix=/ias/Apache/Apache

After the configure script was done I edited config_vars.mk and added 
-I/ias/rdbms/demo and -I/ias/rdbms/public to the INCLUDES variable.  IAS 
keeps some of the oci8 header files in these directories.  Also, for 9i I 
had to add -I/ias/Apache/Apache/include to the INCLUDES variable.  I did 
not have to do this for 8iAS.

Created a link in /ias/6iserver/lib for libclntsh.a.  For some reason only 
a .so was included in 9iAS.  I checked 8iAS and this file is not missing 
here.  Run ln -s libclntsh.so libclntsh.a in this directory.

The configure script generates a script named 'libtool'.  Modify the 
archive_cmds= and archive_expsym_cmds line to include the following 
switch:

\${wl}-bI:/ias/Apache/Apache/libexec/httpd.exp

This tells PHP which calls to the Apache API have been exported and can be 
resolved at runtime.  I found
this from another post to this newsgroup.  Thanks!

Run make.

Run make install.

Make install modifies files in the Apache directory hierarchy 
(/ias/Apache/Apache) -- namely httpds.conf.  It also adds the module to 
the libexec directory so there may be issues with permissions in these 
directories.
We also had to pull the PHP module support out of an  
section in httpds.conf so that it is loaded all the time.  We then added 
the following lines to httpds.conf:

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

This routes file extensions of these types to mod_php.

THIS SHOULD BE IT.  Restart Apache and try running  through as a test.

Hope this comes in handy for someone.

Michael Champagne, Software Engineer
Capital Institutional Services, Inc.
wk: [EMAIL PROTECTED]


**
This communication is for informational purposes only.  It is not
intended as an offer or solicitation for the purchase or sale of 
any financial instrument or as an official confirmation of any 
transaction, unless specifically agreed otherwise.  All market 
prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without
notice.  Any comments or statements made herein do not 
necessarily reflect the views or opinions of Capital Institutional
Services, Inc.  Capital Institutional Services, Inc. accepts no
liability for any errors or omissions arising as a result of
transmission.  Use of this communication by other than intended
recipients is prohibited.
**

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

2001-02-20 Thread php3

Addressed to: [EMAIL PROTECTED]
  [EMAIL PROTECTED]

** Reply to note from [EMAIL PROTECTED] Mon, 19 Feb 2001 15:22:49 -0600
>
>I wanted to check with all of you before I report a bug.
>
> Here is the problem:
> I am attempting to access a OS2 server via ftp.  When I login on the
> command line as anonymous to this server it does not require a password.
> When I try to login via PHP (ftp_login) it requires that I use a password.
> When I try to just put in just any password ftp_login comes back with a
> login failed message.
>
> here is the error:
> Warning: ftp_login: User anonymous logged in. in /home/httpd/html/php/ftpget.php on 
>line 15
>
> You can see the message that the server is returning is saying that my login was ok 
>but ftp_login does not return success.
>
>
> If anyone has insight into this please let me know,



I suggest you put a password on that box, before someone else finds it!
Besides being more secure, it will allow you to use PHP's ftp as it is
usually used.

Also, since we are talking anonymous login to ftp, you might try using
an email address for a password.  That seems to be a common convention.


You are MUCH better off password protecting the OS/2 box:

Double click on: TCP/IP Internet (LAN) - you may have to look for it in
OS/2 System.

In that folder, double click on TCP/IP Configuration (LAN).

I know these say LAN, but things like FTP passwords will affect dial up
networking too.

Click on the Security Tab.

Click on the Add button.

Fill out the form with an explicit username/password combination, and
optionally a specific drive and directory you wish to serve via ftp. The
directory you specify here will be the 'home' directory for the
specified user, and the only area your machine will serve files from.

If you have more than one user who wants access, you can create as many
authorized users as you wish by repeating the instructions starting at
the Add button.


P.S.  It is nice to see I am not the only OS/2 user left...   :)




Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.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] using include_path with file_exists()

2001-02-20 Thread Ben Peter

Hi all,

is there a decent way to check whether a file is available on the
include_path? The only soultion I have found is

if ( ( $fd = fopen( 'my_file', 'r', 1 ) ) ) {
fclose( $fd );
/* ok, file is there */
}

That one's not really nice, at it opens the file for reading.

It would be best to have the include_path switch for file_exists, just
as it works with fopen.

Can someone better my workaround above?

Cheers,
Ben

-- 
PHP General Mailing List (http://www.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] File upload problem on IIS/NT4

2001-02-20 Thread Phil Driscoll

Make sure that upload_tmp_dir in your php.ini file is set to something
sensible for a windows machine.
I have it set to f:\php\temp (and you also need to make sure that the
directory specified actually exists).

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] Will this work?

2001-02-20 Thread Tim Ward

empty test type input are always available even if empty. checkboxes and
radio buttons are not set if empty but text inputs are always there. your
test does not check for the fields not having been filled in.

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: W.D. [mailto:[EMAIL PROTECTED]]
> Sent: 19 February 2001 21:26
> To: Jason Cox; [EMAIL PROTECTED]
> Subject: Re: [PHP] Will this work?
> 
> 
> Ok, I removed the (" ") from action and it worked, but it 
> doesnt validate,
> just sends to thanks page regardless of whether the fields 
> are filled or
> not. Am I mistaking IsSet for handling that?
> 
> > Hi,
> >
> > > ">
> > > First Name: 
> > > Last Name: 
> > > E-mail Address: 
> > >  
> > > 
> >
> > The form should work.
> >
> > >  > > if(!IsSet($FirstName, $LastName, $Email))
> > >  {
> > >  header("Location: http://www.SITE.com/error.php");
> > >  exit;
> > >  }
> > > else
> > >  {
> > >  header("Location:
> > > http://www.SITE.com/thanks.php");
> > >  exit;
> > >  }
> > > ?>
> >
> > This won't work.  I assume that this code is included on 
> the page with the
> > form above.  First, the header() function must be called 
> before any output
> > is sent to the browser or it will throw an error and stop.  
> The second
> > problem is that the first time a user comes to this page, 
> it will throw
> then
> > to the error page because the vars won't be set.  Try this:
> >
> >  > if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
> > {
> > (!isset($Email)||!isset($FirstName)||!isset($LastName))?
> > header("Location: http://www.SITE.com/error.php"):
> > header("Location: http://www.SITE.com/thanks.php");
> > }
> > ?>
> >
> > Then put your form below it.  This will work unless you do 
> a form post to
> > this page from another page in which case it will throw you 
> to the error
> > page.
> >
> > Jason
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 

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




[PHP] WEALTH ON THE WEB!

2001-02-20 Thread Noel Hadfield

Get a FREE copy of the exciting 48-page booklet "Inside Secrets to Wealth 
on the Web".

Just hit Reply and send a blank message with "Inside Secrets" on the 
Subject line.

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

2001-02-20 Thread Christian Reiniger

On Monday 19 February 2001 22:42, Kath wrote:

> > Why do a lot of people use libraries like PHPLib?
>
> I find it a lot better to write my own basic functions.
>
> Is it just the attitude "Someone else coded it already, why should I?"

Well, if you take a library you can be pretty sure that someone invested 
quite some work into making it as powerful and bug-free as possible (that 
includes things like having really researched the RFCs for e.g. that 
popular mail class etc).

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

Drink wet cement. Get stoned.

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




[PHP] listing files and directories...

2001-02-20 Thread Miguel Loureiro

Hello all,
To see all fields(directories and files) inside a directory I use the "dir" and 
"read", what I would like to know is, if there other way to do the same, others 
commands because now I have to problems, I want to make a sort of the list (by name or 
by date), and I have to use my program in irix system, any ideas ???
Thank you all
Best Regards



[PHP] sending variables

2001-02-20 Thread Rosen

Hi,
I have two simple php files:

main.php:
LIST

test1.php:





But this doesn't work !

please HELP !



Rsen Marinov







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

2001-02-20 Thread Ifrim Sorin

In test1.php you shoul have



Sorin Ifrim

Rosen <[EMAIL PROTECTED]> wrote in message
96tdvp$oo7$[EMAIL PROTECTED]">news:96tdvp$oo7$[EMAIL PROTECTED]...
> Hi,
> I have two simple php files:
>
> main.php:
> LIST
>
> test1.php:
>
> 
>
>
>
> But this doesn't work !
>
> please HELP !
>
>
>
> Rsen Marinov
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.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] WEALTH ON THE WEB!

2001-02-20 Thread Graham Reeves

mm. I wonder what this guy is up to :  8-)


- Original Message -
From: Noel Hadfield <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 11:17 AM
Subject: [PHP] WEALTH ON THE WEB!


> Get a FREE copy of the exciting 48-page booklet "Inside Secrets to Wealth
> on the Web".
>
> Just hit Reply and send a blank message with "Inside Secrets" on the
> Subject line.
>
> --
> PHP General Mailing List (http://www.php.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] Re: sending variables

2001-02-20 Thread Ben Peter

No,

PHP makes get variables available in $HTTP_GET_VARS. Thus, Rosen can
access his variable as $HTTP_GET_VARS['rosen'].

If register_globals is true, the variable is also available in the
global scope as $rosen (as in Rosen's example).
If this does not work, it would seem that register_globals is not set.

Rosen, could you perhaps put something around the output in test1.php
and post that? Something like:



Also, please tell us which version of PHP you're using.

Cheers,
Ben

Ifrim Sorin wrote:
> 
> In test1.php you shoul have
> 
>  $qry=getenv("QUERY_STRING");
> $rosen=substr($qry,6);
> print("$rosen");
> ?>
> 
> Sorin Ifrim
> 
> Rosen <[EMAIL PROTECTED]> wrote in message
> 96tdvp$oo7$[EMAIL PROTECTED]">news:96tdvp$oo7$[EMAIL PROTECTED]...
> > Hi,
> > I have two simple php files:
> >
> > main.php:
> > LIST
> >
> > test1.php:
> >
> > 
> >
> >
> >
> > But this doesn't work !
> >
> > please HELP !
> >
> >
> >
> > Rsen Marinov
> >
> >
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.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] CLOSE_WAIT - Closing connections to Postgresql database

2001-02-20 Thread Ovidiu EFTIMIE

Hi,
I'm using non-persistent connections in a page which is accessed by a client
once a second( yes once a second) for about 12 hours.
Doing a netstat -apn|grep 5432|grep httpd a see that the php doesn't close
the connection, in fact the connection is in CLOSE_WAIT state.
I have tried to let the php to close the connection, but also I have
explicitely close it but the result is the same : the database will no
longer accept connections because the number of allowed clients is reached.

Anybody has any ideea ?
I know that I should use persistent connections but I want to know if this
is a bug or I'm missing something.

I'a running php 4.0.3pl1 on a RH 6.2 box with apache 1.3.14.


Ovidiu


-- 
PHP General Mailing List (http://www.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] Database Code Portability

2001-02-20 Thread Phil Lambert

Hi Dave,
ODBC is probably your best bet but if your working on Unix/Linux it can
be a bit of a problem as ODBC is primarily a Microsoft system.  I'm working
on something like this for my final year degree project.  My script's are
being developed using Postgres but the final version will use MS SQL.
There's a few ODBC systems available for Linux, but the one I used was
unixODBC (www.unixodbc.org).  It works pretty well but was a bit of a swine
to setup and configure (as the documentation is incomplete).  Once running
you can use the ODBC commands built into PHP which *should* make you as
database-independent as possible.

Phil

Andrew Hill <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Dave,
>
> The ODBC functions in PHP mostly address this.  A good ODBC driver will
also
> translate full SQL92 functionality into the underlying dialect that the
> database supports.
>
> Let me know if you have any questions.
>
> Best regards,
> Andrew
> ---
> Andrew Hill - OpenLink Software
> Director Technology Evangelism
> eBusiness Infrastructure Technology
> http://www.openlinksw.com
>
>
> On 2/16/01 11:54 PM, "Dave Haggerty" <[EMAIL PROTECTED]> wrote:
>
> > I haven't seen this issue discussed, sorry if I missed it:
> >
> > My question is why are the PHP database functions so unportable?  Is
there a
> > reason why they have to be specific to, say MySQL.  It seems to me (even
> > though I am an amatuer to this stuff) that the code should be much more
> > easily portable from one db to another?
> >
> > Do most coders add an abstraction layer themselves?  Or maybe people
just
> > don't port PHP code much and so don't worry about it?
> >
> > Mainly curious
> >
> > Dave
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



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




Re: [PHP] Newbie passwordcheck-program problem

2001-02-20 Thread Simon Garner

Hi Ronald,


> Hello there fellow programmer,
>
> I just started learning PHP (I got version 4 installed with Apache on a
> Win98 machine). At the moment I'm trying to write a little program that
> verifies a user login.
> I know the program is not professional but for me it will do. Only I got
> stuck with the following problem. I have written a class (I'm not very
sure
> if this is the right way to do this) in which I specified a function that
> does the password check.
> Now I like the program to check the password and return me a true or a
false
> which I can read from somewhere else in my program.
> I wrote it like this:

First of all, you don't need a class for this. Unless you expect the program
to get a lot more complicated, you could just use a function.



>
> 
> 
>Password Check
>
>  {
>  function checkpwd()
>  { ?>
>
>  " METHOD="POST">
>  User name is:
>   
>
>  " ?>
>
>  
>   
>  
>
>  GeefInfo)&&IsSet($this->UserName))
>{
> $this->UserName=strtoupper($this->UserName);
>  $this->passwd=strtoupper($this->passwd);


$this->GeefInfo and $this->UserName will never be set. You need to change
this to something like:

if (isset($HTTP_POST_VARS["GeefInfo"]) &&
isset($HTTP_POST_VARS["UserName"]))




>
>if (IsSet($this->passwd))

Similarly here.

if (isset($HTTP_POST_VARS["passwd"]))


>  {
> if ($this->passwd=="MYPASS" && $this->UserName=="RONALD")
> {
>  $this-> testvar=1;
>  exit(1);
> }
> else
> {
>  $this-> testvar=0;
>  exit(0);

I think you might be expecting exit() to do something different to what it
does here. The function exit() will terminate script execution. I suspect
what you wanted was return.

return 1;

else

return 0;




> }
>
>  }
>
> }
>   }
> }?>
>
> 
> 
>
>  $vexec_pwd->checkpwd();
> print $exec_pwd; // Where is my output   ?


You won't get any output. $exec_pwd contains an object (an instance of your
"password" class).

If you want to output the return value from checkpwd(), do:

$exec_pwd = new password;
print $exec_pwd->checkpwd();


I think you may be a bit confused about how variables, classes and objects
work in PHP. Have a closer read through the manual. Moreover, if you're just
starting out with PHP then steer clear of objects entirely - you don't need
them!


> ?>
>
> 
> 
>
> If you can and like to help me I will be very pleased.
> Thanks in advance !!!
>
> Ronald


Hope this helps.


Cheers

Simon Garner


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




Re: [PHP] Re: sending variables

2001-02-20 Thread Simon Garner

From: "Ifrim Sorin" <[EMAIL PROTECTED]>

> In test1.php you shoul have
> 
>  $qry=getenv("QUERY_STRING");
> $rosen=substr($qry,6);
> print("$rosen");
> ?>
> 
> Sorin Ifrim


wtf? Most certainly do NOT do it like that. That's a ridiculous kludge.

Rosen, when you say "it doesn't work" what do you mean?





> 
> Rosen <[EMAIL PROTECTED]> wrote in message
> 96tdvp$oo7$[EMAIL PROTECTED]">news:96tdvp$oo7$[EMAIL PROTECTED]...
> > Hi,
> > I have two simple php files:
> >
> > main.php:
> > LIST
> >
> > test1.php:
> >
> > 
> >
> >
> >
> > But this doesn't work !
> >
> > please HELP !
> >
> >
> >
> > Rsen Marinov
> >
> >



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




[PHP] Newbie passwordcheck-program problem

2001-02-20 Thread Ronald Hemmink

Hello there fellow programmer,

I just started learning PHP (I got version 4 installed with Apache on a
Win98 machine). At the moment I'm trying to write a little program that
verifies a user login.
I know the program is not professional but for me it will do. Only I got
stuck with the following problem. I have written a class (I'm not very sure
if this is the right way to do this) in which I specified a function that
does the password check.
Now I like the program to check the password and return me a true or a false
which I can read from somewhere else in my program.
I wrote it like this:



   Password Check



 " METHOD="POST">
 User name is:
  

 " ?>

 
  
 

 GeefInfo)&&IsSet($this->UserName))
   {
$this->UserName=strtoupper($this->UserName);
 $this->passwd=strtoupper($this->passwd);

   if (IsSet($this->passwd))
 {
if ($this->passwd=="MYPASS" && $this->UserName=="RONALD")
{
 $this-> testvar=1;
 exit(1);
}
else
{
 $this-> testvar=0;
 exit(0);
}

 }

}
  }
}?>




checkpwd();
print $exec_pwd; // Where is my output   ?
?>




If you can and like to help me I will be very pleased.
Thanks in advance !!!

Ronald




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




[PHP] PHP Variables across files

2001-02-20 Thread Jay Klehr

Hey all,

I have a question about using a variable across multiple PHP files.

I want to set a path variable such as:  $root_path = /www2/yoursite/docs

and I want this variable to be able to be changed in case the site is moved
to another server that has a different root path.

I was thinking that I could put this variable into another include file,
such as variables.inc and then include or require this file in the script.
However, what if these multiple PHP files that will use this variable are
spread across multiple directories?  I can't really just do this:
include("variables.inc")  because variables.inc won't be in the same
directory as that particular PHP file.  So once again I am presented with
the same problem of telling these PHP scripts where to look for files.

Is there a simple solution in PHP that I am overlooking?  Some sort of
cross-PHP file GLobal variable I can set or something?  =)

I'm REALLY new at PHP, but fairly knowledgeable in PERL, so I'm still trying
to make the switch over.

Thanks in advance for any help that you can provide, and I hope I can
participate a lot on this list.

Thanks again,

Jay Klehr


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




Re: [PHP] PHP Variables across files

2001-02-20 Thread Ben Peter

Jay,

to make variables.inc available from wherever you are, set the value of
include_path in your php.ini or httpd.conf or .htaccess t something like
".:/path/to/where/variables.inc/is:/other/paths"

as an alternative, use the auto_prepend_file directive to include
variables.inc before any script.

See the 'configuration' section in the php manual on how to do this.

Cheers,
Ben

Jay Klehr wrote:
> 
> Hey all,
> 
> I have a question about using a variable across multiple PHP files.
> 
> I want to set a path variable such as:  $root_path = /www2/yoursite/docs
> 
> and I want this variable to be able to be changed in case the site is moved
> to another server that has a different root path.
> 
> I was thinking that I could put this variable into another include file,
> such as variables.inc and then include or require this file in the script.
> However, what if these multiple PHP files that will use this variable are
> spread across multiple directories?  I can't really just do this:
> include("variables.inc")  because variables.inc won't be in the same
> directory as that particular PHP file.  So once again I am presented with
> the same problem of telling these PHP scripts where to look for files.
> 
> Is there a simple solution in PHP that I am overlooking?  Some sort of
> cross-PHP file GLobal variable I can set or something?  =)
> 
> I'm REALLY new at PHP, but fairly knowledgeable in PERL, so I'm still trying
> to make the switch over.
> 
> Thanks in advance for any help that you can provide, and I hope I can
> participate a lot on this list.
> 
> Thanks again,
> 
> Jay Klehr
> 
> --
> PHP General Mailing List (http://www.php.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] summing unkown values

2001-02-20 Thread Robin Vickery

> "C" == "Claudia"  <[EMAIL PROTECTED]> writes:

 > I would like to sum totals for unknown values.

 > Here is the design

 > Course names are entered in separate table -- courses If the course
 > is still being tested the course status = open This status is
 > stored in the Course table. Each course name is unique in this
 > table.

 > Test information including test time is entered in a different
 > table -- issues The issues table includes the test time and course
 > name values.  Several entries with the same course name will be
 > made to this table

 >  I would like to sum the total time tested based on Open courses.


 > First I would like to know how to select the correct courses from
 > the issues database based on the course_status in the courses
 > databases.

 > Would the following statement work??

 > $query = "select issues.course_name, issues.time_tested from issues
 > where courses.course_status = 'open'"; 

Almost, but you need the courses table in the 'from' part of the query
and you need some kind of relation between the two tables.

$query = "SELECT issues.course_name, issues.time_tested " .
 "FROM issues, courses " .
 "WHERE courses.course_status = 'open' AND "
   "courses.course_name   = issues.course_name";

As an aside, it's usually not a good idea to use something like a name
to relate two tables. It would have been better to give each course an
ID number and made that the primary key for the courses table. And then
stored the ID for the relevant course in the issues table instead of the
name. Your query would only change slightly, to something like this:

$query = "SELECT courses.course_name, issues.time_tested " .
 "FROM issues, courses " .
 "WHERE courses.course_status = 'open' AND "
   "courses.course_id   = issues.course_id";

But it would let you correct typos in the course names without worrying
about the issues table. It would also let you have more than one course
of the same name (one current 'open' course and several old ones perhaps)

 > Then I need to sum the time_tested fields for all courses with the
 > same name in the issues database that were just selected as being
 > Open.

By the sounds of it, you could let the database do all the work, by
changing your query to something like this:

$query = "SELECT issues.course_name, SUM(issues.time_tested) AS total_time " .
 "FROM issues, courses " .
 "WHERE courses.course_status = 'open' AND " .
   "courses.course_name   = issues.course_name " .
 "GROUP BY issues.course_name";

The result would be a single entry for each course with the total time.

hope this helps
   -robin

-- 
Robin Vickery.
BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE

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




[PHP] Fwd

2001-02-20 Thread Taylor Silvers

Dear Friends & Future Millionaire: 
AS SEEN ON NATIONAL TV: ''Making over half million dollars 
every 4 to 5 months from your home for an investment of only 
$25 U.S. Dollars expense one time'' 
BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! Before you say 
''Bull'', please read the following. This is the letter you 
have been hearing about on the news lately. Due to the 
popularity of this letter on the Internet, a national weekly 
news program recently devoted an entire show to the 
investigation of this program described below, to see if it 
really can make people money. The show also investigated 
whether or not the program was legal. 
Their findings proved once and for all that there are 
''absolutely NO Laws prohibiting the participation in the 
program and if people can -follow the simple instructions, 
they are bound to make some mega bucks with only $25 out of 
pocket cost''. DUE TO THE RECENT INCREASE OF POPULARITY & 
RESPECT THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING 
BETTER THAN EVER. 
This is what one had to say: '' Thanks to this profitable 
opportunity. I was approached many times before but each 
time I passed on it. I am so glad I finally joined just to 
see what one could expect in return for the minimal effort 
and money required. To my astonishment, I received total $ 
610,470.00 in 21 weeks, with money still coming in''. Pam 
Hedland, Fort Lee, New Jersey. 
 
Here is another testimonial: ''' this program has 
been around for a long time but I never believed in it. But 
one day when I received this again in the mail I decided to 
gamble my $25 on it. I followed the simple instructions and 
walaa . 3 weeks later the money started to come in. 
First month I only made $240.00 but the next 2 months after 
that I made a total of $290,000.00. So far, in the past 8 
months by re-entering the program, I have made over 
$710,000.00 and I am playing it again. The key to success in 
this program is to follow the simple steps and NOT change 
anything.'' More testimonials later but first, 
 PRINT THIS NOW FOR YOUR FUTURE REFERENCE == 
(Or Have it E-mailed to you-See Submit Button Below) 
 
If you would like to make at least 
$500,000 every 4 to 5 months easily and comfortably, please 
read the following...THEN READ IT AGAIN and AGAIN !!! 
 
FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL 
DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS: 
= Order all 5 reports shown on the list below. = 
For each report, send $5 CASH, THE NAME & NUMBER OF THE 
REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the 
person whose name appears ON THAT LIST next to the report. 
MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFT 
CORNER in case of any mail problems. 
=== When you place your order, make sure you order each of 
the 5 reports. You will need all 5 reports so that you can 
save them on your computer and resell them. YOUR TOTAL COST 
$5 X 5=$25.00. 
=== Within a few days you will receive, vie e-mail, each of 
the 5 reports from these 5 different individuals. Save them 
on your computer so they will be accessible for you to send 
to the 1,000's of people who will order them from you. Also 
make a floppy of these reports and keep it on your desk in 
case something happen to your computer. 
=== IMPORTANT __ DO NOT alter the names of the people who 
are listed next to each report, or their sequence on the 
list, in any way other than what is instructed below in step 
'' 1 through 6 '' or you will lose out on majority of your 
profits. Once you understand the way this works, you will 
also see how it does not work if you change it. Remember, 
this method has been tested, and if you alter, it will NOT 
work !!! People have tried to put their friends/relatives 
names on all five thinking they could get all the money. But 
it does not work this way. Believe us, we all have tried to 
be greedy and then nothing happened. So Do Not try to change 
anything other than what is instructed. Because if you do, 
it will not work for you. Remember, honesty reaps the 
reward!!! 
1 After you have ordered all 5 reports, take this 
advertisement and REMOVE the name & address of the person in 
REPORT # 5. This person has made it through the cycle and is 
no doubt counting their fortune. 2 Move the name & 
address in REPORT # 4 down TO REPORT # 5. 3 Move the 
name & address in REPORT # 3 down TO REPORT # 4. 4 Move 
the name & address in REPORT # 2 down TO REPORT # 3. 5 
Move the name & address in REPORT # 1 down TO REPORT # 2 
6 Insert YOUR name & address in the REPORT # 1 Position. 
PLEASE MAKE SURE you copy every name & address ACCURATELY! 
 

 Take this entire letter, with the modified list of 
names, and save it on

[PHP-CVS] cvs: php4 /ext/midgard php_midgard.h preparser.c

2001-02-20 Thread Emiliano Heyns

emile   Tue Feb 20 02:59:56 2001 EDT

  Modified files:  
/php4/ext/midgard   php_midgard.h preparser.c 
  Log:
  Header files moved
  
  
Index: php4/ext/midgard/php_midgard.h
diff -u php4/ext/midgard/php_midgard.h:1.3 php4/ext/midgard/php_midgard.h:1.4
--- php4/ext/midgard/php_midgard.h:1.3  Sat Feb 17 15:21:50 2001
+++ php4/ext/midgard/php_midgard.h  Tue Feb 20 02:59:55 2001
@@ -1,4 +1,4 @@
-/* $Id: php_midgard.h,v 1.3 2001/02/17 23:21:50 emile Exp $
+/* $Id: php_midgard.h,v 1.4 2001/02/20 10:59:55 emile Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -30,7 +30,7 @@
 
 #include 
 #include 
-#include 
+#include 
 #include 
 
 midgard_request_config *mgd_rcfg();
Index: php4/ext/midgard/preparser.c
diff -u php4/ext/midgard/preparser.c:1.3 php4/ext/midgard/preparser.c:1.4
--- php4/ext/midgard/preparser.c:1.3Sat Feb 17 15:21:50 2001
+++ php4/ext/midgard/preparser.cTue Feb 20 02:59:55 2001
@@ -1,4 +1,4 @@
-/* $Id: preparser.c,v 1.3 2001/02/17 23:21:50 emile Exp $
+/* $Id: preparser.c,v 1.4 2001/02/20 10:59:55 emile Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -30,8 +30,8 @@
 
 #if HAVE_MIDGARD
 
-#include 
-#include 
+#include 
+#include 
 
 #include "midgard.h"
 



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

2001-02-20 Thread John McKerrell

Hi,
   Not sure if this has been covered on here but... In recent versions
PHP/Sablotron I've found that parse errors in the XML/XSL cause fatal
errors. I'd much rather not have this happen so is there a way I can get
around it? I'm doing xslt_process( ... ) which is meant to return false
on errors so how can I get it to do that again rather than generating a
fatal error that stops processing. I've tried putting my own dummy
errorhandler in that doesn't do anything but that won't do it. Can you
help?
  John

-- 
PHP General Mailing List (http://www.php.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 behaviour: Cannot exit as expected AND Script starts from the beginning, executed TWICE. Anyone?

2001-02-20 Thread Yasuo Ohgaki
This is really strange. PHP fails to exit / die form script after include /
require / include_once / required_once (I tested with all of them, same
result).
In addition to this, script gets started again automatically from the
beginning.
(You probably think this is a another newbie mistakes, but I think it is
not)

Does anyone have the same experience?
I'm asking to decide if this is worth to report as a bug. If anyone does not
have this problem but me. I'll just leave it alone. (I cannot reproduce this
with simple script anyway)

I cannot reproduce this behavior with simple script, but it does every time
on my script.

PHP 4.0.4pl1 with PostgreSQL, mhash, mcript, gd, and others
Apache 1.3.17 (mod_php, mod_gzip, mod_ssl and others)
RedHat Linux7.0.1/ja
(Apache and PHP are build from source)

My code does as follows

In user registration form (regist.php)
 - require_once() to include registration function
 - call registration function
 - if the function does not exit, display HTML in this registration file.
regist.php looks like










-

regist_util.inc does <= THIS FILE HAS PROBLEM
 - check if there is the same user name is registered
 - if there is, return 'Choose other name' error (or other error)
 - if not, insert user data into database and send notify email, include
other html file
   to show user registered successfully. Then exit script.
regist_util.inc looks like
--
 0) {
$error[] = 'Choose other name';
  }
  if (count($error) == 0) {
// INSERT DATA - data is inserted if username is new
.
// SEND EMAIL - mail is sent if username is new
   ...
<=  if I put die() or exit() BEFORE include PHP exits from script as
expected. 
// include HTML file (with just a little PHP code)
include('registered.php'); <=  THIS IS NOT DISPLAYED AT ALL **
// If I remove include(), it exits from script.
exit;  <= * DOES NOT EXIT or DIE HERE *

// Script seems start from the beginning. It shows 'Choose other name' error
and
// there is the data newly creating in database, even if the user table is
empty.
// Because data with the username was inserted at 1 first time script
iteration.
// For the second time, script finds the username (of course) and return
'Choose
// other name' error.

// Since I did get ANY additional HTML, but HTML codes in regist.php when
// this happened, I thought it might  something to do with 'ob_gzhandler'. I
// disabled it. But no difference. This makes difficult to find out what PHP
is
// doing, now I'm sure PHP is executing the scripts TWICE.
// Reason:
//   1) There will be a new db table row every time I use new username.
//   2) I get notification email every time I use new username.
// (I thought PHP never buffer outputs unless user explicitly to do so)

// If I redirect, it works as expected I would rather not to show
registered.php, since
// user does not have to access this page directly. (I can work around this
with different
// way, so I will do so)

// By the way, I use EUC-JP code, which is multi-byte char code set, in
scripts
// and HTML part, etc. EUC-JP supposed to work well for many programs
written
// for single byte char code set. However, it might something to do with
char code.
// I'm using. So far, I didn't have problems. May be this is the first time.
(I haven't
// investigated yet)
  }
}
---

registered.php looks like
--


You have been registered to this web site
username = 
..


---

--
Yasuo Ohgaki

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

2001-02-20 Thread Calexis

Downtown Toronto web developer seeks experienced PHP/Perl/SQL developer
with 2-3 years web experience to work on new and existing websites. Strong
database and Apache on unix knowledge an asset. Please email resumes to
[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/midgard .cvsignore

2001-02-20 Thread Emiliano Heyns

emile   Tue Feb 20 03:00:25 2001 EDT

  Modified files:  
/php4/ext/midgard   .cvsignore 
  Log:
  ignore *.la
  
  
Index: php4/ext/midgard/.cvsignore
diff -u php4/ext/midgard/.cvsignore:1.4 php4/ext/midgard/.cvsignore:1.5
--- php4/ext/midgard/.cvsignore:1.4 Sun Feb 18 01:01:15 2001
+++ php4/ext/midgard/.cvsignore Tue Feb 20 03:00:23 2001
@@ -2,6 +2,7 @@
 .libs
 *.lo
 *.slo
+*.la
 CVS
 Makefile
 acinclude.m4



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




[PHP-CVS] cvs: php4 /ext/midgard mail.c preparser-parser.y preparser.c

2001-02-20 Thread Emiliano Heyns

emile   Tue Feb 20 03:14:55 2001 EDT

  Modified files:  
/php4/ext/midgard   mail.c preparser-parser.y preparser.c 
  Log:
  header file moved
  
  
Index: php4/ext/midgard/mail.c
diff -u php4/ext/midgard/mail.c:1.3 php4/ext/midgard/mail.c:1.4
--- php4/ext/midgard/mail.c:1.3 Sat Feb 17 15:21:50 2001
+++ php4/ext/midgard/mail.c Tue Feb 20 03:14:55 2001
@@ -1,4 +1,4 @@
-/* $Id: mail.c,v 1.3 2001/02/17 23:21:50 emile Exp $
+/* $Id: mail.c,v 1.4 2001/02/20 11:14:55 emile Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -20,7 +20,7 @@
 
 #include 
 #include 
-#include 
+#include 
 #include 
 #include 
 
Index: php4/ext/midgard/preparser-parser.y
diff -u php4/ext/midgard/preparser-parser.y:1.3 php4/ext/midgard/preparser-parser.y:1.4
--- php4/ext/midgard/preparser-parser.y:1.3 Sat Feb 17 15:21:50 2001
+++ php4/ext/midgard/preparser-parser.y Tue Feb 20 03:14:55 2001
@@ -1,5 +1,5 @@
 %{
-/* $Id: preparser-parser.y,v 1.3 2001/02/17 23:21:50 emile Exp $
+/* $Id: preparser-parser.y,v 1.4 2001/02/20 11:14:55 emile Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -25,7 +25,7 @@
   #include 
   #include 
   #include "php_midgard.h"
-  #include "midgard.h"
+  #include "midgard/midgard.h"
   #include "mgd_preparser.h"
 %}
 
Index: php4/ext/midgard/preparser.c
diff -u php4/ext/midgard/preparser.c:1.4 php4/ext/midgard/preparser.c:1.5
--- php4/ext/midgard/preparser.c:1.4Tue Feb 20 02:59:55 2001
+++ php4/ext/midgard/preparser.cTue Feb 20 03:14:55 2001
@@ -1,4 +1,4 @@
-/* $Id: preparser.c,v 1.4 2001/02/20 10:59:55 emile Exp $
+/* $Id: preparser.c,v 1.5 2001/02/20 11:14:55 emile Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -33,7 +33,7 @@
 #include 
 #include 
 
-#include "midgard.h"
+#include "midgard/midgard.h"
 
 void php_mgd_call_udf_function(char *type, zval *return_value, zval *arg)
 {



-- 
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] Netscape6 with HTML Form using POST method

2001-02-20 Thread Yasuo Ohgaki

>
>I'm having problem with Netscape6 does not resend valid POST data to PHP.
>Netscape is waiting until connection timeout. If I hit stop button, it logs
>warning message attached to this mail. (These forms work fine with IE5.x,
>NN4.5)

I found out work around days ago, but I didn't post list..
Anyway, NN6 does not display page as expected if

HTML has  and 
User does not specify file to upload and go to next page.
User hit browser's back button.

When this condition meets, NN6 does not send any data to server and
waits until timeouts.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




[PHP-I18N] Fwd

2001-02-20 Thread Taylor Silvers

Dear Friends & Future Millionaire: 
AS SEEN ON NATIONAL TV: ''Making over half million dollars 
every 4 to 5 months from your home for an investment of only 
$25 U.S. Dollars expense one time'' 
BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! Before you say 
''Bull'', please read the following. This is the letter you 
have been hearing about on the news lately. Due to the 
popularity of this letter on the Internet, a national weekly 
news program recently devoted an entire show to the 
investigation of this program described below, to see if it 
really can make people money. The show also investigated 
whether or not the program was legal. 
Their findings proved once and for all that there are 
''absolutely NO Laws prohibiting the participation in the 
program and if people can -follow the simple instructions, 
they are bound to make some mega bucks with only $25 out of 
pocket cost''. DUE TO THE RECENT INCREASE OF POPULARITY & 
RESPECT THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING 
BETTER THAN EVER. 
This is what one had to say: '' Thanks to this profitable 
opportunity. I was approached many times before but each 
time I passed on it. I am so glad I finally joined just to 
see what one could expect in return for the minimal effort 
and money required. To my astonishment, I received total $ 
610,470.00 in 21 weeks, with money still coming in''. Pam 
Hedland, Fort Lee, New Jersey. 
 
Here is another testimonial: ''' this program has 
been around for a long time but I never believed in it. But 
one day when I received this again in the mail I decided to 
gamble my $25 on it. I followed the simple instructions and 
walaa . 3 weeks later the money started to come in. 
First month I only made $240.00 but the next 2 months after 
that I made a total of $290,000.00. So far, in the past 8 
months by re-entering the program, I have made over 
$710,000.00 and I am playing it again. The key to success in 
this program is to follow the simple steps and NOT change 
anything.'' More testimonials later but first, 
 PRINT THIS NOW FOR YOUR FUTURE REFERENCE == 
(Or Have it E-mailed to you-See Submit Button Below) 
 
If you would like to make at least 
$500,000 every 4 to 5 months easily and comfortably, please 
read the following...THEN READ IT AGAIN and AGAIN !!! 
 
FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL 
DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS: 
= Order all 5 reports shown on the list below. = 
For each report, send $5 CASH, THE NAME & NUMBER OF THE 
REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the 
person whose name appears ON THAT LIST next to the report. 
MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFT 
CORNER in case of any mail problems. 
=== When you place your order, make sure you order each of 
the 5 reports. You will need all 5 reports so that you can 
save them on your computer and resell them. YOUR TOTAL COST 
$5 X 5=$25.00. 
=== Within a few days you will receive, vie e-mail, each of 
the 5 reports from these 5 different individuals. Save them 
on your computer so they will be accessible for you to send 
to the 1,000's of people who will order them from you. Also 
make a floppy of these reports and keep it on your desk in 
case something happen to your computer. 
=== IMPORTANT __ DO NOT alter the names of the people who 
are listed next to each report, or their sequence on the 
list, in any way other than what is instructed below in step 
'' 1 through 6 '' or you will lose out on majority of your 
profits. Once you understand the way this works, you will 
also see how it does not work if you change it. Remember, 
this method has been tested, and if you alter, it will NOT 
work !!! People have tried to put their friends/relatives 
names on all five thinking they could get all the money. But 
it does not work this way. Believe us, we all have tried to 
be greedy and then nothing happened. So Do Not try to change 
anything other than what is instructed. Because if you do, 
it will not work for you. Remember, honesty reaps the 
reward!!! 
1 After you have ordered all 5 reports, take this 
advertisement and REMOVE the name & address of the person in 
REPORT # 5. This person has made it through the cycle and is 
no doubt counting their fortune. 2 Move the name & 
address in REPORT # 4 down TO REPORT # 5. 3 Move the 
name & address in REPORT # 3 down TO REPORT # 4. 4 Move 
the name & address in REPORT # 2 down TO REPORT # 3. 5 
Move the name & address in REPORT # 1 down TO REPORT # 2 
6 Insert YOUR name & address in the REPORT # 1 Position. 
PLEASE MAKE SURE you copy every name & address ACCURATELY! 
 

 Take this entire letter, with the modified list of 
names, and save it on

[PHP] HTTP Content-length...

2001-02-20 Thread Montgomery-Recht, Evan

I'm working through geting the raw sockets implementation to send a http
post command to a cgi-script.

But there's one thing I'm trying to figure out.

How do I create the content-length?

I don't see a obvious way but my expection would be the following code.

$string ="foo=bar&food=apple";
$contentlength=$string.size;
$uuencodestring=uuencode($string);

but I don't seem to see the easy $string.size ?

any ideas on a good way to do this?

thanks,

evan

-- 
PHP General Mailing List (http://www.php.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 20 Feb 2001 12:09:11 -0000 Issue 523

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


php-general Digest 20 Feb 2001 12:09:11 - Issue 523

Topics (messages 40667 through 40731):

Re: File upload problem on IIS/NT4
40667 by: John Vanderbeck
40707 by: Phil Driscoll

Re: mail()
40668 by: Christopher Allen
40674 by: David Robley
40677 by: Peter Houchin

better (cleaner and smaller) code
40669 by: Christian Dechery

running a big sql script
40670 by: Christian Dechery
40687 by: Maxim Maletsky

PHP has encountered an Access Violation at 10014D15
40671 by: Josh G

Re: File Locking in PHP.
40672 by: David Robley

Re: Getting values for posted form in HASH array rather than just variables.
40673 by: David Robley

mysql problem
40675 by: Josh G
40678 by: David Robley
40679 by: Josh G
40681 by: Josh G
40690 by: ..s.c.o.t.t..
40697 by: Thomas Deliduka

Re: Directing Email to a script
40676 by: Cybercandy Ltd

fread strangeness  (was: nested echo and includes, mixed html / PHP)
40680 by: Jaxon
40682 by: David Robley
40685 by: Jaxon

summing unkown values
40683 by: Claudia
40725 by: Robin Vickery

Here Doc syntax
40684 by: Soma Interesting

Is it possible to use CyberCash w/o MCK?
40686 by: Ben Schumacher

GD with Jpeg Support Problems
40688 by: Michael Bryan

Help with prev, next
40689 by: Keith Devens
40691 by: David Robley
40702 by: CC Zona

Re: Two questions
40692 by: Brian T. Allen

connectivity test
40693 by: Nicholas W. Miller

id
40694 by: Brandon Feldhahn
40696 by: Thomas Deliduka

members page
40695 by: Brandon Feldhahn
40699 by: Thomas Deliduka

header
40698 by: Fabian Fabela
40700 by: Thomas Deliduka
40701 by: David Robley

XML Parsing - what's wrong?
40703 by: Sascha Andres

Re: XML Parsing - what's wrong? - found it
40704 by: Sascha Andres

Re: ftp_login problem
40705 by: php3.developersdesk.com

using include_path with file_exists()
40706 by: Ben Peter

Re: sessions and data missing browser message
40708 by: Evelio Martinez

Re: Will this work?
40709 by: Tim Ward

Re: Libraries
40710 by: Tim Ward
40712 by: Christian Reiniger

WEALTH ON THE WEB!
40711 by: Noel Hadfield
40716 by: Graham Reeves

listing files and directories...
40713 by: Miguel Loureiro

sending variables
40714 by: Rosen
40715 by: Ifrim Sorin
40717 by: Simon Garner
40719 by: Ben Peter

Newbie passwordcheck-program problem
40718 by: Ronald Hemmink
40722 by: Simon Garner

CLOSE_WAIT - Closing connections to Postgresql database
40720 by: Ovidiu EFTIMIE

Re: Database Code Portability
40721 by: Phil Lambert

PHP Variables across files
40723 by: Jay Klehr
40724 by: Ben Peter

Fwd
40726 by: Taylor Silvers

Sablotron Errors
40727 by: John McKerrell

Strange behaviour: Cannot exit as expected AND Script starts from the beginning, 
executed TWICE. Anyone?
40728 by: Yasuo Ohgaki

Job [Toronto]
40729 by: Calexis

Re: Netscape6 with HTML Form using POST method
40730 by: Yasuo Ohgaki

HTTP Content-length...
40731 by: Montgomery-Recht, Evan

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]


--



ITry searching the drive(s) for the file.  I dont know what the deal is, but
I found on my system that the session path specified in the php.ini file
isn't being used, it is using /tmp instead.  Might be doing the same thing
for the upload path.

- John Vanderbeck
- Admin, GameDesign

- Original Message -
From: Josh G <[EMAIL PROTECTED]>
To: PHP User Group <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 6:58 PM
Subject: [PHP] File upload problem on IIS/NT4


> Hi guys, I'm having a problem with file uploads, and I can't seem to
> fix it. I'm on IIS using php as an ISAPI module on NT4, and file uploads
> seem to work, but $userfile does not exist. Any ideas on how I can
> fix it?
>
> userfile:\\php8
> userfile_name:notes.txt
>
> Cheers,
>
> Gfunk -  http://www.gfunk007.com/
>
> I sense much beer in you. Beer leads to intoxication, intoxication to
> hangovers, and hangovers to... suffering.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>





Make sure that upload_tmp_dir in your php.ini file is set to something
sensible for a windows machine.
I have it set to f:\php\temp (and you also need to make sure that the
di

Re: [PHP] Strange behaviour: Cannot exit as expected AND Script starts from the beginning, executed TWICE. Anyone?

2001-02-20 Thread Ben Peter

Yasuo,

the function you call is 

> $msg = user_regist(); 

while in regist_util.inc, the function defined is 

> function regist_user() {

Could that be the problem? Do you see any errors about undefined
functions?

Cheers,
Ben

Yasuo Ohgaki wrote:
> 
> This is really strange. PHP fails to exit / die form script after include /
> require / include_once / required_once (I tested with all of them, same
> result).
> In addition to this, script gets started again automatically from the
> beginning.
> (You probably think this is a another newbie mistakes, but I think it is
> not)
> 
> Does anyone have the same experience?
> I'm asking to decide if this is worth to report as a bug. If anyone does not
> have this problem but me. I'll just leave it alone. (I cannot reproduce this
> with simple script anyway)
> 
> I cannot reproduce this behavior with simple script, but it does every time
> on my script.
> 
> PHP 4.0.4pl1 with PostgreSQL, mhash, mcript, gd, and others
> Apache 1.3.17 (mod_php, mod_gzip, mod_ssl and others)
> RedHat Linux7.0.1/ja
> (Apache and PHP are build from source)
> 
> My code does as follows
> 
> In user registration form (regist.php)
>  - require_once() to include registration function
>  - call registration function
>  - if the function does not exit, display HTML in this registration file.
> regist.php looks like
> 
>  require_once('regist_util.inc');
> 
> $msg = user_regist(); // defined in regist_util.inc
> 
> ?>
> 
> 
> 
> 
> 
> 
> 
> 
> -
> 
> regist_util.inc does <= THIS FILE HAS PROBLEM
>  - check if there is the same user name is registered
>  - if there is, return 'Choose other name' error (or other error)
>  - if not, insert user data into database and send notify email, include
> other html file
>to show user registered successfully. Then exit script.
> regist_util.inc looks like
> --
>  function regist_user() {
>   global $HTTP_POST_VARS;
>   $error = array();
>   // check inputs add errors, add error like $error[] = 'Error1'; $error[] =
> 'Error2';
>   // check database
>   $db = pg_pconnect();
>   $qid = pg_exec("select * from user where username = '".
> $HTTP_POST_VARS['username'] ."'");
>   if (pg_numrow($qid) > 0) {
> $error[] = 'Choose other name';
>   }
>   if (count($error) == 0) {
> // INSERT DATA - data is inserted if username is new
> .
> // SEND EMAIL - mail is sent if username is new
>...
> <=  if I put die() or exit() BEFORE include PHP exits from script as
> expected. 
> // include HTML file (with just a little PHP code)
> include('registered.php'); <=  THIS IS NOT DISPLAYED AT ALL **
> // If I remove include(), it exits from script.
> exit;  <= * DOES NOT EXIT or DIE HERE *
> 
> // Script seems start from the beginning. It shows 'Choose other name' error
> and
> // there is the data newly creating in database, even if the user table is
> empty.
> // Because data with the username was inserted at 1 first time script
> iteration.
> // For the second time, script finds the username (of course) and return
> 'Choose
> // other name' error.
> 
> // Since I did get ANY additional HTML, but HTML codes in regist.php when
> // this happened, I thought it might  something to do with 'ob_gzhandler'. I
> // disabled it. But no difference. This makes difficult to find out what PHP
> is
> // doing, now I'm sure PHP is executing the scripts TWICE.
> // Reason:
> //   1) There will be a new db table row every time I use new username.
> //   2) I get notification email every time I use new username.
> // (I thought PHP never buffer outputs unless user explicitly to do so)
> 
> // If I redirect, it works as expected I would rather not to show
> registered.php, since
> // user does not have to access this page directly. (I can work around this
> with different
> // way, so I will do so)
> 
> // By the way, I use EUC-JP code, which is multi-byte char code set, in
> scripts
> // and HTML part, etc. EUC-JP supposed to work well for many programs
> written
> // for single byte char code set. However, it might something to do with
> char code.
> // I'm using. So far, I didn't have problems. May be this is the first time.
> (I haven't
> // investigated yet)
>   }
> }
> ---
> 
> registered.php looks like
> --
> 
> 
> You have been registered to this web site
> username = 
> ..
> 
> 
> ---
> 
> --
> Yasuo Ohgaki
> 
> --
> PHP General Mailing List (http://www.php.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: [

Re: [PHP] HTTP Content-length...

2001-02-20 Thread Ben Peter

Evan,

I have no good answer to your problem, but probably you should have a
look at Snoopy (snoopy.sourceforce.net), which implements HTTP posts,
along with some other nifty functions and is very easy to use.

Cheers,
Ben

"Montgomery-Recht, Evan" wrote:
> 
> I'm working through geting the raw sockets implementation to send a http
> post command to a cgi-script.
> 
> But there's one thing I'm trying to figure out.
> 
> How do I create the content-length?
> 
> I don't see a obvious way but my expection would be the following code.
> 
> $string ="foo=bar&food=apple";
> $contentlength=$string.size;
> $uuencodestring=uuencode($string);
> 
> but I don't seem to see the easy $string.size ?
> 
> any ideas on a good way to do this?
> 
> thanks,
> 
> evan
> 
> --
> PHP General Mailing List (http://www.php.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 Digest 20 Feb 2001 11:21:25 -0000 Issue 53

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


php-i18n Digest 20 Feb 2001 11:21:25 - Issue 53

Topics (messages 124 through 124):

Fwd
124 by: Taylor Silvers

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]


--



Dear Friends & Future Millionaire: 
AS SEEN ON NATIONAL TV: ''Making over half million dollars 
every 4 to 5 months from your home for an investment of only 
$25 U.S. Dollars expense one time'' 
BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! Before you say 
''Bull'', please read the following. This is the letter you 
have been hearing about on the news lately. Due to the 
popularity of this letter on the Internet, a national weekly 
news program recently devoted an entire show to the 
investigation of this program described below, to see if it 
really can make people money. The show also investigated 
whether or not the program was legal. 
Their findings proved once and for all that there are 
''absolutely NO Laws prohibiting the participation in the 
program and if people can -follow the simple instructions, 
they are bound to make some mega bucks with only $25 out of 
pocket cost''. DUE TO THE RECENT INCREASE OF POPULARITY & 
RESPECT THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING 
BETTER THAN EVER. 
This is what one had to say: '' Thanks to this profitable 
opportunity. I was approached many times before but each 
time I passed on it. I am so glad I finally joined just to 
see what one could expect in return for the minimal effort 
and money required. To my astonishment, I received total $ 
610,470.00 in 21 weeks, with money still coming in''. Pam 
Hedland, Fort Lee, New Jersey. 
 
Here is another testimonial: ''' this program has 
been around for a long time but I never believed in it. But 
one day when I received this again in the mail I decided to 
gamble my $25 on it. I followed the simple instructions and 
walaa . 3 weeks later the money started to come in. 
First month I only made $240.00 but the next 2 months after 
that I made a total of $290,000.00. So far, in the past 8 
months by re-entering the program, I have made over 
$710,000.00 and I am playing it again. The key to success in 
this program is to follow the simple steps and NOT change 
anything.'' More testimonials later but first, 
 PRINT THIS NOW FOR YOUR FUTURE REFERENCE == 
(Or Have it E-mailed to you-See Submit Button Below) 
 
If you would like to make at least 
$500,000 every 4 to 5 months easily and comfortably, please 
read the following...THEN READ IT AGAIN and AGAIN !!! 
 
FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL 
DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS: 
= Order all 5 reports shown on the list below. = 
For each report, send $5 CASH, THE NAME & NUMBER OF THE 
REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the 
person whose name appears ON THAT LIST next to the report. 
MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFT 
CORNER in case of any mail problems. 
=== When you place your order, make sure you order each of 
the 5 reports. You will need all 5 reports so that you can 
save them on your computer and resell them. YOUR TOTAL COST 
$5 X 5=$25.00. 
=== Within a few days you will receive, vie e-mail, each of 
the 5 reports from these 5 different individuals. Save them 
on your computer so they will be accessible for you to send 
to the 1,000's of people who will order them from you. Also 
make a floppy of these reports and keep it on your desk in 
case something happen to your computer. 
=== IMPORTANT __ DO NOT alter the names of the people who 
are listed next to each report, or their sequence on the 
list, in any way other than what is instructed below in step 
'' 1 through 6 '' or you will lose out on majority of your 
profits. Once you understand the way this works, you will 
also see how it does not work if you change it. Remember, 
this method has been tested, and if you alter, it will NOT 
work !!! People have tried to put their friends/relatives 
names on all five thinking they could get all the money. But 
it does not work this way. Believe us, we all have tried to 
be greedy and then nothing happened. So Do Not try to change 
anything other than what is instructed. Because if you do, 
it will not work for you. Remember, honesty reaps the 
reward!!! 
1 After you have ordered all 5 reports, take this 
advertisement and REMOVE the name & address of the person in 
REPORT # 5. This person has made it through the cycle and is 
no doubt counting their fortune. 2 Move the name & 
address in REPORT # 4 down TO REPORT # 5. 3 Move the 
name & address in REPORT # 3 down TO RE

[PHP-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php

2001-02-20 Thread Sergey Kartashoff

gluke   Tue Feb 20 03:29:15 2001 EDT

  Modified files:  
/php4/ext/mnogosearch   php_mnogo.c test.php 
  Log:
  Phrase search support has been added to mnogosearch extenstion. 
  Min_word_len and Max_word_len support has been added to mnogosearch
  extension. Example updated.
  
  
Index: php4/ext/mnogosearch/php_mnogo.c
diff -u php4/ext/mnogosearch/php_mnogo.c:1.15 php4/ext/mnogosearch/php_mnogo.c:1.16
--- php4/ext/mnogosearch/php_mnogo.c:1.15   Thu Feb 15 03:50:48 2001
+++ php4/ext/mnogosearch/php_mnogo.cTue Feb 20 03:29:15 2001
@@ -1,5 +1,5 @@
 /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.15 2001/02/15 11:50:48 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.16 2001/02/20 11:29:15 gluke Exp $ */
 
 /*
+--+
@@ -54,6 +54,9 @@
 #define UDM_PARAM_STOPFILE 8
 #define UDM_PARAM_WEIGHT_FACTOR9
 #define UDM_PARAM_WORD_MATCH   10
+#define UDM_PARAM_PHRASE_MODE  11
+#define UDM_PARAM_MIN_WORD_LEN 12
+#define UDM_PARAM_MAX_WORD_LEN 13
 
 /* udm_add_search_limit constants */
 #define UDM_LIMIT_URL  1
@@ -65,6 +68,10 @@
 #define UDM_TRACK_ENABLED  1
 #define UDM_TRACK_DISABLED 0
 
+/* phrase modes */
+#define UDM_PHRASE_ENABLED 1
+#define UDM_PHRASE_DISABLED0
+
 /* udm_get_res_param constants */
 #define UDM_PARAM_NUM_ROWS 256
 #define UDM_PARAM_FOUND257
@@ -160,6 +167,11 @@
REGISTER_LONG_CONSTANT("UDM_PARAM_STOP_FILE",   UDM_PARAM_STOPFILE,CONST_CS | 
CONST_PERSISTENT);

REGISTER_LONG_CONSTANT("UDM_PARAM_WEIGHT_FACTOR",UDM_PARAM_WEIGHT_FACTOR,CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_PARAM_WORD_MATCH",  UDM_PARAM_WORD_MATCH,CONST_CS 
| CONST_PERSISTENT);
+   REGISTER_LONG_CONSTANT("UDM_PARAM_PHRASE_MODE", UDM_PARAM_PHRASE_MODE,CONST_CS 
+| CONST_PERSISTENT); 
+   
+REGISTER_LONG_CONSTANT("UDM_PARAM_MAX_WORD_LEN",UDM_PARAM_MAX_WORD_LEN,CONST_CS | 
+CONST_PERSISTENT);
+   REGISTER_LONG_CONSTANT("UDM_PARAM_MAX_WORDLEN",UDM_PARAM_MAX_WORD_LEN,CONST_CS 
+| CONST_PERSISTENT); 
+   
+REGISTER_LONG_CONSTANT("UDM_PARAM_MIN_WORD_LEN",UDM_PARAM_MIN_WORD_LEN,CONST_CS | 
+CONST_PERSISTENT);
+   REGISTER_LONG_CONSTANT("UDM_PARAM_MIN_WORDLEN",UDM_PARAM_MIN_WORD_LEN,CONST_CS 
+| CONST_PERSISTENT); 

/* udm_add_search_limit constants */
REGISTER_LONG_CONSTANT("UDM_LIMIT_CAT", UDM_LIMIT_CAT,CONST_CS | 
CONST_PERSISTENT);
@@ -181,6 +193,7 @@
REGISTER_LONG_CONSTANT("UDM_MODE_ALL",  UDM_MODE_ALL,CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_MODE_ANY",  UDM_MODE_ANY,CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_MODE_BOOL", UDM_MODE_BOOL,CONST_CS | 
CONST_PERSISTENT);
+   REGISTER_LONG_CONSTANT("UDM_MODE_PHRASE",   UDM_MODE_PHRASE,CONST_CS | 
+CONST_PERSISTENT);
 
/* search cache params */
REGISTER_LONG_CONSTANT("UDM_CACHE_ENABLED", UDM_CACHE_ENABLED,CONST_CS | 
CONST_PERSISTENT);
@@ -190,6 +203,10 @@
REGISTER_LONG_CONSTANT("UDM_TRACK_ENABLED", UDM_TRACK_ENABLED,CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_TRACK_DISABLED",UDM_TRACK_DISABLED,CONST_CS | 
CONST_PERSISTENT);

+   /* phrase mode params */
+   REGISTER_LONG_CONSTANT("UDM_PHRASE_ENABLED",UDM_PHRASE_ENABLED,CONST_CS | 
+CONST_PERSISTENT);
+   REGISTER_LONG_CONSTANT("UDM_PHRASE_DISABLED",   UDM_PHRASE_DISABLED,CONST_CS | 
+CONST_PERSISTENT);
+   
/* word match mode params */
REGISTER_LONG_CONSTANT("UDM_MATCH_WORD",UDM_MATCH_WORD,CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_MATCH_BEGIN",   UDM_MATCH_BEGIN,CONST_CS | 
CONST_PERSISTENT);
@@ -333,6 +350,10 @@
case UDM_MODE_BOOL: 
Agent->search_mode=UDM_MODE_BOOL;
break;
+
+   case UDM_MODE_PHRASE: 
+   Agent->search_mode=UDM_MODE_PHRASE;
+   break;

default:

php_error(E_WARNING,"Udm_Set_Agent_Param: Unknown search mode");
@@ -404,7 +425,25 @@
}

break;
+   
+   case UDM_PARAM_PHRASE_MODE: 
+   switch (atoi(val)){
+   case UDM_PHRASE_ENABLED:
+   Agent->Conf->use_phrases=UDM_PHRASE_ENABLED;
+   break;
+   
+   case UDM_PHRASE_DISABLED

[PHP] Redirect page

2001-02-20 Thread Rosen

Hi,
I have php script and I want to redirect user to different pages.
I tryed with
header("Location: main.php");

but i receive error:

Warning: Cannot add header information - headers already sent by (output
started at F:\Inetpub\wwwroot\pernik\go.php:2) in
F:\Inetpub\wwwroot\pernik\go.php on line 6




-- 
PHP General Mailing List (http://www.php.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/midgard config.m4 mgd_access.h mgd_preparser.h php_midgard.h

2001-02-20 Thread Emiliano Heyns

emile   Tue Feb 20 03:29:52 2001 EDT

  Modified files:  
/php4/ext/midgard   config.m4 mgd_access.h mgd_preparser.h 
php_midgard.h 
  Log:
  Header file moved.
  
  
Index: php4/ext/midgard/config.m4
diff -u php4/ext/midgard/config.m4:1.5 php4/ext/midgard/config.m4:1.6
--- php4/ext/midgard/config.m4:1.5  Sat Feb 17 15:21:49 2001
+++ php4/ext/midgard/config.m4  Tue Feb 20 03:29:51 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.5 2001/02/17 23:21:49 emile Exp $
+dnl $Id: config.m4,v 1.6 2001/02/20 11:29:51 emile Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -28,7 +28,7 @@
 if test "$PHP_MIDGARD" != "no"; then
   if test "$PHP_MIDGARD" != "yes"; then
 AC_ADD_LIBRARY_WITH_PATH(midgard, "$PHP_MIDGARD/lib", MIDGARD_SHARED_LIBADD)
-AC_ADD_INCLUDE("$PHP_MIDGARD/include")
+AC_ADD_INCLUDE("$PHP_MIDGARD/include/midgard")
   else
 AC_ADD_LIBRARY(midgard)
   fi
Index: php4/ext/midgard/mgd_access.h
diff -u php4/ext/midgard/mgd_access.h:1.3 php4/ext/midgard/mgd_access.h:1.4
--- php4/ext/midgard/mgd_access.h:1.3   Sat Feb 17 15:21:50 2001
+++ php4/ext/midgard/mgd_access.h   Tue Feb 20 03:29:52 2001
@@ -1,4 +1,4 @@
-/* $Id: mgd_access.h,v 1.3 2001/02/17 23:21:50 emile Exp $
+/* $Id: mgd_access.h,v 1.4 2001/02/20 11:29:52 emile Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -21,7 +21,7 @@
 #ifndef MGD_ACCESS_H
 #define MGD_ACCESS_H
 
-#include 
+#include 
 
 #define istopicreader(topic) mgd_istopicreader(mgd_handle(), (topic))
 #define istopicowner(topic) mgd_istopicowner(mgd_handle(),(topic))
Index: php4/ext/midgard/mgd_preparser.h
diff -u php4/ext/midgard/mgd_preparser.h:1.3 php4/ext/midgard/mgd_preparser.h:1.4
--- php4/ext/midgard/mgd_preparser.h:1.3Sat Feb 17 15:21:50 2001
+++ php4/ext/midgard/mgd_preparser.hTue Feb 20 03:29:52 2001
@@ -1,4 +1,4 @@
-/* $Id: mgd_preparser.h,v 1.3 2001/02/17 23:21:50 emile Exp $
+/* $Id: mgd_preparser.h,v 1.4 2001/02/20 11:29:52 emile Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -21,7 +21,7 @@
 #ifndef MGD_PREPARSER_H
 #define MGD_PREPARSER_H
 #include "mgd_internal.h"
-#include "midgard.h"
+#include "midgard/midgard.h"
 #include 
 
 extern MGD_FUNCTION(template);
Index: php4/ext/midgard/php_midgard.h
diff -u php4/ext/midgard/php_midgard.h:1.4 php4/ext/midgard/php_midgard.h:1.5
--- php4/ext/midgard/php_midgard.h:1.4  Tue Feb 20 02:59:55 2001
+++ php4/ext/midgard/php_midgard.h  Tue Feb 20 03:29:52 2001
@@ -1,4 +1,4 @@
-/* $Id: php_midgard.h,v 1.4 2001/02/20 10:59:55 emile Exp $
+/* $Id: php_midgard.h,v 1.5 2001/02/20 11:29:52 emile Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -29,7 +29,7 @@
 #if HAVE_MIDGARD
 
 #include 
-#include 
+#include 
 #include 
 #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 /ext/yaz php_yaz.c

2001-02-20 Thread Adam Dickmeiss

dickmeiss   Tue Feb 20 03:40:36 2001 EDT

  Modified files:  
/php4/ext/yaz   php_yaz.c 
  Log:
  Yet another bug fix regarding present.
  
  
Index: php4/ext/yaz/php_yaz.c
diff -u php4/ext/yaz/php_yaz.c:1.11 php4/ext/yaz/php_yaz.c:1.12
--- php4/ext/yaz/php_yaz.c:1.11 Mon Feb 19 09:06:39 2001
+++ php4/ext/yaz/php_yaz.c  Tue Feb 20 03:40:35 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: php_yaz.c,v 1.11 2001/02/19 17:06:39 dickmeiss Exp $ */
+/* $Id: php_yaz.c,v 1.12 2001/02/20 11:40:35 dickmeiss Exp $ */
 
 #include "php.h"
 
@@ -372,14 +372,17 @@
NMEM nmem = odr_extract_mem (t->odr_in);
Z_NamePlusRecordList *p =
sr->u.databaseOrSurDiagnostics;
-   for (j = 0; j < t->resultSets->recordList->num_records; j++)
+   if (t->resultSets->recordList)
+   {
+   for (j = 0; j < 
+t->resultSets->recordList->num_records; j++)
if (!t->resultSets->recordList->records[j])
break;
-   for (i = 0; inum_records; i++)
-   t->resultSets->recordList->records[i+j] = 
p->records[i];
-   /* transfer our response to search_nmem .. we need it later */
-   nmem_transfer (t->resultSets->odr->mem, nmem);
-   nmem_destroy (nmem);
+   for (i = 0; inum_records; i++)
+   t->resultSets->recordList->records[i+j] = 
+p->records[i];
+   /* transfer our response to search_nmem .. we need it 
+later */
+   nmem_transfer (t->resultSets->odr->mem, nmem);
+   nmem_destroy (nmem);
+   }
if (present_phase && p->num_records == 0)
{
/* present response and we didn't get any records! */



-- 
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] HTTP Content-length...

2001-02-20 Thread Hrishi

> $string ="foo=bar&food=apple";
> $contentlength=$string.size;
> $uuencodestring=uuencode($string);

uuencode ? are you looking at urlencode ?

use
$contentlength=strlen($string);

also remember according to the HTTP protocol, you have to show the length of 
the encoded string, not the original; which in PHP will look like :



other methods may or may not work if they're not HTTP compliant.

cheers,
hrishi

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

2001-02-20 Thread Ben Peter

Rosen,

You have to make sure that nothing is output before the header function.
Make sure that you neither employ an echo or print before, and have
nothing outside of th ephp code (the part enwrapped in ), not even whitespace.
You critical spot seems to be line 2 in go.php

Cheers,
Ben

Rosen wrote:
> 
> Hi,
> I have php script and I want to redirect user to different pages.
> I tryed with
> header("Location: main.php");
> 
> but i receive error:
> 
> Warning: Cannot add header information - headers already sent by (output
> started at F:\Inetpub\wwwroot\pernik\go.php:2) in
> F:\Inetpub\wwwroot\pernik\go.php on line 6
> 
> --
> PHP General Mailing List (http://www.php.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] MyODBC and Crystal Reports

2001-02-20 Thread Bruno Freire

Hi, everybody!

It's me again Bruno, from Brazil.

Now i'm having some problems with MyODBC and Crystal.
 I have an ODBC named MyCOMERCIAL. 
I did make a report in the Crystal linked at this ODBC.
When I call this report or update the data in the report from crystal
reports, everythink is OK.
When I call from the browser, the report comes with the last saved data. But
when I update this data, the Crystal Reports ask me for database login and
password. I did enter my passwords but the Crystal ask me again.

Somebody have any idea what can this be???

Thanks!!

Bruno



[PHP] LDAP Admin Tool

2001-02-20 Thread Ali

Hello,

does anybody know of a LDAP Admin Tool (apart from LDAP Explorer) written in
php. Any hint would be appreciated.

Ali


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




[PHP] processing form data

2001-02-20 Thread Denis L. Menezes

Hello friends.

I am new to php4 which I am running on an intel machine with NT4 sp6 and
IIS4.

I have 2 forms name.php and username.php When I run the name.php, and click
"submit data" button, the username.php does not appear. I have both the
files in the same directory which is c:\inetpub\wwwroot. Appears to me that
the FORM ACTION is not working and my username.php is noyt called. Can
someone please help me and advise what I am doing wrong.





Please enter your name here :














Thanks in advance
Denis




-- 
PHP General Mailing List (http://www.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] processing form data

2001-02-20 Thread Thomas Deliduka

Change your form method to GET and find out what's being passed.

Check your php.ini file. I think it's the "track vars" command that
determines whether the variables will be parsed on the next page.

On 2/20/01 9:16 AM this was written:

> I am new to php4 which I am running on an intel machine with NT4 sp6 and
> IIS4.
> 
> I have 2 forms name.php and username.php When I run the name.php, and click
> "submit data" button, the username.php does not appear. I have both the
> files in the same directory which is c:\inetpub\wwwroot. Appears to me that
> the FORM ACTION is not working and my username.php is noyt called. Can
> someone please help me and advise what I am doing wrong.
> 
> 
> 
> 
> 
> Please enter your name here :
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  echo ("Welcome, " . $username . "!")
> ?>
> 
> 
> 
> Thanks in advance
> Denis

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.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] processing form data

2001-02-20 Thread Thomas Deliduka

Correction

To quote from a previous e-mail from some one else:

If register_globals is true, the variable is also available in the
global scope as $rosen (as in Rosen's example).
If this does not work, it would seem that register_globals is not set [in
the php.ini file].


On 2/20/01 9:16 AM this was written:

> Hello friends.
> 
> I am new to php4 which I am running on an intel machine with NT4 sp6 and
> IIS4.
> 
> I have 2 forms name.php and username.php When I run the name.php, and click
> "submit data" button, the username.php does not appear. I have both the
> files in the same directory which is c:\inetpub\wwwroot. Appears to me that
> the FORM ACTION is not working and my username.php is noyt called. Can
> someone please help me and advise what I am doing wrong.
> 
> 
> 
> 
> 
> Please enter your name here :
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  echo ("Welcome, " . $username . "!")
> ?>
> 
> 

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.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] processing form data

2001-02-20 Thread John Vanderbeck

Try changing your echo line to:

echo ("Welcome $HTTP_POST_VARS[username]!");

- John Vanderbeck
- Admin, GameDesign


> 
> 
> 
>  echo ("Welcome, " . $username . "!")
> ?>
> 
> 
> 
> Thanks in advance
> Denis
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.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] 'use' and 'import'

2001-02-20 Thread Michael Dearman

I give up. The PEAR docs refer to 'use' or 'import'. I know I've seen
'import' somewhere, but I can't find either in my ref books, searches on
Zend.org, nor the manual. Could someone direct me to where
these 2 functions? / statements? / directives? are explained.

Thanks,
Mike D.

-- 
PHP General Mailing List (http://www.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] Multiple URLs and cookies

2001-02-20 Thread Jeremy Gillies

How will that work with three URLs and frequent language switching?

Thanks,
jer

> You can't do setcookie and Location: in the same page.
> Once they picked a language, set the cookie and return the 
> HTML content for
> that home page, don't redirect.
> 
> --
> Visit the Zend Store at http://www.zend.com/store/
> Wanna help me out?  Like Music?  Buy a CD: 
> http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> - Original Message -
> From: Jeremy Gillies <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Monday, February 19, 2001 9:43 AM
> Subject: [PHP] Multiple URLs and cookies
> 
> 
> > Hello all!
> >
> > Okay, still going at it with PHP vs. JavaScript -- although 
> one can remove
> > the power if they disable cookies -- in fact, with the way 
> it is set up
> > here, it is doubtful they will get to the right page if they switch
> > languages, but i can work that out later with a simple 
> if-then statement
> > that will create the link -- a test to see if cookies are 
> enabled then
> print
> > the correct URL.
> >
> > 1) Joe: I used the index (splash.php) and choice pages 
> (choice.php) as per
> > your suggestion. It works without a hitch. The cookie is 
> set and it goes
> > accordingly from the splash.php page once you have mad a selection.
> >
> > 2) Angela: I have added a third page to this mix, a 
> lang_swap.php which is
> > called from the document that people are looking at. So now 
> it goes from a
> > language button on a doc, passes a document id to the 
> lang_swap.php page
> > where a similar process tot he choice.php page takes place, sets the
> cookie
> > value to the other language, and kicks it back to the 
> french version of
> the
> > english document (and vice-versa). It's all pretty quick, so i'm not
> worried
> > about the page requests and lag.
> >
> >
> > The trouble is... the lang_swap.php will not set the cookie for the
> language
> > change. If i swap to french and then i go back and load the 
> splash page,
> it
> > send me to the english-front again, but it should send me to the
> > french-front... i was having this problem before when i was 
> trying to get
> > this all to work... once the variable was set, i could not get it to
> change.
> >
> > Thanks for your help and in advance of some more!
> > Jer
> > Canadian Union of Postal Workers
> >
> >
> > --
> > The splash.php is as follows:
> > --
> >  >   if ((IsSet($lang)) || ($lang = "1") || ($lang = "2"))
> > switch($lang)
> >   {
> > case 1:
> >   header("Location: 
> http://www.english.com/english-front-page.php");
> >   exit;
> >   break;
> > case 2:
> >   header("Location: http://www.franch.com/french-front-page.php");
> >   exit;
> >   break;
> >   }
> > ?>
> > 
> > .
> > passes a value to choice.php... depending upon langauge select...
> > .
> > 
> >
> > --
> >
> >
> > --
> > The choice.php is as follows:
> > --
> >
> >  >
> > if(strlen($lang))
> > {
> >   switch($lang)
> >   {
> > case 1:
> >   setcookie ("lang", "1", "http://www.english.com/", "", 0);
> >   header("Location: http://www.english.com/english-front-page.php");
> >   exit;
> >   break;
> > case 2:
> >   setcookie ("lang", "2", "http://www.french.com/", "", 0);
> >   header("Location: 
http://www.franch.com/french-front-page.php");
>   exit;
>   break;
>   }
> }
> ?>
>
> 
> 
> Choice
> 
> 
> 
>
>
> --
>
>
> --
> The lang_swap.php is as follows:
> -
>
>  if ((IsSet($lang)) || ($lang = "1") || ($lang = "2"))
> switch($lang)
>   {
> /* here is the swap */
> case 1:
> setcookie ("lang", "2", "http://www.french.com/", "", 0);
>   header("Location:
> http://www.french.com/document-fra.php?Doc_ID=$Ident");
>   exit;
>   break;
> case 2:
>   setcookie ("lang", "1", "http://www.english.com/", "", 0);
>   header("Location:
> http://www.english.com/document-eng.php?Doc_ID=$Ident");
>   exit;
>   break;
>   }
> ?>
>
> 
> 
> Lang Swap
> 
> 
> 
>
>
> --
> PHP General Mailing List (http://www.php.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-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski

On Tue, 20 Feb 2001, Jason Greene wrote:
> + if (behavior == 0) {
> + compare_func = is_equal_function;
> + } else {
> + /* Lets not return a key unless the values are exact */
> + compare_func = is_identical_function;
> + }

Why not? Why should it be different from behavior of in_array?

-Andrei

"Later in this talk, I intend to define
 the universe and give three examples." -- Larry Wall

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

2001-02-20 Thread Siim Einfeldt aka Itpunk


Hey

 I know this topic has been 'in the area' lots od times, but does anybody
know of any scripts that are out there whichi I could use to let users of
my website send SMS? And secondly, can I offer it as a free service (this
would assume I don`t have to pay for it myself either)?

Or is anyone using some related script on his/her website?

Thanks
Siim EInfeldt


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




[PHP] Help?

2001-02-20 Thread Wee Chua

Hi all,
I am sorry for asking this question but I just need some opinions or answers
from you all. The question is "What are the limitations of software
testing?" 
Thanks for any helps in advance.

Calvin

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

2001-02-20 Thread Jaxon

Hi,

is eval() really that expensive?
I want to parse a bunch of PHP 'modules' into an HTML string, so I can
mostly separate content from markup.
I've found a couple of comments on the list that say it is expensive, but
none of my PHP books mention it :)

cheers!
jaxon


-- 
PHP General Mailing List (http://www.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] Open location automatically after checking

2001-02-20 Thread Edith Lai

I tried this but get error message. It says that i've opened a header and
can't open another things like that.

Is this the only way to do that?

For your reference, my php file looks like this:




""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message
01e801c09ac4$9f0a6520$[EMAIL PROTECTED]">news:01e801c09ac4$9f0a6520$[EMAIL PROTECTED]...
> You could do:
>
> header("Location: page2.php");
>
> But you may need to pass some variables such as:
>
> header("Location: page2.php?SESSID=$SESSID");
>
> You'd probably be better of having the error checking at the top of the
> second page and sending them *back* to the first page if they got it
wrong.
>
> --
> Visit the Zend Store at http://www.zend.com/store/
> Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> - Original Message -
> From: "Edith Lai" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Monday, February 19, 2001 9:54 AM
> Subject: [PHP] Open location automatically after checking
>
>
> > Hi,
> > I have a form for user input and after checking, it's gonna go to
another
> > page for further input. What should i code to bring the second input
page
> up
> > after checking done on the first??
> > Thanks.
> >
> > Edith Lai
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.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] Newbie password-check program

2001-02-20 Thread Ronald Hemmink

Hello there fellow programmer,

I just started learning PHP (I got version 4 installed with Apache on a
Win98 machine). At the moment I'm trying to write a little program that
verifies a user login.
I know the program is not professional but for me it will do. Only I got
stuck with the following problem. I have written a class (I'm not very
sure if this is the right way to do this) in which I specified a
function that does the password check. 
Now I like the program to check the password and return me a true or a
false which I can read from somewhere else in my program.
I wrote it like this:



   Password Check



 " METHOD="POST">
 User name is:
  

 " ?>

 
  
 

 GeefInfo)&&IsSet($this->UserName))
   {
$this->UserName=strtoupper($this->UserName);
 $this->passwd=strtoupper($this->passwd);

   if (IsSet($this->passwd))
 {
if ($this->passwd=="MYPASS" &&
$this->UserName=="RONALD")
{
 $this-> testvar=1;
 exit(1);
}
else
{
 $this-> testvar=0;
 exit(0);
}

 }
 
}
  }
}?>




checkpwd(); 
print $exec_pwd; // Where is my output   ?
?>




If you can and like to help me I will be very pleased.
Thanks in advance !!!

Ronald


--
PHP General Mailing List (http://www.php.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 array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski

andrei  Tue Feb 20 06:23:03 2001 EDT

  Modified files:  
/php4/ext/standard  array.c basic_functions.c php_array.h 
  Log:
  Rename to array_search().
  
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.92 php4/ext/standard/array.c:1.93
--- php4/ext/standard/array.c:1.92  Mon Feb 19 21:36:40 2001
+++ php4/ext/standard/array.c   Tue Feb 20 06:23:03 2001
@@ -21,7 +21,7 @@
+--+
 */
 
-/* $Id: array.c,v 1.92 2001/02/20 05:36:40 jason Exp $ */
+/* $Id: array.c,v 1.93 2001/02/20 14:23:03 andrei Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -1107,12 +1107,11 @@
zend_hash_move_forward_ex(target_hash, &pos);
}

-   if (behavior == 0) { 
-   RETURN_FALSE;  
+   if (behavior == 0) {
+   RETURN_FALSE;
} else { 
return;
}
-   
 }
 
 
@@ -1124,9 +1123,9 @@
 }
 /* }}} */
 
-/* {{{ proto mixed search_array(mixed needle, array haystack [, bool strict])
+/* {{{ proto mixed array_search(mixed needle, array haystack [, bool strict])
Searches the array for a given value and returns the corresponding key if 
successful */
-PHP_FUNCTION(search_array)
+PHP_FUNCTION(array_search)
 {
php_search_array(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
 }
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.306 
php4/ext/standard/basic_functions.c:1.307
--- php4/ext/standard/basic_functions.c:1.306   Mon Feb 19 21:36:40 2001
+++ php4/ext/standard/basic_functions.c Tue Feb 20 06:23:03 2001
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: basic_functions.c,v 1.306 2001/02/20 05:36:40 jason Exp $ */
+/* $Id: basic_functions.c,v 1.307 2001/02/20 14:23:03 andrei Exp $ */
 
 #include "php.h"
 #include "php_main.h"
@@ -550,7 +550,7 @@
PHP_FE(min,
 NULL)
PHP_FE(max,
 NULL)
PHP_FE(in_array,   
 NULL)
-   PHP_FE(search_array,   
 NULL)
+   PHP_FE(array_search,NULL)
PHP_FE(extract,
 NULL)
PHP_FE(compact,
 NULL)
PHP_FE(range,  
 NULL)
Index: php4/ext/standard/php_array.h
diff -u php4/ext/standard/php_array.h:1.19 php4/ext/standard/php_array.h:1.20
--- php4/ext/standard/php_array.h:1.19  Mon Feb 19 21:36:40 2001
+++ php4/ext/standard/php_array.h   Tue Feb 20 06:23:03 2001
@@ -19,7 +19,7 @@
+--+
 */
 
-/* $Id: php_array.h,v 1.19 2001/02/20 05:36:40 jason Exp $ */
+/* $Id: php_array.h,v 1.20 2001/02/20 14:23:03 andrei Exp $ */
 
 #ifndef PHP_ARRAY_H
 #define PHP_ARRAY_H
@@ -49,7 +49,7 @@
 PHP_FUNCTION(min);
 PHP_FUNCTION(max);
 PHP_FUNCTION(in_array);
-PHP_FUNCTION(search_array);
+PHP_FUNCTION(array_search);
 PHP_FUNCTION(extract);
 PHP_FUNCTION(compact);
 PHP_FUNCTION(range);



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




[PHP-CVS] cvs: php4 /ext/zlib zlib.dsp

2001-02-20 Thread Daniel Beulshausen

dbeuTue Feb 20 07:05:37 2001 EDT

  Modified files:  
/php4/ext/zlib  zlib.dsp 
  Log:
  changed zlibstat.lib -> zlib.lib, which is the correct name
  
Index: php4/ext/zlib/zlib.dsp
diff -u php4/ext/zlib/zlib.dsp:1.11 php4/ext/zlib/zlib.dsp:1.12
--- php4/ext/zlib/zlib.dsp:1.11 Thu Aug 24 10:48:30 2000
+++ php4/ext/zlib/zlib.dsp  Tue Feb 20 07:05:37 2001
@@ -54,7 +54,7 @@
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
php4ts.lib /nologo /dll /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib php4ts.lib 
zlibstat.lib /nologo /dll /machine:I386 /out:"..\..\Release_TS/php_zlib.dll" 
/libpath:"..\..\Release_TS" /libpath:"..\..\..\php_build\zlib\Release" 
/libpath:"..\..\Release_TS_Inline"
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
+shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib php4ts.lib 
+zlib.lib /nologo /dll /machine:I386 /out:"..\..\Release_TS/php_zlib.dll" 
+/libpath:"..\..\Release_TS" /libpath:"..\..\..\php_build\zlib\Release" 
+/libpath:"..\..\Release_TS_Inline"
 
 !ELSEIF  "$(CFG)" == "zlib - Win32 Debug_TS"
 
@@ -81,7 +81,7 @@
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
php4ts_debug.lib /nologo /dll /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib php4ts_debug.lib 
zlibstat.lib /nologo /dll /machine:I386 /out:"..\..\Debug_TS/php_zlib.dll" 
/libpath:"..\..\Debug_TS" /libpath:"..\..\..\php_build\zlib\Debug"
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
+shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib php4ts_debug.lib 
+zlib.lib /nologo /dll /machine:I386 /out:"..\..\Debug_TS/php_zlib.dll" 
+/libpath:"..\..\Debug_TS" /libpath:"..\..\..\php_build\zlib\Debug"
 
 !ENDIF 
 



-- 
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] using include_path with file_exists()

2001-02-20 Thread Michael Dearman

Hi Ben,
I thought maybe there was something like HTTP_SERVER_VARS["INCLUDE_PATH"],
but apparently not.

Could you just define your own $GLOBALS["my_include_path"] = 
and use that with file_exists()??

Mike D.

Ben Peter wrote:
> 
> Hi all,
> 
> is there a decent way to check whether a file is available on the
> include_path? The only soultion I have found is
> 
> if ( ( $fd = fopen( 'my_file', 'r', 1 ) ) ) {
> fclose( $fd );
> /* ok, file is there */
> }
> 
> That one's not really nice, at it opens the file for reading.
> 
> It would be best to have the include_path switch for file_exists, just
> as it works with fopen.
> 
> Can someone better my workaround above?
> 
> Cheers,
> Ben
>

-- 
PHP General Mailing List (http://www.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] Getting LDAPS to work

2001-02-20 Thread Victor V . Evtushenko

* John Hallam <[EMAIL PROTECTED]> [010215 17:58]:
> I have got php 4.0.4p1 configured with openssl 0.9.6
> and ldap and I'm trying to get an ldap_connect to work
> over ldaps as described in the ldap_connect
> documentation.
> 
> I have no problem connecting using
> ldap_connect(hostname) format but I do have a problem
> with the URL format. This is what I am doing :-
> 
> $Host='ldaps://hostname/';
> $ds=ldap_connect($Host);
> 
> What is wrong ?? any ideas ??
> 
Why don't you try 
$ds = ldap_connect("hostname", 689);
where 689 is port number for SSL connection? If you use another port
number, you should change 689 to whatever you use.

Victor.

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




Re: [PHP] Newbie password-check program

2001-02-20 Thread Chris Lee

try this.

username = @$GLOBALS['username'];
   $this->passwd = @$GLOBALS['passwd'];

   $this->username = strtoupper($this->username);
   $this->passwd = strtoupper($this->passwd);

   if ($this->passwd == 'MYPASS' AND $this->username == 'RONALD')
return 1;
   else
return 0;
  }
 }

 echo "
 
 
 Password Check
 

 

 
 User name is: 
 Give Password: 
 
 
 ";

 $exec_pwd = new password;

 if ($exec_pwd->checkpwd() )
  echo "GOOD PASS \n";
 else
  echo "BAD PASS \n";
?>

want to use http auth, its another way of doing login/pass

\n";
  exit();
 }

 if ( isset($PHP_AUTH_USER) AND isset($PHP_AUTH_PW) AND $peop_r =
fetch_db_value('people_manager', "WHERE username = '$PHP_AUTH_USER' AND
password = '$PHP_AUTH_PW' ") )
  $SessionID = $peop_r['peopleID'];
 else
 {
  Header("WWW-Authenticate: Basic realm='$SERVER_NAME' ");
  Header("HTTP/1.0 401 Unauthorized");
  bad_passwd();
 }
?>

where cookie.egn sets SessionID as a session var. and database.egn contiains
mysql wrapers (fetch_db_value).


--


Chris Lee
Mediawaveonline.com

em. [EMAIL PROTECTED]

ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120


""Ronald Hemmink"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello there fellow programmer,

I just started learning PHP (I got version 4 installed with Apache on a
Win98 machine). At the moment I'm trying to write a little program that
verifies a user login.
I know the program is not professional but for me it will do. Only I got
stuck with the following problem. I have written a class (I'm not very
sure if this is the right way to do this) in which I specified a
function that does the password check.
Now I like the program to check the password and return me a true or a
false which I can read from somewhere else in my program.
I wrote it like this:



   Password Check



 " METHOD="POST">
 User name is:
  

 " ?>

 
  
 

 GeefInfo)&&IsSet($this->UserName))
   {
$this->UserName=strtoupper($this->UserName);
 $this->passwd=strtoupper($this->passwd);

   if (IsSet($this->passwd))
 {
if ($this->passwd=="MYPASS" &&
$this->UserName=="RONALD")
{
 $this-> testvar=1;
 exit(1);
}
else
{
 $this-> testvar=0;
 exit(0);
}

 }

}
  }
}?>




checkpwd();
print $exec_pwd; // Where is my output   ?
?>




If you can and like to help me I will be very pleased.
Thanks in advance !!!

Ronald


--
PHP General Mailing List (http://www.php.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] GD with Jpeg Support Problems

2001-02-20 Thread Chris Lee

what does configure spit out when compiled with your options? does it say

checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... yes
checking for gdImageCreateFromJpeg in -lgd... yes

if not find out where your jpeg libs are [ie. /usr/local/lib] then change
your --with-jpeg-dir=/usr/local

--


Chris Lee
Mediawaveonline.com

em. [EMAIL PROTECTED]

ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120



""Michael Bryan"" <[EMAIL PROTECTED]> wrote in message
004001c09af6$ded35cc0$f45efea9@default">news:004001c09af6$ded35cc0$f45efea9@default...
> Hey Guys..
>
> I've been working on installing GD with support for Jpeg.  I cannot seem
to
> get it working in PHP, however.  When I try to use it in practice, I get
the
> following error:
>
> Warning: ImageCreateFromJpeg: No JPEG support in this PHP build
>
> Here's the configure command I used:
>
>
./configure --with-apache=/usr/local/src/SOURCES/apache_1.3.12 --with-mysql=
> /usr/local --with-jpeg-dir=/usr --with-gd=/usr/local --enable-track-vars
>
> I've tried all different types of directories in the --with-jpeg, and I
> can't get anything to work.  I thought that perhaps GD wasn't compiled
with
> Jpeg Support, so I went ahead and installed the RPMs from Redhat, which I
> know are compiled with that support..because they require the libjpg
package
> to install.
>
> What am I doing wrong?  I've compiled until I'm blue in the face.
>
> The GD Section of phpinfo() shows the following information:
> 
> GD Support enabled
> GD Version 1.6.2 or higher
> PNG Support enabled
> WBMP Support enabled
> -
> But, why is Jpeg Support not enabled?
>
> Thanks,
>
> Michael Bryan
> Virginia Beach, VA
>
>
>
> --
> PHP General Mailing List (http://www.php.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] using include_path with file_exists()

2001-02-20 Thread Ben Peter

Michael,

the include_path is available via ini_get("include_path"). One could
split that path by ":", append the filename to each path and check with
file_exists(), true. I'm not sure whether this wouldn't be more
expensive than using fopen(,,1). Have to check that.

Thanks for the idea,

Ben

Michael Dearman wrote:
> 
> Hi Ben,
> I thought maybe there was something like HTTP_SERVER_VARS["INCLUDE_PATH"],
> but apparently not.
> 
> Could you just define your own $GLOBALS["my_include_path"] =
> and use that with file_exists()??
> 
> Mike D.
> 
> Ben Peter wrote:
> >
> > Hi all,
> >
> > is there a decent way to check whether a file is available on the
> > include_path? The only soultion I have found is
> >
> > if ( ( $fd = fopen( 'my_file', 'r', 1 ) ) ) {
> > fclose( $fd );
> > /* ok, file is there */
> > }
> >
> > That one's not really nice, at it opens the file for reading.
> >
> > It would be best to have the include_path switch for file_exists, just
> > as it works with fopen.
> >
> > Can someone better my workaround above?
> >
> > Cheers,
> > Ben
> >

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




[PHP-CVS] cvs: php4 /ext/satellite config.m4

2001-02-20 Thread David Eriksson

erikssonTue Feb 20 07:12:30 2001 EDT

  Modified files:  
/php4/ext/satellite config.m4 
  Log:
  Corrected typo in config.m4
  
Index: php4/ext/satellite/config.m4
diff -u php4/ext/satellite/config.m4:1.2 php4/ext/satellite/config.m4:1.3
--- php4/ext/satellite/config.m4:1.2Thu Nov 30 14:03:17 2000
+++ php4/ext/satellite/config.m4Tue Feb 20 07:12:30 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.2 2000/11/30 22:03:17 eriksson Exp $
+dnl $Id: config.m4,v 1.3 2001/02/20 15:12:30 eriksson Exp $
 
 dnl My first config.m4 - be nice to me... :-)
 
@@ -17,7 +17,7 @@
 
dnl check for symbol giop_skip_atexit in libIIOP
AC_CHECK_LIB(IIOP, giop_skip_atexit, [true], [
-   AC_MSG_ERROR([You need a CVS version of ORBit, please read 
ext/satallite/README])
+   AC_MSG_ERROR([You need a CVS version of ORBit, please read 
+ext/satellite/README])
], `$orbit_config --libs client`)
 
dnl ORBIT_CFLAGS=`$orbit_config --cflags client`



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




[PHP-CVS] cvs: php4 /ext/swf swf.dsp /win32 php_modules.dsw

2001-02-20 Thread Daniel Beulshausen

dbeuTue Feb 20 07:15:10 2001 EDT

  Removed files:   
/php4/ext/swf   swf.dsp 

  Modified files:  
/php4/win32 php_modules.dsw 
  Log:
  no swf under win32
  
Index: php4/win32/php_modules.dsw
diff -u php4/win32/php_modules.dsw:1.36 php4/win32/php_modules.dsw:1.37
--- php4/win32/php_modules.dsw:1.36 Wed Jan 31 09:12:12 2001
+++ php4/win32/php_modules.dsw  Tue Feb 20 07:15:10 2001
@@ -435,18 +435,6 @@
 
 ###
 
-Project: "swf"=..\ext\swf\swf.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###
-
 Project: "sybase_ct"=..\ext\sybase_ct\sybase_ct.dsp - Package Owner=<4>
 
 Package=<5>



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




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

2001-02-20 Thread David Eriksson

erikssonTue Feb 20 07:18:26 2001 EDT

  Modified files:  
/php4/ext/satellite object.c 
  Log:
  Stop leaking ParameterType data
  
Index: php4/ext/satellite/object.c
diff -u php4/ext/satellite/object.c:1.4 php4/ext/satellite/object.c:1.5
--- php4/ext/satellite/object.c:1.4 Thu Nov 30 14:01:57 2000
+++ php4/ext/satellite/object.c Tue Feb 20 07:18:26 2001
@@ -17,7 +17,7 @@
  */
 
 /*
- * $Id: object.c,v 1.4 2000/11/30 22:01:57 eriksson Exp $
+ * $Id: object.c,v 1.5 2001/02/20 15:18:26 eriksson Exp $
  * vim: syntax=c tabstop=2 shiftwidth=2
  */
 
@@ -391,13 +391,18 @@
CORBA_Request request, OperationType * pOperation, int argumentCount, 
const zval ** ppArguments, CORBA_NamedValue ** ppNamedValue)
 {
-   ParameterType * p_parameter = OperationType_GetFirstParameter(pOperation);
+   ParameterType * p_parameter = NULL;
int i = 0;
-   zend_bool success;
+   zend_bool success = FALSE;
 
if (argumentCount < 1)
return TRUE;/* nothing to do */
 
+   p_parameter = OperationType_GetFirstParameter(pOperation);
+
+   if (NULL == p_parameter)
+   return FALSE; /* oups! */
+   
do
{
ppNamedValue[i] = satellite_new(CORBA_NamedValue);
@@ -405,7 +410,7 @@
request, p_parameter, ppArguments[i], ppNamedValue[i]);
 
if (!success)
-   return FALSE;
+   goto error;
 
i++;
} while (i < argumentCount && ParameterType_GetNext(p_parameter));
@@ -417,10 +422,19 @@

/* bad number of arguments */
wrong_param_count();
-   return FALSE;
+   goto error;
}
 
-   return TRUE;
+   success = TRUE;
+   goto exit;
+
+error:
+   success = FALSE;
+
+exit:
+   orbit_delete(p_parameter);
+   return success;
+
 }
 
 /*



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




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

2001-02-20 Thread Daniel Beulshausen

dbeuTue Feb 20 07:19:38 2001 EDT

  Modified files:  
/php4/ext/iconv iconv.dsp 
  Log:
  define HAVE_LIBICONV
  
Index: php4/ext/iconv/iconv.dsp
diff -u php4/ext/iconv/iconv.dsp:1.1 php4/ext/iconv/iconv.dsp:1.2
--- php4/ext/iconv/iconv.dsp:1.1Wed Jan 31 08:57:00 2001
+++ php4/ext/iconv/iconv.dspTue Feb 20 07:19:38 2001
@@ -43,7 +43,7 @@
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D 
"_MBCS" /D "_USRDLL" /D "ICONV_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I 
"..\..\main" /I "..\..\win32" /D "WIN32" /D "PHP_EXPORTS" /D "COMPILE_DL_ICONV" /D 
"HAVE_ICONV" /D ZEND_DEBUG=0 /D "NDEBUG" /D "_WINDOWS" /D "ZEND_WIN32" /D "PHP_WIN32" 
/D ZTS=1 /YX /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I 
+"..\..\main" /I "..\..\win32" /D "WIN32" /D "PHP_EXPORTS" /D "COMPILE_DL_ICONV" /D 
+"HAVE_ICONV" /D ZEND_DEBUG=0 /D "NDEBUG" /D "_WINDOWS" /D "ZEND_WIN32" /D "PHP_WIN32" 
+/D ZTS=1 /D "HAVE_LIBICONV" /YX /FD /c
 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
 # ADD BASE RSC /l 0x407 /d "NDEBUG"
@@ -69,7 +69,7 @@
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" 
/D "_MBCS" /D "_USRDLL" /D "ICONV_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" 
/I "..\..\main" /I "..\..\win32" /D ZEND_DEBUG=1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" 
/D "PHP_EXPORTS" /D "COMPILE_DL_ICONV" /D "ZEND_WIN32" /D "PHP_WIN32" /D "HAVE_ICONV" 
/D ZTS=1 /YX /FD /GZ /c
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" 
+/I "..\..\main" /I "..\..\win32" /D ZEND_DEBUG=1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" 
+/D "PHP_EXPORTS" /D "COMPILE_DL_ICONV" /D "ZEND_WIN32" /D "PHP_WIN32" /D "HAVE_ICONV" 
+/D ZTS=1 /D "HAVE_LIBICONV" /YX /FD /GZ /c
 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
 # ADD BASE RSC /l 0x407 /d "_DEBUG"



-- 
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] what's the difference between include and require??

2001-02-20 Thread Sam Leibowitz

>   An unsuccessful include will give you an error.
>
>   An unsuccessful require will kill the program.

Also: require() statements cannot be embedded inside conditionals. For
example:



The reason: require() is taken care of on an initial pass of the parser,
which makes it faster than include().  Unfortunately, that means that the
parser doesn't check to see if it's embedded in a conditional statement.

Finally, unless you're using these functions to pull in actual HTML, as
opposed to code, think hard about using include_once() or require_once(),
which spares you those obnoxious "Cannot redefine function blah() in blah
blah blah" errors.

-
Sam Leibowitz ([EMAIL PROTECTED])
Project Manager
Business Technology Center



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




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

2001-02-20 Thread Daniel Beulshausen

dbeuTue Feb 20 07:34:11 2001 EDT

  Modified files:  
/php4/ext/pgsql pgsql.c 
  Log:
  added missing ELS_FETCH()
  
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.91 php4/ext/pgsql/pgsql.c:1.92
--- php4/ext/pgsql/pgsql.c:1.91 Mon Feb 19 08:31:17 2001
+++ php4/ext/pgsql/pgsql.c  Tue Feb 20 07:34:10 2001
@@ -17,7 +17,7 @@
+--+
  */
  
-/* $Id: pgsql.c,v 1.91 2001/02/19 16:31:17 sas Exp $ */
+/* $Id: pgsql.c,v 1.92 2001/02/20 15:34:10 dbeu Exp $ */
 
 #include 
 
@@ -239,8 +239,8 @@
 
 PHP_RSHUTDOWN_FUNCTION(pgsql)
 {
+   ELS_FETCH();
zend_hash_apply(&EG(persistent_list), (apply_func_t) _rollback_transactions);
-
return SUCCESS;
 }
 



-- 
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] file grabber help

2001-02-20 Thread Brian C. Doyle

Hello all,

I need to write a script to grab files via a web port.   Is there any way 
to do this??



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




[PHP] redirect if sql = nothing

2001-02-20 Thread Matt Davis

If my SQL returns no results then i want to redirect to a page saying no
results etc but if results are found then I want it to continue on down the
script how would i do this.

Matt.


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




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

2001-02-20 Thread David Eriksson

erikssonTue Feb 20 07:35:55 2001 EDT

  Modified files:  
/php4/ext/satellite typemanager.c 
  Log:
  Patch for inherited interfaces by Daniel Stodden <[EMAIL PROTECTED]>
  
Index: php4/ext/satellite/typemanager.c
diff -u php4/ext/satellite/typemanager.c:1.2 php4/ext/satellite/typemanager.c:1.3
--- php4/ext/satellite/typemanager.c:1.2Fri Sep  1 15:29:00 2000
+++ php4/ext/satellite/typemanager.cTue Feb 20 07:35:55 2001
@@ -17,7 +17,7 @@
  */
 
 /*
- * $Id: typemanager.c,v 1.2 2000/09/01 22:29:00 eriksson Exp $
+ * $Id: typemanager.c,v 1.3 2001/02/20 15:35:55 eriksson Exp $
  * vim: syntax=c tabstop=2 shiftwidth=2
  */
 
@@ -219,19 +219,63 @@
return pException;
 }
 
+
+   
+/* 
+   find an operation in an interface tree, 
+   recursing into inherited interfaces  
+*/
+static CORBA_boolean
+findoperation_recurse( IDL_tree tree, const char *name,
+  IdlInfo *pIdlInfo )
+{
+   IDL_tree inherited;
+   CORBA_boolean success;
+
+   success = orbit_find_type( IDL_INTERFACE(tree).body,
+  name, IDLN_OP_DCL, 
+  pIdlInfo );
+   if ( success ) 
+   return CORBA_TRUE;
+
+   for ( inherited = IDL_INTERFACE(tree).inheritance_spec;
+ inherited != NULL;
+ inherited = IDL_LIST(inherited).next ) {
+   IDL_tree ident = IDL_LIST(inherited).data;
+   InterfaceType *iface;
+
+   iface = TypeManager_FindInterface( IDL_IDENT(ident).repo_id );
+   success = findoperation_recurse( iface->mIdlInfo.mType, 
+name, 
+pIdlInfo );
+   orbit_delete( iface );
+
+   if ( success )
+   return CORBA_TRUE;
+
+   zend_error( E_WARNING, "operation %s not found in iface %s\n", 
+   name, IDL_IDENT(ident).repo_id );
+   }
+
+   return CORBA_FALSE;
+}
+
 /* find an operation in an interface based on case-insensitive name */
-OperationType * InterfaceType_FindOperation(InterfaceType * pInterface, 
-   const char * name)
+OperationType * InterfaceType_FindOperation( InterfaceType * pInterface, 
+const char * name )
 {
-   OperationType * pOperation = orbit_new(OperationType);
-   CORBA_boolean success = orbit_find_type(
-   pInterface->mIdlInfo.mType, name, IDLN_OP_DCL, 
&pOperation->mIdlInfo);
-   if (!success)
-   {
-   orbit_delete(pOperation);
-   pOperation = NULL;
-   }
-   return pOperation;
+   OperationType *pOperation = orbit_new(OperationType);
+   IDL_tree tree = pInterface->mIdlInfo.mType;
+   CORBA_boolean success;
+
+   success = findoperation_recurse( tree, name, 
+&pOperation->mIdlInfo );
+   
+   if ( success )
+   return pOperation;
+
+   orbit_delete(pOperation);
+   return NULL;
 }
 
 /* find an attribute in an interface based on case-insensitive name */



-- 
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] redirect if sql = nothing

2001-02-20 Thread Joe Sheble (Wizaerd)

by checking the return value of mysql_num_rows()

At 04:32 PM 2/20/01 +, Matt Davis wrote:
>If my SQL returns no results then i want to redirect to a page saying no
>results etc but if results are found then I want it to continue on down the
>script how would i do this.
>
>Matt.
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


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




[PHP] Display Format

2001-02-20 Thread Website4S

Hi,

I`m using the following code to display the contents of a file.

%s", str_replace(" 
","",strtolower($content[$a])), $content[$a]);
}

?>

It is working fine at the moment but I want to try and be a tad more 
ambitious, say for example the category.inc contains the following:

Paul,Mark,Tom,Ade

My code will display the results like so...

(Obviously with my HTML in there too)
Paul
Mark
Tom
Ade

Firstly is there any way I can sort these in alphabetical order??

More importantly is there any way of formatting them so they display

Paul Mark
Tom Ade 

So they are in two columns in a table rather than one??

Thanks for any help
Ade

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




Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Jason Greene

Well,
My thoughts on this one were that if you are actually grabbing a key,
people are more
likely to trust that the returned key does in fact  reference the value
that was searched. Perhaps defaulting to strict is not a good idea, but to
me it seemed logical, and I figured that if anyone else
in the group disagreed, we could easily change it.

What do you think?

-Jason

Andrei Zmievski wrote:

> On Tue, 20 Feb 2001, Jason Greene wrote:
> > + if (behavior == 0) {
> > + compare_func = is_equal_function;
> > + } else {
> > + /* Lets not return a key unless the values are exact */
> > + compare_func = is_identical_function;
> > + }
>
> Why not? Why should it be different from behavior of in_array?
>
> -Andrei
>
> "Later in this talk, I intend to define
>  the universe and give three examples." -- Larry Wall


-- 
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] redirect if sql = nothing

2001-02-20 Thread Brian V Bonini

$sql = "select * from table where bla bla bla";

if(!isset($sql)) {
do this;
} else {
do this;
}

I think ?

-Brian
**

> -Original Message-
> From: Matt Davis [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 20, 2001 11:33 AM
> To: Php Mailing List
> Subject: [PHP] redirect if sql = nothing
> 
> 
> If my SQL returns no results then i want to redirect to a page saying no
> results etc but if results are found then I want it to continue 
> on down the
> script how would i do this.
> 
> Matt.
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
PHP General Mailing List (http://www.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] file grabber help

2001-02-20 Thread Brian V Bonini

Is this what you mean?

$fp = fopen("http://www.domain.com/file.xxx", "a+");

-Brian

> -Original Message-
> From: Brian C. Doyle [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 20, 2001 11:27 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] file grabber help
>
>
> Hello all,
>
> I need to write a script to grab files via a web port.   Is there any way
> to do this??
>
>
>
> --
> PHP General Mailing List (http://www.php.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] checkboxes & sessions

2001-02-20 Thread kaab kaoutar

Hi folks!

How can i do the following using php:
in a page i have many checkboxes that were generated dynamically,
the user may check many of them, i want that when a checkbox is checked, add 
it to a session variable !
i thaught of using javascript, but i can't use session variables in 
javascript.
Any idea please ?!
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




[PHP] Adding a string and a numeric

2001-02-20 Thread Don

I know this is most assuredly in the manual and I have looked but either
the search engine is not robust enough or my eyes require additional
laser treatment.

I have a string variable called "released" and an integer, 1.  I wish to
concatenate so that I get the result: "released1".  How may I accomplish
this?

Thanks,
Don


-- 
PHP General Mailing List (http://www.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] file grabber help

2001-02-20 Thread Brian C. Doyle

That will get me the html/txt files with will definatly save time ... WIll 
that work with image files???  I dont want to have to go and manually save 
them all

At 11:54 AM 2/20/01 -0500, Brian V Bonini wrote:
>Is this what you mean?
>
>$fp = fopen("http://www.domain.com/file.xxx", "a+");
>
>-Brian
>
> > -Original Message-
> > From: Brian C. Doyle [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 20, 2001 11:27 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] file grabber help
> >
> >
> > Hello all,
> >
> > I need to write a script to grab files via a web port.   Is there any way
> > to do this??
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.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] redirect if sql = nothing

2001-02-20 Thread Website4S

In a message dated 20/02/2001 16:42:51 GMT Standard Time, 
[EMAIL PROTECTED] writes:

<< $sql = "select * from table where bla bla bla";
 
 if(!isset($sql)) {
do this;
 } else {
do this;
 }
 
 I think ?
 
 -Brian >>

This way might be a little easier

$sql = "select * from table where bla bla bla";
$num_rows = mysql_num_rows($sql);

if ($num_rows==0){
header ("Location: Http://www.YOURURL.com/");
}

Although depending on the rest of your script the header may have already 
been sent in which case it won`t work. 

HTH
Ade

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




RE: [PHP] redirect if sql = nothing

2001-02-20 Thread Joe Sheble (Wizaerd)

Actually this won't work since the actual query never runs

try:

$sql = "select * from table where bla bla bla";
$rResults = mysql_query( $sql, $dbConnection );
if( mysql_num_rows($rResults) == 0 ) {
 do this;
} else {
 do this;
}


At 11:52 AM 2/20/01 -0500, Brian V Bonini wrote:
>$sql = "select * from table where bla bla bla";
>
>if(!isset($sql)) {
> do this;
>} else {
> do this;
>}
>
>I think ?
>
>-Brian
>**
>
> > -Original Message-
> > From: Matt Davis [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 20, 2001 11:33 AM
> > To: Php Mailing List
> > Subject: [PHP] redirect if sql = nothing
> >
> >
> > If my SQL returns no results then i want to redirect to a page saying no
> > results etc but if results are found then I want it to continue
> > on down the
> > script how would i do this.
> >
> > Matt.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>--
>PHP General Mailing List (http://www.php.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] redirect if sql = nothing

2001-02-20 Thread Matt Davis

I have put this code in but its not making any difference

 if ($num==0) {
 header("location:
http://www.***/0/cambridgeshire/_shared/database_files/php_files/nor
esults.htm");
 } else {;
 }

Matt.

-Original Message-
From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 16:46
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Php Mailing List
Subject: RE: [PHP] redirect if sql = nothing


Actually this won't work since the actual query never runs

try:

$sql = "select * from table where bla bla bla";
$rResults = mysql_query( $sql, $dbConnection );
if( mysql_num_rows($rResults) == 0 ) {
 do this;
} else {
 do this;
}


At 11:52 AM 2/20/01 -0500, Brian V Bonini wrote:
>$sql = "select * from table where bla bla bla";
>
>if(!isset($sql)) {
> do this;
>} else {
> do this;
>}
>
>I think ?
>
>-Brian
>**
>
> > -Original Message-
> > From: Matt Davis [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 20, 2001 11:33 AM
> > To: Php Mailing List
> > Subject: [PHP] redirect if sql = nothing
> >
> >
> > If my SQL returns no results then i want to redirect to a page saying no
> > results etc but if results are found then I want it to continue
> > on down the
> > script how would i do this.
> >
> > Matt.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>--
>PHP General Mailing List (http://www.php.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] Where do i look up return status codes?

2001-02-20 Thread George Herson

How do i find out what the return status of an exec() executed command
means?  For example, i have the line

$ciphertext = exec("perl /home/httpd/cgi-bin/passgen.pl
$plaintext",$arr,$retstat);

which makes $retstat = 126.

thanks,
geo


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




[PHP] Uploading files will it time out?

2001-02-20 Thread Brandon Orther

Hello,

If I use a form to upload will it time out after 30m seconds ?  When the php
script runs for 30 seconds it shuts down and I was wondering if the
uploading of the file counts for this.

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] checkboxes & sessions

2001-02-20 Thread Chris Lee

is it ok to just check the ckecboxs and hit submit? thats what most sites
do? thats real easy todo. follow up if you want some code examples.


--


Chris Lee
Mediawaveonline.com

em. [EMAIL PROTECTED]

ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120



""kaab kaoutar"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi folks!
>
> How can i do the following using php:
> in a page i have many checkboxes that were generated dynamically,
> the user may check many of them, i want that when a checkbox is checked,
add
> it to a session variable !
> i thaught of using javascript, but i can't use session variables in
> javascript.
> Any idea please ?!
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



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




Re: [PHP] Adding a string and a numeric

2001-02-20 Thread Chris Lee





--


Chris Lee
Mediawaveonline.com

em. [EMAIL PROTECTED]

ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120


"Don" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I know this is most assuredly in the manual and I have looked but either
> the search engine is not robust enough or my eyes require additional
> laser treatment.
>
> I have a string variable called "released" and an integer, 1.  I wish to
> concatenate so that I get the result: "released1".  How may I accomplish
> this?
>
> Thanks,
> Don
>
>
> --
> PHP General Mailing List (http://www.php.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-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski

On Tue, 20 Feb 2001, Jason Greene wrote:
> Well,
> My thoughts on this one were that if you are actually grabbing a key,
> people are more
> likely to trust that the returned key does in fact  reference the value
> that was searched. Perhaps defaulting to strict is not a good idea, but to
> me it seemed logical, and I figured that if anyone else
> in the group disagreed, we could easily change it.
> 
> What do you think?

I think the default behavior between in_array() and array_search()
should be the same.

-Andrei

Linux is like living in a teepee.
No Windows, no Gates, Apache in house.
- Usenet signature

-- 
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: CVSROOT / avail gen_acl_file.m4

2001-02-20 Thread Andrei Zmievski

andrei  Tue Feb 20 08:28:34 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  Karma for Frank.
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.86 CVSROOT/avail:1.87
--- CVSROOT/avail:1.86  Fri Feb 16 11:42:54 2001
+++ CVSROOT/avail   Tue Feb 20 08:28:34 2001
@@ -8,7 +8,7 @@
 avail|rasmus,sterling,jimw|pres
 
avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams|phpdoc
-avail|andrei|php-gtk
+avail|andrei,fmk|php-gtk
 avail|emile,davidg,alan_k|php4/ext/midgard
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.89 CVSROOT/gen_acl_file.m4:1.90
--- CVSROOT/gen_acl_file.m4:1.89Fri Feb 16 11:42:54 2001
+++ CVSROOT/gen_acl_file.m4 Tue Feb 20 08:28:34 2001
@@ -24,7 +24,7 @@
 avail|php_pres|pres
 avail|php_qa|qaweb
 avail|php_dev,php_ext,php_doc|phpdoc
-avail|andrei|php-gtk
+avail|andrei,fmk|php-gtk
 avail|php_midgard|php4/ext/midgard
 dnl Access to individual dirs in the code tree
 avail|rasmus|php4/ext/aspell



-- 
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] HTTP POST Question

2001-02-20 Thread Julian Wood


Check out http://px.sklar.com/code-pretty.html?code_id=313

It is a post class written by Alan van den Bosch which will do what you want
(post to a perl script, retrieve the results, and let you manipulate them
from within the posting php script). Here's some code using this class. I've
simplified this so it is untested in its current state, but should work.
I've used this class in many projects and it works very well.

set_action("http://$SERVER_ADDR/cgi-bin/hello.pl");

# add some post arguments
$a->set_element('foo','bar');

#do the post
$res = $a->send();

#strip header
$res = strstr($res, "\r\n\r\n");

#display the results
echo $res;

?>


HTH,

J

-- 
Julian Wood

Multimedia Developer
University of Calgary



on 2/19/01 10:15 AM, John Monfort at [EMAIL PROTECTED] wrote:

> 
> 
> 
>> 1. It appears if I use the header function I have to redirect the page to
>> another page, it doesn't appear possible to retrieve a page into the current
>> page?  Unless someone can show me some code that would do that.
>> 
> 
> If all you want is to display the remote page, within the local page,
> then all you need is fpassthru()
> 
> ex.
> 
> $server = "http://www.site.com";
> 
> $fp = fopen($server,"r")// "r" is for reading
> fpassthru($fp);
> 
> This will display the results of the remote file (html or whatever) into
> the local file (in this case, your PHP file).
> 
> 
>> 
>> 
>>> -Original Message-
>>> From:Milan Mlynarcik [SMTP:[EMAIL PROTECTED]]
>>> Sent:Monday, February 19, 2001 7:33 AM
>>> To:Montgomery-Recht, Evan
>>> Subject:Re: [PHP] HTTP POST Question
>>> 
>>> You have to use header() function and how POST work you can find in HTTP
>>> RFC
>>> at http://www.w3.org/Protocols/rfc2616/rfc2616.html
>>> -
>>> Milan Mlynarcik
>>> Web Programmer
>>> Charmed Technology Slovakia
>>> Nam. sv. Egidia 16/37
>>> 058 01 Poprad, Slovakia
>>> E-mail: [EMAIL PROTECTED]
>>> Office: 00421 92 7881 874
>>> Mobile: 00421 905 964 535
>>> Web page: http://www.charmed.com/
>>> -
>>> - Original Message -
>>> From: "Montgomery-Recht, Evan" <[EMAIL PROTECTED]>
>>> To: <[EMAIL PROTECTED]>
>>> Sent: Monday, February 19, 2001 1:06 PM
>>> Subject: [PHP] HTTP POST Question
>>> 
>>> 
 Good morning...
 
 This should be a good monday morning question.
 
 I have a cgi-bin written in perl (it's actually, a interface to a
 perl-module which is a interface to a telnet-like protocol).
 
 Anyways what I need to do is I have already existing code written in
>>> PHP,
 but at some point I need to call this cgi-bin and get a return code from
>>> it
 and process (good/bad result) and return to completed php script that
>>> says
 it called this cgi-bin.  It's not very clear how to set the
>>> HTTP_POST_VARS
 for sending to a post command (which doesn't seem to exist);
 
 Any ideas I don't see a function called:
 
 $HTTP_POST_VARS =set variables;
 $result = http_post("http://localhost/cgi-bin/script.pl");
 
 Thanks,
 
 evan
 
 PS.  I'd appricate a working example, even if it's a dummy version.
 
 --
 PHP General Mailing List (http://www.php.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-CVS] cvs: php4 /ext/standard array.c

2001-02-20 Thread Jason Greene

jason   Tue Feb 20 08:44:57 2001 EDT

  Modified files:  
/php4/ext/standard  array.c 
  Log:
  Changed default behavior of array_search to match in_array
  (strict was default on, and is now default off)
  
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.93 php4/ext/standard/array.c:1.94
--- php4/ext/standard/array.c:1.93  Tue Feb 20 06:23:03 2001
+++ php4/ext/standard/array.c   Tue Feb 20 08:44:57 2001
@@ -21,7 +21,7 @@
+--+
 */
 
-/* $Id: array.c,v 1.93 2001/02/20 14:23:03 andrei Exp $ */
+/* $Id: array.c,v 1.94 2001/02/20 16:44:57 jason Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -1051,15 +1051,8 @@
HashPosition pos;   /* hash iterator */
ulong num_key;
char *string_key;
-   int (*compare_func)(zval *, zval *, zval *);
-   
-   if (behavior == 0) {
-   compare_func = is_equal_function;
-   } else {
-   /* Lets not return a key unless the values are exact */
-   compare_func = is_identical_function;
-   }
-
+   int (*compare_func)(zval *, zval *, zval *) = is_equal_function;
+   
if (ZEND_NUM_ARGS() < 2 || ZEND_NUM_ARGS() > 3 ||
zend_get_parameters_ex(ZEND_NUM_ARGS(), &value, &array, &strict) == 
FAILURE) {
WRONG_PARAM_COUNT;
@@ -1079,9 +1072,7 @@
convert_to_boolean_ex(strict);
if (Z_LVAL_PP(strict)) {
compare_func = is_identical_function;
-   } else {
-   compare_func = is_equal_function;
-   }
+   } 
}
 
target_hash = HASH_OF(*array);



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




Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Jason Greene

Andrei Zmievski wrote:
> 
> On Tue, 20 Feb 2001, Jason Greene wrote:
> > Well,
> > My thoughts on this one were that if you are actually grabbing a key,
> > people are more
> > likely to trust that the returned key does in fact  reference the value
> > that was searched. Perhaps defaulting to strict is not a good idea, but to
> > me it seemed logical, and I figured that if anyone else
> > in the group disagreed, we could easily change it.
> >
> > What do you think?
> 
> I think the default behavior between in_array() and array_search()
> should be the same.
> 
> -Andrei
> 
> Linux is like living in a teepee.
> No Windows, no Gates, Apache in house.
> - Usenet signature

I changed array_search per your request

-Jason

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




[PHP-CVS] cvs: php4 /ext/ldap ldap.dsp

2001-02-20 Thread Daniel Beulshausen

dbeuTue Feb 20 09:11:25 2001 EDT

  Modified files:  
/php4/ext/ldap  ldap.dsp 
  Log:
  add configuration which links again libsasl.lib
  
Index: php4/ext/ldap/ldap.dsp
diff -u php4/ext/ldap/ldap.dsp:1.9 php4/ext/ldap/ldap.dsp:1.10
--- php4/ext/ldap/ldap.dsp:1.9  Thu Aug 24 10:48:23 2000
+++ php4/ext/ldap/ldap.dsp  Tue Feb 20 09:11:25 2001
@@ -4,7 +4,7 @@
 
 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
 
-CFG=ldap - Win32 Debug_TS
+CFG=ldap - Win32 Debug_TS SASL
 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
 !MESSAGE use the Export Makefile command and run
 !MESSAGE 
@@ -13,7 +13,7 @@
 !MESSAGE You can specify a configuration when running NMAKE
 !MESSAGE by defining the macro CFG on the command line. For example:
 !MESSAGE 
-!MESSAGE NMAKE /f "ldap.mak" CFG="ldap - Win32 Debug_TS"
+!MESSAGE NMAKE /f "ldap.mak" CFG="ldap - Win32 Debug_TS SASL"
 !MESSAGE 
 !MESSAGE Possible choices for configuration are:
 !MESSAGE 
@@ -21,6 +21,8 @@
 !MESSAGE "ldap - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
 !MESSAGE "ldap - Win32 Debug_TS" (based on "Win32 (x86) Dynamic-Link Library")
 !MESSAGE "ldap - Win32 Release_TS" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "ldap - Win32 Release_TS SASL" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "ldap - Win32 Debug_TS SASL" (based on "Win32 (x86) Dynamic-Link Library")
 !MESSAGE 
 
 # Begin Project
@@ -108,7 +110,7 @@
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 oldap32.lib olber32.lib php4nts_debug.lib kernel32.lib user32.lib 
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib 
uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /dll /debug /machine:I386 
/pdbtype:sept /libpath:"..\..\..\openldap\libraries\Debug" /libpath:"..\..\Debug"
-# ADD LINK32 oldap32.lib olber32.lib php4ts_debug.lib kernel32.lib user32.lib 
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib 
uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /dll /debug /machine:I386 
/out:"Debug_TS/php_ldap.dll" /pdbtype:sept /libpath:"..\..\Debug_TS" 
/libpath:"..\..\..\php_build\openldap\libraries\Debug"
+# ADD LINK32 oldap32.lib olber32.lib php4ts_debug.lib kernel32.lib user32.lib 
+gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib 
+uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /dll /debug /machine:I386 
+/out:"..\..\Debug_TS/php_ldap.dll" /pdbtype:sept /libpath:"..\..\Debug_TS" 
+/libpath:"..\..\..\php_build\openldap\libraries\Debug"
 
 !ELSEIF  "$(CFG)" == "ldap - Win32 Release_TS"
 
@@ -136,6 +138,60 @@
 # ADD BASE LINK32 oldap32.lib olber32.lib kernel32.lib user32.lib gdi32.lib 
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
odbc32.lib odbccp32.lib wsock32.lib php4ts.lib /nologo /dll /machine:I386
 # ADD LINK32 oldap32.lib olber32.lib kernel32.lib user32.lib gdi32.lib winspool.lib 
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib 
odbccp32.lib wsock32.lib php4ts.lib /nologo /dll /machine:I386 
/out:"..\..\Release_TS/php_ldap.dll" /libpath:"..\..\Release_TS" 
/libpath:"..\..\..\php_build\openldap\libraries\Release" 
/libpath:"..\..\Release_TS_Inline"
 
+!ELSEIF  "$(CFG)" == "ldap - Win32 Release_TS SASL"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "ldap___Win32_Release_TS_SASL"
+# PROP BASE Intermediate_Dir "ldap___Win32_Release_TS_SASL"
+# PROP BASE Ignore_Export_Lib 0
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release_TS_SASL"
+# PROP Intermediate_Dir "Release_TS_SASL"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\main" /I "..\..\Zend" /I 
+"..\..\..\bindlib_w32" /I "..\..\TSRM" /I "..\..\..\php_build\openldap\include" /D 
+"NDEBUG" /D ZEND_DEBUG=0 /D "ZTS" /D "COMPILE_DL_LDAP" /D "WIN32" /D "_WINDOWS" /D 
+"_MBCS" /D "_USRDLL" /D "LDAP_EXPORTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_LDAP=1 
+/YX /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\main" /I "..\..\Zend" /I 
+"..\..\..\bindlib_w32" /I "..\..\TSRM" /I "..\..\..\php_build\openldap\include" /D 
+"NDEBUG" /D ZEND_DEBUG=0 /D "ZTS" /D "COMPILE_DL_LDAP" /D "WIN32" /D "_WINDOWS" /D 
+"_MBCS" /D "_USRDLL" /D "LDAP_EXPORTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_LDAP=1 
+/YX /FD /c
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 oldap32.lib olber32.lib kernel32.lib user32.lib gdi32.lib 
+winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
+odbc32.lib odbccp32.lib wsock32.lib php4ts.lib /nologo /dll /machine:I386 
+/out:"..\..\Release_TS

Re: [PHP] HTTP POST Question

2001-02-20 Thread Jan Grafström

Thankyou Julian but I am posting my variable from flash5.
The posting is not my problem. I just can`t write the unlink code.

Julian Wood wrote:

> Check out http://px.sklar.com/code-pretty.html?code_id=313
>
> It is a post class written by Alan van den Bosch which will do what you want
> (post to a perl script, retrieve the results, and let you manipulate them
> from within the posting php script). Here's some code using this class. I've
> simplified this so it is untested in its current state, but should work.
> I've used this class in many projects and it works very well.
>
> 
> include("post.php");
>
> $a=new http_post;
>
> #where do you want to post today
> $a->set_action("http://$SERVER_ADDR/cgi-bin/hello.pl");
>
> # add some post arguments
> $a->set_element('foo','bar');
>
> #do the post
> $res = $a->send();
>
> #strip header
> $res = strstr($res, "\r\n\r\n");
>
> #display the results
> echo $res;
>
> ?>
>
> HTH,
>
> J
>
> --
> Julian Wood
>
> Multimedia Developer
> University of Calgary
>
> on 2/19/01 10:15 AM, John Monfort at [EMAIL PROTECTED] wrote:
>
> >
> >
> >
> >> 1. It appears if I use the header function I have to redirect the page to
> >> another page, it doesn't appear possible to retrieve a page into the current
> >> page?  Unless someone can show me some code that would do that.
> >>
> >
> > If all you want is to display the remote page, within the local page,
> > then all you need is fpassthru()
> >
> > ex.
> >
> > $server = "http://www.site.com";
> >
> > $fp = fopen($server,"r")// "r" is for reading
> > fpassthru($fp);
> >
> > This will display the results of the remote file (html or whatever) into
> > the local file (in this case, your PHP file).
> >
> >
> >>
> >>
> >>> -Original Message-
> >>> From:Milan Mlynarcik [SMTP:[EMAIL PROTECTED]]
> >>> Sent:Monday, February 19, 2001 7:33 AM
> >>> To:Montgomery-Recht, Evan
> >>> Subject:Re: [PHP] HTTP POST Question
> >>>
> >>> You have to use header() function and how POST work you can find in HTTP
> >>> RFC
> >>> at http://www.w3.org/Protocols/rfc2616/rfc2616.html
> >>> -
> >>> Milan Mlynarcik
> >>> Web Programmer
> >>> Charmed Technology Slovakia
> >>> Nam. sv. Egidia 16/37
> >>> 058 01 Poprad, Slovakia
> >>> E-mail: [EMAIL PROTECTED]
> >>> Office: 00421 92 7881 874
> >>> Mobile: 00421 905 964 535
> >>> Web page: http://www.charmed.com/
> >>> -
> >>> - Original Message -
> >>> From: "Montgomery-Recht, Evan" <[EMAIL PROTECTED]>
> >>> To: <[EMAIL PROTECTED]>
> >>> Sent: Monday, February 19, 2001 1:06 PM
> >>> Subject: [PHP] HTTP POST Question
> >>>
> >>>
>  Good morning...
> 
>  This should be a good monday morning question.
> 
>  I have a cgi-bin written in perl (it's actually, a interface to a
>  perl-module which is a interface to a telnet-like protocol).
> 
>  Anyways what I need to do is I have already existing code written in
> >>> PHP,
>  but at some point I need to call this cgi-bin and get a return code from
> >>> it
>  and process (good/bad result) and return to completed php script that
> >>> says
>  it called this cgi-bin.  It's not very clear how to set the
> >>> HTTP_POST_VARS
>  for sending to a post command (which doesn't seem to exist);
> 
>  Any ideas I don't see a function called:
> 
>  $HTTP_POST_VARS =set variables;
>  $result = http_post("http://localhost/cgi-bin/script.pl");
> 
>  Thanks,
> 
>  evan
> 
>  PS.  I'd appricate a working example, even if it's a dummy version.
> 
>  --
>  PHP General Mailing List (http://www.php.net/)
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>  To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


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




[PHP] Header ("location: test.php");

2001-02-20 Thread Christopher Allen

Hello,
I  am using the Header call in a script that has multiple submit buttons:

if ($submit =1)
{
Header (location: test1.php);
}
if ($submit ==2)
{
Header(location: test2.php);
}

Should not the form varaibles be passed along to each of these pages
respectively? I have about 30 variables that should be passed to each
different page...none of these variables are showing up. Do I need to attach
these to the url for each different header?
such as:
Header ("Location: test1.php?add=1&name=juan");
???

Thanks

Christopher C. M. Allen


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

2001-02-20 Thread kaab kaoutar

Hi!
well I've managed to make it work by comparing the checkbbox value (on)!
Thanks anyway

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




  1   2   3   >