[PHP] test

2001-02-08 Thread Plamen Slavov

test


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




[PHP] RE: Wierd OCI Problem... [Urgent, and please help]

2001-02-08 Thread Nold, Mark


- 
Disclaimer: The information contained in this email is intended only for the
use of the person(s) to whom it is addressed and may be confidential or
contain legally privileged information. If you are not the intended
recipient you are hereby notified that any perusal, use, distribution,
copying or disclosure is strictly prohibited. If you have received this
email in error please immediately advise us by return email at
[EMAIL PROTECTED] and delete the email document without making a
copy. 

-

I always compile PHP (with exactly the same config) with --enable-sigchild
and as a CGI not module. I had similiar problems until i took both these
steps. (I think we also moved away from Plogon due to not using the PHP
module anymore)

I assume you've patched 8.05 (i had to connect to ora 7.3.3 on a remote
machine)

You problem 'could' be
1. Improperly configured Oracle on the DB server end (maybe a limit to no.
of connections?)
2. Not using --enable-sigchild
3. Not using PHP as CGI
4. Not patching Ora 8.0.5

Or simply that when a CGI process die it dies a lot more quietly... and the
users simply rerun the page.

Just some gueses but i have 3 boxes configured the way you describe access
remote Oracle DB servers (7.3.3 to 8.1.6) and they work reliably. The whole
sites are oracle driven, but only receive 100 hits or so an hour. (so it
could be something due to load i havent experienced)


mn



Mark Nold
[EMAIL PROTECTED]  
Senior Consultant
 
Change is inevitable, except from vending machines. 



-Original Message-
From: Chien-Pin Wang [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 11:21 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Wierd OCI Problem... [Urgent, and please help]



Dear all,

 My server is running RedHat6.2/Apache 1.3.14/PHP 4.0.4pl1/Oracle
8.0.5. The way I make connection from PHP to Oracle is through php's
Oracle 8 extension OCIPLogon.

 Since the server was made available to the public, *EVERY ONCE A
WHILE* I got error messages logged in apache's error log as found in the
attachement (sorry the oracle message is in Big5 characters). The error
sequence starts with ORA-00022, saying 'invalid session id; access
denied', but a connection resource is returned. Then all kinds of
ORA-/PLS- errors come after it. The persistent connection affects only the
attached apache process, not everyone. That explains when user reload the
page, the problem cannot be reproduced everytime. The only way I've found
to stop it is by restarting apache.

 I use quite a lot of Oralce stored procedures and return query
results by cursor variables. But I doubt this the reason to it. My guess
is that somewhere between apache process and oracle connection is
interrupted.

 I've been working on this issue for a while but got no clue now to
move any further. When errors come, the error log got filled up pretty
quick. Please help.., and thanks in advance.

Chien-pin

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

2001-02-08 Thread Michael Dearman

Hey Wen,
Had me going there for a bit, cause I had just put down a book
on C, where variables are not preceded by such things as $.
But for PHP, your missing a few $'s on your variables.

And, your taking care of matching that javascript opening tag from
where your calling this function?

MD

Wen Ni Leong wrote:
> 
> Please help me to solve this problem.  I have looping selected menu and
> I want to use javascript to control each function.  For example if
> select Text Form,the javascript will automate to open new window.
> Right now my problem is I can't differentiate from which menu or
> location I had selected because all of them are looping.  So please help
> me to look at the coding below.  See what I need to change.  Thanks.
> 
> print "

[PHP] Raspuns: [PHP] indexing text

2001-02-08 Thread Ovidiu EFTIMIE

Try here
http://www.searchtools.com/tools/tools-unix.html

Ovidiu

-Mesaj original-
De la: Robert Mena [mailto:[EMAIL PROTECTED]]
Trimis: Friday, February 09, 2001 4:35 AM
Catre: php mailing list
Subiect: [PHP] indexing text


Hi, i am trying to store some digital books under
mysql and give a chapter/page access using php as
scripting lanaguage.

Besides htdig is there any other solution (perhaps
written in php) to index a content of a TEXT field in
order to have an "altavista-like" search engine for my
use ?

I've read that the new version of mysql does
"full-text-indexing" whatever that means...

thanks.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  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]


-- 
PHP General Mailing List (http://www.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] Web Based Project Management Tools

2001-02-08 Thread Nold, Mark


- 
Disclaimer: The information contained in this email is intended only for the
use of the person(s) to whom it is addressed and may be confidential or
contain legally privileged information. If you are not the intended
recipient you are hereby notified that any perusal, use, distribution,
copying or disclosure is strictly prohibited. If you have received this
email in error please immediately advise us by return email at
[EMAIL PROTECTED] and delete the email document without making a
copy. 

-


PHPProjekt looks good.


Mark Nold
[EMAIL PROTECTED]  
Senior Consultant
 
Change is inevitable, except from vending machines. 



-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 11:38 AM
To: Nathan Cook; Php List
Subject: Re: [PHP] Web Based Project Management Tools


On Fri,  9 Feb 2001 11:46, Nathan Cook wrote:
> Do any of you know of a comprehensive web-based project management tool
> written in php?
>
> Thank You!
> .:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
> Systems & Network Administrator :: Programmer
> [ phone - 208.343.3110 ][ pager - 208.387.9983 ]

Keystone? http://www.stonekeep.com/keystone.php3

It and some others are listed on the projects page of your favourite PHP 
mirror.

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

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




[PHP] Raspuns: [PHP] Cron + PHP

2001-02-08 Thread Ovidiu EFTIMIE

0 20 * * * lynx -dump http://localhost/file.php
every day at 20:00 this file will be executed


Ovidiu

-Mesaj original-
De la: GAYTAN BAHAMONDEZ DANIEL EDUARDO [mailto:[EMAIL PROTECTED]]
Trimis: Friday, February 09, 2001 12:37 AM
Catre: [EMAIL PROTECTED]
Subiect: [PHP] Cron + PHP


How can i make a crontab run a  php file???
should i add something like this in the file:

path/to/file.php 


Thanks in advance...


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


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

2001-02-08 Thread Philip Olson

On Thu, 8 Feb 2001, Todd Cary wrote:

> I have "Profession PHP Programming" and I see that echo() and print()
> are used alomst interchangeably.  When should each one be used?

What is the difference between echo and print   ?
-
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41
 
> Also, I see "http://www.php.net/manual/en/configuration.php#ini.short-open-tag

> And how about "};" versus "}" to end a block?  I see both.

Don't do }; as it looks funny.  Btw, I've never seen }; used within the
manual.

Regards,

Philip


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




[PHP] looking for a class to replace our own tags with it's HTML equivalent

2001-02-08 Thread Maxim Maletsky

Hi, 
 
I refer to: http://forums.devshed.com/index.php?action=bbcode
 
 
 
Do you guys know who has written something like that before?
 
I am looking for a class that could do that kind of job.
 
What I am trying to do is to parse articles replacing some staff with it's
HTML equivalents.
I know I can invent one, but isn't it made by someone else already?
 
why to reinvent the wheel?
 
Cheers,

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

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


 



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


Re: [PHP] Super SQL problem! Please advise!

2001-02-08 Thread Graham Reeves

Sandeep try this

SELECT 
  d.id, 
  d.thedate, 
  d.topic, 
  d.entry,
  count(c.id) AS comments 
FROM 
  diary d left outer join comments c on (d.id = c.id)
WHERE
  d.month='$month' 
GROUP BY 
  c.id
ORDER BY 
  d.id DESC "


Cheers

_
Graham Reeves
Consultant

PQ Africa  -  Q Data Consulting 
www.pqafrica.co.za

Tel No : +27 +43 +722 
Cell No: 082 870 3205
- Original Message - 
From: Sandeep Hundal <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 08, 2001 6:11 AM
Subject: [PHP] Super SQL problem! Please advise!


> Hey all,
> 
> I got this massive query, which I hope you'll be able to understand:
> 
> SELECT diary.id, diary.thedate, diary.topic, diary.entry,
> count(comments.id) AS comments FROM diary, comments WHERE
> diary.month='$month' AND diary.id = comments.id GROUP BY comments.id
> ORDER BY diary.id DESC "
> 
> Basically what I've done is made a diary table, and allowed people to
> comment on each diary entry, with the comments stored in a seperate
> comments table. What i'm doing there is getting the diary entry, plus
> the number of comments posted for that entry.
> 
> Now the problem is that this query only displays entries from the
> diary table when a comment is added for that entry, otherwise it
> comes up with a blank, because (diary.id = comments.id) isn't true.
> 
> Now, is there a way to make sure that it displays all diary entries
> anyway? because if i remove that check (diary.id = comments.id) -
> then all the numbers come up messed up.
> 
> Thanks
> Sunny
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  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]
> 
> 



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




Re: [PHP] include("blah.php?var=this"); doesn't work?!

2001-02-08 Thread Dean Hall

> Uh, why?  Adding ?asin$asin makes absolutely no sense in an include since
> included files share the same namespace as the parent file.  You can
> simply do:

Er, Rasmus. Do you mean "scope"? You're usually right on target with your
comments, so I'm sure that's what you meant :-)

Speaking of namespaces

Let me encourage the PHP development folks to add namespace support ASAP.
I'd really like to make some of my apps PEAR-compliant, but I refuse to use
the inane naming convention for classes that I'd need to.

Dean.

>
> $asin = 123;
> include 'book_reviews.php';
>
> And the $asin variable will be accessible to you book_reviews.php script.
>
> -Rasmus
>
> On Thu, 8 Feb 2001, John Vanderbeck wrote:
>
> > I need to be able to do:
> >
> >  > if (isset($asin))
> > {
> > include("book_reviews.php?asin=$asin");
> > }
> > else
> > {
> > include("book_reviews.php");
> > }?>
> >
> > This is embeded in one of my sites pages..However, the call with the var
> > added on won't work, it seems like its looking for a file with that
whole
> > name.  Does anyone know how I can do this?
> >
> > - John Vanderbeck
> > - Admin, GameDesign
> >
> >
> > --
> > PHP General Mailing List (http://www.php.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] Converting CFML to PHP

2001-02-08 Thread Dean Hall

Seeing as how CFML is just more markup and PHP is an embedded language, your
task will be interesting. IMHO, CFML is the worst thing out; it's not a real
scripting language, and it blurs the distinction between markup and logic.

Sorry I couldn't help. (Just wanted to voice my opinion -- no flamebait
intended.)

Dean.

""Kevin Queen"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> List,
> I have been given the task of converting all of our current ColdFusion
pages
> to PHP, I am wondering if there is some kind of converting tool out there
> for this.  I don't need 100% accuracy as I can/will fix any errors, I am
> just looking for the easiest way to convert 500+ files.
>
> TIA,
>
> Kevin Queen
> Software Developer||""||
> AnyDevice ||__||
> Atlanta, Ga   [ -=.]
> http://www.anydevice.com  ===:0~
>
> (w) (404)260.4155
> (p) (888)645.2815
> (e) [EMAIL PROTECTED]
>
> "Ah, I see!", said the blind man to the deaf mute.  -Unknown
>
>
> --
> PHP General Mailing List (http://www.php.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] PEAR

2001-02-08 Thread Dean Hall

> Can anyone point me in the direction of a good site documenting PEAR?

There is none. Although you should look at . Also see
. Also check out the stuff in the
pear directory of the source installation.

Dean.



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

2001-02-08 Thread Michael

Hi,

I have a question about PHP's support for unsigned integers. I was trying
out the following code fragment

$val = 0x8000;
$hexval_str = sprintf("%X", $val);
echo $hexval_str;

result=
-8000

It seems here that I can not represent $val as an unsigned integer. Since
settype does not have unsigned types, does anyone know how I can use sprintf
to format an unsigned value?

Any help would be greatly appreciated.
TIA!


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] PHP File Uplaod Path

2001-02-08 Thread Ankur Verma

The default file upload path is the Temporary directory of your system.

But the problem that I percieve in your case is that when PHP uploads the
file, it gives it a temporary file name ( such as /tmp/shsgtW ). if you are
loooking to store the files in an intelligent manner, I would suggest that
you do not change the file upload path. Let php copy the file where it does
by default. Once the file has been uploaded, copy it to the directory you
want the files to reside in . This way you can also specify a legible name
for the file.

Look in the Uploading files section of the PHP manual and for a good article
on uploadingfiles at phpbuilder.com

hope that helps

regards

Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India


> - Original Message -
> From: "Dhaval Desai" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 07, 2001 2:12 PM
> Subject: [PHP] PHP File Uplaod Path
>
>
> > Hi!
> >
> > I need help with uploading files with php.
> > What is the default directory where the files are
> > uploaded..?
> > I want to specify a particular directory where the
> > files have to come after they are uploaded.
> >
> > Is it possible to specify a path in the script where
> > the files will automatically be copied after uploading
> > to the temporary directory.
> >
> > Please help me out ...
> >
> > Thank You
> > Dhaval Desai
> >
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Auctions - Buy the things you want at great prices.
> > http://auctions.yahoo.com/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.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] UN-Escaping text from a form submit?

2001-02-08 Thread Ankur Verma

there are two ways of achieving thi -

stripslashes($data)

or if you want this to be global, then set

magic_quotes_gpc = Off

in php.ini file


hope that helps

regards

Ankur Verma


> - Original Message -
> From: "John Vanderbeck" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 08, 2001 9:17 AM
> Subject: [PHP] UN-Escaping text from a form submit?
>
>
> > Hello again,
> >
> > I have a form that is used to submit data to my script.  If the user
> enters
> > something like:
> >
> > The title of this book doesn't really matter to "me"!
> >
> > When I get that back, and read it from the file, it always ends up like:
> >
> > The title of this book doesn\'t really matter to \"me\"!
> >
> > Note the addition of the escape sequences.  How can I stop this? Is
there
> > some function in PHP? Or am I goign to have to write a character routine
> to
> > strip out escape sequences? 
> >
> > - John Vanderbeck
> > - Admin, GameDesign
> >
> >
> > --
> > PHP General Mailing List (http://www.php.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] looping variables

2001-02-08 Thread Wen Ni Leong

Please help me to solve this problem.  I have looping selected menu and
I want to use javascript to control each function.  For example if
select Text Form,the javascript will automate to open new window.
Right now my problem is I can't differentiate from which menu or
location I had selected because all of them are looping.  So please help
me to look at the coding below.  See what I need to change.  Thanks.  


print "

function chg_list(temp_val,form_property,num)
{

var value  = temp_val;
var count = 1;
var max_count = document.theform.result.value;
var loc = document.theform.docvar.value;

while (count < max_count)
  {
  var var_temp = \"title_\"+count+\"_lf\";
   
if(value == \"text\")
  { 
 newWindow = window.open(\"newwin.php?doc_var=$doc_var'\",
\"newWindow\",
\"toolbar=no,menubar=no,scrollbars=yes,width=783,height=400,top=0,left=0\");
  }

if(value == \"exist_doc\")
  { 
 alert(\"testing=\"+value+\"\");
  }
 count++; 
}
   return true;
  }

\n";



while ($count < $last_row_no)
  {
 $doc_var = "title_"."$count"."_lf";

 if ($count =="1")
   { print "Start\n"; }
else
   {
print "
  \n";

if ($doc_title == "")
 {print "\n";}
  else
 {print "$doc_title\n";}

  print "New Document
 Existing Document
 --- End Of List 
--
   
  \n";
   }

print "\n";


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




[PHP-CVS] cvs: php4 /sapi/caudium caudium.c

2001-02-08 Thread David Hedbor

neotron Thu Feb  8 21:32:42 2001 EDT

  Modified files:  
/php4/sapi/caudium  caudium.c 
  Log:
  Fixed PHP authentication and some other minor things.
  
Index: php4/sapi/caudium/caudium.c
diff -u php4/sapi/caudium/caudium.c:1.8 php4/sapi/caudium/caudium.c:1.9
--- php4/sapi/caudium/caudium.c:1.8 Tue Jan  2 14:49:28 2001
+++ php4/sapi/caudium/caudium.c Thu Feb  8 21:32:42 2001
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: caudium.c,v 1.8 2001/01/02 22:49:28 zeev Exp $ */
+/* $Id: caudium.c,v 1.9 2001/02/09 05:32:42 neotron Exp $ */
 
 #include "php.h"
 #ifdef HAVE_CAUDIUM
@@ -121,26 +121,15 @@
  */
 #define REQUEST_DATA ((struct mapping *)(THIS->request_data))
 
-
-#if 0 && defined(_REENTRANT) && !defined(CAUDIUM_USE_ZTS)
-/* Lock used to serialize the PHP execution. If CAUDIUM_USE_ZTS is defined, we
- * are using the PHP thread safe mechanism instead.
- */
-static PIKE_MUTEX_T caudium_php_execution_lock;
-# define PHP_INIT_LOCK()   mt_init(&caudium_php_execution_lock)
-# define PHP_LOCK(X)
THREADS_ALLOW();mt_lock(&caudium_php_execution_lock);THREADS_DISALLOW()
-# define PHP_UNLOCK(X) mt_unlock(&caudium_php_execution_lock);
-# define PHP_DESTROY() mt_destroy(&caudium_php_execution_lock)
-#else /* !_REENTRANT */
-# define PHP_INIT_LOCK()   
-# define PHP_LOCK(X)
-# define PHP_UNLOCK(X)
-# define PHP_DESTROY() 
-#endif /* _REENTRANT */
-
 extern int fd_from_object(struct object *o);
 static unsigned char caudium_php_initialized;
 
+#ifndef mt_lock_interpreter
+#define mt_lock_interpreter() mt_lock(&interpreter_lock);
+#define mt_unlock_interpreter()   mt_unlock(&interpreter_lock);
+#endif
+
+
 /* This allows calling of pike functions from the PHP callbacks,
  * which requires the Pike interpreter to be locked.
  */
@@ -150,25 +139,17 @@
 if(!state->swapped) {\
   COMMAND;\
 } else {\
-  mt_lock(&interpreter_lock);\
+  mt_lock_interpreter();\
   SWAP_IN_THREAD(state);\
   COMMAND;\
   SWAP_OUT_THREAD(state);\
-  mt_unlock(&interpreter_lock);\
+  mt_unlock_interpreter();\
 }\
   }\
 } while(0)
 
-struct program *php_program;
 
 
-/* To avoid executing a PHP script from a PHP callback, which would
- * create a deadlock, a global thread id is used. If the thread calling the
- * php-script is the same as the current thread, it fails. 
- */
-//static int current_thread = -1;
-
-
 /* Low level header lookup. Basically looks for the named header in the mapping
  * headers in the supplied options mapping.
  */
@@ -458,7 +439,7 @@
 {
   /*  char buf[512]; */
   php_info_print_table_start();
-  php_info_print_table_row(2, "SAPI module version", "$Id: caudium.c,v 1.8 2001/01/02 
22:49:28 zeev Exp $");
+  php_info_print_table_row(2, "SAPI module version", "$Id: caudium.c,v 1.9 2001/02/09 
+05:32:42 neotron Exp $");
   /*  php_info_print_table_row(2, "Build date", Ns_InfoBuildDate());
   php_info_print_table_row(2, "Config file path", Ns_InfoConfigFile());
   php_info_print_table_row(2, "Error Log path", Ns_InfoErrorLog());
@@ -571,27 +552,25 @@
 
 static void php_caudium_module_main(php_caudium_request *ureq)
 {
-  int res, len;
-  char *dir;
+  int res;
+  int cnt = 0;
   zend_file_handle file_handle;
   struct thread_state *state;
   extern struct program *thread_id_prog;
-  //  struct php_caudium_request *ureq;
   SLS_FETCH();
   CLS_FETCH();
   PLS_FETCH();
   ELS_FETCH();
   GET_THIS();
-  //  ureq = (struct php_caudium_request *)ud;
   THIS->filename = ureq->filename;
   THIS->done_cb = ureq->done_cb;
   THIS->my_fd_obj = ureq->my_fd_obj;
   THIS->my_fd = ureq->my_fd;
   THIS->request_data = ureq->request_data;
   free(ureq);
-  //  current_thread = th_self();
+
 #ifndef TEST_NO_THREADS
-  mt_lock(&interpreter_lock);
+  mt_lock_interpreter();
   init_interpreter();
 #if PIKE_MAJOR_VERSION == 7 && PIKE_MINOR_VERSION < 1
   Pike_stack_top=((char *)&state)+ (thread_stack_size-16384) * STACK_DIRECTION;
@@ -636,25 +615,22 @@
 SG(request_info).headers_only = 0;
   }
 
-  /* FIXME: Check for auth stuff needs to be fixed... */ 
-  SG(request_info).auth_user = NULL; 
-  SG(request_info).auth_password = NULL;
-
-  /* Swap out this thread and release the interpreter lock to allow
+  /* Let PHP4 handle the deconding of the AUTH */
+  php_handle_auth_data(lookup_string_header("HTTP_AUTHORIZATION", NULL), SLS_C);
+   /* Swap out this thread and release the interpreter lock to allow
* Pike threads to run. We wait since the above would otherwise require
* a lot of unlock/lock.
*/
 #ifndef TEST_NO_THREADS
   SWAP_OUT_CURRENT_THREAD();
-  mt_unlock(&interpreter_lock);
+  mt_unlock_interpreter();
 #endif
 
-  /* Change virtual work directory */
-  
 #ifdef VIRTUAL_DIR
   /* Change virtual directory, if the feature is enabled, which is
-   * almost a requirement for PHP in Roxen. Might want to fail if it
-   * isn't. Not a problem though, since it's on by defa

RE: [PHP] echo vs print

2001-02-08 Thread Maxim Maletsky

If you search archives you'll find some blody battles on this kind of
issues,

there are some slight differences but work both well and are very similar in
performance - so this is the question of style. You see,  Professional PHP
Programming was written by 5 young guys (including Sascha) and that is why
the yprobably coulnd't stick to one single style : couse they have some deep
preferences.

Anyway, "mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 12:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] echo vs print


I have "Profession PHP Programming" and I see that echo() and print()
are used alomst interchangeably.  When should each one be used?

Also, I see "http://www.php.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] TCP/IP Question

2001-02-08 Thread JCampell

I'm working on a TCP/IP server using PHP, but the example I found on www.php.net is 
only a one connection. Does anyone have an example of a multiple connection php 
script? I'd really appreciate looking at it..

 www.PictureArena.com
===
The lack of humility before nature thats 
being displayed here staggers me. 
===
 www.PictureArena.com



[PHP] version'ng problem with php4 and apache 1.3.17 ...

2001-02-08 Thread The Hermit Hacker


I feel so dense :(  I've gotten into a habit of upgrading my apache
with a simple 'make install-program', but, of course, php needs 'make
install-include' to happen as well ...

so, my include files for apache was out of sync with the server, causing
the problem ...

all appears well now ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org


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




RE: [PHP] echo vs print

2001-02-08 Thread Jeff Oien

>From recent posts:
http://www.zend.com/zend/tut/using-strings.php
also see the doc for print in the PHP manual:
http://www.php.net/manual/en/function.print.php
Jeff Oien

> I have "Profession PHP Programming" and I see that echo() and print()
> are used alomst interchangeably.  When should each one be used?
> 
> Also, I see " 
> And how about "};" versus "}" to end a block?  I see both.
> 
> Todd
> 
> --
> Todd Cary
> Ariste Software
> [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 9 Feb 2001 04:28:08 -0000 Issue 501

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


php-general Digest 9 Feb 2001 04:28:08 - Issue 501

Topics (messages 38776 through 38894):

Re: gif support
38776 by: Chris Lee

Re: radiobutton
38777 by: Jon Haworth
38778 by: Reuben D Budiardja
38816 by: James, Yz

Re: splitting a class across separate files?
38779 by: Christian Reiniger
38780 by: Monte Ohrt

include("blah.php?var=this"); doesn't work?!
38781 by: John Vanderbeck
38782 by: Rasmus Lerdorf
38785 by: John Vanderbeck
38786 by: Brian V Bonini
38787 by: thor
38790 by: Rasmus Lerdorf

Re: Super SQL problem! Please advise!
38783 by: Sandeep Hundal
38789 by: Steve Werby

Passing files to a browser
38784 by: Rob Root
38803 by: Christian Reiniger
38804 by: Javier Muniz
38815 by: Rob Root

Should this work?
38788 by: szii.sziisoft.com
38890 by: Richard Lynch

Testing CONNECTION Speed
38791 by: Matias Banzas
38799 by: Adam Knight

Getting MIME-type of file
38792 by: Tobias Talltorp
38801 by: James, Yz
38805 by: Tobias Talltorp
38814 by: James, Yz

Re: PHP as Scripting Language
38793 by: Bill Rausch

Re: Events in HTML with PHP
38794 by: Foley, John
38834 by: Toby Butzon

Regex Matching
38795 by: Andrew Rush

Re: movies manipulation??
38796 by: Andy Clarke

Quick Directory Question
38797 by: Andy Clarke
38802 by: James, Yz

PHP auth... a little help :)
38798 by: Brandon Orther
38812 by: Chris Lee

XSLT
38800 by: Chris Lee

Any image drawing tutorials anywhere?
38806 by: John Guynn

PHP not sending email
38807 by: Paulson, Joseph V. \"Jay\"
38891 by: Richard Lynch

interoperating with perl
38808 by: Britton
38892 by: Richard Lynch

Form posted?
38809 by: rodrigo
38811 by: Steve Werby

Re: can i install apache php-module AND php-cgi on the same windows-apache?
38810 by: Alex Akilov

security help
38813 by: thor
38817 by: James, Yz
38819 by: James, Yz
38820 by: thor
38822 by: Ben Peter
38841 by: James, Yz
38851 by: Chris
38856 by: thor

Re: Mail-Encryption
38818 by: Rodolfo Gonzalez Gonzalez
38858 by: Richard Lynch

ereg_replace with assoc array?
38821 by: Jaxon
38867 by: Jaxon

Cron + PHP
38823 by: GAYTAN BAHAMONDEZ DANIEL EDUARDO
38830 by: Joe Stump
38838 by: Website4S.aol.com

[Newbie] PHP Variables
38824 by: Steve Haemelinck
38826 by: Joe Stump
38835 by: Philip Olson
38837 by: James, Yz

Insert Data AS400
38825 by: Karl J. Stubsjoen
38893 by: Richard Lynch

To The Hacker: CodeBoy
38827 by: rswfire
38829 by: James Moore
38833 by: rswfire
38836 by: James, Yz
38840 by: Philip Olson
38843 by: Matt McClanahan
38847 by: James, Yz
38848 by: Chad Day
38850 by: James, Yz
38852 by: Philip Olson
38860 by: Jonathan Sharp
38862 by: Jonathan Sharp
38868 by: Chris Lee

Re: How to make PHP work in all sub-directories?
38828 by: Toby Butzon

ftp_fput
38831 by: Marisol Díaz E.
38842 by: James, Yz

Re: Generic cloner?
38832 by: Toby Butzon

fopen warning error message
38839 by: Ade Smith
38869 by: Chris Lee

installing PHP 4.0.4pl1 on Redhat 6.2
38844 by: Scott Mebberson
38853 by: Michael Hall

Re: PHP && mySQL
38845 by: Chris Hayes

script doesn't work in netscape
38846 by: Erik Boles
38849 by: Scott Brown

preg_match() vs. preg_match_all()
38854 by: CC Zona

Dynamic Drop-down list
38855 by: Todd Cary
38857 by: DanO
38859 by: Nathan Cook
38863 by: Todd Cary
38864 by: DanO
38865 by: DanO
38866 by: Jason Murray

Web Based Project Management Tools
38861 by: Nathan Cook
38884 by: David Robley

Mysql connection problems
38870 by: Felipe Lopes
3 by: Richard Lynch

Searching HTML file for  tags
38871 by: Tyler Longren
38872 by: Mukul Sabharwal
38874 by: Tyler Longren

Re: Files only available via HTTPS
38873 by: Daniel Tryba
38875 by: Aaron Tuller
38877 by: Christopher Allen
38878 by: Jason Brooke

indexing text
38876 by: Robert Mena
38881 by: Steve Werby
38883 by: David Robley

PHP4.0.4pl1 with Apache 1.3.17/SSL and Frontpage ...
38879 by: The Hermit Hacker
38880 by: Larry Rosenman
38885 by: The Hermit Hacker

echo vs print
38882 by: Todd Cary

Wierd OCI Problem... [Urgent, and please help]
38886 by: Chien-Pin Wang

Re: PHP function using a WML variable from a select list as to access the right data 
in a

Re: [PHP] test for undefined variables & renaming variables

2001-02-08 Thread Ankur Verma

you can test for undefined variables using

isset($var)

or

empty($var)

look into the php manual for more details on these functions

yes php does provide you with an option to create variables from variables
themselves

refer to the following

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

hope that helps

regards

Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India

- Original Message -
From: "August Malson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 08, 2001 12:41 PM
Subject: [PHP] test for undefined variables & renaming variables


> Q:
> Does anyone know of a way to test for undefined variables?  For example, I
> am sending a variable into the page, but the processing of the page
depends
> on what is being passed to the page.
>
> Say, I am typing the following on the location bar:
> index.php?fuseaction=something&fuse=6
>
> and I want something to happen if fuse is actually declared, and something
> else to happen if fuse is not defined.
>
> I have tried isdef(), but that function does not seem to work, and I
> couldn't find it in the manual when I was looking for it.
>
> Code to use on:
>
> if($HTTP_GET_VARS("fuse") == NULL) then do something; else do something
> else;
>
>
> Q:
> Also, does anyone know how to rename a variable?
>
> I want to create a variable $attributes_NameOfVariable, but it does not
seem
> to work.  is there a function that exists in PHP that will assist me in
this
> process?
>
> Thank you for all of your help, and thank you for your time,
>
> August Malson
>
>
> --
> PHP General Mailing List (http://www.php.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] Insert Data AS400

2001-02-08 Thread Richard Lynch

> I'm having troubles inserting records into our AS400.  I've tried just
about
> every combination I can think of when trying to insert a record, but
nothing
> is working.  Here is the most recent error I keep getting:
>
> Warning: SQL error: [IBM][CLI Driver][AS] SQL7008N REXX variable "WBO230P
"
> contains inconsistent data. SQLSTATE=55019 , SQL state 55019 in SQLExecute
>
> And here is the SQL command:
> INSERT INTO WEBTEST.wbo230p (WOSTS, WOORD, WOCUS, WOST, WSNAM, WSAD1,
WSAD2,
> WSADX, WSAD3, WSSTA, WSZIP, WOPO, WODTTM, WONORD, WINVDT, WPHONE, WEMAIL,
> WSBSTA, WSAMT) VALUES ('1',01,01,0001,'t ','t ','t ','t ','t
> ','t ','t ','t ',01,'t ','t ','t ','t ','t ','t ')

Like, unless AS400/IBM/CLI/AS SQL is way different from SQL92, you either
don't need WEBTEST, or there should be no .wbo230p, or you aren't telling us
that you are doing something funky like trying to insert into one database
(WEBTEST) even though you are connected to another...

But, even so, WEBTEST.wbo230p maybe be fine, and it's just one of those
columns whose data it doesn't like.

The question, of course, is which one.

The leading 0's on WOORD and WOCUS and [mumble] look pretty darned
suspicious to me.  If those are integer, they should just be 1, not 01.
If they are *not* integer, you need apostrophes on them just like the
others.

If that doesn't help, just start throwing out columns.  Or throw them all
out and build it up 1 column at a time) until you find out which one it
doesn't like.

I dunno why SQL engines are so darned non-specific in their error messages.
My favorite:
syntax error near ','
Thanks guys!  Like what non-trivial SQL statement *doesn't* have a bazillion
commas in it?!

PS  Am I to assume you actually have a working PHP<->AS400 connection?  If
you could build a PHP/AS400 page, you would probably get much traffic.
People keep asking about AS400, and I've never even seen one.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm




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

2001-02-08 Thread Richard Lynch

> I have some web agent type stuff to do for which there are some handy perl
> modules.  I can just wrap them in scripts and system() them of course, but
> I though I'd check if there is some more elegant approach to integrating
> with perl before I do that?

http://php.net/virtual may or may not match your definition of more elegant.

Apache 2.0 was once rumored to be maybe having "stacked handlers" such that
you could send a page through PHP and then Perl (or vice versa) but that's
not an option yet, and I have no knowledge if that feature has survived this
far...

fhttpd has "stacked handlers" I think, but it's a bit extreme to switch from
Apache to fhttpd for what you need, I think.  Probably major bonus points
for elegance, though :-)

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



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

2001-02-08 Thread Richard Lynch

> sendmail_path = /usr/lib/sendmail -t
> ;for unix only, may supply arguments as well (default is 'sendmail -t -i')

Those apostrophes on the default setting are not just for show.

sendmail_path = 'usr/lib/sendmail -t'

Actually, I use " not ', but either should work.

An .ini file delimits on a space unless it's inside a quote after the first
non-space after the =

In other words, your sendmail was never getting the -t part.

I think that means you have a bunch of mail clogged up in there somewhere
maybe...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



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

2001-02-08 Thread Richard Lynch

> foreach($some2DArray as &$refToArrayRow)
> {
> }
>
> It won't even parse with an error of
> Parse error:  parse error, expecting `T_VARIABLE' or `'$'' in
> ./myFile.php on line 473
>
>
> Can you not use a reference within a foreach loop?  With the & removed,
> it works fine but then when I update the $refToArrayRow it's (obviously)
> not updating the original $some2DArray

Maybe try with the & on the $some2DArray instead...

I mean, you want a reference to the 2D Array so you can munge it, right?

So, like, then you are doing the assignment of &$some2DArray to a new
variable not unlike:
$arrayRow = &$some2DArray[0];

Or am I the one that is thinking backwards?

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.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 (&mysql) & different char-sets

2001-02-08 Thread Richard Lynch

> Is it possible to make three textareas on one page (of course it is, but
> read til the end, you`ll get the point) and let the user type into each
> box in a different language with different charsets.
>
> For example, lets say I want to insert three versions of one text on one
> page (without submitting the page first). In the first box, when i start
> writing, I can write with english char-set, as I move to the second box, I
> can write in russian and in the third box, the charset could already be
> swedish. Is it possible? If it is, how? And then I want to write it all to
> mysql database as well (keeping the correct char-sets).

A really icky hack way would be to use FRAMESET tag and JavaScript...

Each FRAME would be a different language, and the SUBMIT button would use
JavaScript to work its way up to the FRAMESET page, which would then suck in
the data from the FRAME pages to submit...

This would be very, very, very icky, and there *has* to be a better way.

I just dunno what it would be.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



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




Re: [PHP] Mysql connection problems

2001-02-08 Thread Richard Lynch

> Warning: MySQL Connection Failed: Can't connect to MySQL server on
> 'localhost' (10061) in c:\arquivos de
> programas\apache group\apache\htdocs\db_connect.php on line 3
> Couldn't connect.

Is the MySQL deamon running?
IE, is there a black MS-DOS window (maybe minimized) that has something not
unlike this:
C:\mysql\bin\mysqld.exe: ready for connections
in it?
If not, you need to open an MS-DOS window and cd to where-ever you installed
MySQL and do "mysqld" and just let it sit there.  It's not "hung", it's just
waiting for you to do some MySQL stuff.

Can you connect to the MySQL deamon using mysql monitor?
IE, open an MS-DOS window and cd to where-ever you installed MySQL and do
"mysql mysql"
Then use \q to quit.

Get MySQL up-and-running without trying to get PHP to talk to it first.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.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 function using a WML variable from a select list as to access the right data in a MYSQL database

2001-02-08 Thread Richard Lynch

I'm not sure I'm following the purpose, but you need to access a whole
'nother page (or, at least, a whole 'nother HTTP connection) to select HELP1
or HELP2 from your phone.
It seems like you're trying to get your WAP to execute PHP somehow, and that
won't happen.
[This week, anyway :-)]

Disclaimer:  What I know about WAP could fit inside a WAP. :-)

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: "Kato Strandjord" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Thursday, February 08, 2001 5:04 AM
Subject: [PHP] PHP function using a WML variable from a select list as to
access the right data in a MYSQL database


> I use apache server on win2000, php4, mysql and wml which I test local on
my
> harddrive.
>
> The code under is working fine when I test it on emulators like UP SDK
from
> phone.com. or other, but i have fooled it to use static variables which is
> not the solution i want.
> My problem is. How can I use my variable:
> print "";
> in this code under so that I can use its value in my php function:
> $tabfag=finnMeldinger($fagnr);
> I can see the WML variable if i print it out in WML, but i can not print
it
> out as a variable in PHP. I have fooled the php function and put a static
> variable in it, instead of the dynamic WML variable, which is generated
from
> a select list. I have tried for a week but al kinds of tricks did not
work.
> At one time i got the value from WML to PHP, but it came out like this
> "=so480". The sign = was impossible to remove, so i could not use it. The
> correct value is "so480" with out the "="
>
>  // send wml headers
> header("Content-type: text/vnd.wap.wml");
> echo "";
> echo " . " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
> ?>
> 
>
> 
> 
>  print "";//HELP1
> require ("funksjoner.php");
> $tabfag=finnfag();
> if (mysql_num_rows($tabfag) > 0)
>

> while ($row = mysql_fetch_array($tabfag))
>

> print "$row[fagbeskrivelse]";
>
> }//while
> }//if
> $temp=$fagkode;
> ?>
> Done.
> 
>  print "go $(fagkode)";//testing if i can see the WML variable from HELP1,
and i can, but i can not use it in my PHP function
> ?>
> 
> 
> 
> 
>
> 
> //HELP2
>  $fagnr="so480";//fooling the function with a static code, but this should
be the HELP1
> $tabfag=finnMeldinger($fagnr);//this is the main problem, Impossible to
solve
> if (mysql_num_rows($tabfag) > 0)
>
>

> while ($row = mysql_fetch_array($tabfag))
>

> print "$row[dato]";
> }//while
> }//if
> ?>
> Done.
> 
> go $(fagkode) $(dato)// just another test, and is working fine so i can
see both WML variables from other cards
> 
> 
> 
> 
>
> 
>  $datonr="051201";//fooling the function, but this should be the WML
varibeles value in HELP"
> $meldingen=finnMelding($fagnr,$datonr);// using the static value, should
be HELP1 and HELP2 dynamic value instead!!
> print "$meldingen";
> ?>
> 
> 
>
>
>
>
> --
> PHP General Mailing List (http://www.php.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] Wierd OCI Problem... [Urgent, and please help]

2001-02-08 Thread Chien-Pin Wang


Dear all,

 My server is running RedHat6.2/Apache 1.3.14/PHP 4.0.4pl1/Oracle
8.0.5. The way I make connection from PHP to Oracle is through php's
Oracle 8 extension OCIPLogon.

 Since the server was made available to the public, *EVERY ONCE A
WHILE* I got error messages logged in apache's error log as found in the
attachement (sorry the oracle message is in Big5 characters). The error
sequence starts with ORA-00022, saying 'invalid session id; access
denied', but a connection resource is returned. Then all kinds of
ORA-/PLS- errors come after it. The persistent connection affects only the
attached apache process, not everyone. That explains when user reload the
page, the problem cannot be reproduced everytime. The only way I've found
to stop it is by restarting apache.

 I use quite a lot of Oralce stored procedures and return query
results by cursor variables. But I doubt this the reason to it. My guess
is that somewhere between apache process and oracle connection is
interrupted.

 I've been working on this issue for a while but got no clue now to
move any further. When errors come, the error log got filled up pretty
quick. Please help.., and thanks in advance.

Chien-pin




[Fri Feb  9 10:01:06 2001] [error] PHP Warning:  OCIStmtExecute: ORA-00022: ¶¥¬q§@·~ 
ID µL®Ä; µLªk¦s¨ú
 in /home/httpd/htdocs/veryWed/php/modules//class/dataPack2.class on line 38
[Fri Feb  9 10:01:06 2001] [error] PHP Warning:  OCIFetchInto: OCI_INVALID_HANDLE in 
/home/httpd/htdocs/veryWed/php/modules//class/dataPack2.class on line 41
[Fri Feb  9 10:01:06 2001] [error] PHP Warning:  OCIStmtExecute: ORA-06550: ²Ä 1 ¦æ, 
²Ä 28 ­ÓÄæ¦ì: 
PLS-00103: µo²{¤F²Å¸¹ ")" ·í±zµ¥«Ý¤U¦C¨Æ¶µ¤§¤@µo¥Í®É¡G
 := . ( @ % ;
²Å¸¹ "(" ¨ú¥N¤F ")" ¤~¥i¥HÄ~Äò§@·~¡C
 in /home/httpd/htdocs/veryWed/php/modules//class/dataPack2.class on line 96
[Fri Feb  9 10:01:06 2001] [error] PHP Warning:  failed to rollback outstanding 
transactions!: ORA-00022: ¶¥¬q§@·~ ID µL®Ä; µLªk¦s¨ú
 in /home/httpd/htdocs/veryWed/php/modules//component/searchArticle_long on line 32
[Fri Feb  9 10:01:21 2001] [error] PHP Warning:  OCIStmtExecute: ORA-00022: ¶¥¬q§@·~ 
ID µL®Ä; µLªk¦s¨ú
 in /home/httpd/htdocs/veryWed/php/modules//class/dataPack2.class on line 38
[Fri Feb  9 10:01:21 2001] [error] PHP Warning:  OCIFetchInto: OCI_INVALID_HANDLE in 
/home/httpd/htdocs/veryWed/php/modules//class/dataPack2.class on line 41
[Fri Feb  9 10:01:21 2001] [error] PHP Warning:  OCIStmtExecute: ORA-06550: ²Ä 1 ¦æ, 
²Ä 28 ­ÓÄæ¦ì: 
PLS-00103: µo²{¤F²Å¸¹ ")" ·í±zµ¥«Ý¤U¦C¨Æ¶µ¤§¤@µo¥Í®É¡G
 := . ( @ % ;
²Å¸¹ "(" ¨ú¥N¤F ")" ¤~¥i¥HÄ~Äò§@·~¡C
 in /home/httpd/htdocs/veryWed/php/modules//class/dataPack2.class on line 96
[Fri Feb  9 10:01:21 2001] [error] PHP Warning:  failed to rollback outstanding 
transactions!: ORA-00022: ¶¥¬q§@·~ ID µL®Ä; µLªk¦s¨ú
 in /home/httpd/htdocs/veryWed/php/modules//component/searchArticle_long on line 32


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


Re: [PHP] PHP4.0.4pl1 with Apache 1.3.17/SSL and Frontpage ...

2001-02-08 Thread The Hermit Hacker

On Thu, 8 Feb 2001, Larry Rosenman wrote:

> * The Hermit Hacker <[EMAIL PROTECTED]> [010208 21:12]:
> >
> > Simple ... everything compiles cleanly, but as soon as I try and run it, I
> > get:
> >
> > pegasus# /usr/local/apache/bin/httpsd
> > httpsd: module "mod_php4.c" is not compatible with this version of Apache.
> > Please contact the vendor for the correct version.
> >
> > The only thing I can find on the list archives deals with a -DEPI switch,
> -DEAPI
>
> Are you using Ports?

Nope, compiling straight from source ...

my configure is:

#!/bin/tcsh
setenv CFLAGS "-I/usr/local/include/gd"
./configure \
--enable-force-cgi-redirect \
--disable-debug \
--with-jpeg-dir=/usr/local \
--with-tiff-dir=/usr/local \
--enable-ftp \
--without-mysql \
--with-gd \
--with-pgsql \
--with-gdbm \
--enable-track-vars \
--enable-sysvsem \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-sysvshm

Does anything look wrong with that?

I build apache 1.3.17 as follows, just in case I screwed something up
there ...

#!/bin/sh
./configure \
--prefix=/usr/local/apache \
--with-layout=Apache \
--enable-module=auth_dbm \
--enable-module=log_agent \
--enable-module=log_referer \
--enable-module=expires \
--enable-module=headers \
--enable-module=rewrite \
--enable-suexec \
--suexec-caller=nobody  \
--add-module=mod_frontpage.c \
--enable-rule=SHARED_CORE --enable-module=so



-- 
PHP General Mailing List (http://www.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] Web Based Project Management Tools

2001-02-08 Thread David Robley

On Fri,  9 Feb 2001 11:46, Nathan Cook wrote:
> Do any of you know of a comprehensive web-based project management tool
> written in php?
>
> Thank You!
> .:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
> Systems & Network Administrator :: Programmer
> [ phone - 208.343.3110 ][ pager - 208.387.9983 ]

Keystone? http://www.stonekeep.com/keystone.php3

It and some others are listed on the projects page of your favourite PHP 
mirror.

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

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




Re: [PHP] indexing text

2001-02-08 Thread David Robley

On Fri,  9 Feb 2001 13:45, Steve Werby wrote:
> "Robert Mena" <[EMAIL PROTECTED]> wrote:
> > Besides htdig is there any other solution (perhaps
> > written in php) to index a content of a TEXT field in
> > order to have an "altavista-like" search engine for my
> > use ?
>
> mnoGoSearch (formerly udmsearch) will do the trick.  It's written in
> C++, it's very powerful, highly configurable and has optional PHP or
> Perl front-ends.  I use it to index and search internal and external
> sites, but you can use it to index a database directly.  Search google
> for the URL.


It's http://search.mnogo.ru/

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

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




[PHP] echo vs print

2001-02-08 Thread Todd Cary

I have "Profession PHP Programming" and I see that echo() and print()
are used alomst interchangeably.  When should each one be used?

Also, I see "http://www.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] indexing text

2001-02-08 Thread Steve Werby

"Robert Mena" <[EMAIL PROTECTED]> wrote:
> Besides htdig is there any other solution (perhaps
> written in php) to index a content of a TEXT field in
> order to have an "altavista-like" search engine for my
> use ?

mnoGoSearch (formerly udmsearch) will do the trick.  It's written in C++,
it's very powerful, highly configurable and has optional PHP or Perl
front-ends.  I use it to index and search internal and external sites, but
you can use it to index a database directly.  Search google for the URL.

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


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




Re: [PHP] PHP4.0.4pl1 with Apache 1.3.17/SSL and Frontpage ...

2001-02-08 Thread Larry Rosenman

* The Hermit Hacker <[EMAIL PROTECTED]> [010208 21:12]:
> 
> Simple ... everything compiles cleanly, but as soon as I try and run it, I
> get:
> 
> pegasus# /usr/local/apache/bin/httpsd
> httpsd: module "mod_php4.c" is not compatible with this version of Apache.
> Please contact the vendor for the correct version.
> 
> The only thing I can find on the list archives deals with a -DEPI switch,
-DEAPI

Are you using Ports? 


> so I tried that to see if it helps, and it doesn't ...
> 
> Help?
> 
> Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
> Systems Administrator @ hub.org
> primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

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




[PHP] PHP4.0.4pl1 with Apache 1.3.17/SSL and Frontpage ...

2001-02-08 Thread The Hermit Hacker


Simple ... everything compiles cleanly, but as soon as I try and run it, I
get:

pegasus# /usr/local/apache/bin/httpsd
httpsd: module "mod_php4.c" is not compatible with this version of Apache.
Please contact the vendor for the correct version.

The only thing I can find on the list archives deals with a -DEPI switch,
so I tried that to see if it helps, and it doesn't ...

Help?

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org


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




Re: [PHP] Files only available via HTTPS

2001-02-08 Thread Jason Brooke

http://www.modssl.org/docs/2.6/ssl_reference.html#ToC22

jason


- Original Message -
From: "Daniel Tryba" <[EMAIL PROTECTED]>
To: "Michael Conley" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, February 09, 2001 12:24 PM
Subject: Re: [PHP] Files only available via HTTPS


> On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley wrote:
> > I have several PHP files that I only want users to be able to access via
> > HTTPS.  How can I control that on an Apache 1.3.14 server running on
RedHat
> > 7?  I have openssl and mod_ssl working fine.  Currently, I can access
all of
> > the files on my site via either http or https.  I want to keep certain
files
> > (with interesting information) from being accessed via http.  I realize
this
> > isn't really a PHP question, but I have no idea how to do this.
>
> You could check on which port the request was made for the php file.
> https is usually port 443
>
> if ($SERVER_PORT!=443)
> header("Location: https://server/$PHP_SELF");
>
> --
>
> Daniel Tryba
>
> --
> PHP General Mailing List (http://www.php.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] Files only available via HTTPS

2001-02-08 Thread Christopher Allen




> On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley wrote:
> > I have several PHP files that I only want users to be able to access via
> > HTTPS.

One way is to place these files only where the https server can see them.


heres an example:

.
.


DocumentRoot "/secure/secure_dir1"
ServerName server.xxx.net




Of course if your non secure server knows about /secure/ its still possible
for someone to see them. In this example use diff doc_roots.


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




[PHP] indexing text

2001-02-08 Thread Robert Mena

Hi, i am trying to store some digital books under
mysql and give a chapter/page access using php as
scripting lanaguage.

Besides htdig is there any other solution (perhaps
written in php) to index a content of a TEXT field in
order to have an "altavista-like" search engine for my
use ?

I've read that the new version of mysql does
"full-text-indexing" whatever that means...

thanks.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  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] Files only available via HTTPS

2001-02-08 Thread Aaron Tuller

HTTPS is set to "on", at least on my Apache when SSL is enabled. 
it's undefined when it's not.

this is what I would do (untested code below):

function UsingHTTPS()
{
$HTTPS = getenv("HTTPS");

return ($HTTPS == "on");
}

function UsingHTTP() // might be useful?
{
return !UsingHTTPS();
}


function ChangeTransport($transport)
{
$vars = array("REQUEST_URI", "SERVER_NAME");

foreach ($vars as $var)
{
$$var = getenv("$var");
}

$newURL = "Location: $transport://".$SERVER_NAME.$REQUEST_URI;
header($newURL);
exit();
}

and then do a:

if (!UsingHTTPS())
{
ChangeTansport("https");
}

-aaron

At 4:29 PM -0800 2/1/01, Michael Conley wrote:
>I have several PHP files that I only want users to be able to access via
>HTTPS.  How can I control that on an Apache 1.3.14 server running on RedHat
>7?  I have openssl and mod_ssl working fine.  Currently, I can access all of
>the files on my site via either http or https.  I want to keep certain files
>(with interesting information) from being accessed via http.  I realize this
>isn't really a PHP question, but I have no idea how to do this.
>
>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] Searching HTML file for tags

2001-02-08 Thread Tyler Longren

Ah ha!  So i see.  :)

thanks.

-Original Message-
From: Mukul Sabharwal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 8:21 PM
To: Tyler Longren; [EMAIL PROTECTED]
Subject: Re: [PHP] Searching HTML file for  tags


Hi,

You've forgot to put fread() :

';

$data = fread($file, filesize('closings.html'));

if
(eregi('StratfordClosed',
$data))

echo 'Stratford closed';

else

echo 'Stratfor open';

?>

--- Tyler Longren <[EMAIL PROTECTED]> wrote: >
Hello everybody,
> 
> Here's my code:
> 
>  $file = fopen("closings.html", "r");
> 
> if (!$file) {
>   print "Error getting file";
> }
> else {
>   print "Closings.html has been gotten";
>   if
>
(eregi("StratfordClosed",$file))
> {
>   print "Stratford Closed";
>   }
>   else {
>   print "Stratford Open";
>   }
> }
> ?>
> 
> The file closings.html has tables with weather
> related closings.  I want to
> search closings.html for this line:
> StratfordClosed
> 
> If that line is found, it prints "Stratford Closed",
> if it finds that line,
> it prints "Stratford Open".  I'm not sure that the
> file is even open all the
> way.  Thanks everyone!
> 
> Regards,
> Tyler
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
[EMAIL PROTECTED]


=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  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]


-- 
PHP General Mailing List (http://www.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] Files only available via HTTPS

2001-02-08 Thread Daniel Tryba

On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley wrote:
> I have several PHP files that I only want users to be able to access via
> HTTPS.  How can I control that on an Apache 1.3.14 server running on RedHat
> 7?  I have openssl and mod_ssl working fine.  Currently, I can access all of
> the files on my site via either http or https.  I want to keep certain files
> (with interesting information) from being accessed via http.  I realize this
> isn't really a PHP question, but I have no idea how to do this.

You could check on which port the request was made for the php file. 
https is usually port 443

if ($SERVER_PORT!=443)
header("Location: https://server/$PHP_SELF");

-- 

Daniel Tryba

-- 
PHP General Mailing List (http://www.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] Searching HTML file for tags

2001-02-08 Thread Mukul Sabharwal

Hi,

You've forgot to put fread() :

';

$data = fread($file, filesize('closings.html'));

if
(eregi('StratfordClosed',
$data))

echo 'Stratford closed';

else

echo 'Stratfor open';

?>

--- Tyler Longren <[EMAIL PROTECTED]> wrote: >
Hello everybody,
> 
> Here's my code:
> 
>  $file = fopen("closings.html", "r");
> 
> if (!$file) {
>   print "Error getting file";
> }
> else {
>   print "Closings.html has been gotten";
>   if
>
(eregi("StratfordClosed",$file))
> {
>   print "Stratford Closed";
>   }
>   else {
>   print "Stratford Open";
>   }
> }
> ?>
> 
> The file closings.html has tables with weather
> related closings.  I want to
> search closings.html for this line:
> StratfordClosed
> 
> If that line is found, it prints "Stratford Closed",
> if it finds that line,
> it prints "Stratford Open".  I'm not sure that the
> file is even open all the
> way.  Thanks everyone!
> 
> Regards,
> Tyler
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
[EMAIL PROTECTED]


=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  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]




[PHP] Searching HTML file for tags

2001-02-08 Thread Tyler Longren

Hello everybody,

Here's my code:

";
if (eregi("StratfordClosed",$file)) {
print "Stratford Closed";
}
else {
print "Stratford Open";
}
}
?>

The file closings.html has tables with weather related closings.  I want to
search closings.html for this line:
StratfordClosed

If that line is found, it prints "Stratford Closed", if it finds that line,
it prints "Stratford Open".  I'm not sure that the file is even open all the
way.  Thanks everyone!

Regards,
Tyler


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




[PHP] Mysql connection problems

2001-02-08 Thread Felipe Lopes

When I try to connect mysql with the following code:





MySql Connection








The following error appear:

Warning: MySQL Connection Failed: Can't connect to MySQL server on 
'localhost' (10061) in c:\arquivos de
programas\apache group\apache\htdocs\db_connect.php on line 3
Couldn't connect.

What's going on here wrong??
Thank you

Felipe Lopes
MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
Faça já o seu. É gratuito!!!

-- 
PHP General Mailing List (http://www.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] fopen warning error message

2001-02-08 Thread Chris Lee

@ sign is your friend.

if ($file = @fopen('...', 'r'))
{

} else
{

}


--



Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]



""Ade Smith"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
>
> I am trying to open a file which exists remotely(code works), but there
may
> be times when it may not exist, however when I change the url so that it
> purposely doesn't exist to test this situation I get an error message like
> the following:
>
> Warning: fopen("","r") - No error in test.php on line 5
>
> How can I prevent this error message appearing and let my error checking
> below deal with it ?
> Here is my code:
>
>   if(!$file = fopen("", "r")):
>echo"could not open remote file";
>   else:
> 
>  endif;
>
>
> Many Thanks
>
> Ade
> -
> [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] To The Hacker: CodeBoy

2001-02-08 Thread Chris Lee

I would have to agree with you Johnathan, more of a browse then a hack. I
think to qualify this as a hack you'd need a little more security on
rswfires side no? and to call it a crack I think you would have to accually
do something malicous, you didnt.

Sorry rswfire, bump you security a little higher then

username : [blank]
password: [blank]

you leave your keys in a running auto and the doors unlocked, try talking to
an insurance agency... they wont cover you...

--



Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]




""Jonathan Sharp"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ok, I just checked my mail and found this thread... to clear this up...
>
> In one of your posts you posed a url to a script you were working on...and
I
> backed up a directory and it gave me a directory listing...one folder was
> /admin/ it gave another listing...then showed phpMyAdmin and then it gave
> your full db schema...no passwords or anything...i was able to insert a
> record...and a user to your mysql server... password is (abc123) that's
all
> i did...nothing else...and i'd hardly consider that a hack...more of a
> "browse"
>
> Cheers,
> -Jonathan
> aka: "Codeboy the *dangerous* hacker"
>
> > -Original Message-
> > From: Philip Olson [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 08, 2001 4:24 PM
> > To: James, Yz
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] To The Hacker: CodeBoy
> >
> >
> > > True, but none of which are applicable to me, as I've not
> > slandered, defamed
> > > or spoofed anything or anyone.  As far as hacking is concerned,
> > I wouldn't
> > > know my arse from my elbow :)
> >
> > just a fyi, my post had nothing to do with you.  or the other james
(which
> > that line you're referring too had to do with) but rather, that of the
> > person in question ("hacker").  but anyway, let's let this thread die.
> > it's time.
> >
> > Philip
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.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] ereg_replace with assoc array?

2001-02-08 Thread Jaxon

Thanks for the feedback!
 
>From the docs it appears that I can do this:

$string = file.tpl; //html mixed with {placeholders}

$array = fetch_mysql_array($result, MYSQL_ASSOC); //array of field => values

echo strtr($string, $array); //passing only 2 arguments means 2nd is array

one thing - I want to use special {} characters in my file.tpl.
Does anyone know if there is some way I can tell strtr to only evaluate
items in {} tag for replacing?

regards,
jaxon


On 2/8/01 5:49 PM, "Brad S. Jackson" <[EMAIL PROTECTED]> wrote:

> 
> 
> See the documentation for strtr and preg_replace.
> 
> http://www.php.net/manual/en/html/function.strtr.html
> http://www.php.net/manual/en/html/function.preg-replace.html
> 
> 
> "Jaxon" <[EMAIL PROTECTED]> wrote:
> Hi
> 
> Can I do this
> 
> $string = file.tpl;
> 
> while (list($pattern, $replacement) = each($array)) {
> ereg_replace ($pattern, $replacement, $string);
> }
> 
> echo $string;
> 
> 
> 
> note some assumptions below:
> 
> $array contains an assoc array:
> 
> first  foo
> second bar
> third  rab
> fourth oof
> 
> file.tpl is this:
> 
> some html {first}
> more html {second}
> even more html {third}
> lots more html {fourth}
> 
> This seems like a slow way to do this...
> any advice is welcome!
> 
> tia!
> jaxon
> 
> 
> 


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




RE: [PHP] Dynamic Drop-down list

2001-02-08 Thread Jason Murray

> more clearly, if multiple instances occur, any new instance 
> of SELECTED will supersede any previous instance.

In MSIE, yeah. Netscape ignores any subsequent SELECTED's.

Jason

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




RE: [PHP] Dynamic Drop-down list

2001-02-08 Thread DanO


sorry for the spam, sometime's i'm stupid  ;)

yes nathan is indeed correct that SELECTED should only be used once in an
index, on the item you want to show up first.

more clearly, if multiple instances occur, any new instance of SELECTED will
supersede any previous instance.

DanO

-Original Message-
From: DanO [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 5:25 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Dynamic Drop-down list



wrong.

you can put it on any element in the list.  cut'n'paste and try for
yourself:





selected



DanO

-Original Message-
From: Nathan Cook [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 5:10 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Dynamic Drop-down list


Moreover, you can put SELECTED only on the item you want to show up first.

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
- Original Message -
From: "DanO" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 08, 2001 6:05 PM
Subject: RE: [PHP] Dynamic Drop-down list


>
> the 'SELECTED' attribute will select an item in a dropdown list.
>
> by default, with no SELECTED attribute, the first item will be shown and
> selected.
>
> make sense?
>
> DanO
>
>
> -Original Message-
> From: Todd Cary [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 5:00 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Dynamic Drop-down list
>
>
> I create a Drop-down from a DB table.  All works as expected *except*
> the default item (the one showing to the surfer) is  the last in the
> list.  Is there a way I can have the first item show?
>
> Todd
>
>   /* Make a drop-down */
>function make_dropdown($ddName, $itemList, $first) {
>  if (count($itemList)) {
>echo("");
>if ($first) {
>  echo('' . $first);
>};
>while (list ($key, $val) = each ($itemList)) {
>echo('' . $val);
>};
>echo("");
>  };
>};
>
>
>
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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


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

2001-02-08 Thread DanO


wrong.

you can put it on any element in the list.  cut'n'paste and try for
yourself:





selected



DanO

-Original Message-
From: Nathan Cook [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 5:10 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Dynamic Drop-down list


Moreover, you can put SELECTED only on the item you want to show up first.

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
- Original Message -
From: "DanO" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 08, 2001 6:05 PM
Subject: RE: [PHP] Dynamic Drop-down list


>
> the 'SELECTED' attribute will select an item in a dropdown list.
>
> by default, with no SELECTED attribute, the first item will be shown and
> selected.
>
> make sense?
>
> DanO
>
>
> -Original Message-
> From: Todd Cary [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 5:00 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Dynamic Drop-down list
>
>
> I create a Drop-down from a DB table.  All works as expected *except*
> the default item (the one showing to the surfer) is  the last in the
> list.  Is there a way I can have the first item show?
>
> Todd
>
>   /* Make a drop-down */
>function make_dropdown($ddName, $itemList, $first) {
>  if (count($itemList)) {
>echo("");
>if ($first) {
>  echo('' . $first);
>};
>while (list ($key, $val) = each ($itemList)) {
>echo('' . $val);
>};
>echo("");
>  };
>};
>
>
>
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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


-- 
PHP General Mailing List (http://www.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] Dynamic Drop-down list

2001-02-08 Thread Todd Cary

Many thanks!  Works like a champ now...

Todd

--
Todd Cary
Ariste Software
[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] To The Hacker: CodeBoy

2001-02-08 Thread Jonathan Sharp

P.S. in your phpMyAdmin config.inc.php file line 13 set:
$cfgServers[1]['adv_auth'] = true;
then you won't have any problems...

-codeboy

> -Original Message-
> From: rswfire [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 3:20 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP] To The Hacker: CodeBoy
> 
> 
> Whatever, James.
> 
> The hackers name is Jonathan Sharp.  He is a
> regular member of this mailing list.  I do
> believe that people here would like to know they
> have a hacker on their hands, don't you think? 
> It would appear the friendly Jonathan has another
> side to himself...
> 
> Codeboy:
> Jonathan Sharp
> Director of Technology - Imprev Inc.
> Renwick Development Group - Flyerware
> [EMAIL PROTECTED]
> 
> 
> 
> --- James Moore <[EMAIL PROTECTED]> wrote:
> > 
> > >
> > > Today I noticed an entry in my database with
> > the
> > > username "codeboy" and the password "hacked"
> > in
> > > one of the authorization tables I have
> > created.
> > > I am shocked that someone could be so
> > malicious
> > > and insensitive!  I am programming locally; I
> > > realize there may be some security
> > > vulnerabilities during this time, but when I
> > go
> > > live with my network this will not be the
> > case.
> > > If any further attempts are made to hack into
> > my
> > > system I will clearly take the time to
> > retaliate
> > > against you.  Let this be your only warning.
> > >
> > 
> > This is not the place to take these issues up.
> > Please email privatly and
> > complain to the appropriate authrities, the
> > PHP-General list is not the
> > place for this.
> > 
> > James
> > --
> > James Moore
> > PHP QA Team
> > [EMAIL PROTECTED]
> > 
> 
> 
> =
> =
>  [ rswfire ]
> 
>   http://rswfire.swifte.net/
>   http://profiles.yahoo.com/rswfire
> 
> =
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  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]




[PHP] Web Based Project Management Tools

2001-02-08 Thread Nathan Cook

Do any of you know of a comprehensive web-based project management tool
written in php?

Thank You!
.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]


-- 
PHP General Mailing List (http://www.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] To The Hacker: CodeBoy

2001-02-08 Thread Jonathan Sharp

Ok, I just checked my mail and found this thread... to clear this up...

In one of your posts you posed a url to a script you were working on...and I
backed up a directory and it gave me a directory listing...one folder was
/admin/ it gave another listing...then showed phpMyAdmin and then it gave
your full db schema...no passwords or anything...i was able to insert a
record...and a user to your mysql server... password is (abc123) that's all
i did...nothing else...and i'd hardly consider that a hack...more of a
"browse"

Cheers,
-Jonathan
aka: "Codeboy the *dangerous* hacker"

> -Original Message-
> From: Philip Olson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 4:24 PM
> To: James, Yz
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] To The Hacker: CodeBoy
>
>
> > True, but none of which are applicable to me, as I've not
> slandered, defamed
> > or spoofed anything or anyone.  As far as hacking is concerned,
> I wouldn't
> > know my arse from my elbow :)
>
> just a fyi, my post had nothing to do with you.  or the other james (which
> that line you're referring too had to do with) but rather, that of the
> person in question ("hacker").  but anyway, let's let this thread die.
> it's time.
>
> Philip
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
PHP General Mailing List (http://www.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] Dynamic Drop-down list

2001-02-08 Thread Nathan Cook

Moreover, you can put SELECTED only on the item you want to show up first.

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
- Original Message - 
From: "DanO" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 08, 2001 6:05 PM
Subject: RE: [PHP] Dynamic Drop-down list


> 
> the 'SELECTED' attribute will select an item in a dropdown list.
> 
> by default, with no SELECTED attribute, the first item will be shown and
> selected.
> 
> make sense?
> 
> DanO
> 
> 
> -Original Message-
> From: Todd Cary [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 5:00 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Dynamic Drop-down list
> 
> 
> I create a Drop-down from a DB table.  All works as expected *except*
> the default item (the one showing to the surfer) is  the last in the
> list.  Is there a way I can have the first item show?
> 
> Todd
> 
>   /* Make a drop-down */
>function make_dropdown($ddName, $itemList, $first) {
>  if (count($itemList)) {
>echo("");
>if ($first) {
>  echo('' . $first);
>};
>while (list ($key, $val) = each ($itemList)) {
>echo('' . $val);
>};
>echo("");
>  };
>};
> 
> 
> 
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


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




Re: [PHP] Mail-Encryption

2001-02-08 Thread Richard Lynch

I don't know...

Never used safe mode.

I *think* you would have to have all the files under your web-tree, but that
might make gpg rather unsuitable.  If your private key-ring file is in your
web-tree, it's maybe just a little too exposed...

Maybe you can create a custome keyring for just the web-usage of public keys
only...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Rodolfo Gonzalez Gonzalez <[EMAIL PROTECTED]>
To: Richard Lynch <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 3:42 PM
Subject: Re: [PHP] Mail-Encryption


> On Thu, 8 Feb 2001, Richard Lynch wrote:
>
> > You can find a long-winded post from me a year or two ago about my
trials
> > and tribulations (and a *lot* of help from others to get me going).
>
> I found a pgp class and took parts of it to work with gpg, but it doesn't
> work in safe-mode. I'm using this pipe to pass the data to encrypt to gpg:
>
>$comm = "echo '$data' | $this->gpg-commmand";
>$fd = popen("$comm","r");
>
>if (!$fd) {
>   return -2;
>}
>
>$encrypted = "";
>while (!feof($fd)) {
>   $encrypted .= fgets($fd,4096);
>}
>
>pclose($fd);
>
> This returns echoes the part after the | in safe-mode. How could this work
> in this mode?.
>
> Thank you.
> Rodolfo.
>
>


-- 
PHP General Mailing List (http://www.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] Dynamic Drop-down list

2001-02-08 Thread DanO


the 'SELECTED' attribute will select an item in a dropdown list.

by default, with no SELECTED attribute, the first item will be shown and
selected.

make sense?

DanO


-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Dynamic Drop-down list


I create a Drop-down from a DB table.  All works as expected *except*
the default item (the one showing to the surfer) is  the last in the
list.  Is there a way I can have the first item show?

Todd

  /* Make a drop-down */
   function make_dropdown($ddName, $itemList, $first) {
 if (count($itemList)) {
   echo("");
   if ($first) {
 echo('' . $first);
   };
   while (list ($key, $val) = each ($itemList)) {
   echo('' . $val);
   };
   echo("");
 };
   };



--
Todd Cary
Ariste Software
[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] security help

2001-02-08 Thread Thor M. Steindorsson

SAFE MODE!!

That's exactly what I was looking for...
It did the trick.
Thanks Chris.

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 4:18 PM
To: php
Subject: Re: [PHP] security help


If you include a file as a link, so the browser sees:
www.myserver.com/sercuredir/image.jpg.
Than yes, you will be asked for a user and pass.

If you include the file in the code, like including another script file, or
reading the raw image data and outputting it, then .htaccess will be
ignored.

Basicaly, if you don't have safe mode php on, then using include, the code
and read any file that the webserver id has permission for.

> > > In addition,
> > >
> > > (if using .htaccess) They would only be able to read the .htpasswd
from
> > > public directory if they had first authorised themselves.  The browser
> will
> > > prompt them to identify before it allows files from a protected
> directory to
> > > be included.
> > >
> >
> > James,
> >
> > are you sure about this? Afaik, no user authentication applies to PHP
> > include() calls. This would require PHP to integrate much closer with
> > Apache than I think it does (and makes sense).
>
> Hi Ben,
>
> I'm not positive, (btw, what does Afaik mean?), but I'd assume any request
> to files that are inside a directory that has an htaccess file would be
> ignored by anything until the username and password have been included
(I've
> used a PHP include on files before, which refer to files such as jpegs and
> gifs that reside in a protected directory, and I've run into the problem
of
> having to authenticate before the images are displayed).
>
> There's a good chance I'm wrong, but I'll be sure to double check tomorrow
> morning.
>
> On another note, I seem to have problems with opendir() and readdir()
(which
> one of the two I'm not sure).  A simple script I've written will list all
> files in a directory I specify on one server, yet the same script (with
the
> document root changed accordingly) will return  nothing with the other.
> Both servers are running the same version of PHP (4.02).  It's probably
> something simple I've missed, though I'm sure that the CHMOD settings are
> the same, and I'm getting no script errors.  Any ideas?
>
> James.
>
>
>
> --
> PHP General Mailing List (http://www.php.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] Dynamic Drop-down list

2001-02-08 Thread Todd Cary

I create a Drop-down from a DB table.  All works as expected *except*
the default item (the one showing to the surfer) is  the last in the
list.  Is there a way I can have the first item show?

Todd

  /* Make a drop-down */
   function make_dropdown($ddName, $itemList, $first) {
 if (count($itemList)) {
   echo("");
   if ($first) {
 echo('' . $first);
   };
   while (list ($key, $val) = each ($itemList)) {
   echo('' . $val);
   };
   echo("");
 };
   };



--
Todd Cary
Ariste Software
[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] preg_match() vs. preg_match_all()

2001-02-08 Thread CC Zona

What is the functional difference between preg_match() and 
preg_match_all()?  I've puzzled over the manual descriptions for both, 
checked the list archives and faqts.com, and still can't figure out why 
they seem to return different results for the same pattern searches.

TIA

-- 
CC

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




Re: [PHP] installing PHP 4.0.4pl1 on Redhat 6.2

2001-02-08 Thread Michael Hall



> Can you install PHP 4.0.4pl1 on Redhat 6.2 -  

Yes


Also, apache will be installed
> and configured with the installation of Redhat 6.2 so is PHP 4.0.4pl1 still
> compatible with Redhat 6.2 and whatever version of Apache gets installed
> with it??

Yes. Sort of. You need to figure out what type of install you want
to do (most people install PHP as an Apache module). Then you need to
decide on using rpms or compiling from source. 

I find it's best to recompile both Apache and PHP at
the same time. I don't know about PHP4 rpms ... never tried them.

If you do try an rpm and want PHP as an Apache module, look for the
mod_php rpm.

> 
> Does anybody know about MySQL aswell?

Yes. MySQL will work like a champion on RedHat 6.2. MySQL rpms are
good and the way to go.

Mick


-- 
PHP General Mailing List (http://www.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] To The Hacker: CodeBoy

2001-02-08 Thread Philip Olson

> True, but none of which are applicable to me, as I've not slandered, defamed
> or spoofed anything or anyone.  As far as hacking is concerned, I wouldn't
> know my arse from my elbow :)

just a fyi, my post had nothing to do with you.  or the other james (which
that line you're referring too had to do with) but rather, that of the
person in question ("hacker").  but anyway, let's let this thread die.
it's time.

Philip


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




Re: [PHP] security help

2001-02-08 Thread Chris

If you include a file as a link, so the browser sees:
www.myserver.com/sercuredir/image.jpg.
Than yes, you will be asked for a user and pass.

If you include the file in the code, like including another script file, or
reading the raw image data and outputting it, then .htaccess will be
ignored.

Basicaly, if you don't have safe mode php on, then using include, the code
and read any file that the webserver id has permission for.

> > > In addition,
> > >
> > > (if using .htaccess) They would only be able to read the .htpasswd
from
> > > public directory if they had first authorised themselves.  The browser
> will
> > > prompt them to identify before it allows files from a protected
> directory to
> > > be included.
> > >
> >
> > James,
> >
> > are you sure about this? Afaik, no user authentication applies to PHP
> > include() calls. This would require PHP to integrate much closer with
> > Apache than I think it does (and makes sense).
>
> Hi Ben,
>
> I'm not positive, (btw, what does Afaik mean?), but I'd assume any request
> to files that are inside a directory that has an htaccess file would be
> ignored by anything until the username and password have been included
(I've
> used a PHP include on files before, which refer to files such as jpegs and
> gifs that reside in a protected directory, and I've run into the problem
of
> having to authenticate before the images are displayed).
>
> There's a good chance I'm wrong, but I'll be sure to double check tomorrow
> morning.
>
> On another note, I seem to have problems with opendir() and readdir()
(which
> one of the two I'm not sure).  A simple script I've written will list all
> files in a directory I specify on one server, yet the same script (with
the
> document root changed accordingly) will return  nothing with the other.
> Both servers are running the same version of PHP (4.02).  It's probably
> something simple I've missed, though I'm sure that the CHMOD settings are
> the same, and I'm getting no script errors.  Any ideas?
>
> James.
>
>
>
> --
> PHP General Mailing List (http://www.php.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] To The Hacker: CodeBoy

2001-02-08 Thread James, Yz

> Your momma pays full commission!
>
> (sorry, couldn't resist)

It's OK, I get referral fees :)



-- 
PHP General Mailing List (http://www.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] script doesn't work in netscape

2001-02-08 Thread Scott Brown


>Welcome back to the ColoradoPTAC website,  $row['company']; ?>.
> Please click  target="_top">here to
> complete the login process and begin using the site.
> 
> 
> 
> 

I'm thinking that should be 

Netscape hates malformed tables... and IE is too happy to fix your problems
for you.


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




RE: [PHP] To The Hacker: CodeBoy

2001-02-08 Thread Chad Day

Your momma pays full commission!

(sorry, couldn't resist)

>As far as hacking is concerned, I wouldn't know my arse from my elbow :)
>
>James

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

2001-02-08 Thread James, Yz

> > Whatever, James.
>
> Also, consider this word :
>
> sue
>
> As well as :
>
> defamation of character
>
> And also   :
>
> Libel and Slander
>
> And lastly :
>
> Spoof
>
> All should be considered before posting anything anywhere.  Especially a
> public mailing list.  It's important to be careful with this sort of
> thing, even if it's blindingly true ...

True, but none of which are applicable to me, as I've not slandered, defamed
or spoofed anything or anyone.  As far as hacking is concerned, I wouldn't
know my arse from my elbow :)

James



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




[PHP] script doesn't work in netscape

2001-02-08 Thread Erik Boles

When people log into the website in question, it passes the user ID and
password to the login.php3 file, (included below).  It works just fine in
IE, but in Netscape (tested on 4.7) it gives a blank white screen.  If we
view source, all of the source code is there, and it shows no errors (errors
flash in the source code in netscape) but it will not display in the screen.

Any idea what the problem is?  Is it in the code I have below?

Any help greatly appreciated.

-login.php3---


");
 //print ("Id retrieved from database is");
 //print $row["userid"];
 //print ("");

 //test section end

if ($row["userid"] == $userid)
{
 if ($row["active"] =="YES")
 {
   ?>







http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0"
   ID=ptac WIDTH=393 HEIGHT=272 ALIGN=top>




http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash">

 
   

   
   
   Welcome back to the ColoradoPTAC website, .
Please click here to
complete the login process and begin using the site.








Your account has temporarily been disabled by the system
administrator. If you
feel this was done by mistake, please send an email to
mailto:[EMAIL PROTECTED]">
[EMAIL PROTECTED]
to resolve the issue.
We apologize for any inconvenience this has caused.



  
  
  
  Either you do not currently have a membership with us or you have entered
  an invalid Member ID/Password combination.
  Please click here to
  join-OR-Click here to try again.
  
  
  


--login.php3


Erik


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

2001-02-08 Thread Chris Hayes

Hello Yui,
I do not really understand your question.

> initial condition
> 1)  three are many *html in my SQL ex:xxx.html,and yyy.html 
> 2)I have domain ex: abc (ex: http://www.abc.com)
> 3)database  name : aaa
> 4)table name :bbb

How is xxx.html in the SQL? 
 
> I want to try next step.
> when I type in URL from brouze ,ex http://www.abc.com/xxx.html .
> I can get xxx.html from my SQL.
> when I type in URL from brouze ,ex http://www.abc.com/yyy.html
> I can get yyy.html from my SQL.
> How can I do this?
> Is it posible to create it?

If you want PHP to work in .html, you must 
  a) tell the internet server (IIS or Apache or PWS or ?? ) that files 
with the name something.html (in stead of something.php) 
have to be worked on (parsed) by PHP. 
How to do that? That is different for every internet server.
or  
 b) if you have an Apache webserver you can somewhere filter URL's so that 
every URL is changed from 
http://www.abc.com/yyy.html
to
http://www.abc.com/file.php?id=yyy.html
This is something for experienced people
or
 c) if you want too use php it is the easiest to tell users not to use 
http://www.abc.com/yyy.html
but 
http://www.abc.com/file.php?id=
because then in you rphp file called file.php you have the variable $id 
with the value '' and then you can buildthe page yyy from your MySQL.

good luck,
Chris





--  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --


 

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




[PHP] installing PHP 4.0.4pl1 on Redhat 6.2

2001-02-08 Thread Scott Mebberson

Hi Guys,

Can you install PHP 4.0.4pl1 on Redhat 6.2 -  Also, apache will be installed
and configured with the installation of Redhat 6.2 so is PHP 4.0.4pl1 still
compatible with Redhat 6.2 and whatever version of Apache gets installed
with it??

Does anybody know about MySQL aswell?

Thanks Guys







-- 
PHP General Mailing List (http://www.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] To The Hacker: CodeBoy

2001-02-08 Thread Matt McClanahan

On Thu, Feb 08, 2001 at 03:19:52PM -0800, rswfire wrote:

> Whatever, James.
> 
> The hackers name is Jonathan Sharp.  He is a
> regular member of this mailing list.  I do
> believe that people here would like to know they
> have a hacker on their hands, don't you think? 

http://www.tuxedo.org/~esr/jargon/html/entry/hacker.html
http://www.tuxedo.org/~esr/jargon/html/entry/cracker.html

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

2001-02-08 Thread James, Yz

I've no idea what's wrong with this, and I'm a little tired to try and look
into it, but omit any username / password / server info from anything you
post anywhere that's accessible publicly! ;)

James.

""Marisol Díaz E."" <[EMAIL PROTECTED]> wrote in message
008301c09225$4ce07e80$[EMAIL PROTECTED]">news:008301c09225$4ce07e80$[EMAIL PROTECTED]...
Hi

Please help me

I don't knowk that is wrong, in this code, for ftp_fput
Don't copy the archive, when copy the archive , this has other extension,
and the size is 0kb.





Thanks.

Marisol Díaz E.




Marisol Díaz E.
Gerente de Aplicaciones Internet
Tecnopro Cía. Ltda. www.tecnopro.net
Pinta 236 y Rabida Edf. Alcatel of. 301
(593-2)508-722





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

2001-02-08 Thread James, Yz

> > In addition,
> >
> > (if using .htaccess) They would only be able to read the .htpasswd from
> > public directory if they had first authorised themselves.  The browser
will
> > prompt them to identify before it allows files from a protected
directory to
> > be included.
> >
>
> James,
>
> are you sure about this? Afaik, no user authentication applies to PHP
> include() calls. This would require PHP to integrate much closer with
> Apache than I think it does (and makes sense).

Hi Ben,

I'm not positive, (btw, what does Afaik mean?), but I'd assume any request
to files that are inside a directory that has an htaccess file would be
ignored by anything until the username and password have been included (I've
used a PHP include on files before, which refer to files such as jpegs and
gifs that reside in a protected directory, and I've run into the problem of
having to authenticate before the images are displayed).

There's a good chance I'm wrong, but I'll be sure to double check tomorrow
morning.

On another note, I seem to have problems with opendir() and readdir() (which
one of the two I'm not sure).  A simple script I've written will list all
files in a directory I specify on one server, yet the same script (with the
document root changed accordingly) will return  nothing with the other.
Both servers are running the same version of PHP (4.02).  It's probably
something simple I've missed, though I'm sure that the CHMOD settings are
the same, and I'm getting no script errors.  Any ideas?

James.



-- 
PHP General Mailing List (http://www.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] To The Hacker: CodeBoy

2001-02-08 Thread Philip Olson

> Whatever, James.

Also, consider this word :
   
sue

As well as :

defamation of character

And also   :

Libel and Slander

And lastly :

Spoof

All should be considered before posting anything anywhere.  Especially a
public mailing list.  It's important to be careful with this sort of
thing, even if it's blindingly true ...

Regards,

Philip


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




[PHP] fopen warning error message

2001-02-08 Thread Ade Smith

Hi

I am trying to open a file which exists remotely(code works), but there may
be times when it may not exist, however when I change the url so that it
purposely doesn't exist to test this situation I get an error message like
the following:

Warning: fopen("","r") - No error in test.php on line 5

How can I prevent this error message appearing and let my error checking
below deal with it ?
Here is my code:

  if(!$file = fopen("", "r")):
   echo"could not open remote file";
  else:

 endif;


Many Thanks

Ade
-
[EMAIL PROTECTED]
-




Re: [PHP] Cron + PHP

2001-02-08 Thread Website4S

Hi,

Yes just make the path lead to the file on your server.

Regards
Adrian

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




Re: [PHP] [Newbie] PHP Variables

2001-02-08 Thread James, Yz

// Index.php file.

//  Page header



// Page footer

...  Difficult to tell what's going wrong with just a url.

James.

> I thought you can pass variables in PHP as in CGI.
>
> http://www.xy.com/index.php?contents=HOME
>
> contents should be available as variable, but it does not seem to work.
Doe
> anyone has an idea why not?



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

2001-02-08 Thread Boian Bonev

bbonev  Thu Feb  8 15:31:00 2001 EDT

  Modified files:  
/php4/ext/vpopmail  php_vpopmail.c 
  Log:
  fixed SIGSEGV in vpopmail_auth_user when optional arg apop is not set
  
  
Index: php4/ext/vpopmail/php_vpopmail.c
diff -u php4/ext/vpopmail/php_vpopmail.c:1.7 php4/ext/vpopmail/php_vpopmail.c:1.8
--- php4/ext/vpopmail/php_vpopmail.c:1.7Wed Feb  7 09:47:59 2001
+++ php4/ext/vpopmail/php_vpopmail.cThu Feb  8 15:31:00 2001
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: php_vpopmail.c,v 1.7 2001/02/07 17:47:59 bbonev Exp $ */
+/* $Id: php_vpopmail.c,v 1.8 2001/02/08 23:31:00 bbonev Exp $ */
 
 /* TODO: move to config.m4 when support for old versions is ready or just
  * don't support rather old vpopmail. current version must bail out if
@@ -694,12 +694,13 @@
zval **password;
zval **apop;
struct passwd *retval;
+   int argc=ZEND_NUM_ARGS();
 
-   if (ZEND_NUM_ARGS() < 3 || ZEND_NUM_ARGS() > 4
+   if (argc < 3 || argc > 4
|| zend_get_parameters_ex(ZEND_NUM_ARGS(), &user, &domain, 
&password, &apop) == FAILURE)
WRONG_PARAM_COUNT;
 
-   if (ZEND_NUM_ARGS() > 3)
+   if (argc > 3)
convert_to_string_ex(apop);
 
convert_to_string_ex(user);
@@ -713,7 +714,7 @@
retval = vauth_user(Z_STRVAL_PP(user),
Z_STRVAL_PP(domain),
Z_STRVAL_PP(password),
-   Z_STRVAL_PP(apop));
+   (argc>3)?Z_STRVAL_PP(apop):"");
 
/* 
 * we do not set vpopmail_errno here - it is considered auth_user cannot fail; 
insted it does not auth



-- 
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] To The Hacker: CodeBoy

2001-02-08 Thread James, Yz

Many hackers now go about their business to notify (or even test)
administrators whether or not they've been up to no good.  It's possible
that you've mis-construed what he was up to.

Nevertheless, your complaints should really go to the correct authorities
(your server, the "hacker" and if necessary, beyond that), as opposed to
questions, which might include "I've got a security problem with PHP, what
can I do about it?"

James.

> The hackers name is Jonathan Sharp.  He is a
> regular member of this mailing list.  I do
> believe that people here would like to know they
> have a hacker on their hands, don't you think?
> It would appear the friendly Jonathan has another
> side to himself...
>
> Codeboy:
> Jonathan Sharp
> Director of Technology - Imprev Inc.
> Renwick Development Group - Flyerware
> [EMAIL PROTECTED]
>
>
>
> --- James Moore <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Today I noticed an entry in my database with
> > the
> > > username "codeboy" and the password "hacked"
> > in
> > > one of the authorization tables I have
> > created.
> > > I am shocked that someone could be so
> > malicious
> > > and insensitive!  I am programming locally; I
> > > realize there may be some security
> > > vulnerabilities during this time, but when I
> > go
> > > live with my network this will not be the
> > case.
> > > If any further attempts are made to hack into
> > my
> > > system I will clearly take the time to
> > retaliate
> > > against you.  Let this be your only warning.
> > >
> >
> > This is not the place to take these issues up.
> > Please email privatly and
> > complain to the appropriate authrities, the
> > PHP-General list is not the
> > place for this.
> >
> > James
> > --
> > James Moore
> > PHP QA Team
> > [EMAIL PROTECTED]
> >
>
>
> =
> =
>  [ rswfire ]
>
>   http://rswfire.swifte.net/
>   http://profiles.yahoo.com/rswfire
>
> =
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  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]
>



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




Re: [PHP] [Newbie] PHP Variables

2001-02-08 Thread Philip Olson

If register_globals is turned off, that will not work.  See :

http://www.php.net/manual/en/configuration.php#ini.register-globals

Check phpinfo()



For details on your settings, perhaps it is off.  Try :



And it should display : HOME : for you.

Regards,


Philip Olson
http://www.cornado.com/

On Thu, 8 Feb 2001, Steve Haemelinck wrote:

> I thought you can pass variables in PHP as in CGI.
> 
> http://www.xy.com/index.php?contents=HOME
> 
> contents should be available as variable, but it does not seem to work. Doe
> anyone has an idea why not?
> 
> 
> -- 
> PHP General Mailing List (http://www.php.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] Events in HTML with PHP

2001-02-08 Thread Toby Butzon

Nope, this won't work. PHP is stricly server side; only JavaScript and
other client side languages are capable of being called based on an
event (as opposed to an HTTP request).

--toby

Francesco Rossi wrote:
> 
> Hi,
> How i can use the event OnChange of a tag  for run a php script ?
> Es. 
> Thank.
> 
> --
> PHP General Mailing List (http://www.php.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] To The Hacker: CodeBoy

2001-02-08 Thread rswfire

Whatever, James.

The hackers name is Jonathan Sharp.  He is a
regular member of this mailing list.  I do
believe that people here would like to know they
have a hacker on their hands, don't you think? 
It would appear the friendly Jonathan has another
side to himself...

Codeboy:
Jonathan Sharp
Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
[EMAIL PROTECTED]



--- James Moore <[EMAIL PROTECTED]> wrote:
> 
> >
> > Today I noticed an entry in my database with
> the
> > username "codeboy" and the password "hacked"
> in
> > one of the authorization tables I have
> created.
> > I am shocked that someone could be so
> malicious
> > and insensitive!  I am programming locally; I
> > realize there may be some security
> > vulnerabilities during this time, but when I
> go
> > live with my network this will not be the
> case.
> > If any further attempts are made to hack into
> my
> > system I will clearly take the time to
> retaliate
> > against you.  Let this be your only warning.
> >
> 
> This is not the place to take these issues up.
> Please email privatly and
> complain to the appropriate authrities, the
> PHP-General list is not the
> place for this.
> 
> James
> --
> James Moore
> PHP QA Team
> [EMAIL PROTECTED]
> 


=
=
 [ rswfire ]

  http://rswfire.swifte.net/
  http://profiles.yahoo.com/rswfire

=

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  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] Generic cloner?

2001-02-08 Thread Toby Butzon

Umm, not sure I understand the question completely... but following the
code below, why not just assign the object to a new variable? That'd
give you an exact copy with a lot less code...

--toby


Richard Lynch wrote:
> 
> > I'm wondering if there is an easy way to code a generic cloner at top
> > level of object inheritance tree so that all descendents can follow? Or by
> > nature the clone() function needs be implemented at final class
> > def.? Thanks a lot!
> 
> You could probably use something like:
> 
> function clone($whatever){
> $clone = $whatever;
> if (is_object($whatever)){
> while (list($var, $val) = each($whatever)){
> $clone->$var = clone($val);
> }
> }
> elseif (is_array($whatever)){
> while (list($var, $val) = each($whatever)){
> $clone[$var] = clone($val);
> }
> }
> else{
> $clone = $whatever;
> }
> return $clone;
> }
> 
> No promises this can be made to work, much less to do what you want, but it
> might...
> 
> --
> Visit the Zend Store at http://www.zend.com/store/
> Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> 
> --
> PHP General Mailing List (http://www.php.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] ftp_fput

2001-02-08 Thread Marisol Díaz E.

Hi

Please help me

I don't knowk that is wrong, in this code, for ftp_fput
Don't copy the archive, when copy the archive , this has other extension, and the size 
is 0kb.





Thanks.

Marisol Díaz E.




Marisol Díaz E.
Gerente de Aplicaciones Internet
Tecnopro Cía. Ltda. www.tecnopro.net
Pinta 236 y Rabida Edf. Alcatel of. 301
(593-2)508-722




Re: [PHP] Cron + PHP

2001-02-08 Thread Joe Stump

#!/path/to/php -q


chmod +x foo.php

0 0 * * * /path/to/foo.php > /dev/null

--Joe

On Thu, Feb 08, 2001 at 07:36:57PM -0300, GAYTAN BAHAMONDEZ DANIEL EDUARDO wrote:
> How can i make a crontab run a  php file???
> should i add something like this in the file:
> 
> path/to/file.php 
> 
> 
> Thanks in advance...
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 

---
Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o)
http://www.miester.org http://www.care2.com /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V
---


-- 
PHP General Mailing List (http://www.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] To The Hacker: CodeBoy

2001-02-08 Thread James Moore


>
> Today I noticed an entry in my database with the
> username "codeboy" and the password "hacked" in
> one of the authorization tables I have created.
> I am shocked that someone could be so malicious
> and insensitive!  I am programming locally; I
> realize there may be some security
> vulnerabilities during this time, but when I go
> live with my network this will not be the case.
> If any further attempts are made to hack into my
> system I will clearly take the time to retaliate
> against you.  Let this be your only warning.
>

This is not the place to take these issues up. Please email privatly and
complain to the appropriate authrities, the PHP-General list is not the
place for this.

James
--
James Moore
PHP QA Team
[EMAIL PROTECTED]


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




Re: [PHP] How to make PHP work in all sub-directories?

2001-02-08 Thread Toby Butzon

You might find more help on php-windows, but here's what I suspect...

Take a look at your IIS management console and see if the subdirectory
might've been configured differently from the root directory. Or, try
changing the script mappings a little in the root and let them override
the subdirectory. This isn't the problem if the subdir isn't listed in
the IIS console tho... if it's not listed, it won't have different
properties, so then you'll probably need to try php-windows.

--toby

SED wrote:
> 
> Hi,
> 
> I´m hosting a PHP-doc in sub-directorie (http://myserver/subdirectory/) on
> my IIS server Win2000 but it doesn't run, though it runs in the root
> (http://myserver/).
> 
> Is there something in the PHP.ini to config (and how) or is it something
> else?
> 
> Regards,
> Sumarlidi Einar Dadason
> 
> SED - Graphic Design
> 
> --
> Phone:   (+354) 4615501
> Mobile:  (+354) 8960376
> Fax: (+354) 4615503
> E-mail:  [EMAIL PROTECTED]
> Homepage:www.sed.is <- New Homepage!
> --
> 
> --
> PHP General Mailing List (http://www.php.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] To The Hacker: CodeBoy

2001-02-08 Thread rswfire

Today I noticed an entry in my database with the
username "codeboy" and the password "hacked" in
one of the authorization tables I have created. 
I am shocked that someone could be so malicious
and insensitive!  I am programming locally; I
realize there may be some security
vulnerabilities during this time, but when I go
live with my network this will not be the case. 
If any further attempts are made to hack into my
system I will clearly take the time to retaliate
against you.  Let this be your only warning.

=
=
 [ rswfire ]

  http://rswfire.swifte.net/
  http://profiles.yahoo.com/rswfire

=

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  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] [Newbie] PHP Variables

2001-02-08 Thread Joe Stump

That should work just fine.

Make sure that HOME doesn't have any spaces and is urlencode()'d

--Joe

On Thu, Feb 08, 2001 at 09:49:18PM +0100, Steve Haemelinck wrote:
> I thought you can pass variables in PHP as in CGI.
> 
> http://www.xy.com/index.php?contents=HOME
> 
> contents should be available as variable, but it does not seem to work. Doe
> anyone has an idea why not?
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 

---
Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o)
http://www.miester.org http://www.care2.com /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V
---


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




[PHP] Insert Data AS400

2001-02-08 Thread Karl J. Stubsjoen

Help!  (if you can).

I'm having troubles inserting records into our AS400.  I've tried just about
every combination I can think of when trying to insert a record, but nothing
is working.  Here is the most recent error I keep getting:

Warning: SQL error: [IBM][CLI Driver][AS] SQL7008N REXX variable "WBO230P "
contains inconsistent data. SQLSTATE=55019 , SQL state 55019 in SQLExecute

And here is the SQL command:
INSERT INTO WEBTEST.wbo230p (WOSTS, WOORD, WOCUS, WOST, WSNAM, WSAD1, WSAD2,
WSADX, WSAD3, WSSTA, WSZIP, WOPO, WODTTM, WONORD, WINVDT, WPHONE, WEMAIL,
WSBSTA, WSAMT) VALUES ('1',01,01,0001,'t ','t ','t ','t ','t
','t ','t ','t ',01,'t ','t ','t ','t ','t ','t ')


Any Ideas why this isn't working?

Thanks!  Karl


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




[PHP] [Newbie] PHP Variables

2001-02-08 Thread Steve Haemelinck

I thought you can pass variables in PHP as in CGI.

http://www.xy.com/index.php?contents=HOME

contents should be available as variable, but it does not seem to work. Doe
anyone has an idea why not?


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




[PHP] Cron + PHP

2001-02-08 Thread GAYTAN BAHAMONDEZ DANIEL EDUARDO

How can i make a crontab run a  php file???
should i add something like this in the file:

path/to/file.php 


Thanks in advance...


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




[PHP-CVS] cvs: php4 /pear/Mail Sendmail.php

2001-02-08 Thread Chuck Hagenbuch

chagenbuThu Feb  8 14:33:24 2001 EDT

  Modified files:  
/php4/pear/Mail Sendmail.php 
  Log:
  die on backticks in an attempted from address, also.
  
  
Index: php4/pear/Mail/Sendmail.php
diff -u php4/pear/Mail/Sendmail.php:1.2 php4/pear/Mail/Sendmail.php:1.3
--- php4/pear/Mail/Sendmail.php:1.2 Wed Feb  7 12:56:02 2001
+++ php4/pear/Mail/Sendmail.php Thu Feb  8 14:33:24 2001
@@ -82,7 +82,8 @@
 return new PEAR_Error('No from address given.');
 } elseif (strstr($from, ' ') ||
   strstr($from, ';') ||
-  strstr($from, '&')) {
+  strstr($from, '&') ||
+  strstr($from, '`')) {
 return new PEAR_Error('From address specified with dangerous 
characters.');
 }
 



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




[PHP-CVS] cvs: php4 /pear/PHPDoc/renderer/html PhpdocHTMLRenderer.php

2001-02-08 Thread Chuck Hagenbuch

chagenbuThu Feb  8 14:30:09 2001 EDT

  Modified files:  
/php4/pear/PHPDoc/renderer/html PhpdocHTMLRenderer.php 
  Log:
  fix a type - $templateRoot was meant, not $path.
  
  
Index: php4/pear/PHPDoc/renderer/html/PhpdocHTMLRenderer.php
diff -u php4/pear/PHPDoc/renderer/html/PhpdocHTMLRenderer.php:1.3 
php4/pear/PHPDoc/renderer/html/PhpdocHTMLRenderer.php:1.4
--- php4/pear/PHPDoc/renderer/html/PhpdocHTMLRenderer.php:1.3   Sun Dec  3 06:36:01 
2000
+++ php4/pear/PHPDoc/renderer/html/PhpdocHTMLRenderer.php   Thu Feb  8 14:30:09 
+2001
@@ -40,7 +40,7 @@
*/
function setPath($path) {
 
-   if ("" != $path && "/" != substr($path, -1))
+   if (!empty($path) && "/" != substr($path, -1))
$path .= "/";
 
$this->path = $path;
@@ -53,7 +53,7 @@
*/
function setTemplateRoot($templateRoot) {
 
-   if ("" != $path && "/" != substr($templateRoot, -1))
+   if (!empty($templateRoot) && '/' != substr($templateRoot, -1))
$templateRoot .= "/";
 
$this->templateRoot = $templateRoot;
@@ -75,4 +75,4 @@
} // end func encode
 
 } // end class PhpdocHTMLRenderer
-?>
\ No newline at end of file
+?>



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




Re: [PHP] security help

2001-02-08 Thread Ben Peter

"James, Yz" wrote:
> 
> In addition,
> 
> (if using .htaccess) They would only be able to read the .htpasswd from
> public directory if they had first authorised themselves.  The browser will
> prompt them to identify before it allows files from a protected directory to
> be included.
> 

James, 

are you sure about this? Afaik, no user authentication applies to PHP
include() calls. This would require PHP to integrate much closer with
Apache than I think it does (and makes sense).

Cheers,
Ben

> J.
> 
> > Make sure that the .htpasswd file is BELOW the public files root.  That
> way,
> > it can't be accessed through a browser, unless the person who has written
> > the file to try and read the .htpasswd has uploaded their file to the
> server
> > it resides on, and has permission to access that low level directory.
> They
> > can't read files in a directory route, unless they're in the directory:
> So
> > a URL reference won't work.  If you've uploaded the .htpasswd to
> /www/admin
> > They could do an include for:
> >
> >  > include(http://www.yoursite.com/admin/.htpasswd);
> > ?>
> >
> > ..So:
> >
> > /home/myfiles/.htpasswd
> >
> > Rather than
> >
> > /home/myfiles/publicwwwfiles/.htpasswd
> >
> > Hope that's of some use to you.
> > James.
> >
> > ""Thor M. Steindorsson"" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Should this be possible?
> > > I know this isn't an issue with php, but since I used php to do this, I
> > > figured maybe someone here has encountered the same thing, and knows how
> > to
> > > help.
> > > Is this something that can be fixed by making some changes on the linux
> > > server?
> > >
> > > By using this:
> > >
> > >  > > echo "";
> > > include("/home/someuser/www/admin/.htaccess");
> > > echo "";
> > > ?>
> > >
> > > I can see what .htpasswd file is used, and then I can simply change the
> > code
> > > to display that particular password file, then take the encrypted
> > password,
> > > and decrypt it to gain access to that protected area.
> > >
> > > I have a feeling this is a permissions issue on the Linux server...
> > > Can anyone point me in the right direction with this?
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> 
> --
> PHP General Mailing List (http://www.php.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] ereg_replace with assoc array?

2001-02-08 Thread Jaxon

Hi

Can I do this

$string = file.tpl;

while (list($pattern, $replacement) = each($array)) {
ereg_replace ($pattern, $replacement, $string);
}

echo $string;



note some assumptions below:

$array contains an assoc array:

first  foo
second bar
third  rab
fourth oof

file.tpl is this:

some html {first} 
more html {second}
even more html {third}
lots more html {fourth} 

This seems like a slow way to do this...
any advice is welcome!

tia!
jaxon


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




[PHP-CVS] cvs: php4 /pear/PHPDoc index.php

2001-02-08 Thread Chuck Hagenbuch

chagenbuThu Feb  8 14:23:05 2001 EDT

  Modified files:  
/php4/pear/PHPDoc   index.php 
  Log:
  the warning referred to here was fixed.
  
  
Index: php4/pear/PHPDoc/index.php
diff -u php4/pear/PHPDoc/index.php:1.2 php4/pear/PHPDoc/index.php:1.3
--- php4/pear/PHPDoc/index.php:1.2  Sun Dec  3 12:30:42 2000
+++ php4/pear/PHPDoc/index.php  Thu Feb  8 14:23:04 2001
@@ -93,8 +93,6 @@
Have fun!

mailto:[EMAIL PROTECTED]">Ulf
-   
-   ... and what about the warning? I use 
xml_parse_into_struct() as documented, but PHP4 likes to throw a warning, ignore it.






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




  1   2   3   >