Re: [PHP] ROUND inconsistency

2001-04-13 Thread Yasuo Ohgaki
Correction, MySQL is not returning floor, since it returns 2 for round(1.5). - I didn't see it. MySQL should not return 2 for round(2.5), but it should return 3. I think it's MySQL bug. How about ask in MySQL mailing list? -- Yasuo Ohgaki ""Yasuo Ohgaki"" <[E

Re: [PHP] ROUND inconsistency

2001-04-12 Thread Yasuo Ohgaki
MySQL is returning floor. (I'm not a MySQL heavy user, though :) PHP's result is correct for its function name, I think. If MySQL returns floor for round(), how about use floor() in PHP? Regards, -- Yasuo Ohgaki "Lee Howard" <[EMAIL PROTECTED]> wrote in message [EMA

Re: [PHP] is_null

2001-04-12 Thread Yasuo Ohgaki
It's supported from 4.0.4, I think. Regards, -- Yasuo Ohgaki "Jennifer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I wanted to use is_null, but it isn't available in my version > (4.0B2) > > What would be an

Re: [PHP] System V Semaphores

2001-04-11 Thread Yasuo Ohgaki
It means your OS does not allocate enough resources. Linux: $ ipcs -l -s FreeBSD: $ ipcs -S Refer to your OS manual to change them. Regards, -- Yasuo Ohgaki ""Philip Murray"" <[EMAIL PROTECTED]> wrote in message 002e01c0c20a$b17e9ba0$0201a8c0@sparlak">n

Re: [PHP] Database result set question

2001-04-11 Thread Yasuo Ohgaki
. I'm not sure if it buffers on client side. Regards, -- Yasuo Ohgaki "Morgan Curley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just out of curiosity, can anyone explain the mechanics behind accessing a > database query re

Re: [PHP] install LONG_MAX

2001-04-11 Thread Yasuo Ohgaki
Do you install Linux kernel source? and have correct symlink for kernel headers? Sounds like it's the cause to me. Regards, -- Yasuo Ohgaki ""Plamen Slavov"" <[EMAIL PROTECTED]> wrote in message 002a01c0c276$32b005e0$98d209c0@plamensl2">news:002a01c0c276$

Re: [PHP] checkdnsrr() in PHP 4.0.5rc1

2001-04-11 Thread Yasuo Ohgaki
If you are using Windows, no. (resolver does not work under windows) Regards, -- Yasuo Ohgaki "Jochen Kaechelin" <[EMAIL PROTECTED]> wrote in message NFBBLHGFAKNLFNPOHMPHCEENCGAA.jk@intern">news:NFBBLHGFAKNLFNPOHMPHCEENCGAA.jk@intern... > What about this err

Re: [PHP] foreach vs. while(list() = each())

2001-04-11 Thread Yasuo Ohgaki
(If you don't, please let me know) String can be accessed like array, but foreach does not handle invalid parameter well. While() does not misbehave with equivalent code. Regards, -- Yasuo Ohgaki "Joe Stump" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E

Re: [PHP] What is the syntax to get the HTTP_ENV_VARS?

2001-04-11 Thread Yasuo Ohgaki
Did you read PHP Manual? If you don't read online manual, I suggest to read it. Annotated manual is very useful. http://www.php.net/manual/en/language.variables.external.php Regards, -- Yasuo Ohgaki "Phil Labonte" <[EMAIL PROTECTED]> wrote in message 1B5C7FA9D60DD51

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

2001-04-10 Thread Yasuo Ohgaki
uted when fopen() success to open file. Regards, -- Yasuo Ohgaki ""Dan"" <[EMAIL PROTECTED]> wrote in message 9avrti$olc$[EMAIL PROTECTED]">news:9avrti$olc$[EMAIL PROTECTED]... > This confused me for awhile, because the single equal sign seemed to work >

Re: [PHP] Developing new PHP modules

2001-04-10 Thread Yasuo Ohgaki
et or cvs.php.net to browse PHP source. Regards, -- Yasuo Ohgaki "Carlos Serrão" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I don't know if I'm in the correct mailling list or not, but > could

Re: [PHP] register_shutdown_function - uses for

2001-04-10 Thread Yasuo Ohgaki
For another example use of shutdown function. Take a look at how PEAR destructor is implemented. It's using shutdown function. Regards, -- Yasuo Ohgaki ""Greig, Euan"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

Re: [PHP] php -> html

2001-04-10 Thread Yasuo Ohgaki
ering functions. ob_start(), ob_get_contents(), etc. Much easier, much faster. Regards, -- Yasuo Ohgaki ""ewoong"" <[EMAIL PROTECTED]> wrote in message 9auilj$9st$[EMAIL PROTECTED]">news:9auilj$9st$[EMAIL PROTECTED]... > Hello.. ^^ > > I am trying to save resu

Re: [PHP] while loop

2001-04-10 Thread Yasuo Ohgaki
> > On Tue, 10 Apr 2001 15:16, Zeus wrote: > > > > $query = mysql_query("some SQL here"); > > > > while ($row = mysql_fetch_array($query)) { This line is the same as do while( ($row = mysql_fetch_array($query)) == TRUE) { Common coding style in C/

Re: [PHP] huge PHP file, hardcore processing

2001-04-09 Thread Yasuo Ohgaki
You may get better result on UNIX/Apache. Someone mentioned he/she does not have any problem with W2K/IIS ISAPI/PHP4.0.3pl1 with more than 250,000 hits/day. You may want to down grade your PHP to 4.0.3pl1. Regards, -- Yasuo Ohgaki "Christian Dechery" <[EMAIL PROTECTED]> wr

Re: [PHP] Encoding

2001-04-09 Thread Yasuo Ohgaki
Take a look at www.zend.com for Zend Encoder or http://apc.communityconnect.com/ and get 1.0.9 source. Look for file name like README.Compiler. Regards, -- Yasuo Ohgaki ""Kevin Pate"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL P

Re: [PHP] how much data can a session store?

2001-04-09 Thread Yasuo Ohgaki
thing. (Session data is read and written whenever user access pages) Regards, -- Yasuo Ohgaki ""Tobias Talltorp"" <[EMAIL PROTECTED]> wrote in message 9as098$lup$[EMAIL PROTECTED]">news:9as098$lup$[EMAIL PROTECTED]... > Just a quick question... > > How much

Re: [PHP] "configure" not doing anything and file not found

2001-04-08 Thread Yasuo Ohgaki
There is compile instruction at www.php4win.de I think you need CygWin and VC to compile windows version of PHP. You may get better answer on php-windows list. Regards, -- Yasuo Ohgaki ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9aor0h$uo0$[EMAIL PROTECTE

Re: [PHP] new php.net look

2001-04-07 Thread Yasuo Ohgaki
Read FAQ. Description is in there. Regards, -- Yasuo Ohgaki "jaxon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > The older look was neat to show off to people re: pop up menus, etc., > > but this is > > a real

Re: [PHP] adding methods to classes

2001-04-07 Thread Yasuo Ohgaki
with Variable Function. For example. class foo { var $function_name; function foo($fname) {$this->function_name = $fname; $this->$function_name;} function a() {echo 'a';} function b() {echo 'b';} } foo('b'); // calls foo::b() >Can I overrid

Re: [PHP] Extension_dir in php.ini?

2001-04-07 Thread Yasuo Ohgaki
If you are talking about PHP on UNIX, I think the default is /usr/local/lib/php/extensions/no-debug-non-zts- For windows, I don't know. Regards, -- Yasuo Ohgaki "Lindsay Adams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

Re: [PHP] HELP!! comparing arrays

2001-04-06 Thread Yasuo Ohgaki
How about post some code that does not work as expected? (Simpler code is better) Regards, -- Yasuo Ohgaki ""paula"" <[EMAIL PROTECTED]> wrote in message 001501c0bf29$2f35e740$0f01a8c0@pau">news:001501c0bf29$2f35e740$0f01a8c0@pau... Hi- I'm new here

Re: [PHP] Nested for() loops? -> Now Multi Dimension Arrays

2001-04-06 Thread Yasuo Ohgaki
Simple to fix it. You just need to resolve ambiguity with {}. > $res = $i * $j; > $target_array[$i][$j] = $res; > print("result = $target_array[$i][$j] "); print("result = {$target_array[$i][$j]} "); Regards, -- Yasuo Ohgaki <[EMAIL PRO

Re: [PHP] array speed

2001-04-05 Thread Yasuo Ohgaki
; or empty output) Regards, -- Yasuo Ohgaki "Kurth Bemis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i'm concerned about the speed at which httpd (with php4.0.1pl1 compiles in > as a static mod) can "chew"

Re: [PHP] foreach ?!

2001-04-05 Thread Yasuo Ohgaki
home_email1'] before you test it? Sound like this is the cause to me. Regards, -- Yasuo Ohgaki ""TV Karthick Kumar"" <[EMAIL PROTECTED]> wrote in message 031001c0bde4$f1638c00$[EMAIL PROTECTED]">news:031001c0bde4$f1638c00$[EMAIL PROTECTED]... > Hi List.. &

Re: [PHP] can I detect html email capability?

2001-04-05 Thread Yasuo Ohgaki
mail. Regards, -- Yasuo Ohgaki ""Matthew Delmarter"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello all, > > Out of curiosity I am looking at what can be done with email marketing. I am > currently looking at

Re: [PHP] sockets (long)

2001-04-05 Thread Yasuo Ohgaki
fd); 541 542 ret = fcntl(Z_LVAL_PP(fd), F_SETFL, O_NONBLOCK); 543 544 RETURN_LONG(((ret < 0) ? -errno : ret)); 545 } 546 /* }}} */ Hope this helps. -- Yasuo Ohgaki "Joseph Blythe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PRO

Re: [PHP] file upload question

2001-04-05 Thread Yasuo Ohgaki
Yes. Refer to PHP Manual. There is description for that. -- Yasuo Ohgaki "Joe Stump" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm in the habit of putting all my form variables into an array (ie: > ) so > that I

Re: [PHP] APC breaking under freebsd!

2001-04-05 Thread Yasuo Ohgaki
encoding script (well the author uses term "compile", refer to README.compiler) like Zend Encoder. APC is getting better and better :) Regards, -- Yasuo Ohgaki "Dan Phoenix" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > &g

Re: [PHP] problems with session_register()...

2001-04-04 Thread Yasuo Ohgaki
Try to use $HTTP_SESSION_VARS, it may work for you. There are many number of notes in Annotated PHP Manual. Some of them may help. By the way, you don't need to serialize Array/Object for PHP4 session. Regards, -- Yasuo Ohgaki "Christian Dechery" <[EMAIL PROTECTED]> wr

Re: [PHP] socket functions

2001-04-04 Thread Yasuo Ohgaki
is note that says it does not work with PHP4/Win32. I may need to check BugDB to find out status of this problem. I compile with --enable-sockets, so I don't know if it available without it. Regards, -- Yasuo Ohgaki "Joseph Blythe" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] register_globals on or off?

2001-04-03 Thread Yasuo Ohgaki
Refer to the PHP Manual for details. http://www.php.net/manual/en/language.variables.external.php The Manual is worth to read :) (Don't forget to read FAQ also, it seems FAQ is updated recently) Regards, -- Yasuo Ohgaki ""hi"" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] Why does it work this way?

2001-04-03 Thread Yasuo Ohgaki
ented. -- Yasuo Ohgaki ""Mark Roedel"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > -Original Message- > From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 02, 2001 8:00 PM > To: [EMAIL PROTEC

Re: [PHP] known problems with session_register()?

2001-04-03 Thread Yasuo Ohgaki
gards, -- Yasuo Ohgaki ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Try register globals off, see if it helps. > (You need to use $HTTP_SESSION_VARS) > > I always set track vars to on (It's alway

Re: [PHP] known problems with session_register()?

2001-04-03 Thread Yasuo Ohgaki
(file/mm/user) when script execution is ended. Regards, -- Yasuo Ohgaki - Original Message - From: "Felix Kronlage" <[EMAIL PROTECTED]> To: "Yasuo Ohgaki" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, April 02, 2001 9:21 PM Subject: Re: [PHP]

Re: [PHP] is this syntax correct?

2001-04-02 Thread Yasuo Ohgaki
itly start PHP4 session with "session_start()" 3) Using session functions: Implicitly start PHP4 session with "session_register()" If you are having trouble with PHP4 session, set "error_reporting = E_ALL" in php.ini. Is there any other way to start PHP4 session?

Re: [PHP] Why does it work this way?

2001-04-02 Thread Yasuo Ohgaki
+ $str; // $str now stores "aa" PHP syntax/functions looks and works like C most of the time, but there many function/feature that does not work like C. Regards, -- Yasuo Ohgaki ""Mark Roedel"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:

Re: [PHP] I can't connect php with apache.

2001-04-02 Thread Yasuo Ohgaki
I guess your httpd.conf is not allowing. Is your httpd.conf allow CGI script? Refer to Apache manual for that. Regards, -- Yasuo Ohgaki "Kukai" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I have been trying

Re: [PHP] Parent class

2001-04-02 Thread Yasuo Ohgaki
Did you try $b->a()? It should work. -- Yasuo Ohgaki "Milan Mlynarcik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there way to access paret class from outside of class ??? > I know that to access parent object fro

Re: [PHP] php-4.0.5-dev with Apache rpm

2001-04-02 Thread Yasuo Ohgaki
Annotated manual is useful. Refer to http://www.php.net/manual/en/install.linux.php http://www.php.net/manual/en/install.apache.php You need to install apache-devel RPM if you are using RedHat. Regards, -- Yasuo Ohgaki ""Paul Juliano"" <[EMAIL PROTECTED]> wr

Re: [PHP] Attach File in PHP's Mail Function.

2001-04-02 Thread Yasuo Ohgaki
yourself, you need to read related RFCs. Regards, -- Yasuo Ohgaki ""Mark Lo (3)"" <[EMAIL PROTECTED]> wrote in message 000701c0bb1b$d3b772a0$2e53fea9@mark">news:000701c0bb1b$d3b772a0$2e53fea9@mark... > Hi, > > I would like to ask how to attach a f

Re: [PHP] known problems with session_register()?

2001-04-02 Thread Yasuo Ohgaki
fer to User Notes in Session Section - Annotated PHP Manual for details. Regards, -- Yasuo Ohgaki "Felix Kronlage" <[EMAIL PROTECTED]> wrote in message 20010401181830.B5417@mad">news:20010401181830.B5417@mad... > Hi, > > are there any knows problems/bugs with ses

Re: [PHP] Database connections

2001-04-02 Thread Yasuo Ohgaki
You don't have to call mysql_close(). PHP handles cleaning resources when script execution is ended. You can set default connection parameters for MySQL in php.ini. I don't know if you need to call mysql_connect(). (I don't use MySQL :) Regards, -- Yasuo Ohgaki "&q

Re: [PHP] [Fwd: php...]

2001-03-31 Thread Yasuo Ohgaki
though. Do you know annotated manual? http://www.php.net/manual/en/ Your post would be a great note for many users. How about add them to sections that I've been mentioned. "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote in message news:... > PHP has type juggling feature. PHP

Re: [PHP] Saving file

2001-03-31 Thread Yasuo Ohgaki
Oops I pasted older RFC number for HTTP/1.1, newer version is RFC 2616 Reading older version will also help, though. -- Yasuo Ohgaki "Adi Wibowo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi I write a script that c

Re: [PHP] Saving file

2001-03-31 Thread Yasuo Ohgaki
Reading RFCs will help. RFC 2068 RFC 1945 RFC 2936 Regards, -- Yasuo Ohgaki "Adi Wibowo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi I write a script that create a report. > Using header ("location : filen

Re: [PHP] problem loading extension

2001-03-31 Thread Yasuo Ohgaki
How about take a look at notes (PHP Manual)? http://www.php.net/manual/en/install-windows.php You might need to change \ to /, or / to \, or get rid of drive letter in extension_dir, as I needed to load extension for PHP for Windows. Regards, -- Yasuo Ohgaki "Christian Dechery&quo

Re: [PHP] Disk Quota Through web

2001-03-31 Thread Yasuo Ohgaki
You need to provide what OS you are using. I think you may get better response if you ask mailing list discussing about your OS for this matter. Regards, -- Yasuo Ohgaki ""pnp"" <[EMAIL PROTECTED]> wrote in message 013301c0b8e5$37735220$[EMAIL PROTECTED]">

Re: [PHP] Install

2001-03-31 Thread Yasuo Ohgaki
There is a section for that in the PHP Manual http://jp.php.net/manual/en/migration4.php I suggest you to read www.zend.com documents also. Regards, -- Yasuo Ohgaki ""Chris"" <[EMAIL PROTECTED]> wrote in message 00ce01c0b942$4cc0d5a0$01c8c8c8@ibcserver">n

Re: [PHP] Question using chop :-)

2001-03-31 Thread Yasuo Ohgaki
It's not explain why you get additional char at the end of string, but chop() in PHP does not get rid of last char, but it also suppose to get rid of spaces including newline. What char code are you using? Char code may be the cause. -- Yasuo Ohgaki ""Marcus Ouimet""

Re: [PHP] hash suggestions wanted

2001-03-31 Thread Yasuo Ohgaki
If you need shorter result, how about use a part of md5 hash result? -- Yasuo Ohgaki ""David P. Schwartz"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > the PHP crypt function uses DES and it only generates a hash bas

Re: [PHP] Compiling under RH7

2001-03-31 Thread Yasuo Ohgaki
x27;s configure. (How about run 'find / -name httpd.conf'? You might find more than one.) Regards, -- Yasuo Ohgaki "Jon Jacob" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am still only getting the source of the php

Re: [PHP] [Fwd: php...]

2001-03-31 Thread Yasuo Ohgaki
p http://www.php.net/manual/en/language.operators.comparison.php Regards, -- Yasuo Ohgaki > I'm sure you appreciate the importance of transitive equality in programming > languages (especially they all aspire to be pseudo-mathematical), which is > why I think you'll appreciate this. > > &g

[PHP] FYI: PostgreSQL users

2001-03-31 Thread Yasuo Ohgaki
if you need it. (There is news server for the list, too. news://news.postgresql.org ) Regards, -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Yasuo Ohgaki
ks on the original PHP Parser and tacks the source of your scripts at the end of a custom coded loader. Its fairly easy to use and when used in conjunction with PHP-GTK(URL) can be used to create true GUI Applications. -- Yasuo Ohgaki ""Marian Vasile"" <[EMAIL PROTECTED]&

Re: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Yasuo Ohgaki
Typo in my post ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message 9a3hpe$n1m$[EMAIL PROTECTED]">news:9a3hpe$n1m$[EMAIL PROTECTED]... SNIP > > BTW, do you use multi-type char codeset? BTW, do you use multi-byte char codeset? > Regards, > >

Re: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Yasuo Ohgaki
ripts that causes this. BTW, do you use multi-type char codeset? Regards, -- Yasuo Ohgaki ""Wally Hartshorn"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The script I'm calling (member.php) is 41K bytes (1,200 lines)

Re: [PHP] Passing by reference deprecated?

2001-03-30 Thread Yasuo Ohgaki
ot in PHP4. This is really good feature, because programmer can only use pass by reference when they want change function parameter and return the change to caller. It makes a little easier to read PHP4 script. Regards, -- Yasuo Ohgaki - Original Message - From: "Neil Kimber" &

Re: [PHP] header() vs HTTP_REFERER (Netscape 6)

2001-03-30 Thread Yasuo Ohgaki
HTTP_REFERER is set by browser. I treat HTTP_REFERER header as user input, so I don't trust it. Using HTTP_REFERER can open security hole in your web site. I suggest to change your authentication code, so that you don't rely on HTTP_REFERER. Regards, -- Yasuo Ohgaki ""Scot

Re: [PHP] apache_lookup_uri problem

2001-03-30 Thread Yasuo Ohgaki
I haven't use apache_lookup_uri() yet, but I believe it is for getting local server's uri info. I think your PHP script is located web document root, right? Therefore, you get "/" before the string. If you want to get remote URI info, use HEAD request. (Refer to RFC for detai

Re: [PHP] Array in Session-Vars?

2001-03-30 Thread Yasuo Ohgaki
link also. How about read http://www.zend.com/zend/tut/ There are useful tutorials. -- Yasuo Ohgaki ""Thomas H$BgH(Ber"" <[EMAIL PROTECTED]> wrote in message 9a1e71$eun$[EMAIL PROTECTED]">news:9a1e71$eun$[EMAIL PROTECTED]... > Hi all, > > i need to use a

Re: [PHP] Setcookie not working

2001-03-30 Thread Yasuo Ohgaki
Someone on this list mentioned, Internet Explorer does not accept cookie that has timeout less than 7200 sec from current time. (PC's clock) How about try longer timeout? PS: Is this information is correct? Anyone? Correct me if it is wrong info. -- Yasuo Ohgaki ""Sean Weiss

Re: [PHP] Passing by reference deprecated?

2001-03-30 Thread Yasuo Ohgaki
FYI Unless you need to modify and return modified contents of variables, pass by reference makes script execution a little slower under PHP4. -- Yasuo Ohgaki ""Neil Kimber"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] initialize session module

2001-03-30 Thread Yasuo Ohgaki
How about http://www.zend.com/zend/tut/ There are several PHP4 tutorials including PHP4 session. The error is most likely that you are specifying invalid session handler. -- Yasuo Ohgaki ""Rol"" <[EMAIL PROTECTED]> wrote in message 022a01c0b8e4$f1271ae0$[EMAIL PRO

[PHP] Regular expression benchmark?

2001-03-30 Thread Yasuo Ohgaki
data. Thanks. -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] For ... in ...

2001-03-29 Thread Yasuo Ohgaki
j as $k => $v) { print("foo->$k = ".$obj->$k."\n"); } ?> Regards, -- Yasuo Ohgaki "André Næss" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Javascript has this very neat control structure that makes it ea

Re: [PHP] For ... in ...

2001-03-29 Thread Yasuo Ohgaki
;); } ?> Regards, -- Yasuo Ohgaki "André Næss" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Javascript has this very neat control structure that makes it easy to iterate over the properties of an object. It would be nice to see something

Re: [PHP] saving uploaded image as file Vs. directly to database

2001-03-29 Thread Yasuo Ohgaki
on of these. (i.e. Use database for management and use filesystem to store files) -- Yasuo Ohgaki ""toto"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > what's the difference between them, i mean for effectiveness and per

Re: [PHP] split string value

2001-03-29 Thread Yasuo Ohgaki
Use split('@',$email_address) http://www.php.net/manual/en/function.split.php -- Yasuo Ohgaki ""Jacky"" <[EMAIL PROTECTED]> wrote in message 005a01c0b8a0$453ede00$[EMAIL PROTECTED]">news:005a01c0b8a0$453ede00$[EMAIL PROTECTED]... Hi people If I h

Re: [PHP] What is the difference between session_unset() and session_destroy()?

2001-03-29 Thread Yasuo Ohgaki
, though. -- Yasuo Ohgaki "Carfield Yim" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > From the manual, > session_unset ¡X Free all session variables > session_destroy ¡X Destroys all data registered to a session >

Re: [PHP] Php extension for Ultradev available now !

2001-03-29 Thread Yasuo Ohgaki
Timely post for me. I am considering upgrading Dreamweaver and Fireworks. How and why do you like Ultradev? Why PHP user should use it? -- Yasuo Ohgaki ""Ovidiu EFTIMIE"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] Sessions: what's wrong sith this code?

2001-03-28 Thread Yasuo Ohgaki
Why do you use un/serialize() for array? If you are using PHP4 session, you don't need it. It's done in session module. Multiple serialize() may be causing your problem. -- Yasuo Ohgaki "Christian Dechery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

Re: [PHP] Session Problem (Design problem!?)

2001-03-28 Thread Yasuo Ohgaki
FYI Use $HTTP_*_VARS to avoid this kind of problems. Variable order may change server to server, so you might not able to rely on it even if you know well about it. -- Yasuo Ohgaki ""Jason Lam"" <[EMAIL PROTECTED]> wrote in message 99uf64$4i9$[EMAIL PROTECTED]"&g

Re: [PHP] Session Problem (Design problem!?)

2001-03-28 Thread Yasuo Ohgaki
That's because your "variable_order" is "EGPCS". (Default) So your PHP is working fine. -- Yasuo Ohgaki ""Jason Lam"" <[EMAIL PROTECTED]> wrote in message 99uf64$4i9$[EMAIL PROTECTED]">news:99uf64$4i9$[EMAIL PROTECTED]... > I got th

Re: [PHP] Storing data from several forms of the same type in an array

2001-03-28 Thread Yasuo Ohgaki
How about use JavaScript to do that. You should be able to access all forms, frames in browser. -- Yasuo Ohgaki ""cam k"" <[EMAIL PROTECTED]> wrote in message 99uart$a48$[EMAIL PROTECTED]">news:99uart$a48$[EMAIL PROTECTED]... > I would like to store data fro

Re: [PHP] Sessions stopped working with 4.04

2001-03-28 Thread Yasuo Ohgaki
Since you are using PHP4.0.4pl1, you also should be able to access session vars with $HTTP_SESSION_VARS. Dose it make differences? -- Yasuo Ohgaki "Shane Iseminger" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello all, &g

Re: [PHP] question about a loop in a loop

2001-03-28 Thread Yasuo Ohgaki
I think array_intersect() and array_diff() is useful for you.. http://www.php.net/manual/en/function.array-intersect.php http://www.php.net/manual/en/function.array-diff.php -- Yasuo Ohgaki "Institute for Social Ecology" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

Re: [PHP] alternate pattern match

2001-03-28 Thread Yasuo Ohgaki
Is there any reason that you cannot use regular expression? -- Yasuo Ohgaki ""Costas"" <[EMAIL PROTECTED]> wrote in message 99t43c$qr4$[EMAIL PROTECTED]">news:99t43c$qr4$[EMAIL PROTECTED]... > How do i extract the position (integer counting from the lef

Re: [PHP] Problems of conversion with strftime()

2001-03-28 Thread Yasuo Ohgaki
Optional 2nd param for date() and strftime() is UNIX timestamp (i.e. integer - seconds from epoch) So I suppose all works as it should. -- Yasuo Ohgaki "Evelio Martinez" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > setlocale(

Re: [PHP-I18N] International support

2001-03-28 Thread Yasuo Ohgaki
this issue. I don't have any > dates though. There are Japanese extentions. I use it and works perfectly with PHP4.0.4pl1 as Apache DSO. Charset conversion both manual and automatic, multi-byte charset reguler expression, Japanese char handling for email, etc. I heard the athour is working

Re: [PHP-I18N] Jstring does'nt seemed to be working,,,

2001-03-28 Thread Yasuo Ohgaki
I guess you are using jstring as shared lib. (I was compiled in my PHP4.0.4pl1, but I'm using it as shared lib now) My modules are working fine with my Apache1.3.17/PHP4.0.4pl1 on Linux. Most likely your jstring.so is not located as PHP expects. Where did you put it? -- Yasuo Ohgaki &qu

Re: [PHP] Caller's Line number?

2001-03-28 Thread Yasuo Ohgaki
__LINE__);) Regards, -- Yasuo Ohgaki ""elias"" <[EMAIL PROTECTED]> wrote in message 99s17u$fd7$[EMAIL PROTECTED]">news:99s17u$fd7$[EMAIL PROTECTED]... > Hello, > > can i make a function that displays the __LINE__ of it's caller? > > ie: > &g

Re: [PHP] odd

2001-03-28 Thread Yasuo Ohgaki
session files unless garbage collection is performed. It will be deleted eventually, though. Try higher gc_probability if you have problem with that. -- Yasuo Ohgaki ""Andrius Lokotash"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PR

Re: [PHP] How to send attachment with email with php?

2001-03-27 Thread Yasuo Ohgaki
Nothing special. You can compose and send with mail(). Read related RFC or grab code does that from elsewhere on net. -- Yasuo Ohgaki "Carfield Yim" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How to send attachment with e

Re: [PHP] Number/Letter Passwords

2001-03-27 Thread Yasuo Ohgaki
", > "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"); > for($i=0;$i<$length;$i++) { > srand((double)microtime()*time()); > $randy = (($mode)? rand(0, count($all)) : rand(0, count($allend))); Count returns number of elements in array, so you should substrct 1. i.e

Re: [PHP] array in sessions

2001-03-27 Thread Yasuo Ohgaki
r']); // to unregister from session > > ?> > > cuz I'll have more pages... > $time["page20"]="300"; > > is this going to automatically load into the session vars or I have to do > something first? No. When I learn new languages, I us

Re: [PHP] Opening Remote Files

2001-03-27 Thread Yasuo Ohgaki
d file before reading. There are so many ways to protect file with passwords. We need to specify how files are protected to help you. i.e. Is it FTP? Protected by a proxy? WWW Basich Auth or Custom authentication? Regards, -- Yasuo Ohgaki > > - Nick > > > -- > PHP General M

Re: [PHP] sessions without cookies?

2001-03-27 Thread Yasuo Ohgaki
You can use URL mode for PHP4 session if you want session w/o cookie. How about read this link? http://www.zend.com/zend/tut/session.php -- Yasuo Ohgaki "duirfire" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, can someone

php-general@lists.php.net

2001-03-26 Thread Yasuo Ohgaki
I got the same results from my benchmarks, also. Unless you want to change variable in function and get modified value, do not use reference. Without reference, PHP4 executes script faster. Due to reference counting in PHP4, probably. Regards, -- Yasuo Ohgaki "Christian Dechery&quo

Re: [PHP] What is session.cookie_secure?

2001-03-24 Thread Yasuo Ohgaki
I guess its for make use of cookie's secure option. (Send cookie only when encryption (SSL) is enabled) I haven't look into code, so I can be wrong. -- Yasuo Ohgaki "Michael Champagne" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PRO

Re: [PHP] Apache +Php -----help

2001-03-21 Thread Yasuo Ohgaki
Your Apache is not handling PHP scripts as PHP script. That's why you get script on your browser. Read these sections in PHP Manual. http://jp.php.net/manual/en/install-windows.php http://jp.php.net/manual/en/install.apache.php Regards, -- Yasuo Ohgaki ""OBB"" <

Re: [PHP] Help!

2001-03-21 Thread Yasuo Ohgaki
I think this should go to BugDB. http://bugs.php.net Try older versions if you in hurry. Regards, -- Yasuo Ohgaki ""Fred"" <[EMAIL PROTECTED]> wrote in message 99be8l$m4u$[EMAIL PROTECTED]">news:99be8l$m4u$[EMAIL PROTECTED]... > I got this error when

Re: [PHP] Authenticated without Authenticating???

2001-03-21 Thread Yasuo Ohgaki
I think there is a article about passing variables site to site in www.phpbuilder.com. I think it will help want you want to do. Regards, -- Yasuo Ohgaki "Brandon Orther" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, &

Re: [PHP] irix compile error (4.0.4pl1): libpq

2001-03-21 Thread Yasuo Ohgaki
Do you have llibpq in your system? Is it under path /usr/lib or /usr/local/lib? If not, get PostgreSQL source, create lib, specify Pgsql install location for configure. If this does not help, I don't know Regards, -- Yasuo Ohgaki "Paul Schreiber" <[EMAIL PROTECTED]

Re: [PHP] linking classes together

2001-03-21 Thread Yasuo Ohgaki
nction => other function cannot use. Make it class member variable. > function sessions { > $db = new mysql_connect; $this->db = new mysql_connect; > } > > function testprint() { > $db-> connect() $this->db->con

Re: [PHP] session destroy???

2001-03-21 Thread Yasuo Ohgaki
Use session_unset() http://www.php.net/manual/en/function.session-unset.php Regards, -- Yasuo Ohgaki ""Miguel Loureiro"" <[EMAIL PROTECTED]> wrote in message 015d01c0b237$61e86720$[EMAIL PROTECTED]">news:015d01c0b237$61e86720$[EMAIL PROTECTED]... Hello all, w

Re: [PHP] Status on ISAPI PHP

2001-03-21 Thread Yasuo Ohgaki
I've recently installed PHP4.0.4 and PHP4.0.5-RC1 for IIS5 (CGI and ISAPI) CGI version works ok so far. However, ISAPI version is very unstable. I haven't use it much, but it is not ready for production use for sure. -- Yasuo Ohgaki ""Carsten Gehling"" <[E

Re: [PHP] Setting up mail() for WinXX

2001-03-21 Thread Yasuo Ohgaki
have MX record(s), if it is configured properly.) Try to use name (i.e. mail.example.com) instead. Regards, -- Yasuo Ohgaki "Todd Cary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am getting a "Failed to connect" e

Re: [PHP] Post -vs- Get

2001-03-21 Thread Yasuo Ohgaki
ks in www.zend.com You get more links here http://www.php.net/links.php -- Yasuo Ohgaki "Jack Sasportas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have written a system with authentication to gain access to individual > data.

Re: [PHP] header redirection

2001-03-21 Thread Yasuo Ohgaki
; . $itemid; > > header ($redirurl); > > ?> > > It appears your code is missing the "Location: " part of the header. In addition to this, you probably better off using absolute URI. (Unless you are using Apache) Refer to RFC for details. -- Yasuo Ohgaki -- PHP Gener

<    1   2   3   4   5   >