Re: [PHP] session variables

2001-04-11 Thread mailing_list

   I tried using a cookie I still had the same problem that it worked first
 time but even if you stayed on the page and put a sencond entry in it
 would
 not work,

then you:
set the cookie incorrectly
overwrite/delete the cookie by mistake
your browser does not support cookies
...

read
http://php.net/manual/en/features.cookies.php
and
http://php.net/manual/en/function.setcookie.php

try the example there!

witty

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




Re[2]: [PHP] assignment operator works for comparison??

2001-04-11 Thread Maxim Derkachev

Hello Dan,

Wednesday, April 11, 2001, 1:29:22 AM, you wrote:



   if($shiny = 0){
 This does not compare anyting, it assigns 0 to $shiny

D yes i know, but shouldnt this operation return true?

No. This operator returns the value assigned (0 in this case, which is
false). This expression will always return false.

-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 



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




Re: [PHP] shared memory

2001-04-11 Thread Rasmus Lerdorf

One of the things you have to realize is that Apache-1.3.x is is
single-threaded pre-forking multi-process web server.  That means that you
have many processes handling requests.  You never know which process will
take a request, so storing any sort of data in a process won't do much
good as the next request may come in on another process.

This restriction, although somewhat cumbersome, forces you to build web
applications that will automatically be capable of being distributed
across multiple web servers.  If you cache things in a web server process
and the next hit comes in on a completely different machine you are out of
luck.

For the specific example of query caching that you gave, you need to
rethink your approach.  Caching database query results in user space makes
absolutely no sense.  There is no better place to cache query results than
in the database itself.  Leaving such results in the database also allows
you to run multiple web servers against a single large backend database
and still make use of the query cache.

You could put some things in shared memory if you know you will never move
beyond a single server, but shared memory is a limited resource and
somewhat cumbersome to work with.

-Rasmus

On Mon, 9 Apr 2001, Stephen Haberman wrote:

 Hello,

 I've recently started PHP development after a few years of working with ASP.
 So far I really like PHP, but am having trouble using some of the techniques
 I had in ASP.  For example, I really like using ASP's Application object to
 cache data in, but I can't seem to have an equivalent in PHP.

 (Due note that I'm also new to the Unix/Linux environment, so if I have any
 concepts glaringly wrong, please correct me).

 I've read over the System V shared memory functions, but I can't tell if
 these would accomplish what I'm looking to do?

 I guess what I really need to learn is how threading and synchronization
 works in Apache/PHP.  I had just mastered COM/ASP's
 single-thread/multi-threaded design and could write shared, multi-threaded
 ATL components that all the ASP pages could read from marshalling and all
 that.

 Are there any good resources/docs on the type of architecture PHP uses and
 how to accomplish the above in the Apache/PHP environment?  I've looked
 around at some books, but all I can find is basic
 here's-how-to-do-a-web-page type stuff.

 Ideally what I'd like would be an object that would stay loaded in memory
 (in-process) so that PHP scripts could call functions and variables against
 it with minimal overhead (specifically an object that could cache query
 results instead of each page requerying the database).  Is such a thing
 possible?  Or do I have to move over to Servlets/JSP to find this
 functionality?

 Thanks!

 - Stephen



 --
 PHP General Mailing List (http://www.php.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] Are calling COM applications a trojan?

2001-04-11 Thread Zeus

I'm sure many of you seasoned developers have used COM before (not necessary with PHP) 
but if PHP is a server-side language, how can it call a program on the client to open. 
Isn't it as deadly as a hacker opening your computer?

Lets see some sides :)

--
David Chua aka. Zeus
Founder, Frozened.com
--



Re: [PHP] assignment operator works for comparison??

2001-04-11 Thread Harshdeep S Jawanda

Hi,

Dan wrote:

if($shiny = 0){
  This does not compare anyting, it assigns 0 to $shiny

 yes i know, but shouldnt this operation return true?

No, it doesn't return true.

The "=" operator returns the value of the expression on its right hand side.
Therefore, the statement given above is equivalent to (as far as the if is
concerned):

 if (0) {

because the "=" operator returns 0, the value on its right hand side.

That is why a statement like:

 a = b = c = 2

sets all the above variables to 2. Otherwise, if it were to operate the way you
think it should, it would set "c" to 2 and "a" and "b" to "true" ;-).

Hope that clears up things for you.

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




[PHP] *** HTML Programming question *** no php at all...

2001-04-11 Thread David Diaz i Torrico


Sorry if someone takes that as an offtopic but, I can't find good
HTML/Javascript programming lists, if someone can point it out any I'd
apreciate it a lot.And haven't been able to find any reference to my
problem even searching for hours in google.


And the question here it goes, I've got a page with a header,
the header is a layer floating around the page, with Explorer I've no
problem but with Netscape, voil, when the layer passes over a textbox,
select or some other typical form widget, the widget remains over the
layer. I've tried all the possible combinations with z-index with no
result.

There's any workaround to this?, I'm stuck.


Thank you very much in advance, and sorry if this is an offtopic.



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




Re: [PHP] Are calling COM applications a trojan?

2001-04-11 Thread Zeus

Then,  how can it open a words document on the client side?

- Original Message -
From: Delbono [EMAIL PROTECTED]
To: Zeus [EMAIL PROTECTED]
Sent: Wednesday, 11 April, 2001 4:32 PM
Subject: Re: [PHP] Are calling COM applications a trojan?


 Com Apps, are not called on a client side.
 Actually, if you print out the version of the com application, it displays
 the version of the software installed on the server, not the one on the
 client.

 If I have Word2000 on m local PC and on the server I have Word97,

 a script taht prints App.Version, will print MSWord97.


 Sent: Wednesday, April 11, 2001 10:26 AM
 Subject: [PHP] Are calling COM applications a trojan?


 I'm sure many of you seasoned developers have used COM before (not
necessary
 with PHP) but if PHP is a server-side language, how can it call a program
on
 the client to open. Isn't it as deadly as a hacker opening your computer?

 Lets see some sides :)

 --
 David Chua aka. Zeus
 Founder, Frozened.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] Can't redeclare already declared function

2001-04-11 Thread kenny.hibs

Anyone help with this

Fatal error: Can't redeclare already declared function in header.php3 on
line 233
The troubl is that there is no line 233 so it must be looking at another
page?


header.php3


?
/* Theme Creator for PHP-Nuke v0.1
 * Ricard Pillosu [EMAIL PROTECTED]
 * Grupo Aguila http://www.aguila.f2s.com
 */
?

html
head
title?php include("config.php3"); echo $sitename; if($titletag) echo"
- $titletag"; ?/title
style rel=stylesheet type=text/css
 A:link { font-weight: bold; }
 A:visited { font-weight: bold; }
/style
/head
body bgcolor="#778899" text="#22" link="#00" vlink="#00"
topmargin=5 leftmargin=0 rightmargin=0 marginheight=5

table border=0 cellpadding=4 cellspacing=0 width=100% align=center
trtd bgcolor=778899
table border="0" cellspacing="0" cellpadding="1" width="100%"
bgcolor="#00"
trtd
table border="0" cellspacing="0" cellpadding="3" width="100%"
bgcolor="33"
trtd
a href="/"img src="themes/Default/deflogo.gif" alt="?php echo
"".translate("Welcome to").""; ? ?php echo $sitename ?" border=0/a

/tdtd align=right
form action="search.php3" method=postfont face=Arial,Helvetica size=2
color="ff"
?php echo "".translate("Search").""; ?
input type=name name=query
/form/tr
tr bgcolor="66"td colspan=2 bgcolor="66"
font face=Arial,Helvetica size=3 color=CC?php echo "$titlebar"
?/td
/td/tr/table
/td/tr/table
/td/trtrtd valign=top width=100% bgcolor=778899
table border=0 cellspacing=0 cellpadding=2 width=100%
trtd valign=top width=150 bgcolor=778899

?php
include("themes/proves/boxes.php3");
// Show Left Blocks

main_box();
login_box();
admin_box();
left_boxes();
events_box();
?

img src=images/pix.gif border=0 width=150 height=1
/tdtd width=100% valign=top
**

any helpthanks in advance
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] Mail Function

2001-04-11 Thread RealGM


Hi,

Tonight was my first attempt at using the mail() function, and running the script I 
had no problems with execution.  Everything seemed to go smoothly, except for one 
thing.  I never received an email.

I have consulted the manual and found nothing on the questions I am about to ask.  Is 
there any way of confirming whether an email was actually sent, or if there like a log 
file I can check?  The server is running php4 via apache on a linux machine.

Any help would be appeciated, as I have no idea what could (or could not) be happening.

Thank you,
Michael.



Re: [PHP] Mail Function

2001-04-11 Thread Zeus

Try adding a

if (!mail(blah blah, balh blah )) {
echo "Mail not sent";
}

if (mail(blah bal.)) {
echo "Mail sent";
}

Try these and subsitute what ever is in the mail() with your relevant
information.

- Original Message -
From: RealGM [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, 11 April, 2001 5:16 PM
Subject: [PHP] Mail Function



Hi,

Tonight was my first attempt at using the mail() function, and running the
script I had no problems with execution.  Everything seemed to go smoothly,
except for one thing.  I never received an email.

I have consulted the manual and found nothing on the questions I am about to
ask.  Is there any way of confirming whether an email was actually sent, or
if there like a log file I can check?  The server is running php4 via apache
on a linux machine.

Any help would be appeciated, as I have no idea what could (or could not) be
happening.

Thank you,
Michael.



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




Re: [PHP] TTF Support

2001-04-11 Thread maatt

 Is there something that I can check to see if the FreeType
 library is there when I only have a virtual server?

Put phpinfo() on a page - look under the gd library section.

 And if it wasn't installed, is there any way that I can do this
 locally without having root access?

Don't think so.

Matt



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




[PHP] Problem with writing text with GD

2001-04-11 Thread Johan Holst Nielsen

Hi

I have a problem with GD library. Then I write some text with the GD library
TTF function I get a very unreadable text :o(

The problem comes then the font is in size 9 and under!

Some know how to solve this problem?

/Johan


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




[PHP] PHPemPT

2001-04-11 Thread Carlos Serrão

Hi all,
just to announce that a new PHP local users list is born.


It is called PHPemPT and it is dedicated to Portuguese users.

This list is useful both for new users as well as for advanced
users too.

You can find this list at:

http://groups.yahoo.com/group/phpempt

Best regards,

_
Carlos Serro  [EMAIL PROTECTED]
 http://www.carlos-serrao.com
DCTI - IS/IT DepartmentIS/IT Research and Development
ADETTI/ISCTE - Av.Forcas Armadas 1600-082 LISBOA Portugal
Tel.: +351217903064/+351217903901 Fax:  +351217935300


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

2001-04-11 Thread Zeus

Check your SMTP settings. Its not a PHP problem anymore :)

See if the mail that its sending is your email address and if the
Sendmail\SMTP is properly configured.


- Original Message -
From: RealGM [EMAIL PROTECTED]
To: Zeus [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, 11 April, 2001 5:40 PM
Subject: Re: [PHP] Mail Function


 Thanks for the reply...

 It comes back mail sent, but nothing is actually arriving..

 - Original Message -
 From: Zeus [EMAIL PROTECTED]
 To: RealGM [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Wednesday, April 11, 2001 7:29 PM
 Subject: Re: [PHP] Mail Function


  Try adding a
 
  if (!mail(blah blah, balh blah )) {
  echo "Mail not sent";
  }
 
  if (mail(blah bal.)) {
  echo "Mail sent";
  }
 
  Try these and subsitute what ever is in the mail() with your relevant
  information.
 
  - Original Message -
  From: RealGM [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, 11 April, 2001 5:16 PM
  Subject: [PHP] Mail Function
 
 
 
  Hi,
 
  Tonight was my first attempt at using the mail() function, and running
the
  script I had no problems with execution.  Everything seemed to go
 smoothly,
  except for one thing.  I never received an email.
 
  I have consulted the manual and found nothing on the questions I am
about
 to
  ask.  Is there any way of confirming whether an email was actually sent,
 or
  if there like a log file I can check?  The server is running php4 via
 apache
  on a linux machine.
 
  Any help would be appeciated, as I have no idea what could (or could
not)
 be
  happening.
 
  Thank you,
  Michael.
 
 
 



-- 
PHP General Mailing List (http://www.php.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/dbx dbx.c dbx_mysql.c dbx_mysql.h dbx_odbc.c dbx_odbc.h dbx_pgsql.c dbx_pgsql.h php_dbx.h

2001-04-11 Thread Marc Boeren

mboeren Wed Apr 11 01:14:57 2001 EDT

  Modified files:  
/php4/ext/dbx   dbx.c dbx_mysql.c dbx_mysql.h dbx_odbc.c dbx_odbc.h 
dbx_pgsql.c dbx_pgsql.h php_dbx.h 
  Log:
  Added a database member to the dbx_link object. Since e.g. mysql reuses
  connections, two or more dbx_link objects may share the connection 
  identifier. The database name is used in the dbx_query, where it calls
  mysql_db_query instead of mysql_query.
  This means the database name has to be passed around to all dbx_xxx_query
  functions, hence the update on all the files. (Mc)
  # Thanks to Christian Rabe for all the input on this issue!
  
  

Index: php4/ext/dbx/dbx.c
diff -u php4/ext/dbx/dbx.c:1.8 php4/ext/dbx/dbx.c:1.9
--- php4/ext/dbx/dbx.c:1.8  Mon Apr  9 04:53:39 2001
+++ php4/ext/dbx/dbx.c  Wed Apr 11 01:14:57 2001
@@ -51,9 +51,11 @@
 return DBX_UNKNOWN;
 }
 
-int split_dbx_handle_object(zval ** dbx_object, zval *** pdbx_handle, zval *** 
pdbx_module) {
+int split_dbx_handle_object(zval ** dbx_object, zval *** pdbx_handle, zval *** 
+pdbx_module, zval *** pdbx_database) {
 convert_to_object_ex(dbx_object);
-if (zend_hash_find((*dbx_object)-value.obj.properties, "handle", 7, (void **) 
pdbx_handle)==FAILURE || zend_hash_find((*dbx_object)-value.obj.properties, "module", 
7, (void **) pdbx_module)==FAILURE) {
+if (zend_hash_find((*dbx_object)-value.obj.properties, "handle", 7, (void **) 
+pdbx_handle)==FAILURE
+|| zend_hash_find((*dbx_object)-value.obj.properties, "module", 7, (void **) 
+pdbx_module)==FAILURE
+|| zend_hash_find((*dbx_object)-value.obj.properties, "database", 9, (void **) 
+pdbx_database)==FAILURE) {
 return 0;
 }
 return 1;
@@ -85,7 +87,7 @@
 /*/ returns persistent connection handle as resource on success or 0 as long on 
failure /*/
 int switch_dbx_close(zval ** rv, zval ** dbx_handle, INTERNAL_FUNCTION_PARAMETERS, 
zval ** dbx_module);
 /*/ returns 1 as long on success or 0 as long on failure /*/
-int switch_dbx_query(zval ** rv, zval ** dbx_handle, zval ** sql_statement, 
INTERNAL_FUNCTION_PARAMETERS, zval ** dbx_module);
+int switch_dbx_query(zval ** rv, zval ** dbx_handle, zval ** db_name, zval ** 
+sql_statement, INTERNAL_FUNCTION_PARAMETERS, zval ** dbx_module);
 /*/ returns 1 as long or result identifier as resource on success or 0 as long on 
failure /*/
 int switch_dbx_getcolumncount(zval ** rv, zval ** result_handle, 
INTERNAL_FUNCTION_PARAMETERS, zval ** dbx_module);
 /*/ returns column-count as long on success or 0 as long on failure /*/
@@ -97,26 +99,7 @@
 /*/ returns array[0..columncount-1] as strings on success or 0 as long on failure 
/*/
 int switch_dbx_error(zval ** rv, zval ** dbx_handle, INTERNAL_FUNCTION_PARAMETERS, 
zval ** dbx_module);
 /*/ returns string /*/
-/*
-#ifdef ZTS
-int dbx_globals_id;
-#else
-ZEND_DBX_API zend_dbx_globals dbx_globals;
-#endif
-*/
-/* If you declare any globals in php_dbx.h uncomment this: */
-/* ZEND_DECLARE_MODULE_GLOBALS(dbx) */
-/* True global resources - no need for thread safety here */
-/*
-static int le_dbx;
-*/
-/*
-static void zend_dbx_init_globals(PGLS_D)
-{
-   DBXG(row_count) = 0;
-   DBXG(num_rows) = 0;
-}
-*/
+
 /* Every user visible function must have an entry in dbx_functions[].
 */
 function_entry dbx_functions[] = {
@@ -129,8 +112,6 @@
 ZEND_FE(dbx_cmp_asc,NULL)
 ZEND_FE(dbx_cmp_desc,NULL)
 
-ZEND_FE(dbx_test,  NULL)
-
{NULL, NULL, NULL}  /* Must be the last line in dbx_functions[] */
 };
 
@@ -149,19 +130,8 @@
 ZEND_GET_MODULE(dbx)
 #endif
 
-/*/ZEND_INI_BEGIN()
-/ /ZEND_INI_ENTRY("dbx.defaulttype", "mysql", ZEND_INI_SYSTEM, NULL)
-/ /ZEND_INI_END()
-/*/
 ZEND_MINIT_FUNCTION(dbx)
 {
-/*
-#ifdef ZTS
-   dbx_globals_id = ts_allocate_id(sizeof(zend_dbx_globals), (ts_allocate_ctor) 
zend_dbx_init_globals, NULL);
-#else
-   zend_dbx_init_globals(DBXLS_C);
-#endif
-*/
 /*/REGISTER_INI_ENTRIES(); /*/
 
 REGISTER_LONG_CONSTANT("DBX_PERSISTENT", DBX_PERSISTENT, CONST_CS | 
CONST_PERSISTENT);
@@ -218,6 +188,7 @@
 int result;
 long module_identifier;
 zval * dbx_module;
+zval * db_name;
 zval * rv_dbx_handle;
 int persistent=0;
 
@@ -248,6 +219,8 @@
 convert_to_string_ex(arguments[2]);
 convert_to_string_ex(arguments[3]);
 convert_to_string_ex(arguments[4]);
+MAKE_STD_ZVAL(db_name); 
+ZVAL_STRING(db_name, (*arguments[2])-value.str.val, 1);
 if (persistent) {
 result = switch_dbx_pconnect(rv_dbx_handle, arguments[1], arguments[2], 
arguments[3], arguments[4], INTERNAL_FUNCTION_PARAM_PASSTHRU, dbx_module);
 }
@@ -256,6 +229,7 @@
 }
 if (!result) {
 FREE_ZVAL(dbx_module);
+FREE_ZVAL(db_name);
 FREE_ZVAL(rv_dbx_handle);
 RETURN_LONG(0);
 }
@@ -263,12 +237,14 @@
 if (object_init(return_value) != SUCCESS) {
 zend_error(E_ERROR, "dbx: 

[PHP] a simple diary / news system for download

2001-04-11 Thread Sandeep Hundal

hi all,

just wanted to say thanks to everyone for helping me out with my php
enquires over the last few months. in the general free spirit
ofcourse, i'm going to try and make all the code that i write
available for free download.

anyway, for starters, i've made a simple diary / news system on my
homepage available for download. its damn simple to install and work
with, and needs mysql. it can also be used as a script for learning
on inputting and retrieving info from the mysql database.

http://www.wde.org/me/php/

cheers!!

/sunny

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




Re: [PHP] upload problem (uid)

2001-04-11 Thread b0ld b0lb

here is the error:
Warning: SAFE MODE Restriction in effect. The script whose uid is 522 is not 
allowed to access /tmp/phpupload/phptQdi31 owned by uid 0 in 
upload_in_imgs.php3 on line 127


From: Rasmus Lerdorf [EMAIL PROTECTED]
To: b0ld b0lb [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] upload problem (uid)
Date: Tue, 10 Apr 2001 16:15:48 -0700 (PDT)

Are you sure it is uid 0?  Unless your Apache is running as root it should
be getting uploaded as the web server uid id.  Use the
move_uploaded_file() function to move the file into place.

-Rasmus

On Wed, 11 Apr 2001, b0ld b0lb wrote:

  Hi,
 
  if i upload via http the tempfile is written with uid 0 (root). After 
that i
  cant do anything with the file because the php user is not allowed to. 
Why
  is my uploaded file owned by root, and how do i solve that?
 
  PS. phpinfo shows that the apache user is nobody
 
  thx, b0ld
 
 
  
_
  Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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


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


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




Re: [PHP] .htpasswd encryption

2001-04-11 Thread Herv PARISSI

Brandon Orther wrote:

 Hello,
 
 I am trying to make a script that creates .htpasswd files.  Does anyone
 know what encryption is used?
 
 Thanks
 Brandon
 
It can be crypt() or MD5 or SHA, you could call htpasswd.
See man htpasswd under *nix.

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




Re: [PHP] assignment operator works for comparison??

2001-04-11 Thread Renze Munnik

Dan wrote:
 
 This confused me for awhile, because the single equal sign seemed to work
 for comparison, but created inexplicable errors in my programs.  It seems
 strange to me that a successful variable value assignment does not return
 true.
 
 example:
 
 ?
 
  $shiny = 1;
  if($shiny = 0){ echo("This wont print"); }
  echo( $shiny ); //this will return 0
 
 ?
 
 --Dan
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


Okay...

First:
Checking if $shiny equals 0:

if ($shiny == 0) {

But that's already been discussed.
If you _realy_ want to check if the assignment succeeded:

if (($shiny = 0) == 0) {

Try the following example:

-
$a = "Hello";
$b = "Wold";

if ($b == $a)
  print "Yes, b equals aBR\n";
else
  print "No, b doesn't equal aBR\n";

if (($b = $a) == $a)
  print "Yes... now b equals aBR\n";
else
  print "Oops... b still doesn't equal a!BR\n";
-

Output will be:

No, b doesn't equal a
Yes... now b equals a

-- 

* RzE:

***
**  Renze Munnik
**
**  E: [EMAIL PROTECTED]
**  M: +31 6 218 111 43
***

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




[PHP] install LONG_MAX

2001-04-11 Thread Plamen Slavov

Hi all,
i try to install e php-4.0.4pl1 on a redhat 6.0 with apache_1.3.19,
but when i try to make php i get the following error message:

 make[1]: Entering directory `/home/plamen/www/php-4.0.4pl1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DXML_BYTE_ORDER=12  -g -O2 -c zend_hash.c
zend_hash.c: In function `zend_hash_add_or_update':
zend_hash.c:257: `LONG_MAX' undeclared (first use in this function)
zend_hash.c:257: (Each undeclared identifier is reported only once
zend_hash.c:257: for each function it appears in.)
zend_hash.c: In function `zend_hash_del_key_or_index':
zend_hash.c:502: `LONG_MAX' undeclared (first use in this function)
zend_hash.c: In function `zend_hash_find':
zend_hash.c:852: `LONG_MAX' undeclared (first use in this function)
zend_hash.c: In function `zend_hash_exists':
zend_hash.c:902: `LONG_MAX' undeclared (first use in this function)
make[1]: *** [zend_hash.lo] Error 1
make[1]: Leaving directory `/home/plamen/www/php-4.0.4pl1/Zend'
make: *** [all-recursive] Error 1  

Does someone have any ideas how to fix this?
i do not know where the problem 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]




[PHP] string comparsion inf

2001-04-11 Thread marco . banaj

Hi all,

I got a problem comparing the string "inf" with another in PHP3. It is
used as File-Extention for information-files on our system. When
comparing the following all works fine and the expected result is given:

"otto"  =  "karl" =0
"otto"  =  "otto" =1
"otto"! = "karl"  =1
"otto"! =  "otto" =0

The following problem occurs when comparing the string "inf":

"inf" = "otto" =0 correct result
"inf" = "inf"   =0  incorrect result expected 1
"inf" != "otto" =1 correct result
"inf" != "inf" = 1 incorrect result!!! expected: 0

Does anybody have any idea whats wrong with the string "inf"? It is not
an reserved word.

Tahnks in advance

Marco


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




Re: [PHP] php.ini

2001-04-11 Thread Christian Reiniger

On Tuesday 10 April 2001 10:58, you wrote:
 Is it possible to override the maximum script execution time as set in
 php.ini using an Apache directive like this in an .htaccess file?:

 php_value max_execution_time = 60

What about simply trying it? :)

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

A - American Association Against Acronym Abuse

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




Re: [PHP] online detection

2001-04-11 Thread andreas . landmark

On Wed, Apr 11, 2001 at 08:10:22AM +0200, [EMAIL PROTECTED] produced this golden 
nugget:
  Does anyone know how to detect when a user connects to the Internet
  similar
  to ICQ?
 
 I think you mean messages on  pages like "321 user online"!
 As HTTP is a stateless protocol, you can't really know this!!!
 It's only an estimation - and you can use sessions to realize this (ask how
 many sessions are active - and end a session after a short time like 5
 minutes!)
 
 witty

There is a way to do it, _if_ the user is using an IM service, for
icq the easiest way would prolly be to use the icq module for
perl (i don't know whether there is a PHP class for icq), and then
use that to generate your page...

Mirabilis has made it possible to have the little "online" icon
if you like... check out their site for more info...

I dunno whether this is possible for AIM/etc...

-- 
andreas.landmark

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




[PHP] header( )

2001-04-11 Thread Patrick Dunford

Can someone explain "header" to me?

Does it mean you can send HTTP headers with any script if you are loading 
another document?

There are two possibilities that interest me:

1. Sending username and password for authorisation in a protected area. This 
of course is done by browsers when they get a 401 and ask the user for their 
username and password in a dialog box. I would like to ask them for the data 
in a form then send it to the page in question.

2. Passing in variables to a script without specifying them as part of the 
URL. Like a form that uses POST to submit variables to a script without them 
being displayed in the URL when the page loads.  

-- 
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   If only for this life we have hope in Christ, we are to be
pitied more than all men.
-- 1 Corinthians 15:19
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010411
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

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




[PHP] Apache configuration

2001-04-11 Thread Alexis Antonakis

Hi,

I am having problems in trying to configure Apache on my PC correctly.

FYI I am using Win95 and PHP4.

I have configured Apache so that it will run PHP scripts, however when I try
to start a session I get the following messages:
---
Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in d:\apache\htdocs\session.php on line 2

Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0


I can see that the script cannot locate the '/tmp' directory.  What my
question is where does this '/tmp' directory need to be created and do I
need to update the 'httpd.conf' file accordingly, and if so where within it?

Many thanks
Alexis


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




Re: [PHP] online detection

2001-04-11 Thread Christian Reiniger

On Wednesday 11 April 2001 06:23, you wrote:
 Does anyone know how to detect when a user connects to the Internet
 similar to ICQ?

Sure. Three main possibilities:

(1) Install a wire tap at his telephone line, together with some logic to 
detect connection attempts

(2) Do the same, but at his provider's dialin box. (more difficult)

(3) Install a proper trojan on the user's machine

Most criminals use possibility 3 ;-)

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

A - American Association Against Acronym Abuse

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




Re: [PHP] online detection

2001-04-11 Thread KPortsmout

In a message dated 11/04/2001 12:58:11 GMT Daylight Time, [EMAIL PROTECTED] 
writes:

  Does anyone know how to detect when a user connects to the Internet
  similar to ICQ?
 
 Sure. Three main possibilities:
 
 (1) Install a wire tap at his telephone line, together with some logic to 
 detect connection attempts
 
 (2) Do the same, but at his provider's dialin box. (more difficult)
 
 (3) Install a proper trojan on the user's machine
 
 Most criminals use possibility 3 ;-) 


H I wonder which one ICQ uses :-)

Ade

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




[PHP] PHP, LDAP ldap_set_option

2001-04-11 Thread Holger Flocken

Hi,

I want to use the LDAP functions of PHP to process every entry in an LDAP
directory. Unfortunately the directory contains more than 2 entries and
the PHP LDAP functions
(ldap_search/ldap_list) report that the timelimit (30 seconds) has been
exceed.

I tried to use ldap_set_option($ds, LDAP_OPT_TIMELIMIT, 0), but this
function doesn't seem to work properly.

I'm currently using Apache 1.3.19 with PHP 4.0.4pl1 and Netscape LDAP SDK
version 4.1.

Does anybody know how I can remove the time limit?

Thanks in advance!

Holger Flocken
[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] changes

2001-04-11 Thread Boian Bonev

 What are we doing with the current release right now?
 who is having problems and which problems are outstanding??

hi,

a single compiler warning issue - in ext/standard/exec.h there must be a
declaration of php_Exec:

int php_Exec(int type, char *cmd, pval *array, pval *return_value);

it is used by the vpopmail module which works ok even without it but more
strict compilers may complain bad on this.

i think this will not break anything and will be ok if added to 4.0.5

b.


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




Re: [PHP] PHP, LDAP ldap_set_option

2001-04-11 Thread Stig Venaas

On Wed, Apr 11, 2001 at 02:07:04PM +0200, Holger Flocken wrote:
 Hi,
 
 I want to use the LDAP functions of PHP to process every entry in an LDAP
 directory. Unfortunately the directory contains more than 2 entries and
 the PHP LDAP functions
 (ldap_search/ldap_list) report that the timelimit (30 seconds) has been
 exceed.
 
 I tried to use ldap_set_option($ds, LDAP_OPT_TIMELIMIT, 0), but this
 function doesn't seem to work properly.
 
 I'm currently using Apache 1.3.19 with PHP 4.0.4pl1 and Netscape LDAP SDK
 version 4.1.
 
 Does anybody know how I can remove the time limit?

If the LDAP server supports it and is willing the option should work.
You might want to look at the server config if you are able to. To
test if the option works, you might try to set the timeout to say 10s.
If it works I expect you to be able to shorten the timeout, but the
server might refuse extending it.

Stig

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




Re: [PHP] online detection

2001-04-11 Thread Jason Stechschulte

On Wed, Apr 11, 2001 at 08:00:56AM -0400, [EMAIL PROTECTED] wrote:
 H I wonder which one ICQ uses :-)

ICQ doesn't detect whether or not a person is online.  It doesn't detect
whether or not a person is browsing the Internet.  All it detects is
whether or not a person is connected to the Internet AND using their
application.  Checking if someone is online is much, much more
difficult.

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
:  - cut in regexps

I don't think we reached consensus on that.  We're still backtracking...
 -- Larry Wall in [EMAIL PROTECTED]

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




Re: [PHP] Can't make apache with PHP and mysql!!

2001-04-11 Thread Mohamed Ould

I don't find any idea on what this error is due?
I can not include PHP support in apache.

Mohamed Ould a crit :

 Hi,

 I goot this error when "make" apache with php:

 usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
 `my_uncompress':
 my_compress.o(.text+0x9a): undefined reference to `uncompress'
 /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
 `my_compress_alloc':
 my_compress.o(.text+0x12a): undefined reference to `compress'
 collect2: ld returned 1 exit status
 make[2]: *** [target_static] Erreur 1
 make[2]: Quitte le rpertoire `/usr/local/etc/apache_1.3.14/src'
 make[1]: *** [build-std] Erreur 2
 make[1]: Quitte le rpertoire `/usr/local/etc/apache_1.3.14'
 make: *** [build] Erreur 2

 Can anyone helps.

 Thanks

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


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




RE: [PHP] Apache configuration

2001-04-11 Thread Jon Haworth

/tmp is the directory used on Unix systems to store session info. On a
windows box you will need to change it to something like c:\temp or
c:\apache\sessions. IIRC it's in your php.ini file, not httpd.conf.

HTH
Jon


-Original Message-
From: Alexis Antonakis [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 12:56
To: Php-General@Lists. Php. Net
Subject: [PHP] Apache configuration


Hi,

I am having problems in trying to configure Apache on my PC correctly.

FYI I am using Win95 and PHP4.

I have configured Apache so that it will run PHP scripts, however when I try
to start a session I get the following messages:
---
Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in d:\apache\htdocs\session.php on line 2

Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0


I can see that the script cannot locate the '/tmp' directory.  What my
question is where does this '/tmp' directory need to be created and do I
need to update the 'httpd.conf' file accordingly, and if so where within it?

Many thanks
Alexis


**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**

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




Re: [PHP] Are calling COM applications a trojan?

2001-04-11 Thread Zeus

download dialog?

what will be in that dialog box?

And, I read a book saying that you can open a word document on the client
side and insert words in it.


- Original Message -
From: Pierre-Yves Lemaire [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, 11 April, 2001 3:54 PM
Subject: Re: [PHP] Are calling COM applications a trojan?



 It can't.
 If you put the appropriate header type (ms-word in this case), IE will
open
 word. Netscape
 and other browser will open a download dialog box of the document.

 py


 At 04:57 PM 4/11/01 +0800, you wrote:
 Then,  how can it open a words document on the client side?
 
 - Original Message -
 From: Delbono [EMAIL PROTECTED]
 To: Zeus [EMAIL PROTECTED]
 Sent: Wednesday, 11 April, 2001 4:32 PM
 Subject: Re: [PHP] Are calling COM applications a trojan?
 
 
   Com Apps, are not called on a client side.
   Actually, if you print out the version of the com application, it
displays
   the version of the software installed on the server, not the one on
the
   client.
  
   If I have Word2000 on m local PC and on the server I have Word97,
  
   a script taht prints App.Version, will print MSWord97.
  
  
   Sent: Wednesday, April 11, 2001 10:26 AM
   Subject: [PHP] Are calling COM applications a trojan?
  
  
   I'm sure many of you seasoned developers have used COM before (not
 necessary
   with PHP) but if PHP is a server-side language, how can it call a
program
 on
   the client to open. Isn't it as deadly as a hacker opening your
computer?
  
   Lets see some sides :)
  
   --
   David Chua aka. Zeus
   Founder, Frozened.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]


 + ==
 + Pierre-Yves Lem@ire
 + E-MedHosting.com
 + (514) 729-8100
 + [EMAIL PROTECTED]
 + ==


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



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




[PHP] [ Swift eNetwork ] Matrix

2001-04-11 Thread [ rswfire ]

[  I will never again repeat this message to the PHP Mailing List out 
of courtesy for all of the respected members of this list.  For those 
of you whom take the time to read this email, thank you, and I hope you 
find its contents useful to your present and future endeavors...  ]

http://matrix.swifte.net/



Hello!!

My name is Robert S. White.  Today's my 24th birthday.  Birthdays are 
special to me, so today has already turned out to be very exciting.
However, today holds an even greater significance for me than the 
passing of another year.  Today, I am officially launching the 
completion of a two-year development project to the world, Swift 
eNetwork.  I am offering an innovative new service to the Internet 
market and communities, one that I believe could potentially benefit 
many members of the PHP community.



So, what is Swift eNetwork?  

Swift eNetwork is an international networking resource for businesses, 
organizations, groups, and individuals of diverse backgrounds and 
interests.

I know, that's a pretty mundane definition.  The depth and complexities 
of Swift eNetwork run very deeply.  And the advantages of having a web 
presence at Swift eNetwork are plentiful.

Building your website at Swift eNetwork is a simple process.  From your 
Client Control Panel, you have access to all of the tools and resources 
you need to maintain a professional and dynamic web presence online.



How does Swift eNetwork work for you?  

- Creates a dynamic and professional web presence to you and your 
visitors.

- Provides you with visitors best served by your business or 
organization.

- Allows easy customization of your website without the complicated 
process of programming.  (Unless, of course, you like to program, and 
that option is available too... :)

- Provides easy access to a diverse set of tools geared toward your 
business or organizational needs.



What are the resources and tools available to you?  

- Client Control Panel
- Real-Time Account Information
- Website Wizard
- Webmaster Mailbox
- Website Statistics  Analysis
- Website Maintenance
- Online Self-Help Library
- Around-The-Clock Technical Support
- Advertising  Marketing Essentials
- Applications (Plugins)



How does Swift eNetwork relate to the PHP community?

Well, on several levels actually.

First of all, Swift eNetwork is powered by all open source 
technologies:  Linux, Apache, PHP, MySQL.

Secondly, Swift eNetwork is powered by its own class-oriented language, 
eNetwizard.  I designed eNetwizard using PHP and MySQL.  Included with 
eNetwizard is an extensive core library, each class (there's about 
twenty so far) handling a specific function of the network.  eNetwizard 
also includes an extensive and ever-growing library of plugin 
applications (around fifteen so far), based upon the demands of my 
clients.  Each plugin works like an application that is completely 
integrated into the Swift eNetwork infrastructure (the matrix).  Some 
web presence accounts include access to the eNetwizard class library 
(along with online reference materials to get you up to speed with the 
powerful language) and access to a subset of the PHP functions as well, 
allowing my clients to build their own applications right into the 
Swift eNetwork infrastructure.

Web presence accounts are as little as $25/mth.  And if you sign up for 
a web presence account before May 1, 2001, I'll give you one month free 
for every month you initially pay for.  =)





Once again, I want to thank you for your time.  If you have any 
questions about Swift eNetwork or are interested in becoming a client 
or an associate of Swift eNetwork, please feel free to email me.  Also, 
to gain instant access to your web matrix at Swift eNetwork, sign up 
online at http://matrix.swifte.net/


Sincerely,

Robert S. White
President, Si
http://si.swifte.net/
http://rswfire.swifte.net/


To learn more about Swift eNetwork, visit the matrix:
http://matrix.swifte.net/
















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




Re: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-11 Thread Jeffrey Greer

On 10 Apr 2001 19:08:03 -0700, [EMAIL PROTECTED] (Seung-woo Nam)
wrote:

Jeffrey Greer wrote:
 
 I'm not trying to provide the level of service of a large isp or even
 get 100 customers.  I would just like to pay for my half of the web
 portal.  I thought $8/mo for my service would be a good value for php
 programmers who do not need a high level of security.
 
 Would you say $8/mo is not a good value for the level of service I
 will provide?
 
 Web hosting is not my main business.  I'm a software developer.
 
Well, then what's that all about 'hosting your business' thing on your
website? And I wonder how will you possibly garantee the uptime you talk
about on the site? $8 is a cheap price only if you can actually provide
certain level of service. 

Seung-woo Nam

This site has been up for about 4 years.  Downtime has been less than
a couple hours.  Crackers have infiltrated the system once, but didn't
get very far.  Why would you worry about uptime so much?  Is 1/2 per
year too much down time?

I will be applying security updates.  

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/

-- 
PHP General Mailing List (http://www.php.net/)
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 Programming question *** no php at all...

2001-04-11 Thread Chris Albanese


In Netscape 4.x, form elemtents are always rendered as the top layer,
regardless of z-indexing. You need to move the form element. Netscape 6 (I
beleive) and IE5 are fine.

-Original Message-
From: David Diaz i Torrico [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 4:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] *** HTML Programming question *** no php at all...



Sorry if someone takes that as an offtopic but, I can't find good
HTML/Javascript programming lists, if someone can point it out any I'd
apreciate it a lot.And haven't been able to find any reference to my
problem even searching for hours in google.


And the question here it goes, I've got a page with a header,
the header is a layer floating around the page, with Explorer I've no
problem but with Netscape, voil, when the layer passes over a textbox,
select or some other typical form widget, the widget remains over the
layer. I've tried all the possible combinations with z-index with no
result.

There's any workaround to this?, I'm stuck.


Thank you very much in advance, and sorry if this is an offtopic.



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



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




php-general Digest 11 Apr 2001 13:33:12 -0000 Issue 621

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


php-general Digest 11 Apr 2001 13:33:12 - Issue 621

Topics (messages 48104 through 48159):

Re: huge PHP file, hardcore processing
48104 by: Christian Dechery

Re: Developing new PHP modules
48105 by: Yasuo Ohgaki

Re: assignment operator works for comparison??
48106 by: Yasuo Ohgaki
48122 by: Maxim Derkachev
48125 by: Harshdeep S Jawanda
48139 by: Renze Munnik

Re: Forcing a dynamic created text file to be saved
48107 by: Stuart J. Browne
48109 by: Pierre-Yves Lemaire
48111 by: Lindsay Adams

Re: __ $8/mo php hosting on 24/7, OC3+ web server ___
48108 by: Seung-woo Nam
48158 by: Jeffrey Greer

TTF Support
48110 by: Jennifer
48131 by: maatt

Need Feedback
48112 by: PHP General List
48113 by: Jason Murray

Properly formatted ereg??
48114 by: Black S.
48115 by: Jason Murray
48116 by: Rasmus Lerdorf

online detection
48117 by: Gary Munitz
48120 by: mailing_list.gmx.at
48143 by: andreas.landmark.noxtension.com
48146 by: Christian Reiniger
48147 by: KPortsmout.aol.com
48150 by: Jason Stechschulte

compile problems
48118 by: Mark Maggelet

radio groups in loop form
48119 by: Peter Houchin

Re: session variables
48121 by: mailing_list.gmx.at

Re: shared memory
48123 by: Rasmus Lerdorf

Are calling COM applications a trojan?
48124 by: Zeus
48127 by: Zeus
48152 by: Pierre-Yves Lemaire
48156 by: Zeus

*** HTML Programming question *** no php at all...
48126 by: David Diaz i Torrico
48159 by: Chris Albanese

Can't redeclare already declared function
48128 by: kenny.hibs

Mail Function
48129 by: RealGM
48130 by: Zeus
48133 by: RealGM
48135 by: Zeus

Problem with writing text with GD
48132 by: Johan Holst Nielsen

PHPemPT
48134 by: Carlos Serrão

a simple diary / news system for download
48136 by: Sandeep Hundal

Re: upload problem (uid)
48137 by: b0ld b0lb

Re: .htpasswd encryption
48138 by: Hervé PARISSI

install LONG_MAX
48140 by: Plamen Slavov

string comparsion "inf"
48141 by: marco.banaj.vishay.com

Re: php.ini
48142 by: Christian Reiniger

header( )
48144 by: Patrick Dunford

Apache configuration
48145 by: Alexis Antonakis
48154 by: B. van Ouwerkerk
48155 by: Jon Haworth

PHP, LDAP  ldap_set_option
48148 by: Holger Flocken
48149 by: Stig Venaas

Re: Can't make apache with PHP and mysql!!
48151 by: Mohamed Ould

No new topic using reply please.
48153 by: Yasuo Ohgaki

[ Swift eNetwork ] Matrix
48157 by: [ rswfire ]

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]


--



At 10:20 11/4/2001 +0900, you wrote:
I think DLL for MS SQL Server will work with Apache for Windows/PHP for 
Windows.
There are many basic functions are not supported under PHP for Windows, but it
work fine for me other than those missing functions. If your server may have
multiple IP addressees, it's easy to co-exist with IIS.

How about give it a try?


I guess I don't have multiple IP adresses on my server... can't I just 
install Apache and have it listen on port 8080 instead? Will it co-exist 
nicely with IIS?


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





If you take a look at PHP source code, you'll find some description for making
new modules. I think you need to read source to understand how to code a new
module. Not much descriptions, but PHP manual has section for it, too.

I use emacs to browse C/C++ sources, but you can use lxr.php.net or cvs.php.net
to browse PHP source.

Regards,
--
Yasuo Ohgaki


"Carlos Serro" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi all,

 I don't know if I'm in the correct mailling list or not, but
 could someone provide me with some information about the developement
 of new PHP modules (documentation, source-code, ...) ?

 Thanks in advance.

 Best regards,

 _
 Carlos Serro  [EMAIL PROTECTED]
  http://www.carlos-serrao.com
 DCTI - IS/IT DepartmentIS/IT Research and Development
 ADETTI/ISCTE - Av.Forcas Armadas 1600-082 LISBOA Portugal
 Tel.: +351217903064/+351217903901 Fax:  +351217935300


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

[PHP] RE: radio groups in loop form

2001-04-11 Thread Tim Ward

grouped radio buttons should have the same name, i.e. avail not avail[].
This way you get a single variable which is always submitted but with a
value depending on the user's selection. The way you did it pases an array
with a single element, the value of this element (and maybe the key) will
vary. I'm not sure quite what your problem is or whether this will fix it
but it should help the form work as intended.

Tim Ward
Senior Systems Engineer

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


 -Original Message-
 From: Peter Houchin [mailto:[EMAIL PROTECTED]]
 Sent: 11 April 2001 06:30
 To: Php-General@Lists. Php. Net
 Subject: radio groups in loop form
 
 
 hiya,
 
 I have a radio button in a loop with the rest of the form, 
 how ever when i go to do the mutliple update it clears all 
 but the updated radio buttons(rest of form data is fine just 
 the update on radio buttons) could some one pls give me an 
 idea why, when every thing else works propperly with the script
 
 heres the code (only concerning the radio buttons)
 
 ?
 if ($submit) {
 //echo "Values submitted via POST method:br";
 reset ($HTTP_POST_VARS);
 while (list ($key, $val) = each ($HTTP_POST_VARS)) {
//echo "$key = $valbr";
 }
 reset($id);
 while (list ($key, $val) = each ($id)) {
//echo "Key: $key = Value: $val;br";
 
 rs="update...
 rs .= "quote='".$quote[$key]."',";
 ...
 rs .= WHERE id='$id[$key];
 $result = mysql_query($rs,$db);
   print mysql_error($db);
 
   } 
 }
 ?
 
 rest of form
 input type="radio" name="avail[]" value="y" ? if ($avail == 
 'y') { echo 'CHECKED'; }? // repeated line with 'n'  
 'pending' instead of 'y'
 
 Peter Houchin
 [EMAIL PROTECTED]
 =
  _  __   /\
 /_/_/_\/  |_/  \
/_/_/___  __  __   __  / \
\_/_/_\  /_/ /_/ /_/  /_/  \   _ /
  ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
  \_//_/_/ /_/_/_/ /_/ \/_/v
     
 /_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/_/_ _/_/ __  __   __  /_/   __ __
   /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
  /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
 /_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
 =
 Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
 * We rent the dot in .COM!  **
  
 

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




Re: [PHP] *** HTML Programming question *** no php at all...

2001-04-11 Thread Josh McDonald

In ie5.x and earlier the select element will also be above all layers. I
think ie6 doesn't have that problem, as I remember MS promising to fix it,
tho i haven't got my hands on whistler yet so I don't know fer sure

G is for the gang of money I make.
F is for the gang of fools I break.
U is for the undisputed champ.
N is 'cause you never gonna get the mic back.
K is for the niggaz that I knock on they back.

http://www.gfunk007.com/


- Original Message -
From: "Chris Albanese" [EMAIL PROTECTED]
To: "David Diaz i Torrico" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 6:26 AM
Subject: RE: [PHP] *** HTML Programming question *** no php at all...



 In Netscape 4.x, form elemtents are always rendered as the top layer,
 regardless of z-indexing. You need to move the form element. Netscape 6 (I
 beleive) and IE5 are fine.

 -Original Message-
 From: David Diaz i Torrico [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 4:54 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] *** HTML Programming question *** no php at all...



 Sorry if someone takes that as an offtopic but, I can't find good
 HTML/Javascript programming lists, if someone can point it out any I'd
 apreciate it a lot.And haven't been able to find any reference to my
 problem even searching for hours in google.


 And the question here it goes, I've got a page with a header,
 the header is a layer floating around the page, with Explorer I've no
 problem but with Netscape, voil, when the layer passes over a textbox,
 select or some other typical form widget, the widget remains over the
 layer. I've tried all the possible combinations with z-index with no
 result.

 There's any workaround to this?, I'm stuck.


 Thank you very much in advance, and sorry if this is an offtopic.



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



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



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




[PHP] timer in PHP

2001-04-11 Thread george

 I need to have a time running and after a certain time it will not allow
you to submit anything else,  on top of that if someone makes an entry with
less than 2 minutes to go the time must be extended by 5 minutes.
 I really am at a loss how to do this.
 Can it be done.

TIA

George



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




Re: [PHP] $8 PHP hosting from Jeffrey Greer

2001-04-11 Thread Ashley M. Kirchner

Jeffrey Greer wrote:

 Is 1/2 per
 year too much down time?

sarcasm
Half a year downtime?  Yes, I would have a BIG problem with that.
/sarcasm

AMK4

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



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




Re: [PHP] string comparsion inf

2001-04-11 Thread Renze Munnik

[EMAIL PROTECTED] wrote:
 
 Hi all,
 
 I got a problem comparing the string "inf" with another in PHP3. It is
 used as File-Extention for information-files on our system. When
 comparing the following all works fine and the expected result is given:
 
 "otto"  =  "karl" =0
 "otto"  =  "otto" =1
 "otto"! = "karl"  =1
 "otto"! =  "otto" =0
 
 The following problem occurs when comparing the string "inf":
 
 "inf" = "otto" =0 correct result
 "inf" = "inf"   =0  incorrect result expected 1
 "inf" != "otto" =1 correct result
 "inf" != "inf" = 1 incorrect result!!! expected: 0
 
 Does anybody have any idea whats wrong with the string "inf"? It is not
 an reserved word.
 
 Tahnks in advance
 
 Marco
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


Well... where shall I start...

Comparison: ==
Assingment: =
(and _not_ the other way 'round)

And then... Why would you even think about comparing to fixed
strings? You wouldn't. So I guess you'd like to send some real code
next time, so people can see what you're trying to do.

And then...
"inf" = "inf" doesn't work _at all_! It produces an error. If you
use "inf" == "inf" the result is exactly what you'd expect.

And then...
In your real code, which is something like $var = "inf", you should
use $var == "inf". If you do that, you won't have any problems.

-- 

* RzE:

***
**  Renze Munnik
**
**  E: [EMAIL PROTECTED]
**  M: +31 6 218 111 43
***

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




Re: [PHP] Are calling COM applications a trojan?

2001-04-11 Thread Pierre-Yves Lemaire

Well, first off all, what I'm taking about has nothing to do with COM object.
Word will format HTML very nicely, keep it simple with only br, p, b 
tags.

All you need to do is put this on top of your page,
that is, before you send anyting to the client.
header("Content-Type: application/vnd.ms-word");

Now the client knows that the data will be a word document. (built in HTML 
but we don't care)
IE will open word if it is on the client pc, netscape will open a download 
box of a word
document.

I beleive you could built a more sophiticated solution using COM, but
this as always work fine for me and my user's, especially since I hate
word so much :)

py

At 09:18 PM 4/11/01 +0800, you wrote:
download dialog?

what will be in that dialog box?

And, I read a book saying that you can open a word document on the client
side and insert words in it.


- Original Message -
From: Pierre-Yves Lemaire [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, 11 April, 2001 3:54 PM
Subject: Re: [PHP] Are calling COM applications a trojan?


 
  It can't.
  If you put the appropriate header type (ms-word in this case), IE will
open
  word. Netscape
  and other browser will open a download dialog box of the document.
 
  py
 
 
  At 04:57 PM 4/11/01 +0800, you wrote:
  Then,  how can it open a words document on the client side?
  
  - Original Message -
  From: Delbono [EMAIL PROTECTED]
  To: Zeus [EMAIL PROTECTED]
  Sent: Wednesday, 11 April, 2001 4:32 PM
  Subject: Re: [PHP] Are calling COM applications a trojan?
  
  
Com Apps, are not called on a client side.
Actually, if you print out the version of the com application, it
displays
the version of the software installed on the server, not the one on
the
client.
   
If I have Word2000 on m local PC and on the server I have Word97,
   
a script taht prints App.Version, will print MSWord97.
   
   
Sent: Wednesday, April 11, 2001 10:26 AM
Subject: [PHP] Are calling COM applications a trojan?
   
   
I'm sure many of you seasoned developers have used COM before (not
  necessary
with PHP) but if PHP is a server-side language, how can it call a
program
  on
the client to open. Isn't it as deadly as a hacker opening your
computer?
   
Lets see some sides :)
   
--
David Chua aka. Zeus
Founder, Frozened.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]
 
 
  + ==
  + Pierre-Yves Lem@ire
  + E-MedHosting.com
  + (514) 729-8100
  + [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]


+ ==
+ Pierre-Yves Lem@ire
+ E-MedHosting.com
+ (514) 729-8100
+ [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] Are calling COM applications a trojan?

2001-04-11 Thread Hoover, Josh

And, I read a book saying that you can open a word document on the client
side and insert words in it.

Are you sure this was done on the client side and not on the server side?
Here is a common example used to show a simple use of COM and PHP:

$word=new COM("word.application") or die("Cannot start word for you"); 
print "Loaded word version ($word-Version)\n"; 
$word-visible =1 ; 
$word-Documents-Add(); 
$word-Selection-Typetext("Dit is een test"); 
$word-Documents[1]-SaveAs("burb ofzo.doc"); 
$word-Quit();

This does not work on the client.  PHP is on the server side.  COM is used
to access local objects, not remote ones.  So, in the example, PHP is using
word on the server and opening a document and saving it on the server.  This
has nothing to do with a client.  The use of COM and PHP would mainly be for
PHP to access COM objects that a business has currently in other
applications.  Many times it would be nice for PHP to utilize objects
already written, and in the Windows world right now those objects are
normally accessible via COM if they're accessible at all.

Josh Hoover
KnowledgeStorm, Inc.
[EMAIL PROTECTED]

Searching for a new IT solution for your company? Need to improve your
product marketing? 
Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify
the process for you.
KnowledgeStorm - Your IT Search Starts Here 



[PHP] reload only one layer?

2001-04-11 Thread An Onyke

hi,
I have a page with some layers (DIV tags) and one layer's content is built
by a PHP script which gets its content from a database.
What I want is: when the database content should change, I'd like to see
that immediately on my page. I dont thinks theres a command to do this?
I thought about an automatic reload after xxx seconds, but how would I do
that? It shouldnt reload the whole page, but only one layer...
can this be done with PHP or should I search for it with JavaScript?

TIA!!



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




Re: [PHP] timer in PHP

2001-04-11 Thread Chris Lee

there is no sure way, but using cookies/sessions you can make something that will 
*work* . assign the user a session_id, every time the user makes an entry add a value 
to the db, 

session_id = $SessionID
next_time = time() + 120

every time you make an entry, check to make sure that next_time  time() if it is then 
proceed, else update next_time = time + 300;

If you need a code example email me, I'll whip something up :)


-- 

 Chris Lee
 [EMAIL PROTECTED]



""george"" [EMAIL PROTECTED] wrote in message 
9b1p05$t6c$[EMAIL PROTECTED]">news:9b1p05$t6c$[EMAIL PROTECTED]...
I need to have a time running and after a certain time it will not allow
you to submit anything else,  on top of that if someone makes an entry with
less than 2 minutes to go the time must be extended by 5 minutes.
 I really am at a loss how to do this.
 Can it be done.

TIA

George



-- 
PHP General Mailing List (http://www.php.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] No new topic using reply please.

2001-04-11 Thread Chris Lee
Accually, Ive noticed in Outlook Express

Ctrl - N = new message
Ctrl - R = relpy to user directly, does not get posted to newsgroup/mailling list
Ctrl - G = relpy directly to newsgroup, in turn gets posted to the mailing list

On another note, good post, I see alot of people posting 'new' threads by hitting 
relpy, hehe.

-- 

 Chris Lee
 [EMAIL PROTECTED]



""Yasuo Ohgaki"" [EMAIL PROTECTED] wrote in message 
news:9b1k02$f6h$[EMAIL PROTECTED]...
Hello all,

I think most of users knows about news://news.php.net and list archives, if you
use your mail client's reply button, it becomes part of a thread. (It does not
start new thread)

Therefore, do not post new topic using reply button.

Regards,
--
Yasuo Ohgaki




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



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


[PHP] site review

2001-04-11 Thread Keyur Kalaria

Hello everybody,

I recently developed this site :  http://www.goodlookingindia.com  .
I am adding many more sections in it. 

Pl. let me know how can i improve the performance of this site.
Your reviews will be very helpful to me.

Thanks in advance.

Keyur
$$$






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

2001-04-11 Thread Alexis Antonakis

Problem solved, it turned out I had two php.ini files, one for PHP3 on my c
drive and one for PHP4 on my d drive.

Many thanks to all who replied

Alexis

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
p.net]On Behalf Of Jon Haworth
Sent: 11 April 2001 14:14
To: Php-General@Lists. Php. Net
Subject: RE: [PHP] Apache configuration



/tmp is the directory used on Unix systems to store session info. On a
windows box you will need to change it to something like c:\temp or
c:\apache\sessions. IIRC it's in your php.ini file, not httpd.conf.

HTH
Jon


-Original Message-
From: Alexis Antonakis [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 12:56
To: Php-General@Lists. Php. Net
Subject: [PHP] Apache configuration


Hi,

I am having problems in trying to configure Apache on my PC correctly.

FYI I am using Win95 and PHP4.

I have configured Apache so that it will run PHP scripts, however when I try
to start a session I get the following messages:
---
Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in d:\apache\htdocs\session.php on line 2

Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0


I can see that the script cannot locate the '/tmp' directory.  What my
question is where does this '/tmp' directory need to be created and do I
need to update the 'httpd.conf' file accordingly, and if so where within it?

Many thanks
Alexis


**
'The information included in this Email is of a confidential nature and is
intended only for the addressee. If you are not the intended addressee,
any disclosure, copying or distribution by you is prohibited and may be
unlawful. Disclosure to any party other than the addressee, whether
inadvertent or otherwise is not intended to waive privilege or
confidentiality'

**

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

2001-04-11 Thread Chris Lee

I'll post you a simple HTTP auth script. but you should realize something about 
header()

client - server
server - client

the client sends some HTTP request to the server, then the server sends some HTTP 
response to the client. php is strictly server side, you have full control over the 
HTTP headers sent to the user, but not from the user to the server. ie. method='post' 
that is sending client data to the server, you will have no control over this at all...

php_auth.php
?
 include_once('session.egn');
 include_once('database.egn');

 function bad_passwd()
 {
  echo "You have entered an invalid password.br\n";
  exit();
 }

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


-- 

 Chris Lee
 [EMAIL PROTECTED]





"Patrick Dunford" [EMAIL PROTECTED] wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can someone explain "header" to me?

Does it mean you can send HTTP headers with any script if you are loading 
another document?

There are two possibilities that interest me:

1. Sending username and password for authorisation in a protected area. This 
of course is done by browsers when they get a 401 and ask the user for their 
username and password in a dialog box. I would like to ask them for the data 
in a form then send it to the page in question.

2. Passing in variables to a script without specifying them as part of the 
URL. Like a form that uses POST to submit variables to a script without them 
being displayed in the URL when the page loads.  

-- 
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   If only for this life we have hope in Christ, we are to be
pitied more than all men.
-- 1 Corinthians 15:19
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010411
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

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



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




RE: [PHP] Can't redeclare already declared function

2001-04-11 Thread Johnson, Kirk

The function in question is defined in an included file, right? This
function definition file is most likely being included twice. The best bet
is that it is being included from another included file (at least, that's
how I usually manage to produce this error :) ). Check all your included
files for a line that re-includes the function definition file a second
time.

Kirk

 -Original Message-
 From: kenny.hibs [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 3:10 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Can't redeclare already declared function
 
 
 Anyone help with this
 
 Fatal error: Can't redeclare already declared function in 
 header.php3 on
 line 233
 The troubl is that there is no line 233 so it must be looking 
 at another
 page?
 

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




RE: [PHP] Can't redeclare already declared function

2001-04-11 Thread Altunergil, Oktay

If you're using php4 you can say include_once("include_file_name.php");

(there's also require_once() )

oktay

-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:18 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Can't redeclare already declared function


The function in question is defined in an included file, right? This
function definition file is most likely being included twice. The best bet
is that it is being included from another included file (at least, that's
how I usually manage to produce this error :) ). Check all your included
files for a line that re-includes the function definition file a second
time.

Kirk

 -Original Message-
 From: kenny.hibs [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 3:10 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Can't redeclare already declared function
 
 
 Anyone help with this
 
 Fatal error: Can't redeclare already declared function in 
 header.php3 on
 line 233
 The troubl is that there is no line 233 so it must be looking 
 at another
 page?
 

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

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




RE: [PHP] Can't redeclare already declared function

2001-04-11 Thread Jeffrey Paul



better yet, try include_once() instead of all instances of include().  It 
will only include a file once, rather than every time you call include() on 
that path.

Nifty feature.

-j

At 11:17 AM 4/11/2001, Johnson, Kirk wrote:
The function in question is defined in an included file, right? This
function definition file is most likely being included twice. The best bet
is that it is being included from another included file (at least, that's
how I usually manage to produce this error :) ). Check all your included
files for a line that re-includes the function definition file a second
time.

Kirk

  -Original Message-
  From: kenny.hibs [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 11, 2001 3:10 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Can't redeclare already declared function
 
 
  Anyone help with this
 
  Fatal error: Can't redeclare already declared function in
  header.php3 on
  line 233
  The troubl is that there is no line 233 so it must be looking
  at another
  page?
 

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

--
[EMAIL PROTECTED]  -   0x514DB5CB
he who lives these words shall not taste death
becoming nothing yeah yeah
forever liquid cool


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




Re: [PHP] site review

2001-04-11 Thread Steve Werby

"Keyur Kalaria" [EMAIL PROTECTED] wrote:
 I recently developed this site :  http://www.goodlookingindia.com  .
 I am adding many more sections in it.

 Pl. let me know how can i improve the performance of this site.
 Your reviews will be very helpful to me.

It's difficult to improve to suggest changes to improve the performance
until you define "performance" and explain how the database is structured,
how the pages are built, what hardware and software you are running, usage
patterns (average/peak pages/minute, etc.) and what symptoms lead you to
believe performance needs to be improved.  If by "performance" you mean
"generating more revenue or increasing page views" I have plenty of ideas,
but the last thing the world needs anyway is another hotornot.com copycat.

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


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




Re: [PHP] PHPemPT

2001-04-11 Thread Manuel Lemos

Viva,

Carlos Serro wrote:
 
 Hi all,
 just to announce that a new PHP local users list is born.
 
 It is called PHPemPT and it is dedicated to Portuguese users.
 
 This list is useful both for new users as well as for advanced
 users too.
 
 You can find this list at:
 
 http://groups.yahoo.com/group/phpempt

Ha' precisamente 2 anos foi criada uma lista para utilizadores de PHP
que falam Portugues. Depois de se ter fundido com uma outra lista de
utilizadores de PHP brasileiros, tem actualmente mais de 1500 inscritos.

http://groups.yahoo.com/group/php-pt

Existe uma outra lista mais moderada que se destina discutir questoes
menos triviais de PHP que tem actualmente mais de 500 inscritos.

http://groups.yahoo.com/group/php-especialistas


Seria bom que nao se andasse a criar mais listas para os mesmos fins
para evitar que as pessoas nao enviem as mesmas mensagems para listas
diferentes obrigando os que participam em varias a receber copias
desnecessarias.

Manuel Lemos

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




RE: [PHP] Can't redeclare already declared function

2001-04-11 Thread Johnson, Kirk

Thanks to all who suggested using include_once. Maybe it is just me (long
FORTRAN background), but the very idea of include_once makes me nervous, and
I don't use it. It violates my sense of acceptable design. I would rather
design my code such that a file is *really* only included once, if that is
what is supposed to happen. I *want* PHP to tell me when something gets
included more than once, then I can review the design. Maybe including the
file more than once is OK, maybe not. Depends on what else is in the
included file. Not an "Extreme Programming" outlook, I admit :) YMMV.

The Old Fogey,

Kirk

 -Original Message-
 From: Jeffrey Paul [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 9:22 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] Can't redeclare already declared function
 
 
 
 
 better yet, try include_once() instead of all instances of 
 include().  It 
 will only include a file once, rather than every time you 
 call include() on 
 that path.
 
 Nifty feature.
 
 -j
 
 At 11:17 AM 4/11/2001, Johnson, Kirk wrote:
 The function in question is defined in an included file, right? This
 function definition file is most likely being included 
 twice. The best bet
 is that it is being included from another included file (at 
 least, that's
 how I usually manage to produce this error :) ). Check all 
 your included
 files for a line that re-includes the function definition 
 file a second
 time.
 
 Kirk

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




[PHP] Arrays of objects

2001-04-11 Thread Daniel Fairs

Hi,

PHP provides a number of array-related functions which rely on a relation
existing between each array element. This is easy to understand for
primitive types (integers, strings and so on) but how does it work for
objects?

For example, I have a class Person. I have a number of Person objects in an
array. How do I define how a Person object is 'equal' to another, for the
purposes of searching through the array? Or would it be better to write a
Collection class, encapsulating an array (or some other storage structure),
which used callbacks in the Person class to determine equality, much in the
way the Java equals() method works?

Thanks,
Dan



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




[PHP] ezpublish install

2001-04-11 Thread Peter Van Dijck

  Hi,
  I think I finally found a cms that does most of what I want it to:
  ezpublish ( http://developer.ez.no/article/archive/4/ )
  I'm trying to install it, I'm on a apache server, and having some problems.

  Where can I find help to install this? I've checked the entire website, 
there's no answers to my questions on the forum there...

  Thanks for any tips
  Peter

~~
http://liga1.com: building multiple language/culture websites


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




[PHP] Creating Arrays

2001-04-11 Thread Ashley M. Kirchner


I need to convert an MySQL result into an Array...somehow.  The
query returns the following:

++---+
| ID |  Project  |
++---+
|  1 | Home  |
|  2 | Work  |
|  3 |   Family  |
|  4 |Misc.  |
|  . |  ...  |
|  . |  ...  |
++---+

...which I want to convert into:

Array(1 = "Home", 2 = "Work", 3 = "Family", 4 = Misc.", etc);

What's the best way to do this.

AMK4

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



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




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

2001-04-11 Thread Thies C. Arntzen

thies   Wed Apr 11 08:46:04 2001 EDT

  Modified files:  
/php4/ext/oci8  oci8.c 
  Log:
  never initialize oci in OCI_THREADED mode. seems to break win32.
  
  
Index: php4/ext/oci8/oci8.c
diff -u php4/ext/oci8/oci8.c:1.113 php4/ext/oci8/oci8.c:1.114
--- php4/ext/oci8/oci8.c:1.113  Fri Mar  2 01:12:55 2001
+++ php4/ext/oci8/oci8.cWed Apr 11 08:46:03 2001
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: oci8.c,v 1.113 2001/03/02 09:12:55 thies Exp $ */
+/* $Id: oci8.c,v 1.114 2001/04/11 15:46:03 thies Exp $ */
 
 /* TODO list:
  *
@@ -342,11 +342,16 @@
 {
zend_class_entry oci_lob_class_entry;
 
+/* XXX Joe Brown says OCI_THREADED breaks windows, assuming the same is true for unix 
+- tc
 #ifdef ZTS 
 #define PHP_OCI_INIT_MODE OCI_THREADED
 #else
+*/
 #define PHP_OCI_INIT_MODE OCI_DEFAULT
+
+/*
 #endif
+*/
 
 #if OCI_USE_EMALLOC
 OCIInitialize(PHP_OCI_INIT_MODE, NULL, ocimalloc, ocirealloc, ocifree);
@@ -489,7 +494,7 @@
 
php_info_print_table_start();
php_info_print_table_row(2, "OCI8 Support", "enabled");
-   php_info_print_table_row(2, "Revision", "$Revision: 1.113 $");
+   php_info_print_table_row(2, "Revision", "$Revision: 1.114 $");
 #ifndef PHP_WIN32
php_info_print_table_row(2, "Oracle Version", PHP_OCI8_VERSION );
php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_OCI8_DIR );



-- 
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] Job Opening in Brazil

2001-04-11 Thread Leonardo Dias

Hi, there.

We're looking for advanced PHP programmers to Work in Brazil. Catho
Online is the biggest job website in Brazil and possibly in Latin
America. We're looking for someone who's already experienced and willing
to learn even more with us.

The salary is 3000 reais (aproximately 1500 dollars). The cost of life
in Brazil is low, whick makes that salary pretty high to the brazilian
standards. There are also special bonus prizes for finished projects.

One does not have to be experienced in PHP. C and Perl programmers are
also welcome, since these languages are similar. We work mainly with PHP
and MySQL.

This job is to work in Brazil, So Paulo. For the brazilians out there,
we are near Paulista Avenue, in Bela Vista.

Please send rsums directly to [EMAIL PROTECTED] I prefer the rsum
in the body of the message, but other formats will also be read.

Greetings,

-- 
Leonardo Dias
Catho Online
WebDeveloper
http://www.catho.com.br/

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

2001-04-11 Thread Erich Reimberg N.

Hello,

   Is it possible to do some arithmetic with time/date values in PHP? 
for example, to calculate:

   today + 1050 days.
   today - 7 days.
   etc.

I mean, does PHP have functions to perform these operations? 

Thanks,
Erich Reimberg.

PS. I'm new to PHP, and I didn't find anything like this in the FAQ
Please Cc to my email: [EMAIL PROTECTED], for there are many
posts in this group that my server seems to loose.

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

2001-04-11 Thread Boget, Chris

Is it possible to do some arithmetic with time/date values in PHP? 
 for example, to calculate:
today + 1050 days.
today - 7 days.
etc.
 I mean, does PHP have functions to perform these operations? 

$oneDay = 86400; // number of seconds in a day
// 60 seconds * 60 minutes * 24 hours

$today = date( "U" ); // lookup the date() function

$oneWeekAgo = $today - ( $oneDay * 7 );
$1050Days = $today + ( $oneDay * 1050 );

echo "The date for one week ago is: ";
echo date( "F d, Y", $oneWeekAgo );

echo "1,050 days in the future is: ";
echo date( "F d, Y", $1050Days );


The unix timestamp is an awesome tool for date
arithmetic.  Time arithmetic uses the same logic
but on a smaller scale.

$oneMinute = 60; // seconds
$oneHour = 3600; // seconds; 60 seconds * 60 minutes

Chris



[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/oci8 oci8.c

2001-04-11 Thread Thies C. Arntzen

thies   Wed Apr 11 08:48:07 2001 EDT

  Modified files:  (Branch: PHP_4_0_5)
/php4/ext/oci8  oci8.c 
  Log:
  MFH - never initialize OCI in OCI_THREADED mode
  
  
Index: php4/ext/oci8/oci8.c
diff -u php4/ext/oci8/oci8.c:1.113 php4/ext/oci8/oci8.c:1.113.2.1
--- php4/ext/oci8/oci8.c:1.113  Fri Mar  2 01:12:55 2001
+++ php4/ext/oci8/oci8.cWed Apr 11 08:48:06 2001
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: oci8.c,v 1.113 2001/03/02 09:12:55 thies Exp $ */
+/* $Id: oci8.c,v 1.113.2.1 2001/04/11 15:48:06 thies Exp $ */
 
 /* TODO list:
  *
@@ -342,11 +342,16 @@
 {
zend_class_entry oci_lob_class_entry;
 
+/* XXX Joe Brown says OCI_THREADED breaks windows, assuming the same is true for unix 
+- tc
 #ifdef ZTS 
 #define PHP_OCI_INIT_MODE OCI_THREADED
 #else
+*/
 #define PHP_OCI_INIT_MODE OCI_DEFAULT
+
+/*
 #endif
+*/
 
 #if OCI_USE_EMALLOC
 OCIInitialize(PHP_OCI_INIT_MODE, NULL, ocimalloc, ocirealloc, ocifree);
@@ -489,7 +494,7 @@
 
php_info_print_table_start();
php_info_print_table_row(2, "OCI8 Support", "enabled");
-   php_info_print_table_row(2, "Revision", "$Revision: 1.113 $");
+   php_info_print_table_row(2, "Revision", "$Revision: 1.113.2.1 $");
 #ifndef PHP_WIN32
php_info_print_table_row(2, "Oracle Version", PHP_OCI8_VERSION );
php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_OCI8_DIR );



-- 
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] Pic Upload Safe Mode

2001-04-11 Thread Matthias Auchmann

Hi !

Does anyone have a fileupload script that works with Safe Mode ? In all
scripts I saw copy was used, so it didn't work. On the other hand, I don't
want to run my server without safemode  any hints ?

thnx

Matthias



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




Re: [PHP] ezpublish install

2001-04-11 Thread Seung-woo Nam

http://developer.ez.no/filemanager/list/1/
There are installation doc files near the bottom of the page. 

Seung-woo Nam

Peter Van Dijck wrote:
 
   Hi,
   I think I finally found a cms that does most of what I want it to:
   ezpublish ( http://developer.ez.no/article/archive/4/ )
   I'm trying to install it, I'm on a apache server, and having some problems.
 
   Where can I find help to install this? I've checked the entire website,
 there's no answers to my questions on the forum there...
 
   Thanks for any tips
   Peter
 
 ~~
 http://liga1.com: building multiple language/culture websites

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




[PHP] Mac IE - Text Area - PHP

2001-04-11 Thread Kevin Leavell

1.
I have a form that is used to upload articles to a site.  The form works
well with windows IE.  The mac IE won't take all the text!  It seems to have
a cap on the amount of text a text area will allow.  Any thoughts?  We
updated the browser which seemed to increase the limit but still have
problems getting the entire article into the text area on the form.

2.
I am getting strange results when the mac IE browser submits the text.
Letters of words are randomly replaced with question marks.  Also had some
php code actually show up as if it were posted in the text area (which is of
some concern).

The server is a windows based server w2k.

Thanks for any ideas.  I am baffled.

Kevin


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




[PHP] Single Quotes in Oracle Queries

2001-04-11 Thread Richard Crawford

Before we go about writing new functions to handle single quotes for our 
Phorum reengineering project, I need to know if there is a way for PHP to 
easily handle the issue of passing strings to a PL/SQL script, which 
requires that single quotes be doubled up: that "I don't know" is 
properly translated into "I don''t know".  In my dreams, this is handled 
by OCIParse or even OCIExecute, but I have a sinking feeling that this 
isn't the case, and that we'll need to do an extra parsing step for all 
of our strings that are inserted into the database, just for single 
quotes.

Help!

Richard


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




RE: [PHP] Single Quotes in Oracle Queries

2001-04-11 Thread Johnson, Kirk

Where are the strings coming from? If from a FORM, then
magic_quotes_sybase (in php.ini) is your friend. If from elsewhere, see
magic_quotes_runtime for possible help (also in php.ini).

Kirk

 -Original Message-
 From: Richard Crawford [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 12:05 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Single Quotes in Oracle Queries
 
 
 Before we go about writing new functions to handle single 
 quotes for our 
 Phorum reengineering project, I need to know if there is a 
 way for PHP to 
 easily handle the issue of passing strings to a PL/SQL script, which 
 requires that single quotes be doubled up: that "I don't know" is 
 properly translated into "I don''t know".  In my dreams, this 
 is handled 
 by OCIParse or even OCIExecute, but I have a sinking feeling 
 that this 
 isn't the case, and that we'll need to do an extra parsing 
 step for all 
 of our strings that are inserted into the database, just for single 
 quotes.
 
 Help!
 
 Richard
 
 
 -- 
 PHP General Mailing List (http://www.php.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] Single Quotes in Oracle Queries

2001-04-11 Thread Richard Crawford

The quotes are indeed coming from a FORM.  I'll look into 
magic_quote_sybase.  Thanks!


 Original Message 

On 4/11/01, 11:19:26 AM, "Johnson, Kirk" [EMAIL PROTECTED] wrote 
regarding RE: [PHP] Single Quotes in Oracle Queries:


 Where are the strings coming from? If from a FORM, then
 magic_quotes_sybase (in php.ini) is your friend. If from elsewhere, see
 magic_quotes_runtime for possible help (also in php.ini).

 Kirk

  -Original Message-
  From: Richard Crawford [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 11, 2001 12:05 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Single Quotes in Oracle Queries
 
 
  Before we go about writing new functions to handle single
  quotes for our
  Phorum reengineering project, I need to know if there is a
  way for PHP to
  easily handle the issue of passing strings to a PL/SQL script, which
  requires that single quotes be doubled up: that "I don't know" is
  properly translated into "I don''t know".  In my dreams, this
  is handled
  by OCIParse or even OCIExecute, but I have a sinking feeling
  that this
  isn't the case, and that we'll need to do an extra parsing
  step for all
  of our strings that are inserted into the database, just for single
  quotes.
 
  Help!
 
  Richard
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED]
 

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

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




[PHP] Including a URL for mailing..

2001-04-11 Thread Chad Day

What I'm trying to do is specify a URL in a form, and then take that URL,
put its contents into a variable, and mail it out in an e-mail message with
the body of the message being that URL.  I haven't gotten anywhere so far,
just getting blank messages for the body..   can anyone point me in the
right direction on saving the contents of a page to a variable?  I've ran
across a few examples, but nothing has worked for me yet. :(

Thanks,
Chad


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




[PHP] PHP and IE5.5 download problem

2001-04-11 Thread Vikram Vaswani

Hi!

I have a script which sends the following headers in order to get the
client to display a "file save" prompt.

 header ("Content-Type: application/octet-stream"); 
 header ("Content-Disposition: attachment; filename=$filename"); 
 readfile($filename); 

This works well on Netscape/lynx. However, IE 5.5 has a problem with this -
I get a message saying that the "file could not be found". Looked around
online, some sites say that this is an IE-specific issue with MIME-type
recognition. 

However, I see sites like yahoo and deja allowing users to download email
attachments using a similar technique, and that works fine on IE. Any ideas
on what I'm doing wrong here?

TIA!

Vikram

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




[PHP-CVS] cvs: CVSROOT / loginfo

2001-04-11 Thread Stig Bakken

ssb Wed Apr 11 11:26:51 2001 EDT

  Modified files:  
/CVSROOTloginfo 
  Log:
  * send commit messages for "pear" and "pearweb" to [EMAIL PROTECTED]
  
  
Index: CVSROOT/loginfo
diff -u CVSROOT/loginfo:1.41 CVSROOT/loginfo:1.42
--- CVSROOT/loginfo:1.41Tue Apr 10 09:31:01 2001
+++ CVSROOT/loginfo Wed Apr 11 11:26:50 2001
@@ -1,5 +1,5 @@
 #
-#ident "@(#)cvs/examples:$Name:  $:$Id: loginfo,v 1.41 2001/04/10 16:31:01 rasmus Exp 
$"
+#ident "@(#)cvs/examples:$Name:  $:$Id: loginfo,v 1.42 2001/04/11 18:26:50 ssb Exp $"
 #
 # The "loginfo" file is used to control where "cvs commit" log information
 # is sent.  The first entry on a line is a regular expression which is tested
@@ -42,7 +42,8 @@
 .*distributions.* $CVSROOT/CVSROOT/log -s -f $CVSROOT/CVSROOT/mylog -u $USER %s
 phpweb $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv}
 phpdoc $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv}
-pearweb $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv}
+pear $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv}
+pearweb $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv}
 qaweb $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv}
 portal $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv}
 pres $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv}



-- 
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] foreach vs. while(list() = each())

2001-04-11 Thread Joe Stump

What are the differences in these? I know with while() you have to reset() the
array afterwards, but foreach() you don't. Also foreach() appears to be quite
a bit faster. 

My main question is there ANY difference in how these two loop through the 
array.

--Joe



/**\
 *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] passthru

2001-04-11 Thread Michael Dickson

On the server itself (to which I have root access) I type:

   someProgram arg1 arg2 arg3

and it runs properly, returning the proper output to standard output (the
screen).  I can do this from anywhere on the server (for example, from the
same directory where my php scripts are located, /var/www/html/blah), and I
can do it as the same user that apache runs as ('apache').

BUT, when I try:

?php passthru("someProgram arg1 arg2 arg3"); ?

it fails.  I get no output at all.  I can check that everything else is ok
by doing something like

?php passthru("someProgram arg1 arg2 arg3"); passthru("echo 'finished'");
?

which then returns just the word 'finished' to the browser.

I CAN do other things via passthru, for example,

?php passthru("man tar"); ?, and

?php passthru("ls -al"); ?

and so on.  I am running php as an apache module.  I am NOT running php in
'safe mode'.

Any ideas what is going wrong here?

Thanks,

Michael Dickson


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




RE: [PHP] passthru

2001-04-11 Thread Johnson, Kirk

Just guessing here. On our setup, PHP runs as nobody. Is there a permissions
problem around "someProgram"?

Kirk

 -Original Message-
 From: Michael Dickson [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 1:27 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] passthru
 
 
 On the server itself (to which I have root access) I type:
 
someProgram arg1 arg2 arg3
 
 and it runs properly, returning the proper output to standard 
 output (the
 screen).  I can do this from anywhere on the server (for 
 example, from the
 same directory where my php scripts are located, 
 /var/www/html/blah), and I
 can do it as the same user that apache runs as ('apache').
 
 BUT, when I try:
 
 ?php passthru("someProgram arg1 arg2 arg3"); ?
 
 it fails.  I get no output at all.  I can check that 
 everything else is ok
 by doing something like
 
 ?php passthru("someProgram arg1 arg2 arg3"); passthru("echo 
 'finished'");
 ?
 
 which then returns just the word 'finished' to the browser.
 
 I CAN do other things via passthru, for example,
 
 ?php passthru("man tar"); ?, and
 
 ?php passthru("ls -al"); ?
 
 and so on.  I am running php as an apache module.  I am NOT 
 running php in
 'safe mode'.
 
 Any ideas what is going wrong here?
 
 Thanks,
 
 Michael Dickson

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




[PHP] Javascript issue

2001-04-11 Thread Jack Sasportas

I am doing a basic mouseiver on a page where some php code also resides.

I basically dump the top of the web page through a function page_top()
which is just passing all the html  java through a string, then pull
some db stuff out, and finally call the page_bottom() which pulls in the
rest of the html.

The problem is that the mouseover doesn't work within the php page which
puts the whole thing together.

Any ideas on how to work around this ?

Thanks

--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net



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




Re: [PHP-CVS] cvs: pear /Science Chemistry.php /Science/Chemistry Atom.php Atom_PDB.php Coordinates.php Element.php Macromolecule.php Macromolecule_PDB.php Molecule.php Molecule_XYZ.php PDBFile.php PDBPa

2001-04-11 Thread Andrei Zmievski

On Tue, 10 Apr 2001, Derick Rethans wrote:
 hrm,
 
 is it really needed to add 3.6MB of stuff to the PHP cvs?

Grr, I agree. Maybe it can wait until PEAR is out of PHP's CVS.

-Andrei
* Ethernet n.: something used to catch the etherbunny. *

-- 
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] What is the syntax to get the HTTP_ENV_VARS?

2001-04-11 Thread Phil Labonte


I want to get the hostname from the browsers that access my site.

What is the syntax to use with the HTTP_ENV_VARS?

mysql_query("INSERT INTO weblog(ip, hostname, port, time) " . " \
  VALUES('$REMOTE_ADDR', '$HTTP_ENV_VARS', '$REMOTE_PORT', \
  '$time')");

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] help: ldap ext not working.

2001-04-11 Thread Joe Rice


Hi,
I'm trying to configure in --with-ldap.
i have the iPlanet ldapsdk installed in
/usr/local/include
/usr/local/lib

php configures and compiles with out any complaints.
the problem happens when i try to start apache.

Syntax error on line 23 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: 
/usr/local/apache/bin/httpd: fatal: relocation error: file 
/usr/local/apache/libexec/libphp4.so: symbol ldap_unbind_s: referenced symbol not found
/usr/local/apache/bin/apachectl start: httpd could not be started


I don't know what this means.

line 23 of /usr/local/apache/conf/httpd.conf is;

LoadModule php4_modulelibexec/libphp4.so



any help or direction would be appreciated.

Thanks,
joe rice

web admin
www.bigidea.com

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




Re: [PHP] Creating Arrays

2001-04-11 Thread Rodney J. Woodruff

http://www.php.net/manual/en/function.msql-fetch-array.php

Hope this helps.

"Ashley M. Kirchner" wrote:

 I need to convert an MySQL result into an Array...somehow.  The
 query returns the following:

 ++---+
 | ID |  Project  |
 ++---+
 |  1 | Home  |
 |  2 | Work  |
 |  3 |   Family  |
 |  4 |Misc.  |
 |  . |  ...  |
 |  . |  ...  |
 ++---+

 ...which I want to convert into:

 Array(1 = "Home", 2 = "Work", 3 = "Family", 4 = Misc.", etc);

 What's the best way to do this.

 AMK4

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

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


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




Re: [PHP] Including a URL for mailing..

2001-04-11 Thread Rodney J. Woodruff

What have you tried so far?

-- Rodney

Chad Day wrote:

 What I'm trying to do is specify a URL in a form, and then take that URL,
 put its contents into a variable, and mail it out in an e-mail message with
 the body of the message being that URL.  I haven't gotten anywhere so far,
 just getting blank messages for the body..   can anyone point me in the
 right direction on saving the contents of a page to a variable?  I've ran
 across a few examples, but nothing has worked for me yet. :(

 Thanks,
 Chad

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

2001-04-11 Thread Chad Day

Various things, but I finally hit upon something that worked.  Thanks
anyway.

Chad

-Original Message-
From: Rodney J. Woodruff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 5:03 PM
To: Chad Day
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Including a URL for mailing..


What have you tried so far?

-- Rodney

Chad Day wrote:

 What I'm trying to do is specify a URL in a form, and then take that URL,
 put its contents into a variable, and mail it out in an e-mail message
with
 the body of the message being that URL.  I haven't gotten anywhere so far,
 just getting blank messages for the body..   can anyone point me in the
 right direction on saving the contents of a page to a variable?  I've ran
 across a few examples, but nothing has worked for me yet. :(

 Thanks,
 Chad

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


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



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




[PHP] windows 2000 install

2001-04-11 Thread Deborah Dennison

Desperate and frustrated new php peep here. Trying to install php4 on
windows 2000 using IIS5. I have tried EVERYTHING. Last thing I tried was
the easyinstaller from the phpeverywhere people. No luck. Everytime I try a
test, I get a blank page???

Take pity on me please!!! If I cannot get this to work I have to use
Lotus Domino (yuck) and I am signed up to take a class but have to have php
installed first. I already bought the book. I want to use this. I like
this. But cannot get past the installation. Am I a lost cause already???

Is there anyone out there who has been in my shoes and worked this all out?
Can someone give me a list of what to check etc.. Everytime I try to
install. I follow the directions and nothing seems to work. I have been to
the php.net site and no luck with those instructions either. And no, I
cannot use Apache so please don't even mention it.

The sad thing is I had installed Apache and php4 on Windows NT in about a
1/2 hour. Ran my phpinfo test and it worked. Then, my system config changed
and now under 2000/IIs I cannot get it to work. Help me please...

Thanks So much
Deb

P.S. I have tried sending this to the windows php list and it keeps getting
returned so I thought I would try here


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




RE: [PHP] windows 2000 install

2001-04-11 Thread Jerry Lake

What are you using as a test ?

try saving this below as info.php

?
phpinfo();
?

make sure you are saving this to your webroot
and calling it through your browser
http://localhost/info.php

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


-Original Message-
From: Deborah Dennison [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 1:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] windows 2000 install


Desperate and frustrated new php peep here. Trying to install php4 on
windows 2000 using IIS5. I have tried EVERYTHING. Last thing I tried was
the easyinstaller from the phpeverywhere people. No luck. Everytime I try a
test, I get a blank page???

Take pity on me please!!! If I cannot get this to work I have to use
Lotus Domino (yuck) and I am signed up to take a class but have to have php
installed first. I already bought the book. I want to use this. I like
this. But cannot get past the installation. Am I a lost cause already???

Is there anyone out there who has been in my shoes and worked this all out?
Can someone give me a list of what to check etc.. Everytime I try to
install. I follow the directions and nothing seems to work. I have been to
the php.net site and no luck with those instructions either. And no, I
cannot use Apache so please don't even mention it.

The sad thing is I had installed Apache and php4 on Windows NT in about a
1/2 hour. Ran my phpinfo test and it worked. Then, my system config changed
and now under 2000/IIs I cannot get it to work. Help me please...

Thanks So much
Deb

P.S. I have tried sending this to the windows php list and it keeps getting
returned so I thought I would try here


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

2001-04-11 Thread Morgan Curley

try
?php
 while( $my_data = msql_fetch_row ( $your_query_identifier ){
 $the_array_I_want[ $my_data[ 0 ] ]  = $my_data[ 1 ] ;
 }

 echo "PRE";
 print_r( $the_array_I_want );
 echo "/PRE";
?

Be aware that adding an element to $the_array_I_want  will give it the next 
sequential number which would look like an ID but have nothing to do with 
the contents of your database.

Unless it is absolutely necessary I would recommend against doing this 
though. If you have record set with just a few records, no problem, 100's 
or 1000's of records and you should realize this array is using up your 
server memory. I am not sure of the mechanics of msql_fetch_row but I am 
pretty sure large result sets are not kept entirely in memory.

Morgan



At 12:10 PM 4/11/2001, you wrote:

 I need to convert an MySQL result into an Array...somehow.  The
query returns the following:

 ++---+
 | ID |  Project  |
 ++---+
 |  1 | Home  |
 |  2 | Work  |
 |  3 |   Family  |
 |  4 |Misc.  |
 |  . |  ...  |
 |  . |  ...  |
 ++---+

 ...which I want to convert into:

Array(1 = "Home", 2 = "Work", 3 = "Family", 4 = Misc.", etc);

 What's the best way to do this.

 AMK4

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



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



[PHP] Calling a function that resides elsewhere

2001-04-11 Thread Gerry

I hope you understand:

It is too long to include here so I'll give you an idea.

file.B
---
?php
$all_cats = "1, 2, 3";
function html_options($output, 
$values = NULL,
$selected = NOT_NULL,
$first_option_output = false)
}
return($html_output);
}

echo"select name=\"cat\" size=\"1\"";
//-cats
$cats = explode(',',$all_cats);
//--values
$cats_vals = explode(',',$all_cats);
print html_options($cats, $cats_vals, $selected, "--Select one--");
echo"/SELECT";
?


file.A code:
?php
$connect to db;
$get result;
$cat = $row["cat"];
$selected = "$cat"; 
---
include ("file.B");
---
done
?
From here on I get the menu with --select one-- option first then 1, 2,
3, but it ignores the fact the I told it $selected = "$cat". I figure it
has to do with including the function file instead of having the
function inside of "A". How can I call file.B from different files and
have it accept the variable $selected from such files?

Thaks in advance:

Gerry Figueroa

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




Re: [PHP] windows 2000 install

2001-04-11 Thread Phil Driscoll

There are two stages here. Getting PHP installed and working and getting IIS
configured.

To tackle the first should be easy. If php.exe and phpts.dll are in the same
directory as each other (say C:\php) and php.ini is in the WINNT folder AND
you haven't done anything silly in php.ini, then PHP should work.

Test by opening a command window, changing directory to C:\php and typing
php.exe -i. A screenful of html tells you php is working. Alternatively, an
error message might tell you what's wrong.

If that works, run the Internet service manager and check that for the web
site you are playing with, the .php file extension is mapped onto the
php.exe.

Run a .php file containing just ?php phpinfo();? from your web browser on
localhost.

If that works, great. If not, tell us exactly what happens.

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


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




Re: [PHP] Creating Arrays

2001-04-11 Thread Ashley M. Kirchner

"Rodney J. Woodruff" wrote:

 http://www.php.net/manual/en/function.msql-fetch-array.php

Okay, call me dense.  I can't figure this out.  This is what I'm trying to
do:

$sql = "select p_id, project from proj where uid=$uid";
$result = mysql_db_query($database,$sql);

(the resulting table in mysql is as follows:
  +--+---+
  | p_id | project   |
  +--+---+
  |0 | Undefined |
  |1 | Work  |
  |2 | Personal  |
  +--+---+
  3 rows in set (0.00 sec)

...yes, that 'Undefined' IS a valid project, and the p_id's don't
necessarily start at 0 either.)


I need that result into the following:
$items = array(0 = "Undefined", 1 = "Work", 2 = "Personal");

Reason is, I pass that $items variable to the following function:

  function MakeSelect($items, $selected) {
$str = "";
while(list($value, $name) = each($items)) {
  $str .= "option value=\"$value\"" . ($value != $selected ? \
  "" : " selected") . "$name\n";
}
return $str;
  }

...which then creates (assuming the person had 'Work' previously
selected):

select name=whatever_i_specify
option value="0"Undefined
option value="1" selectedWork
option value="2"Personal
/select

How do I create that $items array?

AMK4

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



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




[PHP] Loop in a loop menu system output problem

2001-04-11 Thread Fates

I am trying to make a simple HTML menu system. I am having problems
displaying menu links under the correct submenu from a loop.

I have a database with two tables. One table holds menu and sub menu
headings and the other table holds the contents of each submenu (the
actual menu links and names).  I need to display the menu title and then
the sub menu title from table 1 and then display the submenu contents or
links from table 2 and then display the next set of links under the
correct submenu

Example output would look like this:

Say person clicks on Admin menu which is already displayed then the
networking submenu heading will display along with the submenu links:

   Example:   Admin(main menu title from db
table 1)
Networking(submenu title , from
db table 1
ping(Link to ping
from db table 2)
traceroute   (Link to ping from
db table 2)
nsloopup etc


I don't know how to go about outputing the links under the correct
submenu.  The main menu is no problem. I am thinking I would need a loop
within a loop.

The query I use: $query = "SELECT * FROM menutable, elementstable WHERE
menutable.menutable_id = elementstable.menuid AND menutable.mainmenu =
'Admin' ";

$result = mysql_db_query("menus", $query);

This loop simply assigns variables and prints out all output under the
main menu called Admin.  The problem is how do I display

  while ($r = mysql_fetch_array($result)) {

// start menu table (table holds main menu/sub menu headings
$menutable_id = $r["menutable_id"];
$menunumber = $r["menunumber"];
$mainmenu = $r["mainmenu"];
$submenu = $r["submenu"];
// start elements table (table that holds the links and names of each
link)
// element_id references menu table
$element_id  = $r["element_id"];
$element = $r["element"];
$url = $r["url"];
$menuid = $r["menuid"];

// next display data this is wrong cause it displays 1 submenu and 1
link looping
?
TD?  echo "$submenu"; ?/TD
TDa href="? echo "$url"; ? " ? echo "$element"; ?/a /TD
?

// this doesn't work
if ($menutable_id == $menuid) {
 ?
 TD?  echo "equal $submenu"; ?/TD
 ?
   // print "both equal";
   //
   // $b = $a;
  }

?

Notes:
Loop de loop:
// outer loop   display submenus (when submenu changes display next set
of elements or links from inner loop)   if submenu changes then display
next set of menu links for that submenu
// inner loop display elements or links for that submenu until sub menu
changes


MySQL and PHP4 latest using Linux OS


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




Re: [PHP] Supplied argument is not a valid MySQL result resource

2001-04-11 Thread Chris Worth


This happened to me when I used _affected_rows instead of _count

make sure you're using the right function.

that drove me nuts before I got it working, AND I followed the durn directions.

chris



On Tue, 10 Apr 2001 09:02:32 -0700, elias wrote:

can you show me some code?
basically when you provide an invalid link to any MySql function this error
occur.

-elias
http://www.kameelah.org/eassoft

""Nathan Roberts"" [EMAIL PROTECTED] wrote in message
9atdps$kgv$[EMAIL PROTECTED]">news:9atdps$kgv$[EMAIL PROTECTED]...
 I am trying to get to grips with managing data in mysql, am am currentky
 working on deleting records

 I have worked through a turorial - no problems, but now I am trying to
apply
 it to my own database, I am getting the error
 Warning: Supplied argument is not a valid MySQL result resource in  on
 line 14

 I cannot see what is causing it - if anyone can it would be much
 appreciated.

 thanks

 Nathan

 For clarity/brevity I have cut the page back to what i beleive to be the
 relivant part. Code for page is:-

 html

 body

 ?php

 $db = mysql_connect("localhost", "username", "pasword");

 mysql_select_db("catalogue",$db);


 $result = mysql_query("SELECT * FROM SECTIONS",$db);

 while ($myrow = mysql_fetch_array($result)) {

   printf("a href=\"%s?section_id=%s\"%s %s/a \n", $PHP_SELF,
 $myrow["section_id"], $myrow["section_name"], $myrow["section"]);

printf("a href=\"%s?id=%sdelete=yes\"(DELETE)/abr", $PHP_SELF,
 $myrow["section_id"]);

 }


   ?



 /body

 /html


 SQL for the table is

 CREATE TABLE SECTIONS (
section_name varchar(25) NOT NULL,
section_id tinyint(3) unsigned DEFAULT '0' NOT NULL auto_increment,
section char(1) NOT NULL,
PRIMARY KEY (section_id),
UNIQUE section (section_name, section_id, section)




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

2001-04-11 Thread Brett

 What I'm trying to do is specify a URL in a form, and then take that URL,
 put its contents into a variable, and mail it out in an e-mail message
with
 the body of the message being that URL.  I haven't gotten anywhere so far,
 just getting blank messages for the body..   can anyone point me in the
 right direction on saving the contents of a page to a variable?  I've ran
 across a few examples, but nothing has worked for me yet. :(

 Thanks,
 Chad


try using output buffering.  In a php script put the following:

ob_start(); //everything following will be stored for output.

include 'your_page.php';

$body=ob_get_contents(); //store everything in output in $body variable

Then mail as usual.  Your page will be the $body variable.  If you want to
display the page as well use ob_end_flush().  If you just want to mail the
page use ob_end_clean() to clear the output buffering and continue scripting
for normal display.

check out http://www.php.net/manual/en/ref.outcontrol.php for more
information on output buffering.  If you are still stuck email me off list
and I will send you a sample of a file that does the same thing for me.

Brett


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




Re: [PHP] Creating Arrays

2001-04-11 Thread Matt McClanahan

On Wed, Apr 11, 2001 at 03:55:38PM -0600, Ashley M. Kirchner wrote:

 "Rodney J. Woodruff" wrote:
 
  http://www.php.net/manual/en/function.msql-fetch-array.php

(snip)

 I need that result into the following:
 $items = array(0 = "Undefined", 1 = "Work", 2 = "Personal");

Here's a hint.

$arr[$key] = $value;

Define $key and $value from the row data that mysql_fetch_array
gives you.

 Reason is, I pass that $items variable to the following function:
 
   function MakeSelect($items, $selected) {
 $str = "";
 while(list($value, $name) = each($items)) {
   $str .= "option value=\"$value\"" . ($value != $selected ? \
   "" : " selected") . "$name\n";
 }
 return $str;
   }

For the record, you're thinking about list() backwards.  In your
function, the array keys will go into $value, and the values will go
into $name.

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

2001-04-11 Thread Andi Gutmans

Just curious. What does their pragma do?

Andi

At 03:16 AM 4/10/2001 +, Jason Greene wrote:
jason   Mon Apr  9 20:16:06 2001 EDT

   Modified files:
 /php4/ext/sockets   sockets.c
   Log:
   Fix for PR #9729, 9664, 9656, 8667.
   All compilers on Solaris should build this extension correctly now.
   It turns out the SUN CC, by default, enables a define that enables the 
 use of
   #pragma redefine extname in sun header files. This is why cc would work,
   and gcc wouldn't.

   -Jason


Index: php4/ext/sockets/sockets.c
diff -u php4/ext/sockets/sockets.c:1.33 php4/ext/sockets/sockets.c:1.34
--- php4/ext/sockets/sockets.c:1.33 Thu Mar 22 05:16:58 2001
+++ php4/ext/sockets/sockets.c  Mon Apr  9 20:16:05 2001
@@ -17,7 +17,7 @@
 +--+
   */

-/* $Id: sockets.c,v 1.33 2001/03/22 13:16:58 sniper Exp $ */
+/* $Id: sockets.c,v 1.34 2001/04/10 03:16:05 jason Exp $ */

  #include "php.h"

@@ -34,6 +34,10 @@
  #define _XOPEN_SOURCE_EXTENDED
  #define _XPG4_2
  #define __EXTENSIONS__
+
+#ifndef __PRAGMA_REDEFINE_EXTNAME
+#define __PRAGMA_REDEFINE_EXTNAME
+#endif

  #include "ext/standard/info.h"
  #include "php_sockets.h"



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


-- 
PHP 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] radio groups in looped form

2001-04-11 Thread Peter Houchin

hiya,

I have a script that repeats a form x number of times depending on how many records 
there are, what's happening is when i go to update my radio buttons it sees every 
radio button on the page as the ONE group when really it's x number of groups (again 
depending on how many records there are)

How can i differ between raido groups with out having to get the name changed for 
every record after the 1st one?

Peter Houchin
[EMAIL PROTECTED]
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .COM!  **
 


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

2001-04-11 Thread Jason Greene

If you look at their socket.h, they have a macro condition in the XPG4 compatibility 
section that
renames all the socket functions to __xnet_whatever. The condition either calls 
#pragma  redefine extname, or #define. #define was
bad in this situation becuase PHP_FUNCTION(socket) would become 
PHP_FUNCTION(__xnet_socket).

What #pragma redefine extname does, is change the name reference after compilation.
So , all references to socket,listen, bind, etc in socket.o, get renamed to the 
corresponding __xnet_
xopen functions.

-Jason




- Original Message -
From: "Andi Gutmans" [EMAIL PROTECTED]
To: "Jason Greene" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 5:21 PM
Subject: Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c


 Just curious. What does their pragma do?

 Andi

 At 03:16 AM 4/10/2001 +, Jason Greene wrote:
 jason   Mon Apr  9 20:16:06 2001 EDT
 
Modified files:
  /php4/ext/sockets   sockets.c
Log:
Fix for PR #9729, 9664, 9656, 8667.
All compilers on Solaris should build this extension correctly now.
It turns out the SUN CC, by default, enables a define that enables the
  use of
#pragma redefine extname in sun header files. This is why cc would work,
and gcc wouldn't.
 
-Jason
 
 
 Index: php4/ext/sockets/sockets.c
 diff -u php4/ext/sockets/sockets.c:1.33 php4/ext/sockets/sockets.c:1.34
 --- php4/ext/sockets/sockets.c:1.33 Thu Mar 22 05:16:58 2001
 +++ php4/ext/sockets/sockets.c  Mon Apr  9 20:16:05 2001
 @@ -17,7 +17,7 @@
  +--+
*/
 
 -/* $Id: sockets.c,v 1.33 2001/03/22 13:16:58 sniper Exp $ */
 +/* $Id: sockets.c,v 1.34 2001/04/10 03:16:05 jason Exp $ */
 
   #include "php.h"
 
 @@ -34,6 +34,10 @@
   #define _XOPEN_SOURCE_EXTENDED
   #define _XPG4_2
   #define __EXTENSIONS__
 +
 +#ifndef __PRAGMA_REDEFINE_EXTNAME
 +#define __PRAGMA_REDEFINE_EXTNAME
 +#endif
 
   #include "ext/standard/info.h"
   #include "php_sockets.h"
 
 
 
 --
 PHP CVS Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP 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] checkdnsrr() in PHP 4.0.5rc1

2001-04-11 Thread Jochen Kaechelin

What about this error:

checkdnsrr() is not supported in this PHP build 

Any answers?

--
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] radio groups in looped form

2001-04-11 Thread SED

I don't think you can. The browser groups them by the name, so you will have
to write some code (simple) to change the name...

SED

-Original Message-
From: Peter Houchin [mailto:[EMAIL PROTECTED]]
Sent: 11. aprl 2001 23:33
To: Php-General@Lists. Php. Net
Subject: [PHP] radio groups in looped form


hiya,

I have a script that repeats a form x number of times depending on how many
records there are, what's happening is when i go to update my radio buttons
it sees every radio button on the page as the ONE group when really it's x
number of groups (again depending on how many records there are)

How can i differ between raido groups with out having to get the name
changed for every record after the 1st one?

Peter Houchin
[EMAIL PROTECTED]
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .COM!  **



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




RE: [PHP] radio groups in looped form

2001-04-11 Thread Peter Houchin

even though i am putting them in an array? 

like

input type="radio" name="avail[]" value="y" ? if ($avail == 'y') { echo 'CHECKED'; 
}?

(i have another 2 radio buttons with this group)

Peter

-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:05 AM
To: Peter Houchin
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] radio groups in looped form


I don't think you can. The browser groups them by the name, so you will have
to write some code (simple) to change the name...

SED

-Original Message-
From: Peter Houchin [mailto:[EMAIL PROTECTED]]
Sent: 11. aprl 2001 23:33
To: Php-General@Lists. Php. Net
Subject: [PHP] radio groups in looped form


hiya,

I have a script that repeats a form x number of times depending on how many
records there are, what's happening is when i go to update my radio buttons
it sees every radio button on the page as the ONE group when really it's x
number of groups (again depending on how many records there are)

How can i differ between raido groups with out having to get the name
changed for every record after the 1st one?

Peter Houchin
[EMAIL PROTECTED]
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .COM!  **





  1   2   >