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

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, 20

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

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: Wednesd

Re: [PHP] problem with function array_* that preserved the key

2001-11-14 Thread Papp Gyozo
I've not found the original post, I've just figured out from what Stig underlined. what about traversing an array like that: foreach (array_keys($arrC) as $key) { $arrC[$key]; // do some stuff with array values... } This statement always traverse the array with its keys, no matter

Re: [PHP] take date and convert to day of year

2001-11-14 Thread Papp Gyozo
date("z"); // the today's ordinal number z - day of the year; i.e. "0" to "365" if you want the ordinal number of other days different than the current one you can play with mktime or strftime or strtotime to make an appropiate timestamp as you did in your earlier codes. - Ori

Re: [PHP] VALUABLE LESSON: using sessions and include

2001-11-14 Thread Papp Gyozo
or name it in PHP.ini: session.name > What you can do is not to name session at all :-) It's easyer :-) > J > "Jtjohnston" <[EMAIL PROTECTED]> ha scritto nel messaggio > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanks Dav, > > You caught me while I was debugging. But I learned

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 som

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

Re: [PHP] Regular expressions?

2001-11-16 Thread Papp Gyozo
[^>]*)>.*'.$quoted.'(?>[^<]*)!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]> Sent: Friday, November 16, 2001 8:30 AM Subject: [PHP] Regular expre

[PHP] xslt function documentation

2001-11-17 Thread Papp Gyozo
ve already 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]

Re: [PHP] Question on variable variables

2001-11-17 Thread Papp Gyozo
have you tried /e modifier? preg_replace("//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 > Thanks

Re: [PHP] Question on variable variables

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

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; char

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

2001-11-18 Thread Papp Gyozo
> I just want to know how to make a inside a 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): and XML DTDs of XHTML 1.0 (http://www.w3.org/TR/xhtml1/#prohibitions) "form

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:

Re: [PHP] Array Help

2001-11-28 Thread Papp Gyozo
or in general the following simple PHP function may suffice for you: function array_innermost($array) { if (is_array($array)) { return array_innermost(array_unshift($array)); } else { return $array; // exactly not an array now but its 1st element } }

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. 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 arr is

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

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. Note: The "write" handler is not ex

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] 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 Urstöger" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Satu

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: - Original Message - From: "con pulpa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Satu

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

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 pa

Re: [PHP] Check if a word is in my string.

2001-08-28 Thread Papp Gyozo
Hi, use: preg_match('/\Wgood\W/',$var); or preg_match('/\bgood\b/',$var); I don't know exactly. - Original Message - From: Brandon Orther <[EMAIL PROTECTED]> To: PHP User Group <[EMAIL PROTECTED]> Sent: Wednesday, August 29, 2001 12:02 AM Subject: [PHP] Check if a word is in my

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

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] Databases, arrays and woes

2001-08-31 Thread Papp Gyozo
I think it's very simple to do it. '; // new Type list echo '' . $row['Type']; } // print out the rest of the row like : // Place Name and Place Abbr and ther link echo ''.$row['place name']; echo ' jump '.$row['place abbr'].''; //... } //... ?> or maybe I

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

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

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

Re: [PHP] Reg-Variables

2001-09-01 Thread Papp Gyozo
Hi, On Linux/Unix systems you may use Semaphore and shared memory functions. http://www.php.net/manual/en/ref-sem.php or simply use sessions. However, session variables are stored in flat files or in db. - Original Message - From: senthilvellan <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]

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 eve

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 w

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

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 documentati

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 accor

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

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