Re: [PHP] Most secure way to send a password

2001-12-24 Thread Papp Gyozo
| | JavaScript doesn't implement any kind of one-way hashing. But that's for a | good reason: suppose JavaScript encoded your password and sent it encoded to | the server. The in-between hacker would retrieve the encoded password as it | is sent to the server and simply pass that as the

Re: [PHP] PostgreSQL query taking a long time

2001-12-22 Thread Papp Gyozo
use EXPLAIN to get more information about how postgres executes this query. I'm not sure about this, but there are some issues with fields of type int8. It may help to cast explicitly the fields involved in join like: WHERE bible.book::int4 = books.id::int4 Ask it the postgres

Re: [PHP] array_walk() + class methods

2001-12-21 Thread Papp Gyozo
array_walk($ar, array($object, 'methodname')); - Original Message - From: Jeff Levy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 13, 2001 1:17 PM Subject: [PHP] array_walk() + class methods | I'd like to call a class method with array_walk(). Is this

Re: [PHP] Costum Error Page

2001-12-08 Thread Papp Gyozo
there is an example in the apache docs or httpd.conf samples how to pass to error script the original request uri, ins't there any? - Original Message - From: Ashley M. Kirchner [EMAIL PROTECTED] To: Daniel Urstger [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday,

Re: [PHP] WDDX

2001-12-08 Thread Papp Gyozo
What do you get as result from a 'Show source...' in your browser? AFAIK, NS4.76 does not display unrecognized HTML element, and it treats your script's output as HTML source. try: ?php print (htmlspecialchars(wddx_serialize_value($one_var))); ? - Original Message - From: con

Fw: [PHP] Need a script that will read Apache Log files and generate reports

2001-12-07 Thread Papp Gyozo
maybe this is what you need. - Original Message - From: Chris Allen [EMAIL PROTECTED] To: Dan McCullough [EMAIL PROTECTED]; PHP General List [EMAIL PROTECTED] Sent: Monday, November 26, 2001 11:21 PM Subject: Re: [PHP] Need a script that will read Apache Log files and generate

Re: [PHP] call_user_func problem

2001-12-01 Thread Papp Gyozo
| That means that you should create a .htaccess file containing that: | | php_value allow_call_time_pass_reference 1 | | That should work :) But as the errormessage mentioned it may not supported in future version. I think if you declare your function arguments to be passed by variables

Re: [PHP] Session Help

2001-11-30 Thread Papp Gyozo
PHP automatically calls the appropiate function instead if you. But consider that the save handler is not called on individual session_register functions, only when all output is gone, and the whole session - each registered variable - must be saved. manual Note: The write handler is

Re: [PHP] WHat has happened to parse_str in the Docs????

2001-11-29 Thread Papp Gyozo
Hello, The manual says that parse_str does it. (btw, I didn't try it) Look on the second sentence pasted here. manual void parse_str (string str, array [arr]) Parses str as if it were the query string passed via an URL and sets variables in the current scope. If the second parameter

Re: [PHP] error handling and __LINE__

2001-11-22 Thread Papp Gyozo
try, assert() instead of echo()ing error messages. assert('is_object($obj)'); and write your error handler code or use mine :) or am i missing something? Papp Gyozo - [EMAIL PROTECTED] - Original Message - From: SafeV [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

Re: [PHP] Form's : making me sick!

2001-11-18 Thread Papp Gyozo
I just want to know how to make a form inside a form get to respond or dont make any browser errors? This is prohibited by either SGML DTDs if HTML 4.01(http://www.w3.org/TR/html4/interact/forms.html#h-17.3): !ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -- and

[PHP] xslt function documentation

2001-11-17 Thread Papp Gyozo
read Sablotron's documentation, but some help will be appriciated, especially for xslt_transform(). Papp Gyozo - [EMAIL PROTECTED]

Re: [PHP] xslt function documentation

2001-11-17 Thread Papp Gyozo
OK, I found some hints in the annotated manual. BTW, I'm looking for hearing any comments on this ... - Original Message - From: Papp Gyozo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 11:19 AM Subject: [PHP] xslt function documentation Hi

Re: [PHP] Question on variable variables

2001-11-17 Thread Papp Gyozo
have you tried /e modifier? preg_replace(/yabb\s+$tags[1]/e,'${$1}', $curline); it's just a tip. - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 2:25 PM Subject: Re: [PHP] Question on variable variables

Re: [PHP] Question on variable variables

2001-11-17 Thread Papp Gyozo
Oops... have you tried /e modifier? preg_replace(/yabb\s+$tags[1]/e,'${$1}', $curline); preg_replace(/yabb\s+(\w+)/e,'${$1}', $curline); it's just a tip. - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November

Re: [PHP] working HEADER in PHP

2001-11-17 Thread Papp Gyozo
Hi, I used header(content-type:text/html;charset='windows-1256'); and header(content-language:'fa'); I suggest to try Content-Type Content-Language with initial capitals rather than all lowercase and simply fa, without qoutes. header(Content-Type: text/html;

Re: [PHP] custom errors

2001-11-16 Thread Papp Gyozo
I know how to make an error message when the connection is lost with the database, with the @ and the OR DIE in the connection with the database. Is there also a way to display a custom error message when this error is displaid? i wrote a more or less simple class to wrap PHP's

Re: [PHP] Regular expressions?

2001-11-16 Thread Papp Gyozo
?php $quoted = preg_quote($searchstring, '!'); preg_match_all('!(\w+)(?[^]*).*'.$quoted.'(?[^]*)/$1!Ui', $source, $matches); ? good point to start: http://www.php.net/manual/en/ref.pcre.php - Original Message - From: Martin Thoma [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] multiple include

2001-11-15 Thread Papp Gyozo
if (!defined('_SYS_TYPES.H')) { include('sys/types.h'); } - Original Message - From: Briet Vincent [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 10:31 AM Subject: [PHP] multiple include Hi all, I would like to do something

Re: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-14 Thread Papp Gyozo
Nonetheless sometimes it is more efficient to use a template engine. (IMHO) Papp Gyozo - [EMAIL PROTECTED] - Original Message - From: Jason G. [EMAIL PROTECTED] To: Brad Melendy [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 1:33 PM Subject: Re: [PHP

Re: [PHP] e modifier

2001-11-11 Thread Papp Gyozo
PHP 4.0.5, as far as I know. - Original Message - From: "Brian Clark" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 11, 2001 6:15 AM Subject: [PHP] e modifier Does anyone know when the PCRE modifier 'e' was added into PHP? Is it version dependant, or has

Re: [PHP] Text Editor with Highlighting

2001-11-01 Thread Papp Gyozo
EditPlus (http://www.editplus.com) on windows HTML-Kit (http://www.chami.com/html-kit/) - Original Message - From: Eugene Mah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 01, 2001 3:32 PM Subject: Re: [PHP] Text Editor with Highlighting At 10:02 PM 11/01/2001

Re: [PHP] Re: Removing an Array Element

2001-10-25 Thread Papp Gyozo
and what about array_slice(), array_splice(), array_pop() or array_unshift()? Please read the corresponding pages of the manual! - Original Message - From: Christian Reiniger [EMAIL PROTECTED] To: Jason Caldwell [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, October 25, 2001 11:03

Re: [PHP] Help, please!

2001-10-18 Thread Papp Gyozo
check: http://www.php.net/manual/en/function.ini-set.php - Original Message - From: Valentin V. Petruchek [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 4:00 PM Subject: [PHP] Help, please! Hello, Professionals! I've such problem: i need

Re: [PHP] Using Array of classes as a class member variable?

2001-10-04 Thread Papp Gyozo
First some basic questions: (1) Can you create an unitialised array ? do you mean: $array = array(); // creates an empty array; (2) Can an unitinialised array be a class member variable ? for( $i = 0 ; $i 5; $i++) $array[] = new User(); I think it should work. I have a class

Re: [PHP] Sessions, sessions, sessions...

2001-10-02 Thread Papp Gyozo
session_register() registers the _global_ variable named by it with the current session. So if these globals are not set, you 're out of luck, I think. - Original Message - From: Bradley Goldsmith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 02, 2001 3:13 AM Subject:

Re: [PHP] Warning: Sybase message: Incorrect syntax near 't'.

2001-10-01 Thread Papp Gyozo
Hi, I suggest to you: var_dump($sybase_query); It may help you to make wellformed query-string. - Original Message - From: Caleb Carvalho [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 11:04 AM Subject: [PHP] Warning: Sybase message: Incorrect syntax near

Re: [PHP] Locale Month Name

2001-09-07 Thread Papp Gyozo
LC_* are predefined constants, so: setlocale(LC_ALL, LT); - Original Message - From: Veniamin Goldin [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Thursday, August 30, 2001 11:37 AM Subject: [PHP] Locale Month Name Hello ! Please help me, How to get Month name according to

Re: [PHP] php's future

2001-09-02 Thread Papp Gyozo
I also can hardly believe the 84+ sec. In such case all PHP template engines may run for a thousand years. - Original Message - From: nick [EMAIL PROTECTED] To: 'nick' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, September 02, 2001 2:56 PM Subject: RE: [PHP] php's future Haha

Re: [PHP] ereg question

2001-09-02 Thread Papp Gyozo
Hello, check it in the manual: http://www.php.net/manual/en/function.ereg.php If you don't pass the third -- optional -- argument, then it's true. Otherwise not. I don't know this book, but you may keep in my mind that PHP is evolving, so the online manual can be its most up-to-date

Re: [PHP] Databases, arrays and woes

2001-08-31 Thread Papp Gyozo
I think it's very simple to do it. ?php //... $result = mysql_query('SELECT * FROM my_table ORDER BY Type, Place Name'); for($i = 0, $prev_type = FALSE; $i mysql_numrows($result); $i++) { $row = mysql_fetch_array($result); if ($prev_type !== $row['Type']) { // close the

Re: [PHP] help with strings...

2001-08-31 Thread Papp Gyozo
$GLOBALS[substr($string, 0, 1)] or : $tmp = substr($string, 0, 1); ${$tmp} = 'add whatever value you want'; - Original Message - From: Stig-Ørjan Smelror [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 31, 2001 9:35 AM Subject: [PHP] help with strings... Hei all. I've

Re: [PHP] passing variables between scripts?

2001-08-31 Thread Papp Gyozo
, Papp Gyozo - [EMAIL PROTECTED] - Original Message - From: Jon Thompson Coon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 01, 2001 4:14 AM Subject: [PHP] passing variables between scripts? I can't cope the fact that I loose my variables every time I reload the page

Re: [PHP] Cookies

2001-08-31 Thread Papp Gyozo
http://www.phpbuilder.com/columns/chriskings20001128.php3 - Original Message - From: Jason Radley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 31, 2001 5:11 PM Subject: [PHP] Cookies Does anyone know how to share cookies between servers. What I want to do is set a

Re: [PHP] array search

2001-08-31 Thread Papp Gyozo
yes, in_array($person, $people)! however, you may take a look into the manual. - Original Message - From: Joseph Bannon [EMAIL PROTECTED] To: PHP (E-mail) [EMAIL PROTECTED] Sent: Friday, August 31, 2001 5:40 PM Subject: [PHP] array search I have an array of names, like below...

Re: [PHP] fix my query please

2001-08-29 Thread Papp Gyozo
Well, T1 INNER JOIN T2 For each row R1 of T1, the joined table has a row for each row in T2 that satisfies the join condition with R1. T1 LEFT OUTER JOIN T2 First, an INNER JOIN is performed. Then, for each row in T1 that does not satisfy the join condition with any row in T2, a joined row is

Re: [PHP] real optional parameters

2001-08-29 Thread Papp Gyozo
yes, you just declare the default value of the arguments such as : my_function ($first = 'no-value', $second = 0, $third = null ) Note that the default value must be a constant expression and any defaults should be on the right side of any non-default arguments or you can achieve the very

Re: [PHP] htaccess and $PHP_AUTH_USER

2001-08-28 Thread Papp Gyozo
Hi, There is a few scripts on Zend pages. I'm sure, this one of them will be very helpful: http://www.zend.com/zend/tut/authentication.php - Original Message - From: Rene Fournier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 9:24 PM Subject: [PHP] htaccess and

Re: [PHP] LONGINT... ? to be or not to be?...

2001-08-28 Thread Papp Gyozo
Hello, you should check the latest version of the manual: http://www.php.net/manual/en/language.types.integer.php more precisely and specifically the integer overflow section. I think, you should use the arbitrary precision integer extension. http://www.php.net/manual/en/ref.gmp.php hth

Re: [PHP] Putting variables in a string

2001-08-28 Thread Papp Gyozo
Hi, try to change the line in that loop to this one: $sql .= $key.' = '.$$key.', '; - Original Message - From: P.Agenbag [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 7:54 PM Subject: [PHP] Putting variables in a string I am trying to make a string that will