Re: [PHP] Shopping Carts

2001-01-10 Thread Chris Lee
an IP at all, if this is just for a cart... then big deal, some script kiddy could try 36^32 possible combinations of a PHPSESSID to try and hijack their cart ! haha. maybe for a something a little more secure. Chris Lee Mediawaveonline.com "Brandon Orther" [EMAIL PROTECTED] wrote in mess

Re: [PHP] mixing HTML and PHP code

2001-01-11 Thread Chris Lee
. Maybe just programming style, everyone to they're own. Chris Lee Mediawaveonline.com "Jason Murray" [EMAIL PROTECTED] wrote in message 1595534C9032D411AECE00508BC766FB010528D0@MERCURY">news:1595534C9032D411AECE00508BC766FB010528D0@MERCURY... if you have ever worked in a

Re: [PHP] Replace a space with _

2001-01-11 Thread Chris Lee
just add this somewhere near the top. $filezip_name = ereg_replace(' ', '_', $filezip_name); Chris Lee Mediawaveonline.com ""David Smith"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... With the following code how can I ch

Re: [PHP] mixing HTML and PHP code

2001-01-11 Thread Chris Lee
It works, it works in lynx, netscape 4.76 netscape 6 mozilla 0.7 IE 5.5 opera 5.01 amaya 4.2.1 now I havent used any mac browsers but if it works for all those I assume it will for Mac browsers eh. Chris Lee Mediawaveonline.com "Alex Black" [EMAIL PROTECTED] wrote in mess

Re: [PHP] PDF error with pdf_open_png

2001-01-11 Thread Chris Lee
Its also very handy when you get an error like that to check you log files, usually when you get no error and no page like that, php has segfaulted apache, might want to check :) there might be other errors in the log files to help you too. Chris Lee Mediawaveonline.com "Jared Howard&qu

Re: [PHP] password()

2001-01-15 Thread Chris Lee
other php developers store their passwd's -plain text in db -use of unix password() -use of db password() -other ? Chris Lee Mediawaveonline.com ""Jason Jacobs"" [EMAIL PROTECTED] wrote in message 011501c07f3f$c415bcc0$5800a8c0@doc">news:011501c07f3f$c415bcc0$5800a8c0

Re: [PHP] Who to make an additon of fetched rows

2001-01-16 Thread Chris Lee
well your code snipit allready shows your answer. $result = mysql_db_query($DBName, "SELECT * FROM basket WHERE UserID='$UID'"); while ($row = mysql_fetch_array($result)) { $CID = $row[0]; $DMN = $row[1]; $DMB = $row[2]; $BID = $row[4]; echo "Price: $DMBbr\n

Re: [PHP] XML, what is that supposed to do?

2001-01-17 Thread Chris Lee
? Chris Lee Mediawaveonline.com "Brandon Orther" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello Everybody, I have seen a lot of people ask for XML support for PHP. I was wondering what it does that makes it good fo

Re: [PHP] Re: How can I get a random number

2001-01-17 Thread Chris Lee
', $mtime); $mtime = $mtime[1] . $mtime[0]; return($mtime); } Chris Lee Mediawaveonline.com "Angela" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I see that you got a lot of responses, but I didn't see anyone using what I use. I had p

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Chris Lee
I use ultraedit 8.0 this editor rocks :) on a side note as someone else posted, 'everyone to their own' it dont matter what editor you love as long as the work gets done. Chris Lee Mediawaveonline.com ""Murph"" [EMAIL PROTECTED] wrote in message 003201c08027$e886c480$[EM

Re: [PHP] Can I fork a PHP thread?

2001-01-17 Thread Chris Lee
Im nearly posative this isnt what your looking for, but I thought I would see if maybe it was :) compile php as a cgi so you can run it from the command prompt. then just run the php file from the command prompt through exec () ? exec("php -q somephpfile.php "); ? untested of cour

Re: [PHP] PHP Editor

2001-01-18 Thread Chris Lee
quot; can you compile/download php for windows as a cgi ? that would solve your problem eh. Chris Lee Mediawaveonline.com "Alaiddin Tayeh" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am using write.exe in the windows to edit my php

Re: [PHP] HTTP_POST??

2001-01-18 Thread Chris Lee
' value='$SkyAccNo' " . checked(@$account_num[$SkyAccNo], $SkyAccNo) . " /td\n"; } ? email me if you have more questions. Chris Lee Mediawaveonline.com ""Wade Halsey"" [EMAIL PROTECTED] wrote in message 025401c0811c$214dfb40$256410ac@WADEH">news:025401c

Re: [PHP] Internals of Session files

2001-01-18 Thread Chris Lee
No if memory serves me correctly php by default saves the session files in its own format, but you can tell php to save sessions in XML (wddx? am I way off) Ive never used XML, WDDX, or tried doing anything directly with the sessions files Chris Lee "Eivind Trondsen" [EMAIL PROTEC

Re: [PHP] How to participate from the digest?

2001-01-18 Thread Chris Lee
There is nothing easier then by going to news://news.php.net I never until php had any use for news groups, they were for perverts with to much bandwidth, haha. now I use my news reader all the time :) Chris Lee Mediawaveonline.com [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]"

Re: [PHP] Quotes and Values

2001-01-18 Thread Chris Lee
find the prior easier to read. they both work 100% no quibles. Chris Lee Mediawaveonline.com ""Karl J. Stubsjoen"" [EMAIL PROTECTED] wrote in message 017b01c081a0$2ad77e50$0afc020a@kstubsjoen">news:017b01c081a0$2ad77e50$0afc020a@kstubsjoen... Hello, I am tryi

[PHP] array_intersect()

2001-01-19 Thread Chris Lee
'; $test_b[] = '501'; $new_array = array_intersect($test_a, $test_b); print_r($new_array); ? Array ( [0] = 501 ) array_insersect() only seems to work with small numbers... or small text. Chris Lee Mediawaveonline.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] array_intersect()

2001-01-19 Thread Chris Lee
ok, Ive got my code to work, but its a big jerry-rig haha. because I am using mtime() (the last two chars are allways 00) I substr the last two chars off, array_insersect() them, then add 00 the the end of all the values in the result array. dumb eh. Chris Lee Mediawaveonline.com "Chri

Re: [PHP] variable question

2001-01-19 Thread Chris Lee
xample you can add another element to $test-s and the loop will auto adjust for this. but both methods work. Chris Lee Mediawaveonline.com Joe Stump [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Put them in an array? PHP allows for variable variables

Re: [PHP] BIG PROBLEM WITH SEARCH!!!!!!

2001-01-19 Thread Chris Lee
D CUserName = '$CUserName' "; if ($CAge) $query .= " AND CAge = '$CAge'"; if ($CEducation) $query .= " AND CEducation = '$CEducation'"; the latter only works if there is at LEAST one variable to be used. Is this what you meant? no? email me k. Chris Lee Mediawave

Re: [PHP] getting from PHP the vars that are in the memory during the execution of the script...

2001-01-21 Thread Chris Lee
$GLOBALS[] should have all varibales right ? maybe someone could correct me. ? foreach($GLOBALS as $pos = $val) { echo "$pos : $valbr\n"; } ? Chris Lee Mediawaveonline.com "Romulo Roberto Pereira" [EMAIL PROTECTED] wrote in message 001101c082eb$6536f

Re: [PHP] solutions to disadvantages when register_globals is off

2001-01-21 Thread Chris Lee
them through $var_1, $var_2, $var_3 Ramus had a good note though, dont think just because its not a GET or Cookie var that a user cant whip up a simple html POST page in about 10sec. Chris Lee Mediawaveonline.com "Dale Robinson" [EMAIL PROTECTED] wrote in message 000d01c083e1$54610aa

Re: [PHP] -

2001-01-24 Thread Chris Lee
t;br\n"; ? all classes do is organize data, its a nice way of doing it too. all the - is access that data/function. Im not quite sure what you mean when you say "generic- becomes something twice" as far as I can see, nothing is becoming nothing. Chris Lee Mediawaveonline.com

Re: [PHP] session without cookies

2001-01-26 Thread Chris Lee
compile with --enable-trans-sid works great for me :) Chris Lee Mediawaveonline.com [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi.. i use the session-functions with php4 and everything works fine. but if a visitor turns off cookies nothi

Re: [PHP] Display progress in browser using flush(); IE versus NS

2001-01-26 Thread Chris Lee
havent tested this but im almost sure that netscape waits until the entire page is downloaded until being displayed IF there are tables on the page. write a small test script to see if Im right. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Spallek, Heiko"&qu

Re: [PHP] Modulus

2001-01-26 Thread Chris Lee
4%2 = 0 4 div 2 equals remainder 0 2 div 4 doesnt divide so your left with the remainder equal to what you started with, 2 -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Mike P"" [EMAIL PROTECTED] wrote in message 94qjq0$rde$[EMAIL PROTECTED]">news

Re: [PHP] sessions without cookies?

2001-01-26 Thread Chris Lee
then mysql_db overhead. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Noel Akins" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Would there be any point in using php sessions if you aren't using cookies? You have to store logi

Re: [PHP] .jpg/.gif extension problem!

2001-01-30 Thread Chris Lee
input type=file name=somefile $somefile $somefile_name $somefile_type nice eh ? -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Fredrik Arild Takle"" [EMAIL PROTECTED] wrote in message 009d01c08adb$b67d26a0$accd4382@hp">news:009d01c08adb$b67d26a0$accd4

Re: [PHP] Php and forking

2001-01-31 Thread Chris Lee
t it works. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Nicklas af Ekenstam" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi! Is there some way (perhaps using a multi threaded httpd?) that I can get php to fork processes? I.e. I'd like t

[PHP] Zend Optimizer not working with @

2001-01-31 Thread Chris Lee
? echo @$test; ? This works without Zend Optimizer installed, as soon as I turn on Zend I get 'undifined variable'. Why doesn't the @ turn this warning off when Zend installed? -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] Exit Function

2001-01-31 Thread Chris Lee
function some($foo, $bar) { if ($foo != $bar) return ; ... } -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Karl J. Stubsjoen"" [EMAIL PROTECTED] wrote in message 004701c08bd5$eecbc340$0afc020a@kstubsjoen">news:004701c08bd5$eecbc340$

Re: [PHP] Cant get this one

2001-02-01 Thread Chris Lee
works and alot simpler ? $result = mysql_db_query('some_db', "SELECT * FROM people"); while ($r = mysql_fetch_array($result)) { echo $r['name']; } ? -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Mike"" [EMAIL PROTECTED] wrote in message 95c3

Re: [PHP] Setting The Font In SENDMAIL

2001-02-01 Thread Chris Lee
email_body = "htmlbodyhello? /body/html\n"; mail($email_address, $email_subject, $email_body, $email_header); ? This should work... -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Jeff Gannaway" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTE

Re: [PHP] Suggest for List

2001-02-01 Thread Chris Lee
. I love it. works great. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Jon Jacob" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This list is very active, but I find that I am deleting about 70% of the messages about reading the f

Re: [PHP] Suggest for List

2001-02-01 Thread Chris Lee
True enough... -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Boget, Chris"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Good idea, I agree, this would be nice. It would allow posters to better categorize thei

Re: [PHP] server side cookies

2001-03-02 Thread Chris Lee
you mean sessions? cookies are client side, sessions are server side (with assistance from cookies or url re-writing) http://php.net/manual/en/ref.session.php should have more then enough information, phpbuilder also has a few articles. -- Chris Lee Mediawaveonline.com ph

[PHP] imap problems.

2001-03-05 Thread Chris Lee
is an array with all the headers pos and their value. this causes segfaults. any idea's? I would pref not to use the dev version of php? I also noticed on ftp://ftp.cac.washington.edu/imap/ that the newest imap is beta, anything stable out there? -- Chris Lee Mediawaveonline.com

Re: [PHP] Start you php script over??

2001-03-05 Thread Chris Lee
SSID=$PHPSESSID"); -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Brandon Orther"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Is there a way for me to t

Re: [PHP] getting info.. help!

2001-03-05 Thread Chris Lee
trim() -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Brandon Orther"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Is there a

Re: [PHP] carriage return in multipart/form-data form post

2001-03-05 Thread Chris Lee
form method=post action='$PHP_SELF' input type=submit /form even the simplest forms product a 0x013 0x10 imediatly after the form I wish there was a way to control this behaviour. I thought it was normal, and anoying. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph

Re: [PHP] Document Contains No Data in Netscape?

2001-03-05 Thread Chris Lee
. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Robert Cooper" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a set of pages I've been working on to do address entr

Re: [PHP] speeding a site with lots of includes

2001-03-05 Thread Chris Lee
/sec with 10 includes each on ALL difernet files. you could have 1000hit/sec on the same files. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Eduardo Dominguez"" [EMAIL PROTECTED] wrote in

Re: [PHP] blank spaces???

2001-03-06 Thread Chris Lee
code snipits allways help :) but a guess would be that your not putting the var in '' echo " select name='somename' option value='$value'$value /select "; please email if this is not the problem. -- Chris Lee Mediawaveonline.com ph. 250.377

Re: [PHP] Not Allowing REload or REfresh with this script?

2001-03-06 Thread Chris Lee
ot;; ? im not exactly sure on what if (issset($userfile)) { global $userfile; unset($userfile); } else { // do some code } this is supposed todo, what is the global there for? what does it do? please explain. -- Chris Lee Media

[PHP] imap functions

2001-03-06 Thread Chris Lee
but doesnt seem stable either, some imap functions if there are no folders or headers causes apache to seg fault. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED]

Re: [PHP] mailing list.

2001-03-06 Thread Chris Lee
use news.php.net it rocks. no huge bulk email in your box after a weekend. no funky re-pley, nice. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Rick St Jean" [EMAIL PROTECTED] wrote in messa

Re: [PHP] 2 questions about performance...

2001-03-06 Thread Chris Lee
ime('start'); // code snippit $debug-time('end'); ? works great or me. you can find out exactly where your code is slowing you down, only thing is now to find out how to improve that :) -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120

[PHP] more imap problems, spec speed

2001-03-06 Thread Chris Lee
ok, Ive now been able to fetch news headers, but boy is it slow. to fetch 10 out of 430 headers your looking at 19sec. news://news.php.net/php.gtk $headers = imap_fetch_overview($this-mail_stream, "427:437"); is slow... oi. any ideas on speed ? --

Re: [PHP] Is it bug?

2001-03-07 Thread Chris Lee
$kodpocztowy $miejscowosc}"; '' vs "" is a big difference, single quotes do not parse the data in between them, therfore it is ok to use '' with {} -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED]

Re: [PHP] How to sort a 2D array?

2001-03-07 Thread Chris Lee
($tmp_array as $pos = $val) echo $array[$pos]['name'] ."br\n"; ? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Zenith"" [EMAIL PROTECTED] wrote in message 9844ps$qi2$[EMAIL PROT

Re: [PHP] Dynamic Links..

2001-03-07 Thread Chris Lee
you mean you want the url ? $HTTP_REFERER This variaable is set by the client's browser though, this means it may not be set at all, or could be forged. you will have to check against this. I dont think this is what you mean though, email me I'll see what I can do. -- Chris

Re: [PHP] explode question

2001-03-07 Thread Chris Lee
?php function check() { $arrLoginName = explode("@", $row-usr_loginName); foreach($arrLoginName as $pos = $val) if (match) return 1; return ; } ? is this what you mean? please post regarding. -- Chris Lee Mediawaveonline.com ph. 250.377

Re: [PHP] email with multiple records

2001-03-07 Thread Chris Lee
ut to lunch here, but sithout a code snippit im grabing here. please post regarding, thank you. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""WreckRman2"" [EMAIL PROTECTED] wrote in message [EM

Re: [PHP] Microtime math and display

2001-03-07 Thread Chris Lee
this-start = $this-break; } } $debug = new debug; //--- $debug-time('start'); // code snippit $debug-time('end'); ? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECT

Re: [PHP] in_array() with multidimensional array

2001-03-09 Thread Chris Lee
) { if (is_array($val)) { if (in_multi_array($needle, $val)) return 1; } else if ($val == $needle) return 1; } } if (in_multi_array('d', $test)) echo "TRUE br\n"; else echo "FALSE br\n"; ? -- Chris Lee Mediawaveonline.com

Re: [PHP] How to insert a BLOB in mysql?

2001-03-09 Thread Chris Lee
type=file name=db_file input type=submit /form /body /html "; ? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Daniele" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

Re: [PHP] oohform validation help

2001-03-09 Thread Chris Lee
input type='submit' name='done' value='Submit' /form "; ? simple stuff, server side is fool proof, client side is foolable. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Christopher Cheng"" [EMAIL P

Re: [PHP] sharing variables

2001-03-09 Thread Chris Lee
"; ? there ya go -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Leo" [EMAIL PROTECTED] wrote in message 98be7g$qnj$[EMAIL PROTECTED]">news:98be7g$qnj$[EMAIL PROTECTED]... hi i'm currently progra

Re: [PHP] ticks wont execute file on one server, but will on another

2001-03-09 Thread Chris Lee
permisions ? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""noah"" [EMAIL PROTECTED] wrote in message 98be51$o3u$[EMAIL PROTECTED]">news:98be51$o3u$[EMAIL PROTECTED]... is there a reason why doing

Re: [PHP] PHP ide features...

2001-03-09 Thread Chris Lee
- syntax highlighting - linking to php.net/manual/ functions. - new files open inside main windows (file tabs) not in new windows (like IE) there are lots -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Dan Cleveland&qu

Re: [PHP] Using PHP as a shell script

2001-03-09 Thread Chris Lee
I use a script like this, place it in cron, run it once a day to search the db and email the nescisary people the reminders they request. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""John Huggins"" [EM

Re: [PHP] include() from one server to another server

2001-03-13 Thread Chris Lee
on the other side, not accually included. ie. include_file.php ?php echo "hello"; $test = 'chris lee'; ? index.php ?php include_once(http://$SERVER_NAME/include_file.php); ? this will echo hello and $test will not be avalible to index.php include() work very differnert

Re: [PHP] Web Page/MySql

2001-03-13 Thread Chris Lee
simple example ?php $database_db = 'bookmarks'; include_once('database_class.egn'); $HOW_MANY = 10; if (!isset($pos)) $pos = 0; $pos_prev = $pos - $HOW_MANY; $pos_next = $pos + $HOW_MANY; $product_count = $database-count('site', ''); $result = $database-select_array('', 'site',

Re: [PHP] selected option values not being captured by form processing software

2001-03-13 Thread Chris Lee
untry, $this_country) ."$this_country "; } echo " /select input type='submit' name='done' value='Submit' /form "; ? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Nicole Lallande" [EMAIL PR

Re: [PHP] How do you keep your scripts secure?

2001-03-14 Thread Chris Lee
/ in the users home dir, ie. /home/lee make a symbolic link callred wwwroot to where ever you want their home ftp dir to be. ln -s /home/httpd/vhosts/lee.com /home/lee/wwwroot done. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED

Re: [PHP] File system or MySQL ?

2001-03-15 Thread Chris Lee
, in a file, oi, headache. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Marian Vasile"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What is faster for a chat

Re: [PHP] POST conversion.

2001-03-15 Thread Chris Lee
/form a href='index.php". make_args() ."'index/a "; ? -- Chris Lee [EMAIL PROTECTED] "Nick Davies" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi (again). Is there a simple was to take post data from a form and create a

Re: [PHP] newbie php authentication quest.

2001-03-15 Thread Chris Lee
;WHERE username = '$PHP_AUTH_USER' AND password = '$PHP_AUTH_PW' ") ) $SessionID = $peop_r['peopleID']; else { Header("WWW-Authenticate: Basic realm='$SERVER_NAME' "); Header("HTTP/1.0 401 Unauthorized"); bad_passwd(); } ? -- Chris Lee [EMAIL PROTECTED] &quo

Re: [PHP] passing variables using hidden fields

2001-03-16 Thread Chris Lee
your not putting it in quotes. echo " input type=hidden name=people_name value=$people_name "; change to echo " input type='hidden' name='people_name' value='$people_name' "; quotes are your friend :) -- Chris Lee [EMAIL PROTECTED] "&

Re: [PHP] echo only displays first character

2001-03-16 Thread Chris Lee
please post more code, ie where $name is set. in the mean time try this, shouldnt help but might foreach($empid as $pos = $val) { echo "{$empid[$pos]} {$name[$pos]}br"; } -- Chris Lee [EMAIL PROTECTED] ""Tom Harris"" [EMAIL PROTECTED] wrote in messag

Re: [PHP] submission of 1..N variables

2001-03-19 Thread Chris Lee
you should be doing. ?php $A[] = '0'; $A[] = '1'; $A[] = '2'; $A[] = '3'; if (isset($A)) foreach($A as $pos = $val) // do something ? alot simpler, expandible and easier to read. Im sure its probably faster too... -- Chris Lee [EMAIL PROTECTED] "Ekkard Gerlach" [EMA

Re: [PHP] Source Protection

2001-03-19 Thread Chris Lee
In defence of zend technologies and open source. Is your php code being used for profit? then purchase the encoder. Is your code being used for non-profit? then release it as open source for the community to use. -- Chris Lee [EMAIL PROTECTED] ""Chris Anderson"&qu

Re: [PHP] Variables problem

2001-03-19 Thread Chris Lee
I dont know how good of an idea it is to have 180 variable variable names. oi, headache. but the question you asked was this. " $q = 'tar1-1' how do I access the variable $tar1-1 " no problem echo $$q; -- Chris Lee [EMAIL PROTECTED] ""Per Kallin"" [EMA

Re: [PHP] Change POST for GET

2001-03-19 Thread Chris Lee
have a 1024 limit for data in the url bar, I could be wrong. the other thing is you'll find spaces suck in url bars. http://www.mediawaveonline.com/index.php?name=Chris Lee ?php echo $name; ? will echo Chris thats all. the space ends all. you'll have to convert all spaces to %20

Re: [PHP] FileUpload problematic

2001-03-19 Thread Chris Lee
where/$file_name"); -- Chris Lee [EMAIL PROTECTED] ""Thalis A. Kalfigopoulos"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Helloppl, a problem with a file_upload form :-( Here is what I've done so far: File test.php whic

Re: [PHP] With all this talk about editors ...

2001-03-19 Thread Chris Lee
'); call_user_func($fav_color); ? there are obviously easier ways todo this, but its a simple example. -- Chris Lee [EMAIL PROTECTED] ""Boget, Chris"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://www.php.net/manual/en/ref.

Re: [PHP] removing element from array

2001-03-19 Thread Chris Lee
unset() ?php $test[0] = 0; $test[1] = 1; $test[2] = 2; $test[3] = 3; foreach($test as $pos = $val) echo "$valbr"; unset($test[2]); foreach($test as $pos = $val) echo "$valbr"; ? -- Chris Lee [EMAIL PROTECTED] &quo

Re: [PHP] Working with files

2001-03-20 Thread Chris Lee
stanard newbie answer :) php is server side, not client side php is serverside there is no way of ever ever doing anything client side because of this. http://php.net/manual/en/function.fopen.php are the functions for opening files. -- Chris Lee [EMAIL PROTECTED] "

Re: [PHP] Register session in function without global?

2001-03-22 Thread Chris Lee
so your trying to take a list of variables and register them as session vars? ?php function make_session($vars) { $vars = explode('|', $vars); foreach($vars as $pos = $val) { global $val; session_register($val); } } ? this will work for that. -- Chris Lee [EMAIL

Re: [PHP] need help with cookies

2001-03-22 Thread Chris Lee
. -- Chris Lee [EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I am trying to set a cookie and it doesn't work. I am running IE 5. I have IE set to prompt before setting cookies but I never get a prompt. Here is my code - b

Re: [PHP] sessions.. again...

2001-03-22 Thread Chris Lee
attachments ar stripped for security purposes by the mailing list server. please post the code in your msg. -- Chris Lee [EMAIL PROTECTED] ""Miguel Loureiro"" [EMAIL PROTECTED] wrote in message 00ad01c0b2ff$f12a9c00$[EMAIL PROTECTED]">news:00ad01c0b2

Re: [PHP] Silly sessions problem.

2001-03-22 Thread Chris Lee
other way around, set the variable the register it session_start(); $hello = 'chris lee'; session_register('hello'); here is my session file. ?php include_once('time.egn'); if ( isset($PHPSESSID) ) session_id($PHPSESSID); session_start(); if (!isset($HTTP_SESSION_VARS

[PHP] how do I find out how many pixels wide / tall a string will be with gd ?

2001-03-22 Thread Chris Lee
how long my string is ? -- Chris Lee [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]

Re: [PHP] Don't understand HTTP_SESSION_VARS

2001-03-23 Thread Chris Lee
); session_start(); if (!isset($HTTP_SESSION_VARS['SessionID'])) { $SessionID = mtime(); session_register('SessionID'); } $PHPSESSID = session_id(); $SID = "PHPSESSID=$PHPSESSID"; ? -- Chris Lee [EMAIL PROTECTED] "Michael Champagne" [EMAIL PROTECTED] wrot

Re: [PHP] WebCam and PHP

2001-03-23 Thread Chris Lee
image/jpeg'); readfile('/path/imagename.jpg'); -- Chris Lee [EMAIL PROTECTED] ""Marcelo Pereira"" [EMAIL PROTECTED] wrote in message 006001c0b396$05167cc0$0b01a8c0@hmmg">news:006001c0b396$05167cc0$0b01a8c0@hmmg... Hi All, How can I show images, captured by a webcam

Re: [PHP] session don't work with php that have version more than 4.03pl1

2001-03-23 Thread Chris Lee
); session_start(); if (!isset($HTTP_SESSION_VARS['SessionID'])) { $SessionID = mtime(); session_register('SessionID'); } $PHPSESSID = session_id(); $SID = "PHPSESSID=$PHPSESSID"; ? this is my session file, works great for me. -- Chris Lee [EMAIL PROTECTED] ""

Re: [PHP] string-integer

2001-03-23 Thread Chris Lee
it fixes it for you. -- Chris Lee [EMAIL PROTECTED] ""Matt Williams"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I am trying to validate a form to check the user has entered there date of birth correctly There are three field

Re: [PHP] Why the data in HTML form lost when the user press back button?

2001-03-23 Thread Chris Lee
fault or your browsers, not php's, blame the browser" haha j/k -- Chris Lee [EMAIL PROTECTED] "Carfield Yim" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Why the data in HTML form lost when the user press back button? And I find

Re: [PHP] How do I get one data only from the array() script?

2001-03-23 Thread Chris Lee
best/easiest/bulkist way it to serialize it and urlencode it. ?php $test[] = 'chris'; $test[] = 'lee'; echo "a href=''$PHP_SELF?". urlencode(serialize($test)) ."test/a"; ? -- Chris Lee [EMAIL PROTECTED] ""Scott Fletcher"" [EMAIL

Re: [PHP] Get info to a perl script and then continue without going to that perl script.

2001-03-26 Thread Chris Lee
you want to just execute the perl script? use http://php.net/manual/en/function.exec.php $return = exec("/pathtocgi/script.cgi VAR1 VAR2 "); if you want the data returned, its in $return. -- Chris Lee [EMAIL PROTECTED] ""Brandon Orther"" [EMAIL PROTE

Re: [PHP] New PHP Coder - needs advice

2001-03-26 Thread Chris Lee
time stamp , time(), you can play with them using getdate() and mktime() those two functions will provide all the date verification you need. -- Chris Lee [EMAIL PROTECTED] ""Rob McMahan, Jr."" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] php sessions and classes

2001-03-26 Thread Chris Lee
version? speed/reliability/stability ? In some benchmarks I did I found postgres lightning fast when it came to multiple table joins, but I have yet to run it in production, so I dont know about stability/reliability. -- Chris Lee [EMAIL PROTECTED] ""Steve Brett"" [EM

Re: [PHP] imap_open() dosen't work :(

2001-03-26 Thread Chris Lee
have you edited your php.ini file ? you have to uncomment the imap dll. extension=php_imap4r2.dll if you dont have this dll, you'll have to find it, cant help you there. -- Chris Lee [EMAIL PROTECTED] ""Nilesh Parmar"" [EMAIL PROTECTED] wrote in message 001b01c0

Re: [PHP] Cookie problem

2001-03-26 Thread Chris Lee
I have to agree Nuno, sessions are alot easier/simpler. -- Chris Lee [EMAIL PROTECTED] "Nuno Silva" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, short: try removing the third parameter to setcookie and if the errors go a

[PHP] how do I turn off error checking in foreach() ?

2001-04-02 Thread Chris Lee
-select_array('', 'orders, orders_product', $query) as $pos = $orders) { ... } -- Chris Lee [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

Re: [PHP] cookies

2001-04-02 Thread Chris Lee
another note (yat) is why do you use php3? Ive seen a few people still using php3 vs php4. I coulndt see any reasn for staying. just alot of reasons to switch. -- Chris Lee [EMAIL PROTECTED] "Louis Brooks" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">new

Re: [PHP] duplicate a table

2001-04-02 Thread Chris Lee
im to lazy to figure out the mysql commands, just copy the files. cp sometable.MYI sometable2.MYI cp sometable.MYD sometable.MYD cp sometable.frm sometable.frm mysqladmin flush-tables easier. -- Chris Lee [EMAIL PROTECTED] ""McShen"" [EMAIL PROTECTED] wrote in

Re: [PHP] stripping tags with regex ?

2001-04-03 Thread Chris Lee
I was interested in stripping the content between the tags too though. the content between the tags is allways 18 char so I did this. $article_body = ereg_replace("image+.{18}/image ", '', $article_body); that seemed to work. oi, regex is bad stuff, haha. -- Chris Lee [EMAIL

[PHP] Re: Problem with fopen / url

2001-12-18 Thread Chris Lee
sounds like php is having a problem resolving the dns. could be 1 of a 100 things ... try putting the IP of the machine in vs the domain name. -- Chris Lee [EMAIL PROTECTED] Martin Leclair [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi,

[PHP] Re: Remote image

2001-12-18 Thread Chris Lee
how those remote servers destinguish where the images are coming from is from the Referr header. play around with getting the data manually using fopen()/fwrite()/fread() and your done. not so easy eh, well it works. -- Chris Lee [EMAIL PROTECTED] Martin Kampherbeek [EMAIL PROTECTED

  1   2   3   4   >