Re: [PHP] hrm...only hit submit once

2001-02-27 Thread Chris Lee
\n"; $done = $PHP_SELF; session_register('done'); } // do some code echo " form method='post' action='$PHP_SELF' input type='hidden' name='submit' value ='1' input type='submit' /form "; ? try this, this allows you to load the page, press submit once, and not again.

Re: [PHP] NN Problem

2001-02-27 Thread Chris Lee
you have a url or code sample to look at ? have you run it through html tidy ? http://www.w3.org/People/Raggett/tidy/ also included in ultraedit 8.0a http://www.ultraedit.com/ -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED

Re: [PHP] Help with a very small array problem

2001-02-27 Thread Chris Lee
ho "a href='$val'$pos /a "; ? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""YoBro"" [EMAIL PROTECTED] wrote in message 97hcsp$59n$[EMAIL PROTECTED]">news:97hcsp$59n$[EMAIL PROTECTED]... Hell

Re: [PHP] session problem

2001-02-27 Thread Chris Lee
ong way Im trying to say that what your experisnceing is normal -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""kaab kaoutar"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTEC

Re: [PHP] File Upload Strangeness

2001-02-27 Thread Chris Lee
e=submit /form /body /html "; ? works or me, email me your comments if this is or isnt working for you -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Jason Murray" [EMAIL PROTECTED] wrote in message [EMAIL PRO

Re: [PHP] ftp connection

2001-02-27 Thread Chris Lee
. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Jon A" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I need some help... I try to do a ftp connection with php, but when i run th

Re: [PHP] File downloading?

2001-02-27 Thread Chris Lee
seem to work in some browsers. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Chris"" [EMAIL PROTECTED] wrote in message 044201c0a112$a06e2470$01c8c8c8@ibcserver">news:044201c0a112$a06e2470$01c8c8c8@ibcserver..

Re: [PHP] redefine constants

2001-02-28 Thread Chris Lee
consants must be scalar, they can not be references. http://php.net/manual/en/function.define.php what your looking for is this. ?php define(LN, __LINE__); ? this is invalid syntax though, I dont know how to answer your question though, sorry :( -- Chris Lee

Re: [PHP] formating output

2001-02-28 Thread Chris Lee
blahbr \n"; more info at http://php.net/manual/en/control-structures.foreach.php email me with more questions, I am eager to help -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""george"

Re: [PHP] illegal string index

2001-02-28 Thread Chris Lee
will get an undefined index error. mysql alter table TABLE_NAME change VAR_NAME VAR_NAME varchar(255) NOT NULL ; please email me if you have more questions or comments, I am interested in knowing how this works for you -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph

Re: [PHP] found a bug with File Uploads..

2001-02-28 Thread Chris Lee
files, but if this is the case, should the security not be server side, vs client side? as you mentioned, modify php.ini to change your limit. does anyone know another use for this ? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL

Re: [PHP] function not working?

2001-02-28 Thread Chris Lee
ion=display"View Contents Of Cart/A is a url, you forgot to include the src of cart.php to see where you are accually calling the function. cart.php ?php if ($action == 'display') display_contents('some_table', $sessionID); ? please email me if you have more questions o

Re: [PHP] PHP single user??

2001-02-28 Thread Chris Lee
sounds like a db prodblem, vs php. could be wrong. check your config file. for the max users. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Todd Cary" [EMAIL PROTECTED] wrote in message [EMAIL PROTEC

Re: [PHP] newbie:cronjob

2001-02-28 Thread Chris Lee
f in /home/httpd/vhosts/somesite/somefile.php ?php phpinfo(); ? have fun. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Wen Ni Leong" [EMAIL PROTECTED] wrote in message [EM

Re: [PHP] File type not set

2001-03-01 Thread Chris Lee
. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Fredrik Wahlberg" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm uploading a file to my server, and I check the mime-ty

Re: [PHP] big database with php ?

2001-03-01 Thread Chris Lee
the name. they request it. I hear problems about un-stability of 7.0 on phpbuilder.com, are they warented? I am interested in hearing strong customer testomonials for postgres or against it. I have little info other then a few benchamrks I ran myself. -- Chris Lee Mediawaveonline.com ph

Re: [PHP] Netscape problems with PHP

2001-03-02 Thread Chris Lee
ESSID=$PHPSESSID"; // echo " a href='http://$SERVER_NAME/$PHP_SELF?$SID'here /a "; ? I amcurious on how this works out -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Rober

Re: [PHP] Include / Require

2001-04-05 Thread Chris Lee
thing. using include_once(..) this way has limited usfullness. not saying its not usfull, just saying its limited. -- Chris Lee [EMAIL PROTECTED] ""Ashley M. Kirchner"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Lindsay Ada

Re: [PHP] timer in PHP

2001-04-11 Thread Chris Lee
time() if it is then proceed, else update next_time = time + 300; If you need a code example email me, I'll whip something up :) -- Chris Lee [EMAIL PROTECTED] ""george"" [EMAIL PROTECTED] wrote in message 9b1p05$t6c$[EMAIL PROTECTED]">news:9b1p05$t6c$[EMAIL

Re: [PHP] No new topic using reply please.

2001-04-11 Thread Chris Lee
by hitting relpy, hehe. -- Chris Lee [EMAIL PROTECTED] ""Yasuo Ohgaki"" [EMAIL PROTECTED] wrote in message news:9b1k02$f6h$[EMAIL PROTECTED]... Hello all, I think most of users knows about news://news.php.net and list archives, if you use your mail client's reply but

Re: [PHP] header( )

2001-04-11 Thread Chris Lee
Authenticate: Basic realm='$SERVER_NAME' "); Header("HTTP/1.0 401 Unauthorized"); bad_passwd(); } ? -- Chris Lee [EMAIL PROTECTED] "Patrick Dunford" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can someone explain "

Re: [PHP] Loop issue

2001-04-12 Thread Chris Lee
ult['link_name']; } } } ok this is a supper basic example, but try it, modify it, play around. it'll give you a basic idea. -- Chris Lee [EMAIL PROTECTED] "Fates" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am trying to make a simple H

Re: [PHP] PHP and Ranges

2001-04-19 Thread Chris Lee
I can do it, it aint pretty though ?php for($c = 0; $c 65535; $c++) $range[] = $c; $a[0] = '12'; $a[1] = '198'; $a[2] = 'B'; foreach($a as $pos = $val) if (in_array($val, $range)) echo "True br"; else echo "False br"; ? works, just aint pretty. --

Re: [PHP] Treestructure

2001-04-19 Thread Chris Lee
$padding--; } all you need is three fields, the categories id, the categories parent, and the categories name. recusion is tricky stuff :) -- Chris Lee [EMAIL PROTECTED] ""Johan Evers Petersen"" [EMAIL PROTECTED] wrote in message 9bnn77$524$[EMAIL PROTECTED]">ne

Re: [PHP] Which is better coding style...

2001-04-19 Thread Chris Lee
I preffer the first. -- Chris Lee [EMAIL PROTECTED] ""Boget, Chris"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Which is better? function blah() { switch( $bob ) { case 1: return "this"; cas

Re: [PHP] Which is better coding style...

2001-04-19 Thread Chris Lee
I agree with your bracket style not your return policy. oh well :) if ($true) { // do something } else { // do something else } -- Chris Lee [EMAIL PROTECTED] ""Sander Pilon"" [EMAIL PROTECTED] wrote in message 008d01c0c90f$c712bbc0$ce6278d4@cc6755b"&g

Re: [PHP] Which is better coding style...

2001-04-19 Thread Chris Lee
. -- Chris Lee [EMAIL PROTECTED] "Philip Olson" [EMAIL PROTECTED] wrote in message Pine.BSF.4.10.10104192119590.43248-10@localhost">news:Pine.BSF.4.10.10104192119590.43248-10@localhost... coding style? here's what pear has to say : http://www.php.net/manual/en/pear.st

Re: [PHP] Starting PHP script with crontab

2001-04-19 Thread Chris Lee
compile php as a cgi then do this php -q test.php done. no problem, it will probably install php into /usr/local/bin make sure its in the path -- Chris Lee [EMAIL PROTECTED] ""Bertjan Schrader"" [EMAIL PROTECTED] wrote in message 9bmddj$hdd$[EMAIL PROTECTED]&quo

[PHP] PATH_INFO and trans-sid

2001-04-24 Thread Chris Lee
is there a simple way to tell php to use the new format? other then // top ob_start(); ... // bottom echo ereg_replace(?PHPSESSID=. session_id(), /PHPSESSID/. session_id(), ob_get_contents()); oi, what a mess -- Chris Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] A simple problem!

2001-04-24 Thread Chris Lee
your variable scope is local not the function function name() { global $variable; } -- Chris Lee [EMAIL PROTECTED] Subodh Gupta [EMAIL PROTECTED] wrote in message 002b01c0cce9$aa670b60$c834d6d2@subodhgu">news:002b01c0cce9$aa670b60$c834d6d2@subodhgu... Can You figure out the

[PHP] Get Local IP Address

2003-07-27 Thread Chris Lee
How can I get the local Computer IP Address when running PHP program in Windows command line (i.e. php getmyip.php) ** Since the PHP did not are run on Webserver, so _SERVER[SERVER_ADDR] won't work. Many thanks in advance. Regards, Chris -- PHP General Mailing List (http://www.php.net/) To

[PHP] Local IP Address

2003-07-27 Thread Chris Lee
How can I get the local Computer IP Address when running PHP program in Windows command line (i.e. php getmyip.php) ** Since the PHP did not are run on Webserver, so _SERVER[SERVER_ADDR] won't work. Many thanks in advance. Regards, Chris -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Get Local IP Address

2003-07-28 Thread Chris Lee
Try this: ?php exec('ipconfig',$catch); foreach($catch as $line){ if(eregi('IP Address',$line)){ list($t,$ip) = split(':',$line); echo 'IP is '.$ip.\n; } } ? Thanks Tom, but I think it only work for Win NT, how about Win 9x? -- PHP General

[PHP] Cannot output before input

2003-08-17 Thread Chris Lee
first? I am using PHP 4.3.2 (cli) (built: May 28 2003 15:10:38) Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cannot output before input

2003-08-18 Thread Chris Lee
ob_flush() Thanks curt, it's working ^_^ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Apache per directory setting

2004-01-06 Thread Chris Lee
(Default is off). Any Hints? Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache per directory setting

2004-01-06 Thread Chris Lee
You need to use: php_value register_globals 1 I tried, but still fail, phpinfo still show register_globals OffOff Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache per directory setting

2004-01-07 Thread Chris Lee
Dear Umesh, I already restart Apache, but it didn't work. OT question: Do Apache's Directory Directive, use relative path or absolute path for matching? Beside, I am using PHP Version 4.2.3 Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

<    1   2   3   4