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

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 " $value "; please email if this is not the problem. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250

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

2001-03-06 Thread Chris Lee
"; ?> 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

[PHP] imap functions

2001-03-06 Thread Chris Lee
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

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

2001-03-06 Thread Chris Lee
gt;start = $this->break; } } $debug = new debug; //--- $debug->time('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

[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
ko $ulica $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

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

2001-03-07 Thread Chris Lee
this will work $val) $tmp_array[$pos] = $val['year']; asort($tmp_array); // display however you want foreach ($tmp_array as $pos => $val) echo $array[$pos]['name'] ."\n"; ?> -- Chris Lee Mediawaveonline.com ph. 250.377.1095

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

Re: [PHP] explode question

2001-03-07 Thread Chris Lee
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.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED]

Re: [PHP] email with multiple records

2001-03-07 Thread Chris Lee
one is '. $people[$pos]['phone'] ."\n"; mail($email_to, $email_body, $email_from); } now good change im out to lunch here, but sithout a code snippit im grabing here. please post regarding, thank you. -- Chris Lee Mediawaveonline.com ph. 250.377.1

Re: [PHP] Microtime math and display

2001-03-07 Thread Chris Lee
eak - $this->start) / 10; echo number_format($time, 4) .' '. $text ."\n"; $this->start = $this->break; } } $debug = new debug; //--- $debug->time('start'); // code snip

Re: [PHP] in_array() with multidimensional array

2001-03-09 Thread Chris Lee
recusrion is your friend. $val) { 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 \n"; else echo "FALSE \n"; ?> --

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

2001-03-09 Thread Chris Lee
works great. I use it on a few sites. time.egn has a simple mtime() function and database.egn are just my sql wrappers. "; ?> -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Daniele"

Re: [PHP] oohform validation help

2001-03-09 Thread Chris Lee
using client side form verification is a bad idea anyhow, just write a simple php verify. "; foreach ($form_error as $pos => $val) echo " $val "; echo " "; } echo " "; ?> simple stuff, server side is fool proof, c

Re: [PHP] sharing variables

2001-03-09 Thread Chris Lee
ID']); if ( isset($HTTP_POST_VARS['PHPSESSID']) ) session_id($HTTP_POST_VARS['PHPSESSID']); if (!isset($HTTP_SESSION_VARS['SessionID'])) { $SessionID = mtime(); session_register('SessionID'); } $PHPSESSID = session_id(); $SID = "PHPSESSID=$PHPSES

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 r

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&quo

Re: [PHP] dynamic content again

2001-03-09 Thread Chris Lee
; Back "; echo " Home "; if ( $pos_next < $product_count ) echo " Next "; ?> compare your position to how many fields are in the db. SELECT count(*) FROM site ; -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1

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"" <[

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 index.php http://$SERVER_NAME/include_file.php); ?> this will echo hello and $test will not be avalible to index.php include() work very differnert depending on how it is used. -- Chris Lee Mediawaveonline.com

Re: [PHP] Web Page/MySql

2001-03-13 Thread Chris Lee
simple example count('site', ''); $result = $database->select_array('', 'site', "LIMIT $pos, $HOW_MANY"); foreach($result as $pos => $val) echo $val['site_address'] ."\n"; if ($pos_prev >= 0) echo " Back "; echo " Home "; if ( $pos_next < $product_count ) echo " Next ";

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

2001-03-13 Thread Chris Lee
$this_country = $val['country']; echo " $this_country "; } echo " "; ?> -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Nicole Lallande" <[EMAIL PROTECTED]> wrote

Re: [PHP] basket logo replacement

2001-03-14 Thread Chris Lee
quot;item NOT in cart"; ?> check if the stockno is in the cart, if it is display a differnet icon -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Mark Lo (3)"" <[EMAIL PROTECTED]> wrote in messag

Re: [PHP] [?] How to make many one line forms in a loop?

2001-03-14 Thread Chris Lee
more lilly then not its the " ' problems. echo " $remote_address $file_id $user_id $time_of_event "; is better -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Joh

Re: [PHP] Multiple rows returned ?. . .

2001-03-14 Thread Chris Lee
while loop while($row = mysql_fetch_array($result)) { //do something. } -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Mrvball008"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

Re: [PHP] IMAP sort help.

2001-03-14 Thread Chris Lee
use OP_HALFOPEN. I had to use this to get nntp working right. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Terrence Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

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

2001-03-14 Thread Chris Lee
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] "Ja

Re: [PHP] File system or MySQL ?

2001-03-15 Thread Chris Lee
atment, 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 fa

Re: [PHP] POST conversion.

2001-03-15 Thread Chris Lee
amp;', $args)); } } echo " index "; ?> -- 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] Finding the depth

2001-03-15 Thread Chris Lee
ok, this is what you asked for "; ?> but why cant you just do this. echo " "; -- Chris Lee [EMAIL PROTECTED] "Harshdeep S Jawanda" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all,

Re: [PHP] newbie php authentication quest.

2001-03-15 Thread Chris Lee
x27;]; else { Header("WWW-Authenticate: Basic realm='$SERVER_NAME' "); Header("HTTP/1.0 401 Unauthorized"); bad_passwd(); } ?> -- Chris Lee [EMAIL PROTECTED] ""Christian Boesch"" <[EMAIL PROTECTED]> wrote in message 016a01

Re: [PHP] Own User authentification

2001-03-15 Thread Chris Lee
h_db_value('people_manager', "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 Unauthori

Re: [PHP] External file?

2001-03-15 Thread Chris Lee
I think im not understandting, because your asking a simple question. -- Chris Lee [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Morning, I have a section of HTML that Is added to a page if a user logs in successful

Re: [PHP] Not Looping...

2001-03-15 Thread Chris Lee
this question was answered be me only two days ago. it would be nice to see people checking before they post. -- Chris Lee [EMAIL PROTECTED] ""WreckRman2"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am having

Re: [PHP] Variable value doesn't stay "Null"

2001-03-15 Thread Chris Lee
null is a bad idea. if a value is set to null in a table then that variable will not be set. namephonefaxemail chris lee37710955541120NULL $result['name'] is 'chris lee' $result['phone'] is '3771095'; $result[&#x

Re: [PHP] 3 situations - PHP Power or... servlet(JSP) power ?

2001-03-15 Thread Chris Lee
try it. everyone will get a differnet answer, the only way we could tell would be to write three scripts and time them, you write three scripts and time it and you will get different results then us. -- Chris Lee [EMAIL PROTECTED] ""Marian Vasile"" <[EMAIL PROTE

Re: [PHP] FAQ

2001-03-15 Thread Chris Lee
people wouldnt use an FAQ, when you see three people ask the exact same question on one single day, you know they dont read the other post, or care. if they wont read the posts on the same day they wont read an FAQ, they keep posting. -- Chris Lee [EMAIL PROTECTED] ""

Re: [PHP] passing variables using hidden fields

2001-03-16 Thread Chris Lee
your not putting it in quotes. echo " "; change to echo " "; quotes are your friend :) -- Chris Lee [EMAIL PROTECTED] ""george"" <[EMAIL PROTECTED]> wrote in message 98tdl2$ps2$[EMAIL PROTECTED]">news:9

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]}"; } -- Chris Lee [EMAIL PROTECTED] ""Tom Harris"" <[EMAIL PROTECTED]> wrote

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

2001-03-19 Thread Chris Lee
I'll show you how you want, but will recommend using arrays. heres what you should be doing. $val) // do something ?> alot simpler, expandible and easier to read. Im sure its probably faster too... -- Chris Lee [EMAIL PROTECTED] "Ekkard Gerlach" <[EMAIL

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"&quo

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"&qu

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

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

2001-03-19 Thread Chris Lee
what if you have three headers depending on what colors a user likes. this favorite color is stored in a session variable $fav_color = 'blue_header'; there are obviously easier ways todo this, but its a simple example. -- Chris Lee [EMAIL PROTECTED] ""Bo

Re: [PHP] removing element from array

2001-03-19 Thread Chris Lee
unset() $val) echo "$val"; unset($test[2]); foreach($test as $pos => $val) echo "$val"; ?> -- Chris Lee [EMAIL PROTECTED] ""Alexander Gräf"" <[EMAIL PROTECTED]> wrote in message 995d13$cfl$[EMAIL PROTECTED

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] time & session info

2001-03-20 Thread Chris Lee
edit php.ini for the expiry and the gc (garbage collection) percentage. -- Chris Lee [EMAIL PROTECTED] ""Peter Houchin"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... on my server in /tmp it saves the session de

Re: [PHP] PHP and Ranges

2001-04-19 Thread Chris Lee
I can do it, it aint pretty though $val) if (in_array($val, $range)) echo "True "; else echo "False "; ?> works, just aint pretty. -- Chris Lee [EMAIL PROTECTED] ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9bn

Re: [PHP] Treestructure

2001-04-19 Thread Chris Lee
r_repeat(' ', $padding * 2); $this->_make_tree($category_id[$pos]); } $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 Eve

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

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@

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

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 PROTECTE

[PHP] PATH_INFO and trans-sid

2001-04-24 Thread Chris Lee
re 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

[PHP] PATH_INFO and trans-sid and output buffering doesnt work...

2001-04-24 Thread Chris Lee
are 11 hard coded link.php?$SID and the rest (aprox 20) are all left upto trans-sid. they do not get replaced, the other hardcoded 11 do though as expected. how can I convert the trans-sid ones? without hardcoding every single link... ? thats alot of links and forms I have to replace.... --

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@

[PHP] conflicting types for 'RETCODE'

2001-04-25 Thread Chris Lee
signed short RETCODE; /sydbd.h typedef int RETCODE; Can I change the typedef to signed short in sysdb.h file? Any other workaround. Many thanks in advance for newbie question. Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [PHP] "super" global variable

2001-05-15 Thread Chris Lee
this is something I never needed todo, but it works. these two files are on the same server, just under different domains. because I am using the same session_id() they share the same value. -- Chris Lee [EMAIL PROTECTED] ""Sigitas Paulavicius"" <[EMAIL PROTE

Re: [PHP] pulling data out of a string

2001-05-15 Thread Chris Lee
this will remove the www plus the top level domain this will remove the first host and the top level domain. -- Chris Lee [EMAIL PROTECTED] "Richard Kurth" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am trying to figure

Re: [PHP] Passing vars between functions (with POSTs)

2001-05-15 Thread Chris Lee
this will ensure that the variable is a POST var vs a GET var too... function test() { global $HTTP_POST_VARS; echo $HTTP_POST_VARS['login']; } -- Chris Lee [EMAIL PROTECTED] ""Miguel Ribeiro"" <[EMAIL PROTECTED]> wrote in message 9dpgkk$md

Re: [PHP] IMAP/POP3/OUTLOOK Question .. NEW! ... Complimantary

2001-05-15 Thread Chris Lee
data too. (new, read, unread, priority) -- Chris Lee [EMAIL PROTECTED] ""Mattias Segerdahl"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I was wondering if someone could help me explain how Microsoft OUTLOOK knows w

Re: [PHP] changing error messages

2001-05-15 Thread Chris Lee
g will show you all the errors, when a new error is added it will be auto displayed. -- Chris Lee [EMAIL PROTECTED] "todd kennedy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... do you know of an easy way to change the errors generat

Re: [PHP] Receiving a text stream

2001-05-15 Thread Chris Lee
or Delphi you could write that code to allow connections, then php could send it data. I dont know howto do that. -- Chris Lee [EMAIL PROTECTED] "Todd Cary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am not sure about this t

Re: [PHP] bug? file(), newline (\n) comparison

2001-05-16 Thread Chris Lee
chr(13), chr(10), $data); // convert all 0A0A to 0A $data = str_replace(chr(10).chr(10), chr(10), $data); this will standardize it for you. -- Chris Lee [EMAIL PROTECTED] ""Hannes Schmiderer"" <[EMAIL PROTECTED]> wrote in message 9dtv8b$cud$[EMAIL PROTECTED]

Re: [PHP] Sending Output Buffer contents to PDFLib

2001-05-16 Thread Chris Lee
I can't say this is for sure, but I am almost 100% sure adobe function, not a pdflib function to convert html -> pdf. sorry I dnt have any recommendations, I had to write a special convert_pdf page for every page. -- Chris Lee [EMAIL PROTECTED] ""Matthew M. Boulter&q

Re: [PHP] Custom Session Func?

2001-05-16 Thread Chris Lee
27;ll include my session file. this will allways set $SID and will also allow you to transfer session's across multiple domains. handy. somesites dont want to fork the money out to purchase their own ssl certificates, so we transfer them to our server where they can use our certificate (dif

Re: [PHP] Passing variable with slashes in URL

2001-05-16 Thread Chris Lee
cant say for sure, but I dont play around with rawencode and addslasses for urls, just use urlencode() echo " test "; -- Chris Lee [EMAIL PROTECTED] ""Claudia Smith"" <[EMAIL PROTECTED]> wrote in message 9duqke$9g1$[EMAIL PROTECTED]">news

Re: [PHP] working on array of different number of indices

2001-05-16 Thread Chris Lee
val) $value[$pos] = some_func($value[$pos]); else $value[$index] = some_func($value[$index]); return $value; } this what your looking for ? -- Chris Lee [EMAIL PROTECTED] "Dennis Gearon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EM

Re: [PHP] Get page height?

2001-05-16 Thread Chris Lee
, after the page is loaded. you could get the data from javascript and use a header_redirect to give php that data. sorry I dont have a code snippit. -- Chris Lee [EMAIL PROTECTED] ""DRN"" <[EMAIL PROTECTED]> wrote in message 9dv0a8$4gd$[EMAIL PROTECTED]"&g

Re: [PHP] Barcode in PDF.

2001-05-17 Thread Chris Lee
this exact question was talked about yesterday. 'barcode font' in google comes up with a hole list of fonts to use. use them in conjunction with pdflib to make barcodes. -- Chris Lee [EMAIL PROTECTED] "Keith Ng" <[EMAIL PROTECTED]> wrote in message [EMA

Re: [PHP] HTTP Authentication with PHP

2001-05-17 Thread Chris Lee
"); then add header("WWW-Authenticate: Basic realm='$SERVER_NAME' "); header("HTTP/1.0 401 Unauthorized"); to pop up a login box. -- Chris Lee [EMAIL PROTECTED] ""Chris"" <[EMAIL PROTECTED]> wrote in message 9e06jc$jel$[EMAI

Re: [PHP] sessions / cookies / header("Location...

2001-05-17 Thread Chris Lee
(supposed to require) full urls. in other words its a good idea to put PHPSESSID=$PHPSESSID on all your full urls anyhow, just incase for non-cookie browsers. -- Chris Lee [EMAIL PROTECTED] "Christian Dechery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">new

Re: [PHP] Sessions - new window

2001-05-18 Thread Chris Lee
I dont think there are ways of doing that. can you give some code snippits ? what data are you storing in the session ? sessions are great for storeing unique id's etc, you can use them to store your entire db, but you shouldnt IMHO... -- Chris Lee [EMAIL PROTECTED] "jare

Re: [PHP] Please help!!!! HTTP problem...

2001-05-18 Thread Chris Lee
every page it needs to. one comment is opera will give the user a warning with this http://username:[EMAIL PROTECTED]/ method, stating they are going to a 'possibly' misjeaveous site. -- Chris Lee [EMAIL PROTECTED] ""Romulo Pereira"" <[EMAIL PROTECTED]>

[PHP] Date and Time Functions like MySQL?

2001-05-18 Thread Chris Lee
Regards, Chris Lee -- 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] Command output into any array?

2001-05-19 Thread Chris Lee
accually php allready has this command and you are so close to it :) -- Chris Lee [EMAIL PROTECTED] ""Ken Jansons"" <[EMAIL PROTECTED]> wrote in message 001d01c0e08c$54601480$[EMAIL PROTECTED]">news:001d01c0e08c$54601480$[EMAIL PROTECTED]... Hello, I

Re: [PHP] count() multidimensional array

2001-05-19 Thread Chris Lee
you also do not need to check 'if ($check[$j][$i] == 1)' becase if it is set at all, then it 'had' to be checked. Is this what you were looking for ? -- Chris Lee [EMAIL PROTECTED] ""Dean Martin"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTE

Re: [PHP] globalize all variables not coming from a certain form...

2001-05-19 Thread Chris Lee
be passed as arguments to the function. -- Chris Lee [EMAIL PROTECTED] "Siim Einfeldt aka Itpunk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi everybody, > > Is it possible (and if it is, how) to globalize all th

Re: [PHP] get all defined constants?

2001-05-19 Thread Chris Lee
phpinfo() allways has a list of variables. but of course every variable is allways in $GLOBALS too. -- Chris Lee [EMAIL PROTECTED] "Alex Black" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi all, > > can't

Re: [PHP] Recompiling PHP with MySQL

2001-05-22 Thread Chris Lee
Jason, Sorry for newbie question, how I compile MySQL from SRPM? I know how to compile from source tar bar but not form SRPM. Simple step to show how would be nice. Thanks in advance. Regards, Chris Lee On 21 May 2001 16:43:48 -0700, [EMAIL PROTECTED] (Jason Murray) wrote: >> Al

Re: [PHP] image upload - determining image resolution in pixels ?

2001-05-22 Thread Chris Lee
open the file with gd and use imagesx() and imagesy() gd does not handel quicktime, only jpeg, gif (older, dont go there), png, tiff I think thts it. I havent checked. but never the less, images, not movies. -- Chris Lee [EMAIL PROTECTED] "Nicolas Mermet" <[EMAIL PROTECT

Re: [PHP] Debugging problems

2001-05-22 Thread Chris Lee
sql_error() . "\n"; echo "Query: $query\n"; echo "Line : $line\n"; exit(); } } after every mysql command put this. check_db($query, __LINE__); ie. this will help alot in finding any mysql errors. what was the command on line 27 ? email/news groups form

Re: [PHP] exec command help

2001-05-22 Thread Chris Lee
et to nobody.nobody (ie. whatever your webserver is set to), or does postalias run as suid root ? what Im getting at is maybe the app is being run but doesnt have the permissions to edit the file because of the user.group that is running the app. -- Chris Lee [EMAIL PROTECTED] "Nashirak Bosk&q

Re: [PHP] session problem

2001-05-22 Thread Chris Lee
calling session_register() on a var that is allready registered is asking for trouble. there seems to be some bug in php concerning this. "; ?> will work better for you I hope. please get back to me regarding how this worked out. -- Chris Lee [EMAIL PROTECTED] "Ro

Re: [PHP] Sessions and Classes

2001-05-22 Thread Chris Lee
ing I want perminently stored, that all goes in the database. sessions are handy for storeing unique id numbers to identiy what customer is who. you can store massive stuff in there, I wouldnt, databases are more reliable and work better for this purpose. thats what databases are for. -- Chris Le

Re: [PHP] passing references multiple levels of function calls

2001-05-22 Thread Chris Lee
your close. the '&' goes in front of the variable being given, not in the function args. -- Chris Lee [EMAIL PROTECTED] "Dennis Gearon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I want to be abl

Re: [PHP] notifier

2001-05-23 Thread Chris Lee
notified, like an email ? look at the mail() function. when the user logs on, email yourself. -- Chris Lee [EMAIL PROTECTED] ""Taline Makssabo"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can anyone suggest wh

Re: [PHP] writing to file quick and easy.

2001-05-23 Thread Chris Lee
sure this is not complicated, this is easy :) HTML in here, anything you put here, will goto the file too. Download "; $file = fopen("$DOCUMENT_ROOT$filename", 'w+'); fwrite($file, ob_get_contents()); ?> is this what you mean ? please get back to me. --

Re: [PHP] About Commit..

2001-05-23 Thread Chris Lee
, its very nice, more feature rich and comparable to speed to mysql. -- Chris Lee [EMAIL PROTECTED] "Jon Haworth" <[EMAIL PROTECTED]> wrote in message 67DF9B67CEFAD4119E4200D0B720FA3F53FA58@BOOTROS">news:67DF9B67CEFAD4119E4200D0B720FA3F53FA58@BOOTROS... > I thou

Re: [PHP] MySQL Select

2001-05-23 Thread Chris Lee
why not just simply it more while ($r = mysql_fetch_array($result)) { // do your thing here } -- Chris Lee [EMAIL PROTECTED] "Jon Haworth" <[EMAIL PROTECTED]> wrote in message 67DF9B67CEFAD4119E4200D0B720FA3F53FA57@BOOTROS">news:67DF9B67CEFAD4119E4200

[PHP] doesnt work as expected

2001-05-23 Thread Chris Lee
o n t e n t - t y p e : a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d e d . . C o n t e n t - l e n g t h : 2 1 . . . . d o n e 2 . x = 3 9 & d o n e 2 . y = 1 7 but the var $done2 is not set. any ideas ? this a php bug? I cant see it being a browser error or a apache erro

Re: [PHP] file uploading => dumping into ram?

2002-01-03 Thread Chris Lee
set your max upload file size smaller then. default is 2mb max. I find that too small, I re-set mine to 5mb. I have 2g of ram on our server, 5mb isnt a worry to me. Id rather that then the slow speed of writing the file to the hd. -- Chris Lee [EMAIL PROTECTED] "David" <[EM

[PHP] Re: Form Validation class

2002-01-03 Thread Chris Lee
Ive seen em on zend.com, I wrote my own. I would recommend you take a look at the ones on zend.com and modify it to taste. -- Chris Lee [EMAIL PROTECTED] "Daniel Harik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > He

[PHP] Re: Searching for a word in a string

2001-10-19 Thread Chris Lee
php.net/strstr if ( strstr($string, $search) ) echo "TRUE"; else echo "FALSE"; -- Chris Lee [EMAIL PROTECTED] "Brandon" <[EMAIL PROTECTED]> wrote in message 001e01c158b3$91579170$5a52a040@wi">news:001e01c158b3$91579170$5a52a040@wi...

[PHP] Re: weird session problem

2001-10-19 Thread Chris Lee
create the variable then register it, not the other way around. also a great function for checking arrays is print_r() print_r($HTTP_SESSION_VARS); -- Chris Lee [EMAIL PROTECTED] "Ross Barefoot" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: session ID does not delete itself

2001-10-19 Thread Chris Lee
d the browser on the next launch will delete the cookie. -- Chris Lee [EMAIL PROTECTED] "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > I have been experimenting with PHP4 using sessions and one of m

Re: [PHP] How to protect MySQL password

2001-10-23 Thread Chris Lee
that, well its your choice to offer them the security risk or not. I just tell our customers, "sorry, nope, to big of a security risk.", I have yet to have one complain so badly they switch hosting services. -- Chris Lee [EMAIL PROTECTED] "Kurt Lieber" <[EMAIL

<    1   2   3   4   >