this is what you need)
Take your time to read array functions, you might find other functions that is
useful.
Regards,
--
Yasuo Ohgaki
- Original Message -
From: ""karakedi"" [EMAIL PROTECTED]
Newsgroups: php.general
Sent: Saturday, March 17, 2001 10:07 AM
Sub
['var']'.
Regards,
Yasuo Ohgaki
=
My favorite links
[RFC] http://www.faqs.org/rfcs/ [W3C] http://www.w3.org/
[PHP Manual] http://www.php.net/manual/en/
Hello,
Try the following code:
?php
$gGlobal = 1;
function ChangeGlobalValue()
{
global $gGlobal;
$local
ocal that has 99 in the function)
Because $gGlobal itself is local to the function.
Therefore, you cannot get 99 outside the function, but 55.
I hope I explained well, so that all readers understand what I'm talking about.
Regards,
--
Yasuo Ohgaki
Bye, John
""Yasuo Ohgaki"&qu
l;
$local is NOT a reference. $gGlobal is reference.
In this case, you are actually changing. $GLOBAL['gGlobal'] in this case.
I think you figures it out why now.
Regards,
--
Yasuo Ohgaki
print "Value:Global=$gGlobalBR";
}
$gGlobal = 1;
ChangeGlobalValue();
print $gGlobal; ==
ful values are set or not. If you can
use DSO, I recommend to do it.
Regards,
--
Yasuo Ohgaki
I know the answer will be something simple but I cant seem to find much help
anywhere. Any help or push in the direction of a useful web page would be
nice.
Paul
--
PHP General Mailing
P, use CGI version of PHP for it.
Regards,
--
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Ma
" when the use press back
button? And then all the information in the form that user fill is lost,
how can I fix this? thx
Set your session.cache_limitter to private and set some reasonable expration
time for session.cache_expire.
Regards,
--
Yasuo Ohgaki
--
PHP General Mailing List (http://ww
- Original Message -
From: "Chung Ha-Nyung" [EMAIL PROTECTED]
To: "Yasuo Ohgaki" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, March 14, 2001 5:07 PM
Subject: Re: [PHP] [Q] session variables wouldn't keep contents.
I found something!
If I set reg
ion. It seems there are some browsers that will not take
cookie on initial request, and fallback to URL mode. See notes session section
in Online PHP Manual for details.
Regards,
--
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
_VARS in PHP Variables section neither!! I didn't notice
it.
Question is 'Do developers consider this as a bug or the way it should be'.
How about post a mail to php-dev list?
Regards,
--
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
Did you read this page?
http://www.php.net/manual/en/features.images.php
What is your php code looks like? if you read this page already.
Yasuo Ohgaki
=
My favorite links
[RFC] http://www.faqs.org/rfcs/ [W3C] http://www.w3.org/
[PHP Manual] http://www.php.net/manual
JavaScript.
For example, if you can submit form when tab is pressed, you can write
JavaScript to do that.
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
print('error');
break;
}
?
BTW, this works C/C++.
Regards,
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
So i've heard bits and pieces that JavaDoc can parse out comments about
php...
does anyone have an example of a command line call to javadoc passing a PHP
file?
PHPDoc or PHP Documentator, I guess.
http://www.phpdoc.org/
Regards,
Yasuo Ohgaki
--
PHP General Mailing List (http
.
very strange.
You are not alone,
Seth
FYI.
I think this is fixed in CVS version.
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
r ($i = 0; $i 1; $i++) {
reset($HTTP_SERVER_VARS);
while(list($k,$v) = each($HTTP_SERVER_VARS)) {
$key = $k;
$val = $v;
}
}
$timer-set_marker("Marker: WHILE");
$timer-stop();
$profiling = $timer-get_profiling();
print_r($profiling);
?
/pre
/body
/html
====
you
should be able to see file or record for the session. If you are using file
session handler, what is directory permission for session data storage? Nobody
need to have write permission usually. (You are using Apache on Linux, right?)
Sounds like it is the problem to me.
Regards,
Yasuo Ohgaki
--
P
like
oops header already sent)
Something must be wrong, since your environment is similar to that I have.
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
Thank you for your reply, Chris.
- Original Message -
From: "Chris Adams" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 14, 2001 3:50 PM
Subject: Re: [PHP] foreach() faster than while()?
On 13 Mar 2001 18:10:45 -0800, Yasuo Ohgaki [EMAIL PROTECTED] wrote:
I cannot figure out what is your problem exactly.
Could you explain what you want to do with on server side(PHP) and client
side(JavaScript) again on the new thread?
Regards,
--
Yasuo Ohgaki
""Richard"" [EMAIL PROTECTED] wrote in message
98ev42$r6d$[EMAIL PROTECTED]&quo
ecne of non-white-space
charactors in C and PHP.
Your $buffer should only have "lenin".
So if you write like
while (fscanf($file,"%s %s",$buf1,buf2))
You should get "lives" in $buf2.
Regards,
Yasuo Ohgaki
best regards,
jakub zytka
--
PHP General Mailing List
- Original Message -
From: "Kubol" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 13, 2001 12:48 AM
Subject: Re: [PHP] fscanf
01-03-13 05:00:01, "Yasuo Ohgaki" [EMAIL PROTECTED] wrote:
I think fscanf() is line oriented in C, isn't it? (I
not want to use Cookie and JavaScript, how about
compare fields data for one by one?
(or you can use URL session with the 1st method)
I think there are many other ways to do the same thing. Anyone?
--
Yasuo Ohgaki
-
Hub.Org Networking Services
251 Main St.
Wolfvil
No.
Check box and radio buttons are not set, though.
Regards,
--
Yasuo Ohgaki
""stas"" [EMAIL PROTECTED] wrote in message
026001c07cc4$aeaa6250$9701a8c0@snewdel">news:026001c07cc4$aeaa6250$9701a8c0@snewdel...
Hello,
Is it that correct that only non-
without it when I use $HTTP_SESSION_VARS at least.
I think it will not work without $HTTP_SESSION_VARS.
(PHP4.0.4pl1/Apache/RedHat Linux7)
Regards,
--
Yasuo Ohgaki
Regards,
--
Chung Ha-Nyung [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [
d be greatly appreciated!
Thanks/Erick
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.237 / Virus Database: 115 - Release Date: 07-Mar-01
Yasuo Ohgaki
== PHP and Related Resources ==
[PHP FAQ] http://www.php.net/FAQ.php [
What is your environment? (OS, glibc version, Web Server, PHP version, compiler
version, How do you use PHP? Shared module/CGI, Character Set, etc)
I have different, but similar problem.
Yasuo Ohgaki
From: "kaab kaoutar" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 10,
read japanese, there is
better non-standard module. Just mail me if you want the URL.
Regards,
--
Yasuo Ohgaki
--
Sites by friends of mine: http://www.myhiddentreasures.com
write better code. I don't
recommend to use short tag. Use ?php instead.
Regards,
--
Yasuo Ohgaki
- Original Message -
From: "Todd Cary" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 11, 2001 1:59 AM
Subject: [PHP] Using Cookies
This is a test script so I can g
t-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
FYI.
If you are using PHP4 session, it will be done automatically when you set
session.cache_limmter = 'nocache';
Also read, RFC2068 for HTTP1.1, RFC1945 for HTTP 1.0.
Regards
--
Yasuo
Did you detect if browser's cookie is enabled??
Regards,
--
Yasuo Ohgaki
"Dhaval Desai" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi!
This website is authenticated using cookies.
I don't understand why..? Id works from some computers
Assuming you are talking about PHP4 session.
Garbage collection is done by the module.
Read
http://www.php.net/manual/en/ref.session.php
Regards,
--
Yasuo Ohgaki
""deco"" [EMAIL PROTECTED] wrote in message
98dtge$2ad$[EMAIL PROTECTED]">news:98dtge$2ad$[EMAIL PROTECTE
are not difficult. There are many
session
handlers for verious databases. How about look for one and modify?
Regards,
Yasuo Ohgaki
I hope that I have overlooked something.
Thanks in advance,
--
Simon Woods
Siemens Business Services
SBS EBS D CKS
Munich Germany 089 / 636 54347
--
PHP General
re setting include_path right, are you sure you don't have typo?
Refer to
http://www.php.net/manual/en/configuration.php
Regards,
--
Yasuo Ohgaki
for example, lets say i have a directory called:
c:/apache/htdocs/phpprograms/
inside this phpprograms, i have the following files:
Here is the code in question with the
who code below. When I try to upload a 3 MB
file it doesn't produce an error. Everything else works
fine.
You need to edit your php.ini
Read your php.ini and look for upload_max_filesize.
Regards,
--
Yasuo Ohgaki
PHP and Related resources
[PHP FAQ] http://www
ient side script in server side script, though.
Regards,
--
Yasuo Ohgaki
PHP and Related resources
[PHP FAQ] http://www.php.net/FAQ.php
[PHP Manual] http://www.php.net/manual/en/
[PHP Links] http://www.php.net/links.php
[RFCs] http://www.faqs.org/rfcs/
- Richard
--
PHP General Mailing List (h
rhythm");
$synth = array("synthmain", "part", "patches");
$synthtype = array("synthtypemain", "dx7", "k2000", "k2vx", "k2500");
$audio = array("audiomain", "synth");
$recordings = array("r
an access $userfile and echo back to
the page the full path. However, $userfile_name, $userfile_type, and
$userfile_size are broke. They echo back nothing at all.
Any ideas ?
Have you checked $HTTP_POST_FILES?
Regards,
--
Yasuo Ohgaki
PHP and Related resources
[PHP FAQ] http://www.php.n
There is a great manual and FAQ. Did you read manual? FAQ?
PHP Manual
http://www.php.net/manual/en/
Install Section
http://www.php.net/manual/en/installation.php
FAQ
http://www.php.net/FAQ.php
Regards,
Yasuo Ohgaki
""Richard S. Crawford"" [EMAIL PROTECTED] wrote in mess
good one on this list.
http://phpclasses.upperdesign.com/browse.html/package/1
Regards,
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Read RFC2396 for URI format.
You are escaping query string as HTML where do you don't have to.
When you deal with query string, you should escape as URL.
Read PHP manual for rawurlencode()/rawurldecode() for URL encode/decode.
Regards,
Yasuo Ohgaki
- Original Message -
From: "Ji
ment under my environment.)
OS: RedHat7 (w/o glibc update)
Apache: 1.3.17
PHP: 4.0.4pl1 (module)
Thanks for your info.
--
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contac
that checks JavaScript and cookie
is enabled. You can find at
http://www.zend.com/codex.php?id=458single=1
Regards,
Yasuo Ohgaki
Hi all,
I have a timeout problem with sessions. I use the PHP session handling
(4.0.4pl1). It works, but it times to fast out.
I've set:
ini_alter
On Thursday 08 March 2001 11:14, Yasuo Ohgaki wrote:
I guess your clients PC's clock is not accurate. How about set timeout
to
0? Then session cookie will not timeout until browser is closed.
Actually the server and client clock only differs with about 1 minute.
Then how about check
nt expiration is too long. From my php.ini
;session.cache_expire = 180 ; document expires after n minutes
Hope this helps.
Yasuo Ohgaki
== original msg ===
Then how about check the server's response headers that sent to client? You
can view headers using wget or like. PHP might be sen
on_destroy();
unset($CUserName);
header("Location: $PHP_SELF");
By the way, Location header requires absolute URI. Most browser works with
relative URI, though.
Regards,
---
Yasuo Ohgaki
}
else
{
session_register("CUserName");
$CUserNameSession="CUserName";
}
There is a error on www.php.net
http://www.php.net/manual/browse-errata.php
Fatal error: Call to undefined function: spc() in
/local/Web/sites/phpweb/manual/browse-errata.php on line 39
I don't know where to report
I hope www.php.net admin read this post.
Regards,
Yasuo Ohgaki
FYI
For those who do not know about news server.
(I didn't know there is a news server for mailing lists.)
news://news.php.net
I think it is better to be mentioned in www.php.net support or any other
appropriate places.
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net
vaScripts RegEx reference page,
http://developer.netscape.com/docs/manuals/communicator/jsref/corea3.htm#115
8210
Any regular expression references will be probably helpful. How about look
for some?
([] are meta chars, you need to escape meta chars.)
Regards,
Yasuo Ohgaki
But when I add the c
Do you use custom session handlers?
Try session_unset() also. It may help.
Regards,
Yasuo Ohgaki
Got a problem with sessions.
On my index page, there's a place for people to login. Well, when I test
with two different user names (ie: mike and jlo) it reverts to the first
one when login
}
If you can use $HTTP_SERVER_VARS, using it is safer.
Regards,
Yasuo Ohgaki
thanks
michi
--
Sent through GMX FreeMail - http://www.gmx.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
(I'm sure there will be many), and
be
able to guide towards something that will work.
Hope I understand your mail.
Regards,
Yasuo Ohgaki
Thanks,
Patrick.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
edition can accept may wrong. I don't
remember well. Correct me if it is wrong.) Or didn't you setup DB to accept
only 1 connection? Sounds like this is the reason to me.
Regards,
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
?.
(I use include() always, though)
Regards,
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
;
}
Regards,
Yasuo Ohgaki
-Original Message-
From: John Huggins [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 3:04 PM
To: Manuel Lemos; [EMAIL PROTECTED]
Subject: RE: [PHP] Double Click
If you are lucky and are feeding this form data to a database, you can
create
to fill bug
report with your code.
Regards,
Yasuo Ohgaki
---
My test code output
=== BEGIN ===
Resource id #1= database link resource
Resource id #2= query result resource
Object = PgSql db object
Resource id #3 = query
it is a URL
though...
http://www.php.net/ is correct URL and you should be able to click it to
open it.
If you want to send HTML mail, take a look at whole HTML formatted mail
including headers in your mail box. You will get how to compose HTML
formatted mail.
Regards,
--
Yasuo Ohgaki
/manual/en/ref.exec.php
(system(), exec(),etc)
Regards,
--
Yasuo Ohgaki
Is there any way I can move a file from one directory
to another and also is tehre any way I can delete a
particluar file in a directory..
Thank You!
Cheers!~
Dhaval Desai
t;0"),
array("cellpadding", "0"));
I'm not sure, but is this what you want?
$attributes = array(array('border'=0),array('cellpadding'=0));
or
$attributes[] = array('border'=0);
$attributes[] = array('cellpadding'=0);
--
Yasuo Ohgaki
--
PHP Gen
m
post will work.. but the previous will be corrupted.
I cannot understand what you mean well
3. i try using file input elements as arrays.. meaning input type=file
name=filearr[x].. doesn't work?
See the code and output, it works. (at least when PHP stores uploaded file
info to $HTTP_UPLOAD
for all browsers unless you explicitly does so, I
believe. I guess it is due to the browser implementation difference or bug
in NN.)
Regards,
--
Yasuo Ohgaki
This could be a JS issue but right now I'm really
not sure.
I have this code,
} elseif ($cat == 'bikes' $sub_cat == 'Road') {
$i
,
--
Yasuo Ohgaki
I'm having trouble establishing MySQL sessions when the client is running
from behind a remote firewall. (I.e., the MySQL server has a static
internet IP, but the remote client which is accessing, or better said,
attempting to access the MySQL database via PHP
by POST method. (Except
$HTTP_UPLOAD_FILES)
Using $HTTP_* variables improves code readability I think
PS: You can use $GLOBALS[] to access all global vars.
Regards,
--
Yasuo Ohgaki
Zenith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hello all,
I would like to know if anyone already wrote FORM module (not PHP
class/function) that handles HTML forms (elements, validation, etc).
I searched freashmeat, I couldn't find one.
Thanks,
--
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
an be both absolute and relative. Someone mentioned
Apache's response header differ when 'Location: ' header is absolute and
relative. he/she said when 'Location: ' is realative Apache send Status:
200, when it is abosolute apache send Status: 302. (I didn't confirm this,
though)
Just FYI.
Regards,
--
Ya
If you would like to access /etc/shadow, you probaly make a new extension
that
interfaces PAM. Is there PAM extensoin for PHP4?? already??. I also would
like to get one if there is.
--
Yasuo Ohgaki
Hi,
Why do you want to access /etc/shadow from your PHP?. As a general
rules of thumb that's
posted Bug Report to www.php.net BugID#9369
Take a look at comments in test2.php
--
Yasuo Ohgaki
Previous Post was Re: [PHP] Strange behavior: Cannot exit as expected AND
Script starts from the beginning, executed TWICE. Anyone?
[If you have comments on this please send e-mail to me]
I think
-
html
body
You have been registered to this web sitebr
username = ?php @print($HTTP_POST_VARS['username']; ?br
......
/body
/html
---
--
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
I'm having problem with Netscape6 does not resend valid POST data to PHP.
Netscape is waiting until connection timeout. If I hit stop button, it logs
warning message attached to this mail. (These forms work fine with IE5.x,
NN4.5)
I found out work around days ago, but I didn't post list..
not try with code as follows - it works as expected.
?php
if (isset($HTTP_POST_VARS['sub_btn'])) {
include('test2.php');
exit;
}
else {
include('test3.php');
exit;
}
?
Cheers,
Ben
Yasuo Ohgaki wrote:
This is really strange. PHP fails to exit / die form script after
include /
require / include
explanation for this strange PHP4 behavior
other than possibility that glibc has bugs. (8bit char unsafe code, etc. I
haven't research about my exact glibc version nor bugs yet.)
Any comments appreciated.
--
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
"Richard Lynch" [EMAIL PROTECTED] wrote:
The writing of the session data occurs *after* the server-browser HTTP
connection is cut.
If you have any error-reporting happening in your session_write
function,
you won't see it.
Alter that function to log errors to a file or something.
It
It's a .inc, which means that PHP does not know to parse it. Which
means, that person can see your usernames and passwords. And because it's
a
public package, they're far more likely to know the path to said file.
--
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
/session.inc on line 139
=
Yasuo Ohgaki
--
[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]
301 - 374 of 374 matches
Mail list logo