Re: [PHP] submitting to a remote form

2001-04-08 Thread Matt McClanahan

On Sun, Apr 08, 2001 at 12:31:35AM -0500, Joseph Bannon wrote:

  You can use fopen/fread to open the script remotely.
  
  Just append the query string onto the url something like this:
  
  www.example.com/example.php?var1=var
  
  ...and example.php will have $var1 with the value "var". That's basically
  like using GET on a form.
  
  I believe that's what you wanted to do?
 
 I have to use POST on the form. I wish I could use GET.

For that, you'll need to open a socket.  The function to do this is
usually called PostToHost, and I don't know why it isn't in even the
annoted manual page for fsockopen.  A quick google search should turn
up copies of it in all the PHP mailing list archives.  But, here's the
version that I use (It's been modified to support both GET and POST):

function sendToHost($host,$method,$path,$data,$useragent=0)
{
   // Supply a default method of GET if the one passed was empty
   if (empty($method))
  $method = 'GET';
   $method = strtoupper($method);
   $fp = fsockopen($host,80);
   if ($method == 'GET')
  $path .= '?' . $data;
   fputs($fp, "$method $path HTTP/1.1\n");
   fputs($fp, "Host: $host\n");
   fputs($fp, "Content-type: application/x-www-form-urlencoded\n");
   fputs($fp, "Content-length: " . strlen($data) . "\n");
   if ($useragent)
  fputs($fp, "User-Agent: MSIE\n");
   fputs($fp, "Connection: close\n\n");
   if ($method == 'POST')
  fputs($fp, $data);

   while (!feof($fp))
  $buf .= fgets($fp,128);
   fclose($fp);
   return $buf;
}

$data should be the variables of the query string, minus the question
mark.  That is, var1=value1var2=value2, etc.  The function doesn't
encode it, so you'll need to do that.

HTH,
Matt

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




RE: [PHP] submitting to a remote form

2001-04-08 Thread Joseph Bannon

Thanks for the info. Question: Is there a simple way to encode text?

J
























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




[PHP-CVS] cvs: php4 /pear/HTML Processor.php

2001-04-08 Thread Stig Bakken

ssb Sun Apr  8 00:39:27 2001 EDT

  Modified files:  
/php4/pear/HTML Processor.php 
  Log:
  * using GLOBALS to set global variable (in case the file is included
from within a function)
  
  
Index: php4/pear/HTML/Processor.php
diff -u php4/pear/HTML/Processor.php:1.1 php4/pear/HTML/Processor.php:1.2
--- php4/pear/HTML/Processor.php:1.1Wed Jan 17 08:34:05 2001
+++ php4/pear/HTML/Processor.phpSun Apr  8 00:39:27 2001
@@ -16,7 +16,7 @@
 // | Authors: Sterling Hughes [EMAIL PROTECTED]  |
 // +--+
 //
-// $Id: Processor.php,v 1.1 2001/01/17 16:34:05 sterling Exp $
+// $Id: Processor.php,v 1.2 2001/04/08 07:39:27 ssb Exp $
 //
 // HTML processing utility functions.
 //
@@ -30,7 +30,7 @@
 
 // {{{ HTML_Processor
 
-$_HTML_Processor_translation_table = array();
+$GLOBALS['_HTML_Processor_translation_table'] = array();
 
 /**
  * The HTML_Processor class facilitates the parsing and processing of
@@ -99,4 +99,4 @@
 }
 
 // }}}
-?
\ No newline at end of file
+?



-- 
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 /pear/XML Parser.php

2001-04-08 Thread Stig Bakken

ssb Sun Apr  8 00:40:21 2001 EDT

  Modified files:  
/php4/pear/XML  Parser.php 
  Log:
  * indentation and inline doc fixes
  
  
Index: php4/pear/XML/Parser.php
diff -u php4/pear/XML/Parser.php:1.10 php4/pear/XML/Parser.php:1.11
--- php4/pear/XML/Parser.php:1.10   Thu Mar 15 12:39:14 2001
+++ php4/pear/XML/Parser.phpSun Apr  8 00:40:21 2001
@@ -25,7 +25,6 @@
  * based on the bundled expat library.
  *
  * @author  Stig Bakken [EMAIL PROTECTED]
- * @version $id $
  * @todoTests that need to be made:
  *  - error class
  *  - mixing character encodings
@@ -37,28 +36,22 @@
 // {{{ properties
 
 /**
-* XML parser handle
-*
-* @var  resource  xml_parser
-*/
+ * @var  resource  XML parser handle
 var $parser;
 
 /**
-*
-* @var  resourcefopen
-*/
+ * @var  resource  File handle if parsing from a file
+ */
 var $fp;
 
 /**
-*
-* @var  boolean
-*/
+ * @var  boolean  Whether to do case folding
+ */
 var $folding = true;
 
 /**
-*
-* @var  string
-*/
+ * @var  string  Mode of operation, one of "event" or "func"
+ */
 var $mode;
 
 
@@ -68,13 +61,13 @@
 * @var  array
 */
 var $handler = array(
-"character_data_handler"= "cdataHandler",
-"default_handler"   = "defaultHandler",
-"processing_instruction_handler"= "piHandler",
-"unparsed_entitry_decl_handler" = "unparsedHandler",
-"notation_decl_handler" = "notationHandler",
-"external_entity_ref_handler"   = "entityrefHandler"
-);
+"character_data_handler"= "cdataHandler",
+"default_handler"   = "defaultHandler",
+"processing_instruction_handler"= "piHandler",
+"unparsed_entitry_decl_handler" = "unparsedHandler",
+"notation_decl_handler" = "notationHandler",
+"external_entity_ref_handler"   = "entityrefHandler"
+);
 
 
 // }}}
@@ -87,21 +80,17 @@
 * @paramstring
 * @throws   XML_Parser_Error
 */
-function XML_Parser($charset = 'UTF-8', $mode = "event") {
+function XML_Parser($charset = 'UTF-8', $mode = "event")
+{
+$$this-PEAR();
 
-$this-PEAR();
-
 $xp = @xml_parser_create($charset);
 if (is_resource($xp)) {
-
 $this-parser = $xp;
 $this-setMode($mode);
 xml_parser_set_option($xp, XML_OPTION_CASE_FOLDING, $this-folding);
-
 } else {
-
-return new XML_Parser_Error("Can't create xml parser");
-
+return new XML_Parser_Error("Can not create xml parser");
 }
 
 }
@@ -251,13 +240,12 @@
 // }}}
 // {{{ funcEndHandler()
 
-function funcEndHandler($xp, $elem) {
-
+function funcEndHandler($xp, $elem)
+{
 $func = $elem . '_';
 if (method_exists($this, $func)) {
 call_user_method($func, $this, $xp, $elem);
 }
-
 }
 
 
@@ -265,7 +253,8 @@
 * 
 * @abstract
 */
-function StartHandler($xp, $elem, $attribs) {
+function StartHandler($xp, $elem, $attribs)
+{
 return NULL;
 } 
 
@@ -274,7 +263,8 @@
 *
 * @abstract
 */
-function EndHandler($xp, $elem) {
+function EndHandler($xp, $elem)
+{
 return NULL;
 }
 
@@ -305,4 +295,4 @@
 
 // }}}
 }
-?
\ No newline at end of file
+?



-- 
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 /sapi/pi3web pi3web_sapi.c

2001-04-08 Thread Holger Zimmermann

holger  Sun Apr  8 01:25:21 2001 EDT

  Modified files:  
/php4/sapi/pi3web   pi3web_sapi.c 
  Log:
  Updated copyright agreement regarding move of Pi3Web to sourceforge.
  
  
Index: php4/sapi/pi3web/pi3web_sapi.c
diff -u php4/sapi/pi3web/pi3web_sapi.c:1.15 php4/sapi/pi3web/pi3web_sapi.c:1.16
--- php4/sapi/pi3web/pi3web_sapi.c:1.15 Sun Feb 25 22:07:37 2001
+++ php4/sapi/pi3web/pi3web_sapi.c  Sun Apr  8 01:25:20 2001
@@ -14,13 +14,14 @@
+--+
| Pi3Web version 2.0   |
+--+
-   | This file is commited by the Pi3 development group. (www.pi3.org)|
+   | This file is committed by the Pi3 development group. |
+   | (pi3web.sourceforge.net) |
|  |
-   | Author: Holger Zimmermann ([EMAIL PROTECTED], [EMAIL PROTECTED])   |
+   | Author: Holger Zimmermann ([EMAIL PROTECTED]) |
+--+
  */
 
-/* $Id: pi3web_sapi.c,v 1.15 2001/02/26 06:07:37 andi Exp $ */
+/* $Id: pi3web_sapi.c,v 1.16 2001/04/08 08:25:20 holger Exp $ */
 
 #if WIN32|WINNT
 #  include windows.h
@@ -80,7 +81,7 @@
PUTS("table border=0 cellpadding=3 cellspacing=1 width=600 align=center\n");
PUTS("trth colspan=2 bgcolor=\"" PHP_HEADER_COLOR "\"Pi3Web Server 
Information/th/tr\n");
php_info_print_table_header(2, "Information Field", "Value");
-   php_info_print_table_row(2, "Pi3Web SAPI module version", "$Id: 
pi3web_sapi.c,v 1.15 2001/02/26 06:07:37 andi Exp $");
+   php_info_print_table_row(2, "Pi3Web SAPI module version", "$Id: 
+pi3web_sapi.c,v 1.16 2001/04/08 08:25:20 holger Exp $");
php_info_print_table_row(2, "Server Name Stamp", HTTPCore_getServerStamp());
snprintf(variable_buf, 511, "%d", HTTPCore_debugEnabled());
php_info_print_table_row(2, "Debug Enabled", variable_buf);



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

2001-04-08 Thread Adam Charnock

Hi. I know that this isn't strictly PHP, but this is the only place I know
to ask - so apologies in advance.

I am trying to make this query work but I am having very little luck:

SELECT links.id, COUNT(clicks.id) AS tot_clicks
FROM links INNER JOIN clicks
ON links.id = clicks.linkid
GROUP BY links.id;

I want to output the links which have had the most clicks. However, I store
the links in one table, and each individual click is stored in another
table. Each click has a linkid that identifies the id of the link that was
clicked on.

I know this sounds confusing, but I would appreciate any help you can give.

Thank you
Adam


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




[PHP] Selecting Dates

2001-04-08 Thread Jordan Elver

Hi,
I'm trying to select records based on dates.
I have a table with dates in the format 2001-04-08 and I'm using the query:

SELECT name, description, date_time FROM events WHERE YEAR(date_time) = 2001 
AND MONTH(date_time) = 04 AND DAYOFMONTH(date_time) = 08

But it doesn't yield any records? I don't really understand why? It seems to 
be the last bit 'DAYOFMONTH(date_time) = 08' which cause a problem because if 
I leave it out of the query, it selects all records for a particular month in 
a particular year as expected.

Cheers,

Jord

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




Re: [PHP] PEAR Standards (was Re: equivalent of asp's %= strTest %)

2001-04-08 Thread Felix Kronlage

On Sat, Apr 07, 2001 at 10:19:04PM -0500, Plutarck wrote:

 For instance, when they say not to use 4 spaces (or was it 3?) instead of
 tabs? I think that's stupid, and I don't do it. But they did it for a
 reason, even if I don't understand it. 

tabs might break going from one platform to another, thus making the code
hard to read. 4 spaces stay 4 spaces. on every platform.
That's probably the reason.

-fkr, who is the only one that uses spaces instead of tabs at work 
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


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




[PHP] Re: [PHP-DB] Selecting Dates

2001-04-08 Thread B. van Ouwerkerk


I'm trying to select records based on dates.
I have a table with dates in the format 2001-04-08 and I'm using the query:

SELECT name, description, date_time FROM events WHERE YEAR(date_time) = 2001
AND MONTH(date_time) = 04 AND DAYOFMONTH(date_time) = 08

WHERE field_holding_date="2001-04-08" should work.

Bye,


B.


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




Re: [PHP] Re: [PHP-DB] Selecting Dates

2001-04-08 Thread Jordan Elver

That's what I thought but that doesn't work either?

On Sunday 08 April 2001 10:13, you wrote:
 I'm trying to select records based on dates.
 I have a table with dates in the format 2001-04-08 and I'm using the
  query:
 
 SELECT name, description, date_time FROM events WHERE YEAR(date_time) =
  2001 AND MONTH(date_time) = 04 AND DAYOFMONTH(date_time) = 08

 WHERE field_holding_date="2001-04-08" should work.

 Bye,


 B.

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




[PHP-CVS] cvs: php4 /sapi/pi3web pi3web_sapi.c pi3web_sapi.h

2001-04-08 Thread Holger Zimmermann

holger  Sun Apr  8 03:49:07 2001 EDT

  Modified files:  
/php4/sapi/pi3web   pi3web_sapi.c pi3web_sapi.h 
  Log:
  Reorganized the #define's in the header.
  
  
Index: php4/sapi/pi3web/pi3web_sapi.c
diff -u php4/sapi/pi3web/pi3web_sapi.c:1.16 php4/sapi/pi3web/pi3web_sapi.c:1.17
--- php4/sapi/pi3web/pi3web_sapi.c:1.16 Sun Apr  8 01:25:20 2001
+++ php4/sapi/pi3web/pi3web_sapi.c  Sun Apr  8 03:49:07 2001
@@ -21,12 +21,8 @@
+--+
  */
 
-/* $Id: pi3web_sapi.c,v 1.16 2001/04/08 08:25:20 holger Exp $ */
+/* $Id: pi3web_sapi.c,v 1.17 2001/04/08 10:49:07 holger Exp $ */
 
-#if WIN32|WINNT
-#  include windows.h
-#endif
-
 #include "pi3web_sapi.h"
 #include "php.h"
 #include "php_main.h"
@@ -81,7 +77,7 @@
PUTS("table border=0 cellpadding=3 cellspacing=1 width=600 align=center\n");
PUTS("trth colspan=2 bgcolor=\"" PHP_HEADER_COLOR "\"Pi3Web Server 
Information/th/tr\n");
php_info_print_table_header(2, "Information Field", "Value");
-   php_info_print_table_row(2, "Pi3Web SAPI module version", "$Id: 
pi3web_sapi.c,v 1.16 2001/04/08 08:25:20 holger Exp $");
+   php_info_print_table_row(2, "Pi3Web SAPI module version", "$Id: 
+pi3web_sapi.c,v 1.17 2001/04/08 10:49:07 holger Exp $");
php_info_print_table_row(2, "Server Name Stamp", HTTPCore_getServerStamp());
snprintf(variable_buf, 511, "%d", HTTPCore_debugEnabled());
php_info_print_table_row(2, "Debug Enabled", variable_buf);
@@ -107,7 +103,7 @@
if (lpCB-GetServerVariable(lpCB-ConnID, *p, variable_buf, 
variable_len)
 variable_buf[0]) {
php_info_print_table_row(2, *p, variable_buf);
-   } else if (PIPlatform_getLastError() == ERROR_INSUFFICIENT_BUFFER) {
+   } else if (PIPlatform_getLastError() == PIAPI_EINVAL) {
char *tmp_variable_buf;
 
tmp_variable_buf = (char *) emalloc(variable_len);
@@ -267,7 +263,7 @@
 
if (lpCB-GetServerVariable(lpCB-ConnID, "HTTP_COOKIE", variable_buf, 
variable_len)) {
return estrndup(variable_buf, variable_len);
-   } else if (PIPlatform_getLastError()==ERROR_INSUFFICIENT_BUFFER) {
+   } else if (PIPlatform_getLastError()==PIAPI_EINVAL) {
char *tmp_variable_buf = (char *) emalloc(variable_len+1);
 
if (lpCB-GetServerVariable(lpCB-ConnID, "HTTP_COOKIE", 
tmp_variable_buf, variable_len)) {
@@ -339,7 +335,7 @@
if (lpCB-GetServerVariable(lpCB-ConnID, "ALL_HTTP", static_variable_buf, 
variable_len)) {
variable_buf = static_variable_buf;
} else {
-   if (PIPlatform_getLastError()==ERROR_INSUFFICIENT_BUFFER) {
+   if (PIPlatform_getLastError()==PIAPI_EINVAL) {
variable_buf = (char *) emalloc(variable_len);
if (!lpCB-GetServerVariable(lpCB-ConnID, "ALL_HTTP", 
variable_buf, variable_len)) {
efree(variable_buf);
@@ -377,7 +373,7 @@
 }
 
 
-DWORD fnWrapperProc(LPCONTROL_BLOCK lpCB)
+DWORD PHP4_wrapper(LPCONTROL_BLOCK lpCB)
 {
zend_file_handle file_handle;
SLS_FETCH();
Index: php4/sapi/pi3web/pi3web_sapi.h
diff -u php4/sapi/pi3web/pi3web_sapi.h:1.1 php4/sapi/pi3web/pi3web_sapi.h:1.2
--- php4/sapi/pi3web/pi3web_sapi.h:1.1  Thu Dec 28 00:31:42 2000
+++ php4/sapi/pi3web/pi3web_sapi.h  Sun Apr  8 03:49:07 2001
@@ -1,21 +1,28 @@
 #ifndef _PI3WEB_SAPI_H_
 #define _PI3WEB_SAPI_H_
 
-//#if WIN32
-//#include windows.h
-//#else
-#define far
-#define ERROR_INSUFFICIENT_BUFFER122L
-typedef int BOOL;
-typedef void far *LPVOID;
-typedef LPVOID HCONN;
-typedef unsigned long DWORD;
-typedef DWORD far *LPDWORD;
-typedef char CHAR;
-typedef CHAR *LPSTR;
-typedef unsigned char BYTE;
-typedef BYTE far *LPBYTE;
-//#endif
+#ifdef PHP_WIN32
+#  include windows.h
+#  include httpext.h
+#  ifdef SAPI_EXPORTS
+#  define MODULE_API __declspec(dllexport) 
+#  else
+#  define MODULE_API __declspec(dllimport) 
+#  endif
+#else
+#  define far
+#  define MODULE_API
+
+   typedef int BOOL;
+   typedef void far *LPVOID;
+   typedef LPVOID HCONN;
+   typedef unsigned long DWORD;
+   typedef DWORD far *LPDWORD;
+   typedef char CHAR;
+   typedef CHAR *LPSTR;
+   typedef unsigned char BYTE;
+   typedef BYTE far *LPBYTE;
+#endif
 
 #ifdef __cplusplus
 extern "C" {
@@ -72,17 +79,14 @@
 
 } CONTROL_BLOCK, *LPCONTROL_BLOCK;
 
-#ifndef WIN32
-#define __stdcall
-#endif
+MODULE_API DWORD PHP4_wrapper(LPCONTROL_BLOCK lpCB);
+MODULE_API BOOL PHP4_startup();
+MODULE_API BOOL PHP4_shutdown();
 
-DWORD fnWrapperProc(LPCONTROL_BLOCK lpCB);
+// the following type declaration is for the server side
+typedef DWORD ( * PFN_WRAPPERFUNC )( CONTROL_BLOCK *pCB );
 
-// the following type declarations is for the 

[PHP-CVS] cvs: php4 /sapi/pi3web php4pi3web.dsp

2001-04-08 Thread Holger Zimmermann

holger  Sun Apr  8 04:04:27 2001 EDT

  Added files: 
/php4/sapi/pi3web   php4pi3web.dsp 
  Log:
  Contribute the MSVC project file. Someone could add this to the php4ts workspace.
  
  


Index: php4/sapi/pi3web/php4pi3web.dsp
+++ php4/sapi/pi3web/php4pi3web.dsp
# Microsoft Developer Studio Project File - Name="php4pi3web" - Package Owner=4
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# Von Microsoft Developer Studio generierte Erstellungsdatei, Format Version 6.00
# ** NICHT BEARBEITEN **

# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102

CFG=php4pi3web - Win32 Debug_TS
!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit\
 NMAKE
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den\
 Befehl
!MESSAGE 
!MESSAGE NMAKE /f "php4pi3web.mak".
!MESSAGE 
!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
!MESSAGE 
!MESSAGE NMAKE /f "php4pi3web.mak" CFG="php4pi3web - Win32 Debug_TS"
!MESSAGE 
!MESSAGE Für die Konfiguration stehen zur Auswahl:
!MESSAGE 
!MESSAGE "php4pi3web - Win32 Debug_TS" (basierend auf\
  "Win32 (x86) Dynamic-Link Library")
!MESSAGE "php4pi3web - Win32 Release_TS" (basierend auf\
  "Win32 (x86) Dynamic-Link Library")
!MESSAGE 

# Begin Project
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe

!IF  "$(CFG)" == "php4pi3web - Win32 Debug_TS"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug_TS"
# PROP BASE Intermediate_Dir "Debug_TS"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "..\Debug_TS"
# PROP Intermediate_Dir "Debug_TS"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MTd /W3 /GX /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D 
"_MBCS" /D "_USRDLL" /D "php4pi3web_EXPORTS" /YX /FD /ZI /GZ /c
# ADD CPP /nologo /MDd /W3 /GX /Od /I ".." /I "..\main" /I "..\regex" /I 
"..\..\bindlib_w32" /I "..\Zend" /I "..\TSRM" /I "..\ext\mysql\libmysql" /I 
"..\..\..\PiAPI" /I "..\..\..\Pi2API" /I "..\..\..\Pi3API" /D "_DEBUG" /D ZEND_DEBUG=1 
/D "_WINDOWS" /D "_USRDLL" /D "php4pi3web_EXPORTS" /D "PHP_EXPORTS" /D 
"LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D 
"ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /FR /YX /FD /ZI /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x40d /d "_DEBUG"
# ADD RSC /l 0x40d /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# 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 
/nologo /dll /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib wsock32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
ZendTS.lib TSRM.lib resolv.lib libmysql.lib PiAPI.lib Pi2API.lib Pi3API.lib /nologo 
/version:4.0 /dll /debug /machine:I386 /nodefaultlib:"libcmt" /nodefaultlib:"libc" 
/out:"..\Debug_TS\php4ts_debug.dll" /pdbtype:sept /libpath:"..\TSRM\Debug_TS" 
/libpath:"..\Zend\Debug_TS" /libpath:"..\..\bindlib_w32\Debug" 
/libpath:"..\ext\mysql\libmysql\Debug_TS" /libpath:"Debug_TS" 
/libpath:"..\..\..\PiAPI" /libpath:"..\..\..\Pi2API" /libpath:"..\..\..\Pi3API"

!ELSEIF  "$(CFG)" == "php4pi3web - Win32 Release_TS"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release_TS"
# PROP BASE Intermediate_Dir "Release_TS"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "..\Release_TS"
# PROP Intermediate_Dir "Release_TS"
# 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 "php4pi3web_EXPORTS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I ".." /I "..\main" /I "..\regex" /I 
"..\..\bindlib_w32" /I "..\Zend" /I "..\TSRM" /I "..\ext\mysql\libmysql" /I 
"..\..\..\PiAPI" /I "..\..\..\Pi2API" /I "..\..\..\Pi3API" /D "NDEBUG" /D ZEND_DEBUG=0 
/D "_WINDOWS" /D "_USRDLL" /D "PHP4DLLTS_EXPORTS" /D "PHP_EXPORTS" /D 
"LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D 
"ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /FR /YX /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x40d /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# 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 
/nologo /dll /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib 

Re: [PHP] Cookie Expire Problem

2001-04-08 Thread Christian Reiniger

On Sunday 08 April 2001 06:15, you wrote:

 Your cookie is set to expire in the year 2280. You think that's a
 little overkill?


 And it runs into the UNIX-style Y2K problem which is...um...13 years
 from now? Well anyway...

2038 with a 32bit processor

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

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

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




Re: [PHP] image validation

2001-04-08 Thread Christian Reiniger

On Sunday 08 April 2001 03:57, you wrote:
 I'm wondering if there is any sure way for PHP to determine whether an
 uploaded file is definitely an image file.

 I have a script that checks for size and mime type ('image/png' or
 'image/jpeg'). The script works fine, but I've heard that it is
 possible to add those mime type headers to files that aren't images at
 all, and possibly something mailicious.

Well, if you get some images you won't try to execute them (images off 
bill gates aside :), right? So you don't really have to worry about 
"something malicious".
But if you want to check, just try opening them with one of the image 
extensions (gd, imagemagick, ...)

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

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


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




Re: [PHP] submitting to a remote form

2001-04-08 Thread Christian Reiniger

On Sunday 08 April 2001 08:50, you wrote:
 Thanks for the info. Question: Is there a simple way to encode text?

 J

rawurlencode()

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

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

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





[PHP] where might I find a good php page

2001-04-08 Thread Engström

I'd really like to learn PHP but where ?
I know some basic perl but havent lookt that deep in PHP yet. any leads ?? =)

sincerly // Ken



php-general Digest 8 Apr 2001 13:02:16 -0000 Issue 615

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


php-general Digest 8 Apr 2001 13:02:16 - Issue 615

Topics (messages 47606 through 47645):

gd 2.0
47606 by: J.R. Lillard

odd cookie behaviour
47607 by: matt thompson
47614 by: shaun
47634 by: matt thompson

Re: putting a list of data into 3 columns?
47608 by: Jack Dempsey
47630 by: Lindsay Adams

Wrapping Text
47609 by: Chris Anderson
47612 by: shaun
47616 by: Philip Olson

Re: adding methods to classes
47610 by: Yasuo Ohgaki

Re: new php.net look
47611 by: Yasuo Ohgaki

Re: PEAR Standards (was Re: equivalent of asp's %= strTest %)
47613 by: Philip Olson
47618 by: Plutarck
47639 by: Felix Kronlage

PHP  asp
47615 by: Kittiwat Manosuthi
47620 by: Plutarck
47625 by: Kittiwat Manosuthi

Re: Checking the REFERER
47617 by: Plutarck

image validation
47619 by: Michael Hall
47643 by: Christian Reiniger

Re: Cookie Expire Problem
47621 by: Plutarck
47622 by: Jeffrey Paul
47642 by: Christian Reiniger

Segfaults with t1lib
47623 by: Lars Magne Ingebrigtsen
47628 by: Lars Magne Ingebrigtsen

Re: equivalent of asp's %= strTest %
47624 by: Plutarck

"configure" not doing anything and file not found
47626 by: Plutarck

submitting to a remote form
47627 by: Joseph Bannon
47631 by: Plutarck
47633 by: Joseph Bannon
47635 by: Matt McClanahan
47636 by: Joseph Bannon
47644 by: Christian Reiniger

unable to run lynx from exec or passthru
47629 by: Junaid MAnsoor
47632 by: Lindsay Adams

DB Problem
47637 by: Adam Charnock

Selecting Dates
47638 by: Jordan Elver

Re: [PHP-DB] Selecting Dates
47640 by: B. van Ouwerkerk
47641 by: Jordan Elver

where might I find a good php page
47645 by: Engström

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]


--



has anyone gotten php to compile with gd 2.0?  i know gd 2.0 is still in
beta, but i was able to compile and install it without any problems.  when
compiling php, however, i end up with some error in regards to the libmysql
extension.  if i switch back to gd 1.8, all works fine.

-jr






hey,

i'm designing a small shopping cart w/ cookies where the cookie is used as
an array (the array id being the product id) and the array value being the
number of items selected.  anyways, for the most part everything works fine,
but with certain items if they're added to the cart, they get added, but
unfortunately do not display in the cart until a few other items are added
(the quantity of that product continues to increase regardless of whether or
not it's shown in the cart).  i have absolutely no idea why this is
happening, and feel like i've tried most things that have come to mind.  my
cookie is being set like:

if (!isset($cookie[0])) setcookie("cookie[0]", "0");

i do not have a product w/ id of zero (0), so i use that as the default id /
value to set the cookie with.  any suggestions _at_all_ would be
appreciated.  :)

thanks,
matt







I think you might wanna check if $cookie is set, not $cookie[0], if that 
doesn't work just check if $cookie[0] = 0

-Shaun 

On Saturday 07 April 2001 21:10, matt thompson wrote:
 hey,

 i'm designing a small shopping cart w/ cookies where the cookie is used as
 an array (the array id being the product id) and the array value being the
 number of items selected.  anyways, for the most part everything works
 fine, but with certain items if they're added to the cart, they get added,
 but unfortunately do not display in the cart until a few other items are
 added (the quantity of that product continues to increase regardless of
 whether or not it's shown in the cart).  i have absolutely no idea why this
 is happening, and feel like i've tried most things that have come to mind. 
 my cookie is being set like:

 if (!isset($cookie[0])) setcookie("cookie[0]", "0");

 i do not have a product w/ id of zero (0), so i use that as the default id
 / value to set the cookie with.  any suggestions _at_all_ would be
 appreciated.  :)

 thanks,
 matt




same results.  certain items don't immediately show up in the cart until i
add numerous other items.  it's funny, because some items show up all the
time, regardless of what order, etc. they're placed in the cart.  very
weird.

thanks for your help though!


"shaun" [EMAIL PROTECTED] wrote in message 01040720420304.01567@box">news:01040720420304.01567@box...
 I think you might wanna check if $cookie is set, not $cookie[0], if that
 doesn't work just check if $cookie[0] = 0

 -Shaun

 On Saturday 07 April 2001 21:10, matt thompson wrote:
  hey,
 
  i'm designing a small 

Re: [PHP] where might I find a good php page

2001-04-08 Thread Zeus

PHP.NET :)

where have you been hiding

- Original Message -
From: Engstrm [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, 08 April, 2001 11:12 PM
Subject: [PHP] where might I find a good php page


I'd really like to learn PHP but where ?
I know some basic perl but havent lookt that deep in PHP yet. any leads ??
=)

sincerly // Ken



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

2001-04-08 Thread Kevin Heflin

I have php-4.0.4pl1 currently installed with mysql support. Installed
from source files..
Have just installed postgresql-7.1RC1 from source.
Trying to add postgres support to php, added the '--with-pgsql to
./configure.

running make, moves right along for awhile, but  then get the following
error:

/usr/bin/ld: table of contents for archive: /usr/local/pgsql/lib/libpq.a
is out of date; rerun ranlib(1) (can't load from it)
/usr/bin/ld: table of contents for archive: /usr/local/pgsql/lib/libpq.a
is out of date; rerun ranlib(1) (can't load from it)
make[1]: *** [libphp4.la] Error 1
make: *** [all-recursive] Error 1

Any suggestions would be appreciated.

Kansas

-- 
PHP General Mailing List (http://www.php.net/)
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 postgresql support to php

2001-04-08 Thread shaun

I just did this yesterday actually and everything worked fine, except I used 
a different postgresql, postgresql-7.0.3.tar.gz to be exact.

--  Shaun



On Sunday 08 April 2001 10:42, Kevin Heflin wrote:
 I have php-4.0.4pl1 currently installed with mysql support. Installed
 from source files..
 Have just installed postgresql-7.1RC1 from source.
 Trying to add postgres support to php, added the '--with-pgsql to
 ./configure.

 running make, moves right along for awhile, but  then get the following
 error:

 /usr/bin/ld: table of contents for archive: /usr/local/pgsql/lib/libpq.a
 is out of date; rerun ranlib(1) (can't load from it)
 /usr/bin/ld: table of contents for archive: /usr/local/pgsql/lib/libpq.a
 is out of date; rerun ranlib(1) (can't load from it)
 make[1]: *** [libphp4.la] Error 1
 make: *** [all-recursive] Error 1

 Any suggestions would be appreciated.

 Kansas

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

2001-04-08 Thread Hartmut Holzgraefe

hholzgraSun Apr  8 08:24:48 2001 EDT

  Modified files:  
/functable  update.all 
  Log:
  added creation of database dump file
  
  
Index: functable/update.all
diff -u functable/update.all:1.5 functable/update.all:1.6
--- functable/update.all:1.5Mon Mar 12 04:22:33 2001
+++ functable/update.allSun Apr  8 08:24:48 2001
@@ -136,6 +136,8 @@
 ./dslgen  sources/phpdoc/version.dsl
 ./xslgen  sources/phpdoc/version.xml
 
+mysqldump -u phpdoc -pphpdoc phpdoc  output/dbdump.sql
+
 
 # prepare distribution package 
 echo packing



-- 
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] Validate forms into PHP file

2001-04-08 Thread Fernando Buitrago

Hi.

Tell me the steps to validate field's forms in the same PHP file, before to
send the result to another file.

Regards



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

2001-04-08 Thread Fernando Buitrago

Hi.

Tell me te instruction to redirect (link) mi pages, please?

Regards.

Fer



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




[PHP] [PHP4] mod_php4, not compatible with Apache version?

2001-04-08 Thread Enrique de las Heras

Yesterday I installed php 4.0.4pl1 with Apache 1.3.19. All the
installation process was OK, but when I tried to restart the Apache
Server the apachectl command failed with this error:

httpd: module "mod_php4.c" is not compatible with this version of
Apache.
Please contact the vendor for the correct version.
./bin/apachectl start: httpd could not be started.

I have reinstalled Apache and php 4.0.4pl1,  but I keep on getting this
same annoying error.  Can anyone hellp me?

Thanks a lot.








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




Re: [PHP] [PHP4] mod_php4, not compatible with Apache version?

2001-04-08 Thread Lindsay Adams

Did you install php as a DSO? Or compile it into apache.
I was getting that error too, because I had installed it as an APXS DSO and
had unnecessarily included the line AddModule 'mod_php4.c' (not exact syntax
here)

After removing the AddModule line, and only using LoadModule php4_module
'path/to/libphp4.so', it worked fine.

On 4/8/01 10:39 AM, "Enrique de las Heras" [EMAIL PROTECTED] wrote:

 Yesterday I installed php 4.0.4pl1 with Apache 1.3.19. All the
 installation process was OK, but when I tried to restart the Apache
 Server the apachectl command failed with this error:
 
 httpd: module "mod_php4.c" is not compatible with this version of
 Apache.
 Please contact the vendor for the correct version.
 ./bin/apachectl start: httpd could not be started.
 
 I have reinstalled Apache and php 4.0.4pl1,  but I keep on getting this
 same annoying error.  Can anyone hellp me?
 
 Thanks a lot.
 
 
 
 
 
 
 


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




Re: [PHP] mail() limit?

2001-04-08 Thread Manuel Lemos

Hello Christian,

On 07-Apr-01 07:29:27, you wrote:

On Friday 06 April 2001 22:47, you wrote:
 Hi,
 Does anyone know if and what the limit is of bcc that can be used in
 the mail() function? Hundreds, thousands?

If you wonder about approaching such a limit you'll be better off with a 
real mailinglist manager (mailman, listar, ezmlm, ...)

Mailing list managers do not work differently.

What should be avoided for large number of recipients is using SMTP.  It
degrades queueing exponentially with the number of recipients. Just send the
message directly to the local queue.  Just using sendmail (or some wrapper)
might do.


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


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




Re: [PHP] Selecting Dates

2001-04-08 Thread Manuel Lemos

Hello Jordan,

On 08-Apr-01 06:58:16, you wrote:

I'm trying to select records based on dates.
I have a table with dates in the format 2001-04-08 and I'm using the query:

SELECT name, description, date_time FROM events WHERE YEAR(date_time) = 2001 
AND MONTH(date_time) = 04 AND DAYOFMONTH(date_time) = 08

But it doesn't yield any records? I don't really understand why? It seems to 
be the last bit 'DAYOFMONTH(date_time) = 08' which cause a problem because if
 I leave it out of the query, it selects all records for a particular month
in  a particular year as expected.

If you just want to retrict queries by specific dates, it's a database
design mistake to keep date and time in the same field.

Another mistake is to use functions like those that apply to the date
fields you have selected.  That prevents the database server to use any
indexes on that field.

To solve your problems you may have a query conditioon like:

WHERE date_time='2001-04-08 00:00:00' AND date_time='2001-04-08 23:59:59'


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


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




Re: [PHP] FORM input type=image ... with a posting value

2001-04-08 Thread Victor Gamov

"Johnson, Kirk" wrote:
 
 Oops. You do need the type=image and src= attributes, instead of what I
 wrote in the example. Good thing it's Friday :)
 
  -Original Message-
  From: Johnson, Kirk
  Sent: Friday, April 06, 2001 1:29 PM
  To: [EMAIL PROTECTED]
  Subject: RE: [PHP] FORM input type=image ... with a posting value
 
 
  Yes, but you no longer check the value of "value" to
  determine which button
  was clicked. Instead, give each button a unique *name*
  attribute, then check
  if $name_x is set. The browser returns the x,y coordinates of
  the point
  where the user clicks the button, in variables named name_x
  and name_y.

To create unique name for many input type=image ... elements you can
use array

FORM method=post ...
input type=image name=images[1] ...
input type=image name=images[2] ...
input type=image name=images[3] ...
/FORM

and so on.  When you submit this form the $images array will be set and
sizeof($images) == 1.

-- 
CU, Victor Gamov

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




Re: [PHP] mail() limit? Use aliases table [typo]

2001-04-08 Thread Lindsay Adams

Sorry, this:

 
 BTW, the format for an alias file is:
 
 addr1, addr2, addr3
 
 OR
 
 should read
... The format for a mailing list file is:
...


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

2001-04-08 Thread Philip Olson

have a look at the first example found here :

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

also check out meta refresh :

  http://www.pageresource.com/html/metref.htm

regards,
philip

On Sun, 8 Apr 2001, Fernando Buitrago wrote:

 Hi.
 
 Tell me te instruction to redirect (link) mi pages, please?
 
 Regards.
 
 Fer
 
 
 
 -- 
 PHP General Mailing List (http://www.php.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] Pop Up Window

2001-04-08 Thread Claudia

Is there a way to initiate a pop up window containing a form using PHP code?

I am trying to use Javascript to popup a window which contains a form.
The form is processed via a PHP script. (miniquote.scp.php3)
The popup window displays OK.  The form processes OK in IE 5.0 however using
NS 4.7 I receive this error:

"Warning there is a possible security hazard here...opeing
miniquote.scp.php3 using php.exe"  "When you download a file from the
network, you should be aware of security considerations" "A file that
contains malicious programming instructions could damage"You should only
use files obtained from a site that you trust"

The issue is with Javascript as I can use the same code in a html window
with no errors.

Any ideas on how to get around this error would be appreciated!





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




Re: [PHP] Pop Up Window

2001-04-08 Thread Lindsay Adams

Weird.
My netscape 4.7x does not do this under the same circumstances.
(tried 4.7 4.75, 4.76, 4.77)


On 4/8/01 1:33 PM, "Claudia" [EMAIL PROTECTED] wrote:

 Is there a way to initiate a pop up window containing a form using PHP code?
 
 I am trying to use Javascript to popup a window which contains a form.
 The form is processed via a PHP script. (miniquote.scp.php3)
 The popup window displays OK.  The form processes OK in IE 5.0 however using
 NS 4.7 I receive this error:
 
 "Warning there is a possible security hazard here...opeing
 miniquote.scp.php3 using php.exe"  "When you download a file from the
 network, you should be aware of security considerations" "A file that
 contains malicious programming instructions could damage"You should only
 use files obtained from a site that you trust"
 
 The issue is with Javascript as I can use the same code in a html window
 with no errors.
 
 Any ideas on how to get around this error would be appreciated!
 
 
 
 


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




[PHP] nested loops and PHPLIB templates

2001-04-08 Thread paula

I was sending desperate emails to this list related to nested loops and array 
comparision. Well, just let you know that the problem seems to be that I'm using this 
with PHPLIB templates and those can't handle nested loops. 

If I would know that a week ago I would avoid nightmares and had 6 pounds more of 
weight.

/pau 





Re: [PHP] nested loops and PHPLIB templates

2001-04-08 Thread eschmid+sic

On Sun, Apr 08, 2001 at 10:47:21PM -0400, paula wrote:
 I was sending desperate emails to this list related to nested loops and array 
comparision. Well, just let you know that the problem seems to be that I'm using this 
with PHPLIB templates and those can't handle nested loops. 

Please subscribe to the PHPLib mailing list at php.net/support.php. 
 
 If I would know that a week ago I would avoid nightmares and had 6 pounds more of 
weight.

That depends on your size, I could need some more pounds  :)

-Egon

-- 
LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
All known books about PHP and related books: http://php.net/books.php 
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.de/

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

2001-04-08 Thread Victor

Hello,

 Is there any (easy) way to let a user to set the value of a
 variable by simply clicking on a hyperlink on a web page?
 I mean if I have a 3 links on a page if the user clicks on image1 to
 set a variable $var=1,if clicks on image2 to set it as
 $var=2,etc.

 Any suggestions (including RTFMs ;-)) are wellcome.


Best regards,
  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] mail() limit? Use aliases table

2001-04-08 Thread Manuel Lemos

Hello Lindsay,

On 08-Apr-01 16:14:00, you wrote:

If you have access to /etc/aliases, this makes your code much easier

It works but it requires that you have root permissions and use the real
sendmail program and not another wrapped mailing system.

For bulk mailing, like for mailing lists, qmail is better.  You just pass
the sender and all recipient addresses one per line to qmail-send and it
will inject a single message into the delivery queue.  You do not need root
permissions.

As a good mailing list program you can use ezmlm that takes advantage of
special features of qmail that other mailing systems don't have like the
VERP extension that lets you figure exactly who is bouncing your messages
and QMQP server that lets you handle mailing list delivery queues without
choking your SMTP server.

Maybe you would like to try this PHP application that lets you manage
ezmlm mailing lists via the Web:

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


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


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




RE: [PHP] where might I find a good php page

2001-04-08 Thread Boaz Yahav

http://www.weberdev.com

Sincerely

  berber

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

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 08, 2001 5:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] where might I find a good php page


I'd really like to learn PHP but where ?
I know some basic perl but havent lookt that deep in PHP yet. any leads ??
=)

sincerly // Ken

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

2001-04-08 Thread eschmid+sic

On Mon, Apr 09, 2001 at 12:19:57AM +0300, Victor wrote:

  Is there any (easy) way to let a user to set the value of a
  variable by simply clicking on a hyperlink on a web page?
  I mean if I have a 3 links on a page if the user clicks on image1 to
  set a variable $var=1,if clicks on image2 to set it as
  $var=2,etc.
 
  Any suggestions (including RTFMs ;-)) are wellcome.

What about reading part III, chapter 16 "Creating and manipulating images"
in the PHP manual at http://php.net/manual.

-Egon

-- 
LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
All known books about PHP and related books: http://php.net/books.php 
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.de/

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

2001-04-08 Thread Philip Olson


Something like the following HTML :

  a href="foo.php?var=1"img src="img1.gif"/a
  a href="foo.php?var=2"img src="img2.gif"/a
  a href="foo.php?var=3"img src="img3.gif"/a

And in foo.php have :

  print $var; // 1 or 2 or 3

Also consider the following :

  a href="?php echo $PHP_SELF; ??var=1"img src="img1.gif"/a

To have it load the current page rather then foo.php.

regards,
philip


On Mon, 9 Apr 2001, Victor wrote:

 Hello,
 
  Is there any (easy) way to let a user to set the value of a
  variable by simply clicking on a hyperlink on a web page?
  I mean if I have a 3 links on a page if the user clicks on image1 to
  set a variable $var=1,if clicks on image2 to set it as
  $var=2,etc.
 
  Any suggestions (including RTFMs ;-)) are wellcome.
 
 
 Best regards,
   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]
 


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

2001-04-08 Thread Stig Bakken

ssb Sun Apr  8 14:57:14 2001 EDT

  Modified files:  
/php4/ext/standard  dir.c 
  Log:
  @Add DIRECTORY_SEPARATOR constant ('/' on UNIX, '\' on Windows) (Stig)
  
  
Index: php4/ext/standard/dir.c
diff -u php4/ext/standard/dir.c:1.58 php4/ext/standard/dir.c:1.59
--- php4/ext/standard/dir.c:1.58Sun Feb 25 22:07:17 2001
+++ php4/ext/standard/dir.c Sun Apr  8 14:57:13 2001
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: dir.c,v 1.58 2001/02/26 06:07:17 andi Exp $ */
+/* $Id: dir.c,v 1.59 2001/04/08 21:57:13 ssb Exp $ */
 
 /* {{{ includes/startup/misc */
 
@@ -128,6 +128,7 @@
 
 PHP_MINIT_FUNCTION(dir)
 {
+static char tmpstr[2];
zend_class_entry dir_class_entry;
 
le_dirp = zend_register_list_destructors_ex(_dir_dtor, NULL, "dir", 
module_number);
@@ -138,6 +139,9 @@
 #ifdef ZTS
dir_globals_id = ts_allocate_id(sizeof(php_dir_globals), NULL, NULL);
 #endif
+tmpstr[0] = DEFAULT_SLASH;
+tmpstr[1] = '\0';
+REGISTER_STRING_CONSTANT("DIRECTORY_SEPARATOR", tmpstr, 0);
 
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]




RE: [PHP] where might I find a good php page

2001-04-08 Thread Jason Lotito

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 5:13 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] where might I find a good php page


 I'd really like to learn PHP but where ?
 I know some basic perl but havent lookt that deep in PHP yet. any leads ??
 =)

 sincerly // Ken

www.newbienetwork.net
www.phpbuilder.com
www.phpdeveloper.org
www.devshed.com
www.php.net/manual
www.phpbeginner.com

Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.


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




Re: [PHP] where might I find a good php page

2001-04-08 Thread Philip Olson


Here are some links :

Most important, the PHP Manual : 

http://www.php.net/manual/

Some basic PHP Tutorials   : 
 
http://www.gimpster.com/php/tutorial.php 
http://www.devshed.com/Server_Side/PHP/PHP101_1/ 
http://php.vamsi.net/mysql/index.php 
http://www.webmasterbase.com/article.php?aid=228pid=0 
http://www.zend.com/zend/art/mistake.php
http://www.zend.com/zend/tut/using-strings.php

Some tutorial/article locations: 
 
http://devshed.com/Server_Side/PHP/ 
http://www.phpbuilder.com/ 
http://www.zend.com/zend/tut/ 
http://www.zend.com/zend/art/ 
http://www.oreillynet.com/php/
http://php.faqts.com/ 
http://www.thickbook.com/ 
http://www.weberdev.com/ 
http://www.google.com/ 
http://www.google.com/ 
http://www.google.com/ 

Learn SQL related stuff: 
 
http://sqlcourse.com/ 
http://devshed.com/Server_Side/MySQL/Speak/ 
http://www.oreillynet.com/pub/ct/19 
http://w3.one.net/~jhoffman/sqltut.htm 
http://www.ciredata.com/secure/sql-functions.html
http://devshed.com/Server_Side/MySQL/Normal/ 
http://phpbuilder.com/columns/joe20010104.php3 
http://phpbuilder.com/columns/allan20010115.php3 

Coding convention (what your code could look like) : 
 
http://www.php.net/manual/en/pear.standards.php 
http://phpbuilder.com/columns/tim20010101.php3 
http://phpbuilder.com/columns/tim20001010.php3 

The php-general mailing list archives are VERY valuable: 
 
http://marc.theaimsgroup.com/?l=php-general 

Some useful PHP tips here  : 
 
http://www.php.net/tips.php 

A few scripts available here   : 
 
http://www.hotscripts.com/PHP/ 
http://php.resourceindex.com/ 
http://px.sklar.com/
http://www.freshmeat.net/
http://www.sourceforge.net/

And again, the PHP Manual  : 

http://www.php.net/manual/


Regards,
Philip


On Sun, 8 Apr 2001, [iso-8859-1] Engström wrote:

 I'd really like to learn PHP but where ?
 I know some basic perl but havent lookt that deep in PHP yet. any leads ?? =)
 
 sincerly // Ken
 



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

2001-04-08 Thread liman

Victor escribi:
 
 Hello,
 
  Is there any (easy) way to let a user to set the value of a
  variable by simply clicking on a hyperlink on a web page?
  I mean if I have a 3 links on a page if the user clicks on image1 to
  set a variable $var=1,if clicks on image2 to set it as
  $var=2,etc.
 
  Any suggestions (including RTFMs ;-)) are wellcome.
 
 Best regards,
   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]

Put this.

img src="xxx" onclick="document.form_name.foo.value=1;"
img src="xxx" onclick="document.form_name.foo.value=2;"
img src="xxx" onclick="document.form_name.foo.value=3;"

form name="form_name"
input type="hidden" name="foo"
/form


When the user clicks the img item, JavaScript will put the foo hidden
input to the value selected.


Bye.

--
PHP General Mailing List (http://www.php.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 / Makefile.in configure.in /main build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi config.m4

2001-04-08 Thread Stig Bakken

ssb Sun Apr  8 15:30:18 2001 EDT

  Modified files:  
/php4   Makefile.in configure.in 
/php4/main  build-defs.h.in 
/php4/pear  PEAR.php.in 
/php4/sapi  Makefile.in 
/php4/sapi/cgi  config.m4 
  Log:
  * CGI version is always installed!
  * replaced --disable-pear with --with-pear=DIR (or --without-pear),
is backwards compatible
  * use --datadir, --libdir and --sysconfdir configure options to determine
where PEAR files, shared extensions and php.ini goes
  * simplified the extension version directory name
  
  

Index: php4/Makefile.in
diff -u php4/Makefile.in:1.97 php4/Makefile.in:1.98
--- php4/Makefile.in:1.97   Tue Apr  3 13:59:44 2001
+++ php4/Makefile.inSun Apr  8 15:30:16 2001
@@ -18,7 +18,7 @@
 
 PROGRAM_NAME = php
 PROGRAM_SOURCES  = stub.c
-PROGRAM_LDADD= libphp4.la $(EXT_PROGRAM_LDADD)
+PROGRAM_LDADD= $(CGI_LDADD) libphp4.la $(EXT_PROGRAM_LDADD)
 PROGRAM_LDFLAGS  = -export-dynamic 
 PROGRAM_DEPENDENCIES = $(PROGRAM_LDADD)
 
@@ -41,6 +41,7 @@
fi; \
done; \
fi
+   $(INSTALL_CGI)
$(INSTALL_IT)
 
 install-modules:
@@ -50,7 +51,13 @@
rm -f modules/*.la  \
cp modules/* $(INSTALL_ROOT)$(moduledir) /dev/null 21 || true
 
-install-su: install-modules
+install-tester:
+   -$(mkinstalldirs) $(bindir)
+   $(INSTALL) -m 755 $(srcdir)/run-tests.php $(PEAR_INSTALLDIR)/.
+
+install-pear: install-modules
(cd pear  $(MAKE) install)
+
+install-su: install-pear install-tester
 
 .NOEXPORT:
Index: php4/configure.in
diff -u php4/configure.in:1.230 php4/configure.in:1.231
--- php4/configure.in:1.230 Fri Apr  6 09:01:20 2001
+++ php4/configure.in   Sun Apr  8 15:30:16 2001
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.230 2001/04/06 16:01:20 jon Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.231 2001/04/08 22:30:16 ssb Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -461,24 +461,11 @@
 
 divert(4)
 
-
-
-PHP_ARG_WITH(config-file-path,whether to use a configuration file,
+PHP_ARG_WITH(config-file-path, path to configuration file,
 [  --with-config-file-path=PATH  
   Sets the path in which to look for php.ini.
-  defaults to /usr/local/lib], yes)
-
-if test "$PHP_CONFIG_FILE_PATH" = "yes"; then
-  PHP_CONFIG_FILE_PATH="/usr/local/lib"
-fi
-
-if test "$PHP_CONFIG_FILE_PATH" != "no"; then
-  AC_DEFINE_UNQUOTED(CONFIGURATION_FILE_PATH, "$PHP_CONFIG_FILE_PATH",[ ])
-  AC_DEFINE(USE_CONFIG_FILE, 1, [ ])
-else
-  AC_DEFINE(CONFIGURATION_FILE_PATH, 0, [ ])
-  AC_DEFINE(USE_CONFIG_FILE, 0, [ ])
-fi
+  defaults to --sysconfdir, set to "none" to disable],
+  $sysconfdir)
 
 PHP_ARG_ENABLE(debug, whether to include debugging symbols,
 [  --enable-debug  Compile with debugging symbols.], no)
@@ -525,6 +512,23 @@
AC_MSG_RESULT(/usr/local/php/bin)
 ])
 
+
+# compatibility
+if test "x$with_pear" = "x" -a "x$enable_pear" = "no"; then
+with_pear="no"
+fi
+
+PHP_ARG_WITH(pear, [whether to install PEAR, and where],
+[  --with-pear=DIR Install PEAR files in DIR (default \$datadir/php/pear)
+  --without-pear  Do not install PEAR],yes)
+
+if test "$PHP_PEAR" != "no"; then
+  PEAR_DIR=pear
+  if test "$PHP_PEAR" != "yes"; then
+PEAR_INSTALLDIR="$PHP_PEAR"
+  fi
+fi
+
 PHP_ARG_WITH(openssl,for OpenSSL support,
 [  --with-openssl[=DIR]Include OpenSSL support (requires OpenSSL = 0.9.5) ])
 if test "$PHP_OPENSSL" = "yes"; then
@@ -592,14 +596,6 @@
   CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
 fi
 
-PHP_ARG_ENABLE(pear,whether to install PEAR,
-[  --disable-pear  Do not install PEAR],yes)
-
-if test "$PHP_PEAR" = "yes"; then
-  PEAR_DIR=pear
-fi
-
-
 divert(5)
 
 PHP_CONFIGURE_PART(Configuring extensions)
@@ -644,15 +640,8 @@
 ;;
 esac
 
-if test "$PHP_SAPI" = "cgi"; then
-  PHP_PROGRAM=php
-fi
-
-if test "$PHP_SAPI" = "fastcgi"; then
-  PHP_PROGRAM=php
-fi
+PHP_PROGRAM=php
 
-
 PHP_REGEX
 
 PHP_CONFIGURE_PART(Configuring Zend)
@@ -695,31 +684,64 @@
 phptempdir="`pwd`/libs"
 
 test "$prefix" = "NONE"  prefix="/usr/local"
-test "$exec_prefix" = "NONE"  exec_prefix='$(prefix)'
+test "$exec_prefix" = "NONE"  exec_prefix='${prefix}'
+case $libdir in
+*/php) ;;
+*) libdir="$libdir/php";;
+esac
+case $datadir in
+*/php) ;;
+*) datadir="$datadir/php";;
+esac
 
 dnl Build extension directory path
 
-if test "$PHP_DEBUG" = "1"; then
-  PART1=debug
-else
-  PART1=no-debug
-fi
+ZEND_MODULE_API_NO=`egrep '#define ZEND_MODULE_API_NO ' 
+$srcdir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO //'`
+
+extbasedir="$ZEND_MODULE_API_NO"
 
 if test "$enable_experimental_zts" = "yes"; then
-  PART2=zts
-else
-  PART2=non-zts
+  extbasedir="${extbasedir}-zts"
 fi
 
-ZEND_MODULE_API_NO=`egrep '#define ZEND_MODULE_API_NO ' 
$srcdir/Zend/zend_modules.h|sed 's/#define 

Re: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi config.m4

2001-04-08 Thread Derick Rethans

On Sun, 8 Apr 2001, Stig Bakken wrote:

   * CGI version is always installed!

Do we want this? I don't actually. It would be nice if the cgi build could
be disabled.

Regards,

Derick Rethans

-
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
 SRM: Site Resource Manager - www.vl-srm.net
-


-- 
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 / Makefile.in configure.in /main build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi config.m4

2001-04-08 Thread Anil Madhavapeddy

Derick Rethans wrote:


 On Sun, 8 Apr 2001, Stig Bakken wrote:

* CGI version is always installed!

 Do we want this? I don't actually. It would be nice if the cgi build
 could be disabled.

With PEAR maturing, it'll be pretty useful to have it installed by
default; an option to disable it would definitely be good however.

Anil


-- 
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] getting commandline ?

2001-04-08 Thread NoSpeed

Hi

I want to write a small application that will change something in databases
on various locations.

I can do this in Perl, but being used to the grace and simpleness of doing
DB's with PHP, DB's with Perl became a real super drag :

So what i would like to know is the following.

I know you can make a php executable and let it function as a script.
(by adding the correct shebang)

But how can i make commandline parameters visible in the php script ?

lets say we have this :

$
/usr/bin/changeinfo.php -database=test -table=testtable -row=changethis -dat
a=replaceforthis.

How can i get these parameters in the script so i can work with them ?

Thanks

--
- NoSpeed
--
- Carpe Noctem

"The stickers on the side of the box said "Supported Platforms: Windows 98,
Windows NT 4.0, Windows 2000 or better", so clearly Linux was a supported
platform."



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




RE: [PHP] where might I find a good php page

2001-04-08 Thread Jeff Oien

 I'd really like to learn PHP but where ?
 I know some basic perl but havent lookt that deep in PHP yet. any leads ??
 =)
 
 sincerly // Ken

http://www.webdesigns1.com/php/
Jeff Oien

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




Re: [PHP] mail() limit? Use aliases table

2001-04-08 Thread Lindsay Adams

No, I use my manual lists without a problem.
If I ever have to install on a system that does not allow normal use of an
alias table by a normal user, then I might try something else.

But under my resellers account on AIT, I get to do whatever I want with
aliases, and the lists work find =)

I would not be able to install qmail on my ISP, so that is not an option
either.

So, my solution works great for me, I have my own administrative routines in
PHP for adding aliases, writing lists, and storing the master data in mysql
databases. It all works cleanly without a hitch.

If it ain't broke, don't fix it ;)

Cheers!
lindsay


On 4/8/01 2:18 PM, "Manuel Lemos" [EMAIL PROTECTED] wrote:

 Hello Lindsay,
 
 On 08-Apr-01 16:14:00, you wrote:
 
 If you have access to /etc/aliases, this makes your code much easier
 
 It works but it requires that you have root permissions and use the real
 sendmail program and not another wrapped mailing system.
 
 For bulk mailing, like for mailing lists, qmail is better.  You just pass
 the sender and all recipient addresses one per line to qmail-send and it
 will inject a single message into the delivery queue.  You do not need root
 permissions.
 
 As a good mailing list program you can use ezmlm that takes advantage of
 special features of qmail that other mailing systems don't have like the
 VERP extension that lets you figure exactly who is bouncing your messages
 and QMQP server that lets you handle mailing list delivery queues without
 choking your SMTP server.
 
 Maybe you would like to try this PHP application that lets you manage
 ezmlm mailing lists via the Web:
 
 http://phpclasses.UpperDesign.com/browse.html/package/177
 
 
 Regards,
 Manuel Lemos
 
 Web Programming Components using PHP Classes.
 Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
 --
 E-mail: [EMAIL PROTECTED]
 URL: http://www.mlemos.e-na.net/
 PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
 --
 


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

2001-04-08 Thread Joe Stump

$argv and $argc - also put #!/usr/local/bin/php -q at the top of your script
(above the top ?) and then chmod +x it to run it like a regular script.

--Joe

On Sun, Apr 08, 2001 at 11:13:34PM +0200, NoSpeed wrote:
 Hi
 
 I want to write a small application that will change something in databases
 on various locations.
 
 I can do this in Perl, but being used to the grace and simpleness of doing
 DB's with PHP, DB's with Perl became a real super drag :
 
 So what i would like to know is the following.
 
 I know you can make a php executable and let it function as a script.
 (by adding the correct shebang)
 
 But how can i make commandline parameters visible in the php script ?
 
 lets say we have this :
 
 $
 /usr/bin/changeinfo.php -database=test -table=testtable -row=changethis -dat
 a=replaceforthis.
 
 How can i get these parameters in the script so i can work with them ?
 
 Thanks
 
 --
 - NoSpeed
 --
 - Carpe Noctem
 
 "The stickers on the side of the box said "Supported Platforms: Windows 98,
 Windows NT 4.0, Windows 2000 or better", so clearly Linux was a supported
 platform."
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


/**\
 *Joe Stump - PHP/SQL/HTML Developer  *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\**/

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




[PHP] HTML table to MySQL?

2001-04-08 Thread Scott VanCaster

How would one go about getting each element from an HTML table to a
database?  The HTML will be the source code from a games site score report
pasted into a form.  I'm just learning, so don't waste you're valuable time
explaining every detail of how this can be done, but if someone can point me
in the right direction or a web site detailing something similar it would be
appreciated.  I can come back here with more specific questions once I've
learned enough to know what to ask and understand the answers :)

Thanks.



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




Re: [PHP] HTML table to MySQL?

2001-04-08 Thread Lindsay Adams

If you are sucking the scores off someones website, so you can put them into
a database (you should first get permission from site owner ;) )

But the process would be as follows in pseudo code (can't be done with just
SQL commands, btw.)

Get page
Find beginning and end of table, strip off everything before and after.
Find each row
within each row find each set of td/td tags and put information
between into a variable or reference

Repeat for each row, storing your column data into an array or something.

When done,
Loop through result array and build SQL INSERT string
Execute SQL statement

That's the code.
It is going to require heavy use of regualr expressions and backreferences
inside those expressions.

Now, you just have to choose a programming language with powerful regex
capability (see Perl or PHP, PHP easier to learn for novice probably)

On 4/8/01 4:30 PM, "Scott VanCaster" [EMAIL PROTECTED] wrote:

 How would one go about getting each element from an HTML table to a
 database?  The HTML will be the source code from a games site score report
 pasted into a form.  I'm just learning, so don't waste you're valuable time
 explaining every detail of how this can be done, but if someone can point me
 in the right direction or a web site detailing something similar it would be
 appreciated.  I can come back here with more specific questions once I've
 learned enough to know what to ask and understand the answers :)
 
 Thanks.
 
 


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




[PHP] anything wrong with php.net?

2001-04-08 Thread Christian Dechery

Is there anything wrong with www.php.net?

I can't access it for two days now...

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


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




Re: [PHP] anything wrong with php.net?

2001-04-08 Thread Joe Stump

I'm on it right now.

--Joe

On Sun, Apr 08, 2001 at 09:02:54PM -0300, Christian Dechery wrote:
 Is there anything wrong with www.php.net?
 
 I can't access it for two days now...
 
 . Christian Dechery (lemming)
 . http://www.tanamesa.com.br
 . Gaita-L Owner / Web Developer
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


/**\
 *Joe Stump - PHP/SQL/HTML Developer  *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\**/

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




Re: [PHP] anything wrong with php.net?

2001-04-08 Thread Kath

Can you traceroute it?  Maybe that can pinpoint the cause of the problem for
you.

Works for me.

- Kath

- Original Message -
From: "Christian Dechery" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, April 08, 2001 8:02 PM
Subject: [PHP] anything wrong with php.net?


 Is there anything wrong with www.php.net?

 I can't access it for two days now...
 
 . Christian Dechery (lemming)
 . http://www.tanamesa.com.br
 . Gaita-L Owner / Web Developer


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



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




[PHP] Row colors

2001-04-08 Thread Mike P

I can change the column sof a table with the following code but how do I 
change the row colors instead.With the columns I have "i" to manipulate but 
not with rows.

while ($row = mysql_fetch_row($result))
{{
echo "TR\n";
for ($i =1;$imysql_num_fields($result);$i++)
{$cell_color = "#C0C0C0";
$i % 2  ? 0: $cell_color = "#CC";
echo "td bgcolor=\"$cell_color\"$row[$i]/td";
Thanks 
Mike P
[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] Inputing data to a relational database

2001-04-08 Thread Nathan Roberts

I am a nebie to Mysql/php and am currently working on an urgent project, a
on-line catalogue. I have been using phpmyadmin, to create the tables in
MySQL. However I now want to add data into the tables. I am reluctant to
program a php page to do this, as I do not (yet) have sufficient php
knowledge. As far as I can see phpMyadmin doesn't do all I need it to, which
is:-

The tables reference each other, for example

The categories are stored in a categories table
The products table includes a field category

to ensure referential integrity, when adding a product to the products
table, I want to have a combo box that will let me select one of the
categories from the categories table.

Is there anything like phpmyadmin that will let me do this without me having
to write code.

Any advice much appreciated

Nathan Roberts



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




Re: [PHP] anything wrong with php.net?

2001-04-08 Thread Lindsay Adams

It is up just fine.
Try one of the mirror addresses as a backup
Like:
http://php.he.net

On 4/8/01 5:07 PM, "Kath" [EMAIL PROTECTED] wrote:

 Can you traceroute it?  Maybe that can pinpoint the cause of the problem for
 you.
 
 Works for me.
 
 - Kath
 
 - Original Message -
 From: "Christian Dechery" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, April 08, 2001 8:02 PM
 Subject: [PHP] anything wrong with php.net?
 
 
 Is there anything wrong with www.php.net?
 
 I can't access it for two days now...
 
 . Christian Dechery (lemming)
 . http://www.tanamesa.com.br
 . Gaita-L Owner / Web Developer
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




[PHP] parse error

2001-04-08 Thread kenny.hibs

I am getting a parse error in the following line of code

**
foreach ($messagearray as $value) {
  //print("strlen:  " . strlen($value));
  if (strlen($value) = 22) {
  ?
  script
   alert('Your post is too long...use the forum for longer stories.')
  /script

   ?
$message="";
   break;
  }
 }
*
can anyone see whats causing the problem

kenny


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




Re: [PHP] Row colors

2001-04-08 Thread Joe Stump

tr bgcolor="? $cell_color; ?"

--Joe

On Mon, Apr 09, 2001 at 12:08:10AM +, Mike P wrote:
 I can change the column sof a table with the following code but how do I 
 change the row colors instead.With the columns I have "i" to manipulate but 
 not with rows.
 
 while ($row = mysql_fetch_row($result))
 {{
   echo "TR\n";
   for ($i =1;$imysql_num_fields($result);$i++)
   {$cell_color = "#C0C0C0";
   $i % 2  ? 0: $cell_color = "#CC";
   echo "td bgcolor=\"$cell_color\"$row[$i]/td";
 Thanks 
 Mike P
 [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]


/**\
 *Joe Stump - PHP/SQL/HTML Developer  *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\**/

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




Re: [PHP] Inputing data to a relational database

2001-04-08 Thread Joe Stump

www.mysql.com - Documentation - is you know how to insert data using SQL 
already then just make the PHP script.

--Joe

On Mon, Apr 09, 2001 at 01:11:57AM +0100, Nathan Roberts wrote:
 I am a nebie to Mysql/php and am currently working on an urgent project, a
 on-line catalogue. I have been using phpmyadmin, to create the tables in
 MySQL. However I now want to add data into the tables. I am reluctant to
 program a php page to do this, as I do not (yet) have sufficient php
 knowledge. As far as I can see phpMyadmin doesn't do all I need it to, which
 is:-
 
 The tables reference each other, for example
 
 The categories are stored in a categories table
 The products table includes a field category
 
 to ensure referential integrity, when adding a product to the products
 table, I want to have a combo box that will let me select one of the
 categories from the categories table.
 
 Is there anything like phpmyadmin that will let me do this without me having
 to write code.
 
 Any advice much appreciated
 
 Nathan Roberts
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


/**\
 *Joe Stump - PHP/SQL/HTML Developer  *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\**/

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




Re: [PHP] Row colors

2001-04-08 Thread Gfunk

see changes


Gfunk - [EMAIL PROTECTED] - http://www.gfunk007.com/


- Original Message -
From: "Mike P" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 09, 2001 10:08 AM
Subject: [PHP] Row colors


 I can change the column sof a table with the following code but how do I
 change the row colors instead.With the columns I have "i" to manipulate
but
 not with rows.


$rowcount = 0;

 while ($row = mysql_fetch_row($result))
 {{

$rowcount++;

if ($rowcount%2==1)
echo "tr bgcolor=\"blue\"";
else
echo "tr bgcolor=\"white\"";

 for ($i =1;$imysql_num_fields($result);$i++)
 {$cell_color = "#C0C0C0";
 $i % 2  ? 0: $cell_color = "#CC";
 echo "td bgcolor=\"$cell_color\"$row[$i]/td";
 Thanks
 Mike P
 [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] parse error

2001-04-08 Thread Joe Stump

Worked for me, but I had to make sure that $messagearray was in fact an array.
So wrap that block of code in this:

  if(is_array($messagearray)  sizeof($messagearray))
  {


  }

--Joe

On Mon, Apr 09, 2001 at 01:13:00AM +0100, kenny.hibs wrote:
 I am getting a parse error in the following line of code
 
 **
 foreach ($messagearray as $value) {
   //print("strlen:  " . strlen($value));
   if (strlen($value) = 22) {
   ?
   script
alert('Your post is too long...use the forum for longer stories.')
   /script
 
?
 $message="";
break;
   }
  }
 *
 can anyone see whats causing the problem
 
 kenny
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


/**\
 *Joe Stump - PHP/SQL/HTML Developer  *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\**/

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




Re: [PHP] Inputing data to a relational database

2001-04-08 Thread Lindsay Adams

Not that I am aware of, because all the referential integrity relating to
mysql, is in whatever code you write to access it. So you are going to have
to use C,Perl,PHP,Python, or something to access your data, and control
integrity.

Play with mysql queries in php. As long as you only do selects, you can't
damage the table.

When you understand how to send the query from php - mysql, then you can
build your insert queries and such, and not worry too much.

Php really is easy in this respect, and every PHP book that I have looked at
gets you to the point of using mysql really quickly.

There are also plenty of tutorials on the net.
See the php links page on php.net


On 4/8/01 5:11 PM, "Nathan Roberts" [EMAIL PROTECTED] wrote:

 I am a nebie to Mysql/php and am currently working on an urgent project, a
 on-line catalogue. I have been using phpmyadmin, to create the tables in
 MySQL. However I now want to add data into the tables. I am reluctant to
 program a php page to do this, as I do not (yet) have sufficient php
 knowledge. As far as I can see phpMyadmin doesn't do all I need it to, which
 is:-
 
 The tables reference each other, for example
 
 The categories are stored in a categories table
 The products table includes a field category
 
 to ensure referential integrity, when adding a product to the products
 table, I want to have a combo box that will let me select one of the
 categories from the categories table.
 
 Is there anything like phpmyadmin that will let me do this without me having
 to write code.
 
 Any advice much appreciated
 
 Nathan Roberts
 
 


-- 
PHP General Mailing List (http://www.php.net/)
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 / Makefile.in configure.in /main build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi config.m4

2001-04-08 Thread Sean R. Bright

After "cvs update -dAP":

Making all in sapi
gmake[1]: Entering directory `/home/kroot/php4/sapi'
Making all in cgi
gmake[2]: Entering directory `/home/kroot/php4/sapi/cgi'
gmake[2]: *** No rule to make target `all'.  Stop.
gmake[2]: Leaving directory `/home/kroot/php4/sapi/cgi'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/kroot/php4/sapi'
gmake: *** [all-recursive] Error 1

 -Original Message-
 From: Stig Bakken [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 6:30 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main
 build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi 
 config.m4 
 
 
 ssb   Sun Apr  8 15:30:18 2001 EDT
 
   Modified files:  
 /php4 Makefile.in configure.in 
 /php4/mainbuild-defs.h.in 
 /php4/pearPEAR.php.in 
 /php4/sapiMakefile.in 
 /php4/sapi/cgiconfig.m4 
   Log:
   * CGI version is always installed!
   * replaced --disable-pear with --with-pear=DIR (or --without-pear),
 is backwards compatible
   * use --datadir, --libdir and --sysconfdir configure 
 options to determine
 where PEAR files, shared extensions and php.ini goes
   * simplified the extension version directory 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] parse error

2001-04-08 Thread Philip Olson

Three questions :

  1. What is the parse error.
  2. What line corresponds with the parse error.
  3. What are the two lines above the line in #2

Regarding your code, it works (no parse error) for me.  Two possible
issues/guesses/warnings are :

  a. Foreach is php4+ (see manual for alternatives)
  b. $messagearray must be an array (see is_array())

Also, it helps people debug if the exact error is given as it takes much
less time to debug (i.e. don't have to read all the code).  Good luck ;)

regards,
Philip

On Mon, 9 Apr 2001, kenny.hibs wrote:

 I am getting a parse error in the following line of code
 
 **
 foreach ($messagearray as $value) {
   //print("strlen:  " . strlen($value));
   if (strlen($value) = 22) {
   ?
   script
alert('Your post is too long...use the forum for longer stories.')
   /script
 
?
 $message="";
break;
   }
  }
 *
 can anyone see whats causing the problem
 
 kenny
 
 
 -- 
 PHP General Mailing List (http://www.php.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] uninstalling PHP4

2001-04-08 Thread David Loszewski

I just uninstalled MySQL, now how do i uninstall PHP4, I installed it from a
.tar file.

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




Re: [PHP] uninstalling PHP4

2001-04-08 Thread Rasmus Lerdorf

 I just uninstalled MySQL, now how do i uninstall PHP4, I installed it from a
 .tar file.

Just remove the LoadModule line from your httpd.conf assuming you built
PHP as a DSO.  If you compiled it into your Apache as a static module you
will need to recompile Apache.

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
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 / Makefile.in configure.in /main build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi config.m4

2001-04-08 Thread Sean R. Bright

Sorry:

./configure --with-apxs=/usr/local/etc/httpd/bin/apxs --with-mysql

 -Original Message-
 From: Sean R. Bright [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 8:21 PM
 To: 'Stig Bakken'; [EMAIL PROTECTED]
 Subject: RE: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main
 build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi 
 config.m4 
 
 
 After "cvs update -dAP":
 
 Making all in sapi
 gmake[1]: Entering directory `/home/kroot/php4/sapi'
 Making all in cgi
 gmake[2]: Entering directory `/home/kroot/php4/sapi/cgi'
 gmake[2]: *** No rule to make target `all'.  Stop.
 gmake[2]: Leaving directory `/home/kroot/php4/sapi/cgi'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/home/kroot/php4/sapi'
 gmake: *** [all-recursive] Error 1
 
  -Original Message-
  From: Stig Bakken [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, April 08, 2001 6:30 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main
  build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi 
  config.m4 
  
  
  ssb Sun Apr  8 15:30:18 2001 EDT
  
Modified files:  
  /php4   Makefile.in configure.in 
  /php4/main  build-defs.h.in 
  /php4/pear  PEAR.php.in 
  /php4/sapi  Makefile.in 
  /php4/sapi/cgi  config.m4 
Log:
* CGI version is always installed!
* replaced --disable-pear with --with-pear=DIR (or 
 --without-pear),
  is backwards compatible
* use --datadir, --libdir and --sysconfdir configure 
  options to determine
  where PEAR files, shared extensions and php.ini goes
* simplified the extension version directory 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]
 

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

2001-04-08 Thread David Loszewski

how do I tell?

-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 08, 2001 8:32 PM
To: David Loszewski
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] uninstalling PHP4


 I just uninstalled MySQL, now how do i uninstall PHP4, I installed it from
a
 .tar file.

Just remove the LoadModule line from your httpd.conf assuming you built
PHP as a DSO.  If you compiled it into your Apache as a static module you
will need to recompile Apache.

-Rasmus


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

2001-04-08 Thread Rasmus Lerdorf

httpd -l

If php shows up in your list it is static.

Or, check phpinfo() and see if the configure line you used was --with-apxs
(DSO) or --with-apache (static)

-Rasmus

On Sun, 8 Apr 2001, David Loszewski wrote:

 how do I tell?

 -Original Message-
 From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 8:32 PM
 To: David Loszewski
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] uninstalling PHP4


  I just uninstalled MySQL, now how do i uninstall PHP4, I installed it from
 a
  .tar file.

 Just remove the LoadModule line from your httpd.conf assuming you built
 PHP as a DSO.  If you compiled it into your Apache as a static module you
 will need to recompile Apache.

 -Rasmus


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

2001-04-08 Thread Joe Stump

I think the more important question is:

Why would you want to uninstall it?

;o)

--Joe

On Sun, Apr 08, 2001 at 08:40:57PM -0400, David Loszewski wrote:
 how do I tell?
 
 -Original Message-
 From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 8:32 PM
 To: David Loszewski
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] uninstalling PHP4
 
 
  I just uninstalled MySQL, now how do i uninstall PHP4, I installed it from
 a
  .tar file.
 
 Just remove the LoadModule line from your httpd.conf assuming you built
 PHP as a DSO.  If you compiled it into your Apache as a static module you
 will need to recompile Apache.
 
 -Rasmus
 
 
 --
 PHP General Mailing List (http://www.php.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]


/**\
 *Joe Stump - PHP/SQL/HTML Developer  *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\**/

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




RE: [PHP] uninstalling PHP4

2001-04-08 Thread David Loszewski

because I uninstalled MySQL, don't you need MySQL to run PHP?

-Original Message-
From: Joe Stump [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 08, 2001 8:38 PM
To: David Loszewski
Cc: Rasmus Lerdorf; [EMAIL PROTECTED]
Subject: Re: [PHP] uninstalling PHP4


I think the more important question is:

Why would you want to uninstall it?

;o)

--Joe

On Sun, Apr 08, 2001 at 08:40:57PM -0400, David Loszewski wrote:
 how do I tell?

 -Original Message-
 From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 8:32 PM
 To: David Loszewski
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] uninstalling PHP4


  I just uninstalled MySQL, now how do i uninstall PHP4, I installed it
from
 a
  .tar file.

 Just remove the LoadModule line from your httpd.conf assuming you built
 PHP as a DSO.  If you compiled it into your Apache as a static module you
 will need to recompile Apache.

 -Rasmus


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


/***
***\
 *Joe Stump - PHP/SQL/HTML Developer
*
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net
*
 * "Better to double your money on mediocrity than lose it all on a dream."
*
\***
***/

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

2001-04-08 Thread Joe Stump

Oh well ... 

?

  function bg_color()
  {
global $bg;

if(++$bg % 2 == 0)
  return '#cc';
else
  return '#ee';
  }

  // sql stuff ...
  while($row = mysql_fetch_array($result)
  {
echo 'tr bgcolor="'.bg_color().'"'."\n";
// td's 
echo '/tr';
  }
?


On Sun, Apr 08, 2001 at 08:37:26PM -0400, Mike P wrote:
 That does not change every other row.
 
 -Original Message-
 From: Joe Stump [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 8:11 PM
 To: Mike P
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Row colors
 
 
 tr bgcolor="? $cell_color; ?"
 
 --Joe
 
 On Mon, Apr 09, 2001 at 12:08:10AM +, Mike P wrote:
  I can change the column sof a table with the following code but how do I
  change the row colors instead.With the columns I have "i" to manipulate
 but
  not with rows.
 
  while ($row = mysql_fetch_row($result))
  {{
  echo "TR\n";
  for ($i =1;$imysql_num_fields($result);$i++)
  {$cell_color = "#C0C0C0";
  $i % 2  ? 0: $cell_color = "#CC";
  echo "td bgcolor=\"$cell_color\"$row[$i]/td";
  Thanks
  Mike P
  [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]
 
 
 /***
 ***\
  *Joe Stump - PHP/SQL/HTML Developer
 *
  * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net
 *
  * "Better to double your money on mediocrity than lose it all on a dream."
 *
 \***
 ***/


/**\
 *Joe Stump - PHP/SQL/HTML Developer  *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\**/

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




Re: [PHP] uninstalling PHP4

2001-04-08 Thread Joe Stump

No. PHP is totally independent of all DB's...

--Joe

On Sun, Apr 08, 2001 at 08:50:34PM -0400, David Loszewski wrote:
 because I uninstalled MySQL, don't you need MySQL to run PHP?
 
 -Original Message-
 From: Joe Stump [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 8:38 PM
 To: David Loszewski
 Cc: Rasmus Lerdorf; [EMAIL PROTECTED]
 Subject: Re: [PHP] uninstalling PHP4
 
 
 I think the more important question is:
 
 Why would you want to uninstall it?
 
 ;o)
 
 --Joe
 
 On Sun, Apr 08, 2001 at 08:40:57PM -0400, David Loszewski wrote:
  how do I tell?
 
  -Original Message-
  From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, April 08, 2001 8:32 PM
  To: David Loszewski
  Cc: [EMAIL PROTECTED]
  Subject: Re: [PHP] uninstalling PHP4
 
 
   I just uninstalled MySQL, now how do i uninstall PHP4, I installed it
 from
  a
   .tar file.
 
  Just remove the LoadModule line from your httpd.conf assuming you built
  PHP as a DSO.  If you compiled it into your Apache as a static module you
  will need to recompile Apache.
 
  -Rasmus
 
 
  --
  PHP General Mailing List (http://www.php.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]
 
 
 /***
 ***\
  *Joe Stump - PHP/SQL/HTML Developer
 *
  * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net
 *
  * "Better to double your money on mediocrity than lose it all on a dream."
 *
 \***
 ***/
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


/**\
 *Joe Stump - PHP/SQL/HTML Developer  *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\**/

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




[PHP] Metaphone, Soundex , MySQL

2001-04-08 Thread bill

greetings everyone,

is anyone using the soundex or metaphone functions to keyword match
multi-word (TEXT type) database fields? if so, i really could use some
pointers.

i have found that MySQL's SOUNDEX() function will make one gigantic value
from the entire paragraph, but that doesn't to me any good when searching
for words within the paragraph.

i have thought about just returning all the rows from the database and
doing the metaphone matching in php, but that doesn't seem right at all.

also considered metaphone encoding (in php) the data on entry into a
separate column and searching that column for metphone matches, then using
the id to get the human-readable data on a match.

i like the last one (and prefer metaphone), but am wondering what others
might be doing.

thanks kindly,
Bill




-- 
PHP General Mailing List (http://www.php.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 9 Apr 2001 01:12:41 -0000 Issue 616

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


php-general Digest 9 Apr 2001 01:12:41 - Issue 616

Topics (messages 47646 through 47700):

Re: where might I find a good php page
47646 by: Zeus
47665 by: Boaz Yahav
47668 by: Jason Lotito
47669 by: Philip Olson
47672 by: Jeff Oien

adding postgresql support to php
47647 by: Kevin Heflin
47648 by: shaun

Validate forms into PHP file
47649 by: Fernando Buitrago

Redirect
47650 by: Fernando Buitrago
47658 by: Philip Olson

[PHP4] mod_php4, not compatible with Apache version?
47651 by: Enrique de las Heras
47652 by: Lindsay Adams

Re: mail() limit?
47653 by: Manuel Lemos

Re: Selecting Dates
47654 by: Manuel Lemos

Re: mail() limit? Use aliases table
47655 by: Lindsay Adams
47664 by: Manuel Lemos
47673 by: Lindsay Adams

Re: FORM input type=image ... with a posting value
47656 by: Victor Gamov

Re: mail() limit? Use aliases table [typo]
47657 by: Lindsay Adams

Pop Up Window
47659 by: Claudia
47660 by: Lindsay Adams

nested loops and PHPLIB templates
47661 by: paula
47662 by: eschmid+sic.s.netic.de

newbie question about variables
47663 by: Victor
47666 by: eschmid+sic.s.netic.de
47667 by: Philip Olson
47670 by: liman

getting commandline ?
47671 by: NoSpeed
47674 by: Joe Stump
47675 by: Lindsay Adams
47676 by: Lindsay Adams

HTML table to MySQL?
47677 by: Scott VanCaster
47678 by: Lindsay Adams

anything wrong with php.net?
47679 by: Christian Dechery
47680 by: Joe Stump
47681 by: Kath
47684 by: Lindsay Adams

Row colors
47682 by: Mike P
47686 by: Joe Stump
47688 by: Gfunk
47698 by: Joe Stump

Inputing data to a relational database
47683 by: Nathan Roberts
47687 by: Joe Stump
47690 by: Lindsay Adams

parse error
47685 by: kenny.hibs
47689 by: Joe Stump
47691 by: Philip Olson

uninstalling PHP4
47692 by: David Loszewski
47693 by: Rasmus Lerdorf
47694 by: David Loszewski
47695 by: Rasmus Lerdorf
47696 by: Joe Stump
47697 by: David Loszewski
47699 by: Joe Stump

Metaphone, Soundex , MySQL
47700 by: bill

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]


--



PHP.NET :)

where have you been hiding

- Original Message -
From: Engstrm [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, 08 April, 2001 11:12 PM
Subject: [PHP] where might I find a good php page


I'd really like to learn PHP but where ?
I know some basic perl but havent lookt that deep in PHP yet. any leads ??
=)

sincerly // Ken






http://www.weberdev.com

Sincerely

  berber

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

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 08, 2001 5:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] where might I find a good php page


I'd really like to learn PHP but where ?
I know some basic perl but havent lookt that deep in PHP yet. any leads ??
=)

sincerly // Ken




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 5:13 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] where might I find a good php page


 I'd really like to learn PHP but where ?
 I know some basic perl but havent lookt that deep in PHP yet. any leads ??
 =)

 sincerly // Ken

www.newbienetwork.net
www.phpbuilder.com
www.phpdeveloper.org
www.devshed.com
www.php.net/manual
www.phpbeginner.com

Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.






Here are some links :

Most important, the PHP Manual : 

http://www.php.net/manual/

Some basic PHP Tutorials   : 
 
http://www.gimpster.com/php/tutorial.php 
http://www.devshed.com/Server_Side/PHP/PHP101_1/ 
http://php.vamsi.net/mysql/index.php 
http://www.webmasterbase.com/article.php?aid=228pid=0 
http://www.zend.com/zend/art/mistake.php
http://www.zend.com/zend/tut/using-strings.php

Some tutorial/article locations: 
 
http://devshed.com/Server_Side/PHP/ 
http://www.phpbuilder.com/ 
http://www.zend.com/zend/tut/ 
http://www.zend.com/zend/art/ 
http://www.oreillynet.com/php/
http://php.faqts.com/ 
http://www.thickbook.com/ 
http://www.weberdev.com/ 
http://www.google.com/ 

[PHP] Dynamic Module Load

2001-04-08 Thread Jochen Kaechelin

My ISP does not support PDF-Support in PHP 4.0.3pl1.
But we urgently need to generate PDF-Files on the fly.

Is it secure to use the dl-command?
Is it possible to override the dl-extension-path
defined in the php.ini?



--
Jochen Kaechelin - Ihr WEBberater
Stuttgarter Str.3, D-73033 Goeppingen
Tel. 07161-92 95 94, Fax 07161-92 95 98
http://www.wa-p.de, mailto:[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] PHPSESSID sticks to every link after upgrate of Apache/PHP

2001-04-08 Thread trogers

Hi
You will probably need to make clean and rebuild php config and do a new 
make against the new version of apache.
Just a guess
Tom

At 12:28 PM 5/04/01 +0900, Maxim Maletsky wrote:

Hello,

my co-worker has reinstalled Apache and PHP over the last night.

The Apache was upgraded to the new version while PHP was re-installed the
same.
PHP.ini was untouched.

Site uses sessions and, somehow, after this upgrade started carrying
PHPSESSID through HREF.

What should look for to bring the sessions using Cookies?

from PHP-INI:

NOTE : this was untouched.



[Session]
session.save_handler  = files   ; handler used to store/retrieve data
session.save_path = /tmp; argument passed to save_handler
 ; in the case of files, this is the
 ; path where data files are stored
session.use_cookies   = 1   ; whether to use cookies
session.name  = PHPSESSID ; name of the session
 ; is used as cookie name
session.auto_start= 0   ; initialize session on request startup
session.cookie_lifetime   = 0   ; lifetime in seconds of cookie
 ; or if 0, until browser is restarted
session.cookie_path   = /   ; the path the cookie is valid for
session.cookie_domain = ; the domain the cookie is valid for
session.serialize_handler = php ; handler used to serialize data
 ; php is the standard serializer of PHP
session.gc_probability= 1   ; percentual probability that the
 ; 'garbage collection' process is
started
 ; on every session initialization
session.gc_maxlifetime= 1440; after this number of seconds, stored
 ; data will be seen as 'garbage' and
 ; cleaned up by the gc process
session.referer_check = ; check HTTP Referer to invalidate
 ; externally stored URLs containing ids
session.entropy_length= 0   ; how many bytes to read from the file
session.entropy_file  = ; specified here to create the session
id
; session.entropy_length= 16
; session.entropy_file  = /dev/urandom
session.cache_limiter = nocache ; set to {nocache,private,public} to
 ; determine HTTP caching aspects
session.cache_expire  = 180 ; document expires after n minutes
session.use_trans_sid = 1   ; use transient sid support if enabled
 ; by compiling with --enable-trans-sid
=


Has upgrade of apache (modules, etc) anything to do with it?

I can't really give you any more details since my co-coworker is unreachable
right now, and this is kinda urgent.

Cheers,
Max.



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

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




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


-- 
PHP General Mailing List (http://www.php.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 to get php_pdf.so?

2001-04-08 Thread Jochen Kaechelin

Where can I get a php_pdf.so file
for trying the dl-function on our server?

I locally use a Win-System and therfore only
have a php_pdf.dll!

--
Jochen Kaechelin - Ihr WEBberater
Stuttgarter Str.3, D-73033 Goeppingen
Tel. 07161-92 95 94, Fax 07161-92 95 98
http://www.wa-p.de, mailto:[EMAIL PROTECTED] 

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




Re: [PHP] Apache latest + PHP latest + GD latest + Freetype latest + Jpeg latest

2001-04-08 Thread trogers

Hi
I don't think gd uses freetype by default .. seem to remember having to 
edit the makefile
Tom


At 12:12 PM 5/04/01 +0100, Alex Bloor wrote:
Hi,

Firstly, thanks for reading this message.

Has anyone managed to compile and use :

Apache latest + PHP latest + GD latest + Freetype latest + Jpeg latest
= Apache 1.3.19 + PHP 4.0.4pl1 + GD 1.8.4 + Freetype 2.0.1 + Jpeg 6b

I can get it to compile OK with GD but there seem to be problems with 
Freetype (i.e.
everything I try results in a non-working ImageTtfBBox function). I've 
followed as many
guides to getting it working as I can find, but they mostly refer to older 
versions..

I'm pretty sure this is something reasonably obvious but there doesn't 
seem to be a one-stop
guide to getting it all installed *anywhere* (links would be cool though 
if anyone has them)..

My PHP compile line is :

./configure --with-apache=../apache_1.3.19 --
with-mysql --with-gd --with-ttf=/usr/local/include/freetype2 
--with-jpeg-dir=/u
sr/local --enable-freetype-4bit-antialias-hack --enable-gd-imgstrttf

these look relevant :

checking whether to enable truetype string function in gd... no
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for libXpm (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-xpm-dir=DIR
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageColorClosestHWB in -lgd... (cached) yes
checking for compress in -lz... (cached) yes
checking for png_info_init in -lpng... (cached) yes
checking for gdImageColorResolve in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) no
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking whether to include FreeType 1.x support... no
checking for T1lib support... no
checking whether to include GNU gettext support... no

 checking whether to enable truetype string function in gd... no
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for libXpm (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-xpm-dir=DIR
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageColorClosestHWB in -lgd... (cached) yes
checking for compress in -lz... (cached) yes
checking for png_info_init in -lpng... (cached) yes
checking for gdImageColorResolve in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) no
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking whether to include FreeType 1.x support... no
checking for T1lib support... no
checking whether to include GNU gettext support... no

I *think* it is probably something to do with GD not being compiled 
properly, but this (I am
guessing) is to do with it being freetype 2.0.1 as opposed to 1.x ..

Any light anyone can shed would be great.

Many thanks

Alex

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


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




Re: [PHP] Apache latest + PHP latest + GD latest + Freetype latest+ Jpeg latest

2001-04-08 Thread Rasmus Lerdorf

It doesn't, but you don't need Freetype support in GD in order to get
GD+Freetype support.  PHP takes a vanilla GD library and adds Freetype
support itself (assuming you have the Freetype lib, of course).

-Rasmus

On Mon, 9 Apr 2001, trogers wrote:

 Hi
 I don't think gd uses freetype by default .. seem to remember having to
 edit the makefile
 Tom


 At 12:12 PM 5/04/01 +0100, Alex Bloor wrote:
 Hi,
 
 Firstly, thanks for reading this message.
 
 Has anyone managed to compile and use :
 
 Apache latest + PHP latest + GD latest + Freetype latest + Jpeg latest
 = Apache 1.3.19 + PHP 4.0.4pl1 + GD 1.8.4 + Freetype 2.0.1 + Jpeg 6b
 
 I can get it to compile OK with GD but there seem to be problems with
 Freetype (i.e.
 everything I try results in a non-working ImageTtfBBox function). I've
 followed as many
 guides to getting it working as I can find, but they mostly refer to older
 versions..
 
 I'm pretty sure this is something reasonably obvious but there doesn't
 seem to be a one-stop
 guide to getting it all installed *anywhere* (links would be cool though
 if anyone has them)..
 
 My PHP compile line is :
 
 ./configure --with-apache=../apache_1.3.19 --
 with-mysql --with-gd --with-ttf=/usr/local/include/freetype2
 --with-jpeg-dir=/u
 sr/local --enable-freetype-4bit-antialias-hack --enable-gd-imgstrttf
 
 these look relevant :
 
 checking whether to enable truetype string function in gd... no
 checking for libjpeg (needed by gd-1.8+)... yes
 checking for jpeg_read_header in -ljpeg... (cached) yes
 checking for libXpm (needed by gd-1.8+)... no
 configure: warning: If configure fails try --with-xpm-dir=DIR
 checking whether to include GD support... yes (static)
 checking for gdImageString16 in -lgd... (cached) yes
 checking for gdImagePaletteCopy in -lgd... (cached) yes
 checking for gdImageColorClosestHWB in -lgd... (cached) yes
 checking for compress in -lz... (cached) yes
 checking for png_info_init in -lpng... (cached) yes
 checking for gdImageColorResolve in -lgd... (cached) yes
 checking for gdImageCreateFromPng in -lgd... (cached) yes
 checking for gdImageCreateFromGif in -lgd... (cached) no
 checking for gdImageWBMP in -lgd... (cached) yes
 checking for gdImageCreateFromJpeg in -lgd... (cached) no
 checking for gdImageCreateFromXpm in -lgd... (cached) yes
 checking whether to include FreeType 1.x support... no
 checking for T1lib support... no
 checking whether to include GNU gettext support... no
 
  checking whether to enable truetype string function in gd... no
 checking for libjpeg (needed by gd-1.8+)... yes
 checking for jpeg_read_header in -ljpeg... (cached) yes
 checking for libXpm (needed by gd-1.8+)... no
 configure: warning: If configure fails try --with-xpm-dir=DIR
 checking whether to include GD support... yes (static)
 checking for gdImageString16 in -lgd... (cached) yes
 checking for gdImagePaletteCopy in -lgd... (cached) yes
 checking for gdImageColorClosestHWB in -lgd... (cached) yes
 checking for compress in -lz... (cached) yes
 checking for png_info_init in -lpng... (cached) yes
 checking for gdImageColorResolve in -lgd... (cached) yes
 checking for gdImageCreateFromPng in -lgd... (cached) yes
 checking for gdImageCreateFromGif in -lgd... (cached) no
 checking for gdImageWBMP in -lgd... (cached) yes
 checking for gdImageCreateFromJpeg in -lgd... (cached) no
 checking for gdImageCreateFromXpm in -lgd... (cached) yes
 checking whether to include FreeType 1.x support... no
 checking for T1lib support... no
 checking whether to include GNU gettext support... no
 
 I *think* it is probably something to do with GD not being compiled
 properly, but this (I am
 guessing) is to do with it being freetype 2.0.1 as opposed to 1.x ..
 
 Any light anyone can shed would be great.
 
 Many thanks
 
 Alex
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.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] configure not doing anything and file not found

2001-04-08 Thread Yasuo Ohgaki
There is compile instruction at www.php4win.de
I think you need CygWin and VC to compile windows version of PHP.

You may get better answer on php-windows list.

Regards,
--
Yasuo Ohgaki


""Plutarck"" [EMAIL PROTECTED] wrote in message
9aor0h$uo0$[EMAIL PROTECTED]">news:9aor0h$uo0$[EMAIL PROTECTED]...
 I'm trying to compile PHP version 4.0.4pl1 (module and/or cgi) on my windows
 98 system using Microsoft Visuall C++, and I have two "little" problems.

 For one thing, doing anything like this in my DOS prompt:

 ./configure
 ./configure --with-mysql
 configure
 /configure

 et al

 ...returns:
 Bad command or file name.

 I've heard that means that "Dev Tools" aren't on my system, which is why
 "make" or "make install" didn't do anything. But I installed cygwin
 utilities and UnxUtils. I also have Active Perl installed on my system.

 So what do I need to do to get such commands to do what they are supposed
 to?


 And I'm not sure if this is related, but when I try to compile the source
 code as an apache module I get:

 fatal error C1083: Cannot open source file:
 'C:\php-4.0.4pl1\Zend\zend_language_scanner.cpp': No such file or directory


 Seing as how there are no .cpp files in the source code from php.net, I
 imagine it would be hard to find that file ;)

 I'm using this article for instruction:
 http://www.mm4.de/php4win/article.php3?id=2language=en


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



 --
 PHP General Mailing List (http://www.php.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] Asking for input from shell?

2001-04-08 Thread enthalpy


anyone have sample code of how you can have a php script (cgi)
ask for input from the shell?

-CoreComm-Internet-Services---http://core.com-
(Jon Marshall CoreComm Services Chicago)
([EMAIL PROTECTED] Systems Engineer II)
([EMAIL PROTECTED]   Network Operations)
-Enthalpy.org-http://enthalpy.org-
([EMAIL PROTECTED] The World of Nothing)
--


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




Re: [PHP] Asking for input from shell?

2001-04-08 Thread Jason Brooke

$fp = fopen("php://stdin", "r");
echo fgets($fp, 64); 
fclose($fp);

- Original Message - 
From: "enthalpy" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 09, 2001 1:10 PM
Subject: [PHP] Asking for input from shell?


 
 anyone have sample code of how you can have a php script (cgi)
 ask for input from the shell?
 
 -CoreComm-Internet-Services---http://core.com-
 (Jon Marshall CoreComm Services Chicago)
 ([EMAIL PROTECTED] Systems Engineer II)
 ([EMAIL PROTECTED]   Network Operations)
 -Enthalpy.org-http://enthalpy.org-
 ([EMAIL PROTECTED] The World of Nothing)
 --
 
 
 -- 
 PHP General Mailing List (http://www.php.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] Asking for input from shell?

2001-04-08 Thread enthalpy

Thank you.

-CoreComm-Internet-Services---http://core.com-
(Jon Marshall CoreComm Services Chicago)
([EMAIL PROTECTED] Systems Engineer II)
([EMAIL PROTECTED]   Network Operations)
-Enthalpy.org-http://enthalpy.org-
([EMAIL PROTECTED] The World of Nothing)
--

On Mon, 9 Apr 2001, Jason Brooke wrote:

 $fp = fopen("php://stdin", "r");
 echo fgets($fp, 64); 
 fclose($fp);
 
 - Original Message - 
 From: "enthalpy" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 09, 2001 1:10 PM
 Subject: [PHP] Asking for input from shell?
 
 
  
  anyone have sample code of how you can have a php script (cgi)
  ask for input from the shell?
  
  -CoreComm-Internet-Services---http://core.com-
  (Jon Marshall CoreComm Services Chicago)
  ([EMAIL PROTECTED] Systems Engineer II)
  ([EMAIL PROTECTED]   Network Operations)
  -Enthalpy.org-http://enthalpy.org-
  ([EMAIL PROTECTED] The World of Nothing)
  --
  
  
  -- 
  PHP General Mailing List (http://www.php.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] double byte problem

2001-04-08 Thread Subhrajyoti Moitra

hi,
i am having a little problem in using php with double byte character.

a user enters double byte character in some html form.. this user data is converted 
into a gif image. and later stored in a mysql/pgsql database...

i have no clue how go about doing this .. can someone please please please help me .. 
i am stuck..

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.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] date/time in wrong zone

2001-04-08 Thread Duke

I'm using php 4.0.4pl1on a FreeBSD system.
When I use a php date/time function, it reports the time in GMT, however, I
have the date on my FreeBSD system set to EDT.
I can't figure out what the problem is here.  The only thing I can think of
is that when I compiled php, my system timezone was set to GMT and perhaps
the local timezone is hardcoded into php.  That doesn't make much sense
though.  I have changed my timezone to EDT since I compiled php.
Any suggestions?
Thanks.


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




Re: [PHP] date/time in wrong zone

2001-04-08 Thread Duke

It may also be relevant that the "T" format string for the date() function
also reports GMT, even though I've set my system timezone to EDT.  The
command "date" in FreeBSD also reports the time in EDT.


-Original Message-
From: Duke [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: April 9, 2001 12:00 AM
Subject: [PHP] date/time in wrong zone


I'm using php 4.0.4pl1on a FreeBSD system.
When I use a php date/time function, it reports the time in GMT, however, I
have the date on my FreeBSD system set to EDT.
I can't figure out what the problem is here.  The only thing I can think of
is that when I compiled php, my system timezone was set to GMT and perhaps
the local timezone is hardcoded into php.  That doesn't make much sense
though.  I have changed my timezone to EDT since I compiled php.
Any suggestions?
Thanks.


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




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




[PHP] This loop is screwed up totally. Why o why o why....

2001-04-08 Thread Yo Bro

Hi I have a feild in a MySql database called features. It is delimited by |
the line above the \ key.
Anyway, the feild has things like PS|PW|AC etc in it.
I have the code below to explode that feild. It all works fine, but when it
comes to looping the code below it always misses that last value. (Example -
AC)
Only in the IF statement - if i echo the variable "$feature" out of the IF
statment it prints the text fine. But i need it to check for the existance
of a gif first to display in the window.
As you will see I have gifs with the names and the variable $feature ends
with .gif
It works great, but it misses the last value to the array $feature.
Any ideas.

$specs = $myrow[features];

$features = explode('|',$specs); //What the feild is delimited by '|'
reset ($features);

  while (list(, $feature) = each ($features)) {

   if (file_exists("features/$feature.gif")){
   echo "img src=\"features/$feature.gif\"br";
   echo "$feature";
   }

   } //End While


--
Regards,


YoBro
-
DO NOT REPLY TO THIS VIA EMAIL
PLEASE USE THE NEWSGROUP
All emails sent to this address are automatically deleted.
This is to avoid SPAM!
-



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




[PHP] select as

2001-04-08 Thread Christopher Allen

Greets:

I have a bit of php code that looks for a matching user/pass in a mysql
table. There are three user/pass phrases in the table along with a an email
that corresponds to each user/pass pair.  Is there any way to construct a
query that will do both the matching of the user/passes and also then give
the corresponding email that matches the user/pass?


table roughly  looks like this:
username
pass
email
user_name2
pass2
email2

select * from customer where user_name='$username'  pass='$password'
|| user_name2='$username'  pass2='$pass'";

so if it matches on user_name2/pass2 I would then want to get email2...

Thanks for any help!

ccma




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




RE: [PHP] PHPSESSID sticks to every link after upgrate of Apache/PHP

2001-04-08 Thread Benjamin Munoz

In your php.ini, change the following line:
session.use_trans_sid = 1   ; use transient sid support if enabled
to
session.use_trans_sid = 0   ; use transient sid support if enabled

And see if that solves your problem.  Also, check the change with phpinfo(),
and if nothing changed, look for a second evil twin of php.ini

-Ben
-Original Message-
From: trogers [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 08, 2001 6:59 PM
To: 'PHP General List. (E-mail)'
Subject: Re: [PHP] PHPSESSID sticks to every link after upgrate of
Apache/PHP


Hi
You will probably need to make clean and rebuild php config and do a new 
make against the new version of apache.
Just a guess
Tom

At 12:28 PM 5/04/01 +0900, Maxim Maletsky wrote:

Hello,

my co-worker has reinstalled Apache and PHP over the last night.

The Apache was upgraded to the new version while PHP was re-installed the
same.
PHP.ini was untouched.

Site uses sessions and, somehow, after this upgrade started carrying
PHPSESSID through HREF.

What should look for to bring the sessions using Cookies?

from PHP-INI:

NOTE : this was untouched.



[Session]
session.save_handler  = files   ; handler used to store/retrieve data
session.save_path = /tmp; argument passed to save_handler
 ; in the case of files, this is the
 ; path where data files are stored
session.use_cookies   = 1   ; whether to use cookies
session.name  = PHPSESSID ; name of the session
 ; is used as cookie name
session.auto_start= 0   ; initialize session on request startup
session.cookie_lifetime   = 0   ; lifetime in seconds of cookie
 ; or if 0, until browser is restarted
session.cookie_path   = /   ; the path the cookie is valid for
session.cookie_domain = ; the domain the cookie is valid for
session.serialize_handler = php ; handler used to serialize data
 ; php is the standard serializer of
PHP
session.gc_probability= 1   ; percentual probability that the
 ; 'garbage collection' process is
started
 ; on every session initialization
session.gc_maxlifetime= 1440; after this number of seconds, stored
 ; data will be seen as 'garbage' and
 ; cleaned up by the gc process
session.referer_check = ; check HTTP Referer to invalidate
 ; externally stored URLs containing
ids
session.entropy_length= 0   ; how many bytes to read from the file
session.entropy_file  = ; specified here to create the session
id
; session.entropy_length= 16
; session.entropy_file  = /dev/urandom
session.cache_limiter = nocache ; set to {nocache,private,public} to
 ; determine HTTP caching aspects
session.cache_expire  = 180 ; document expires after n minutes
session.use_trans_sid = 1   ; use transient sid support if enabled
 ; by compiling with --enable-trans-sid
=


Has upgrade of apache (modules, etc) anything to do with it?

I can't really give you any more details since my co-coworker is
unreachable
right now, and this is kinda urgent.

Cheers,
Max.



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

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




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


-- 
PHP General Mailing List (http://www.php.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] This loop is screwed up totally. Why o why o why....

2001-04-08 Thread David Robley

On Mon,  9 Apr 2001 13:56, you wrote:
 Hi I have a feild in a MySql database called features. It is delimited
 by | the line above the \ key.
 Anyway, the feild has things like PS|PW|AC etc in it.
 I have the code below to explode that feild. It all works fine, but
 when it comes to looping the code below it always misses that last
 value. (Example - AC)
 Only in the IF statement - if i echo the variable "$feature" out of the
 IF statment it prints the text fine. But i need it to check for the
 existance of a gif first to display in the window.
 As you will see I have gifs with the names and the variable $feature
 ends with .gif
 It works great, but it misses the last value to the array $feature.
 Any ideas.

 $specs = $myrow[features];

 $features = explode('|',$specs); //What the feild is delimited by
 '|' reset ($features);

   while (list(, $feature) = each ($features)) {

if (file_exists("features/$feature.gif")){
echo "img src=\"features/$feature.gif\"br";
echo "$feature";
}

} //End While


 --
 Regards,


 YoBro

This seems to work OK for me:
?php
$specs = "PS|PW|AC";
$features = explode('|',$specs); //What the feild is delimited by '|' 
reset ($features);

while (list(, $feature) = each ($features)) {

if (!file_exists("features/$feature.gif")){
echo "img src=\"features/$feature.gif\"";
echo "$featurebr\n";
}

 } //End While
?

Is it possible that you don't hve a matching image for the last item?

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

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




RE: [PHP] double byte problem

2001-04-08 Thread Benjamin Munoz

Can you send some code?


-Original Message-
From: Subhrajyoti Moitra [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 08, 2001 8:41 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] double byte problem


hi,
i am having a little problem in using php with double byte character.

a user enters double byte character in some html form.. this user data is
converted into a gif image. and later stored in a mysql/pgsql database...

i have no clue how go about doing this .. can someone please please please
help me .. i am stuck..

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.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] This loop is screwed up totally. Why o why o why....

2001-04-08 Thread Yo Bro

I do have a matching image, and all cases it does work with different
records from the database. IE Where there might be an array of 15 items, but
it is always the last one that doesn't show. Even if the image is there,
because it gets used if i add another value to the array. IE
PS|PW|AC|CD

In this case all but CD would be displayed.
Still no luck.

I noticed your code used if (!file_exists
Where as I want to check if it does exist. Is your way worth a try?

YoBro

"David Robley" [EMAIL PROTECTED] wrote in message
01040914213301.26561@www">news:01040914213301.26561@www...
: On Mon,  9 Apr 2001 13:56, you wrote:
:  Hi I have a feild in a MySql database called features. It is delimited
:  by | the line above the \ key.
:  Anyway, the feild has things like PS|PW|AC etc in it.
:  I have the code below to explode that feild. It all works fine, but
:  when it comes to looping the code below it always misses that last
:  value. (Example - AC)
:  Only in the IF statement - if i echo the variable "$feature" out of the
:  IF statment it prints the text fine. But i need it to check for the
:  existance of a gif first to display in the window.
:  As you will see I have gifs with the names and the variable $feature
:  ends with .gif
:  It works great, but it misses the last value to the array $feature.
:  Any ideas.
: 
:  $specs = $myrow[features];
: 
:  $features = explode('|',$specs); //What the feild is delimited by
:  '|' reset ($features);
: 
:while (list(, $feature) = each ($features)) {
: 
: if (file_exists("features/$feature.gif")){
: echo "img src=\"features/$feature.gif\"br";
: echo "$feature";
: }
: 
: } //End While
: 
: 
:  --
:  Regards,
: 
: 
:  YoBro
:
: This seems to work OK for me:
: ?php
: $specs = "PS|PW|AC";
: $features = explode('|',$specs); //What the feild is delimited by '|'
: reset ($features);
:
: while (list(, $feature) = each ($features)) {
:
: if (!file_exists("features/$feature.gif")){
: echo "img src=\"features/$feature.gif\"";
: echo "$featurebr\n";
: }
:
:  } //End While
: ?
:
: Is it possible that you don't hve a matching image for the last item?
:
: --
: David Robley| WEBMASTER  Mail List Admin
: RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
: AusEinet| http://auseinet.flinders.edu.au/
: Flinders University, ADELAIDE, SOUTH AUSTRALIA
:
: --
: PHP General Mailing List (http://www.php.net/)
: To unsubscribe, e-mail: [EMAIL PROTECTED]
: For additional commands, e-mail: [EMAIL PROTECTED]
: To contact the list administrators, e-mail: [EMAIL PROTECTED]
:



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




Re: [PHP] This loop is screwed up totally. Why o why o why....

2001-04-08 Thread David Robley

On Mon,  9 Apr 2001 14:27, Yo Bro wrote:
 I do have a matching image, and all cases it does work with different
 records from the database. IE Where there might be an array of 15
 items, but it is always the last one that doesn't show. Even if the
 image is there, because it gets used if i add another value to the
 array. IE
 PS|PW|AC|CD

 In this case all but CD would be displayed.
 Still no luck.

 I noticed your code used if (!file_exists
 Where as I want to check if it does exist. Is your way worth a try?

Had to do that because, of course, I don't have the image files :-) You 
could try it


 "David Robley" [EMAIL PROTECTED] wrote in message
 01040914213301.26561@www">news:01040914213301.26561@www...

 : On Mon,  9 Apr 2001 13:56, you wrote:
 :  Hi I have a feild in a MySql database called features. It is
 :  delimited by | the line above the \ key.
 :  Anyway, the feild has things like PS|PW|AC etc in it.
 :  I have the code below to explode that feild. It all works fine, but
 :  when it comes to looping the code below it always misses that last
 :  value. (Example - AC)
 :  Only in the IF statement - if i echo the variable "$feature" out of
 :  the IF statment it prints the text fine. But i need it to check for
 :  the existance of a gif first to display in the window.
 :  As you will see I have gifs with the names and the variable
 :  $feature ends with .gif
 :  It works great, but it misses the last value to the array $feature.
 :  Any ideas.
 : 
 :  $specs = $myrow[features];
 : 
 :  $features = explode('|',$specs); //What the feild is delimited
 :  by '|' reset ($features);
 : 
 :while (list(, $feature) = each ($features)) {
 : 
 : if (file_exists("features/$feature.gif")){
 : echo "img src=\"features/$feature.gif\"br";
 : echo "$feature";
 : }
 : 
 : } //End While
 : 
 : 
 :  --
 :  Regards,
 : 
 : 
 :  YoBro
 :
 : This seems to work OK for me:
 : ?php
 : $specs = "PS|PW|AC";
 : $features = explode('|',$specs); //What the feild is delimited by '|'
 : reset ($features);
 :
 : while (list(, $feature) = each ($features)) {
 :
 : if (!file_exists("features/$feature.gif")){
 : echo "img src=\"features/$feature.gif\"";
 : echo "$featurebr\n";
 : }
 :
 :  } //End While
 : ?
 :
 : Is it possible that you don't hve a matching image for the last item?

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

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




Re: [PHP] mail() limit? Use aliases table

2001-04-08 Thread Manuel Lemos

Hello Lindsay,

On 08-Apr-01 20:02:57, you wrote:

No, I use my manual lists without a problem.
If I ever have to install on a system that does not allow normal use of an
alias table by a normal user, then I might try something else.

But under my resellers account on AIT, I get to do whatever I want with
aliases, and the lists work find =)

I would not be able to install qmail on my ISP, so that is not an option
either.

So, my solution works great for me, I have my own administrative routines in
PHP for adding aliases, writing lists, and storing the master data in mysql
databases. It all works cleanly without a hitch.

If it ain't broke, don't fix it ;)

Maybe you don't use much mailing lists or else you would appreciate
qmail/ezmlm ability to handle bounces.

I developed the PHP Classes site.  Everytime a new class is added or update
by its author, a notification message is mailed to may thosands of
interested users.  If it was not for qmail VERP extension, it would be a
nightmare to figure who is bouncing the messages and eventually unsubscribe
their addresses.

If would be dealing with very large mailing list traffic, you would
probably appreciate qmail ability to handle mailing queue in a dedicated
server process without choking your other SMTP traffic.

It's not like sendmail is a bad solution.  It's more like qmail is more
appropriate for growing mailing lists.  That seems to be why eGroups is
using qmail/ezmlm.



Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


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




Re: [PHP] Row colors

2001-04-08 Thread Manuel Lemos

Hello Mike,

On 08-Apr-01 21:08:17, you wrote:

I can change the column sof a table with the following code but how do I 
change the row colors instead.With the columns I have "i" to manipulate but 
not with rows.

while ($row = mysql_fetch_row($result))
{{
   echo "TR\n";
   for ($i =1;$imysql_num_fields($result);$i++)
   {$cell_color = "#C0C0C0";
   $i % 2  ? 0: $cell_color = "#CC";
   echo "td bgcolor=\"$cell_color\"$row[$i]/td";

What you need to do is very simple.  Just echo the TR inside your
for loop and make it BGCOLOR attribute change according to the row number.

While you are at it, maybe you would like to try this PHP table listing
class that not only lets you iterate and change colors for each row but it
also lets you change the highlighting color that the row will have when the
mouse is over them.

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


For display database query results, you may want to try this PHP class
based on the previous that is also able to display links to go between any
pages that the results may be split.

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



Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


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




Re: [PHP] Row colors

2001-04-08 Thread Harshdeep S Jawanda

Hi,

Just make the modification listed below:

while ($row = mysql_fetch_row($result))
{
  $cell_color = ++$i % 2 ? "#C0C0C0" : "#CC";
  echo "TR bgcolor=\"$cell_color\"\n";
  for ($i =1;$imysql_num_fields($result);$i++) {
echo "td$row[$i]/td";
  }
}

Mike P wrote:

 I can change the column sof a table with the following code but how do I
 change the row colors instead.With the columns I have "i" to manipulate but
 not with rows.

 while ($row = mysql_fetch_row($result))
 {{
 echo "TR\n";
 for ($i =1;$imysql_num_fields($result);$i++)
 {$cell_color = "#C0C0C0";
 $i % 2  ? 0: $cell_color = "#CC";
 echo "td bgcolor=\"$cell_color\"$row[$i]/td";
 Thanks
 Mike P
 [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]

--
Regards,
Harshdeep Singh Jawanda.



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