[PHP] Re: multi updates

2001-09-06 Thread Chris Lee
ually need the $conn in mysql_query() and die() is just nasty, I like a little bit more friendly user errors. I also like to shorten things by putting the mysql_query in the if() statement if ( !mysql_query($sql) ) -- Chris Lee [EMAIL PROTECTED] "Gary" <[EMAIL PROTECTED]> wr

[PHP] Re: Mailing, which is faster

2001-09-06 Thread Chris Lee
benchamrking is a common question with a common answer, "try it yourself", depending on your situation/hardware/software this will very greatly from machine to machine. -- Chris Lee [EMAIL PROTECTED] "Niklas lampén" <[EMAIL PROTECTED]> wrote in message [EMA

[PHP] Re: SESSIONS! - please help

2001-09-06 Thread Chris Lee
$value) vs while (list($key, $value) = each ($count)) -- Chris Lee [EMAIL PROTECTED] "Christian Haines" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi all, > > PHP-4.03pl > LINUX 7.0 > > i am still havin

Re: [PHP] << Previous / Next Buttons >>

2001-09-06 Thread Chris Lee
I just use LIMIT its alot better, alot less CPU intensive. if (!isset($pos)) $pos = 0 SELECT * FROM product LIMIT 0, $pos $pos++ if ( !((SELECT count(*) FROM product) > $pos) ) Next you get the idea. Chris Lee [EMAIL PROTECTED] "Jeff Oien" <[EMAIL PROTECTED]&g

[PHP] variable arguments wish list

2001-09-04 Thread Chris Lee
nc( '". implode("', '", $args) ."', 'one more arg' ); "; } thats just nasty. and dont try putting the func_get_args() in the implode, I get a warning saying dont even try it. plus it would still be ugly. -- Chris Lee [EMAIL PROTECTED] --

[PHP] Re: large external script to include in many pages

2001-08-13 Thread Chris Lee
putting something like

[PHP] Re: cropping a string

2001-08-13 Thread Chris Lee
is trims the string to the spec length and takes the last word (or pastial word) off. you might want to take a look at wordwrap() too, probably not what your looking for though. -- Chris Lee [EMAIL PROTECTED] "Tom Carter" <[EMAIL PROTECTED]> wrote in message 01ea01

[PHP] Re: Am I being Hacked ???

2001-08-07 Thread Chris Lee
check your status code at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.9 on a side note, your post was in the wrong newsgroup, try a orum related to http not php. -- Chris Lee [EMAIL PROTECTED] "Mark Lo" <[EMAIL PROTECTED]> wrote in message 00090

[PHP] Re: [php] undefined offset?

2001-08-03 Thread Chris Lee
you never defined test[8] thats why its undeined. more likley then not check in your php.ini file, i bet you have warning = ~E_WARNINGS E_ALL; in your linux box and warning = E_ALL; in your win box. I like all warnings and errors showing, personal opinion. -- Chris Lee [EMAIL

[PHP] Re: How to add an excel file directly to MySQL database using PHP?

2001-08-03 Thread Chris Lee
I dont mean to be picky but .. ".. allows you to import comma separated files .. dunno about .csv .." csv = comma seperated values so yes mysql can import csv using the LOAD DATA func or user writen php func :) sorry about pointing that out. -- Chris Lee [EMAIL PROTECTED]

[PHP] possible switch() bug in 4.0.6 ?

2001-08-02 Thread Chris Lee
/mediawaveonline/test2.php on line 10 if you ask me, I should get a warning on line 2 where the switch is, not on 4, 7, 10 where the case statements are. php 4.0.5 cgi does not do this. -- Chris Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: Code Examples for Job Interview

2001-07-10 Thread Chris Lee
shamefull plug alert, shame, shame alert. php/perl/java/etc/etc/etc forum gets two new posts a day. "you can have tens of comments" if you wait 5-7 days. -- Chris Lee [EMAIL PROTECTED] "Elias" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">ne

[PHP] Re: Sorting an assoiative Array

2001-07-09 Thread Chris Lee
I used similar and just put it into a function function array_max($array) { asort($array); return current($array); } this just gives me the first element of the array. -- Chris Lee [EMAIL PROTECTED] "Patrick Meisel" <[EMAIL PROTECTED]> wrote in message [EMAIL

[PHP] Re: Domain question

2001-07-09 Thread Chris Lee
not exactly a php question. but to answer your question .. I have no answer. -- Chris Lee [EMAIL PROTECTED] "Reductor" <[EMAIL PROTECTED]> wrote in message 005d01c10881$a8517a80$0200a8c0@ReDucTor">news:005d01c10881$a8517a80$0200a8c0@ReDucTor... Hey, What are

[PHP] Re: Download function for php

2001-07-09 Thread Chris Lee
src file to a link in the web root. of course you could allways send the download headers and readfile() the file. -- Chris Lee [EMAIL PROTECTED] "Mark Lo" <[EMAIL PROTECTED]> wrote in message 001101c10884$863351a0$caccfea9@Mark">news:001101c10884$863351

[PHP] Re: how to use class

2001-07-09 Thread Chris Lee
include_once('some_class.egn'); $some_class = new some_class; $some_class->some_function(); -- Chris Lee [EMAIL PROTECTED] "Jack" <[EMAIL PROTECTED]> wrote in message 020801c108af$36dc70c0$[EMAIL PROTECTED]">news:020801c108af$36dc70c0$[EMAIL PROTE

[PHP] Re: how do I include a class into my php page

2001-07-09 Thread Chris Lee
yes of course, you know your own anser :) some_class.egn index.php -- Chris Lee [EMAIL PROTECTED] "Jack" <[EMAIL PROTECTED]> wrote in message 021b01c108b1$ec596640$[EMAIL PROTECTED]">news:021b01c108b1$ec596640$[EMAIL PROTECTED]... Exactly what the title said, I

Re: [PHP] isset($x) fails !

2001-06-22 Thread Chris Lee
need a little more data. how is it failing ? where in what code ? how are you using it ? in what way do you want it to work ? http://php.net/manual/en/function.isset.php -- Chris Lee [EMAIL PROTECTED] ""kaab kaoutar"" <[EMAIL PROTECTED]> wrote in message [EMA

Re: [PHP] un-official miror of php.net

2001-06-22 Thread Chris Lee
download the manual from snaps.php.net ALLWAYS has the most current manual. php.net/manual will never be more current then snaps.php.net. php.net/manual will have the comments though. I dont know if php.net will like all those hits of you updating your mirror, email them. -- Chris Lee

Re: [PHP] protected Images without using htaccess

2001-06-22 Thread Chris Lee
you are so close .. store the images outside the http root. have a php page verify the user and use header('content-type: image.jpeg'); readfile('/tmp/image.jpg'); there ya go. its the only way i can see. -- Chris Lee [EMAIL PROTECTED] ""Arash Dejkam&

Re: [PHP] confused with sessions

2001-06-22 Thread Chris Lee
. index.php is ok http://www.e-tankless.com/index.php is not. you will have to re-write it yourself. if cookies are disabled and the phpsessid is not in the url then php has absolutly no way of knowing its the same customer, therfore it creates a new phpsessid. -- Chris Lee [EMAIL PROTECTED

Re: [PHP] Unended login session!?

2001-06-21 Thread Chris Lee
;WWW-Authenticate: Basic realm='". mtime() ."' "); Header("HTTP/1.0 401 Unauthorized"); exit(); -- Chris Lee [EMAIL PROTECTED] ""Cefull Lo"" <[EMAIL PROTECTED]> wrote in message 9gs89c$u29$[EMAIL PROTECTED]">news:9gs89

Re: [PHP] Problem with session_is_registered

2001-06-21 Thread Chris Lee
I just check the var. if (isset($HTTP_SESSION_VARS['count'])) echo " Yes its all set :) "; -- Chris Lee [EMAIL PROTECTED] ""news.php.net"" <[EMAIL PROTECTED]> wrote in message 9gss6k$kud$[EMAIL PROTECTED]">news:9gss6k$ku

Re: [PHP] General Coding Question

2001-06-20 Thread Chris Lee
im here to start a flamewar. dont use " then. why not use ' ? echo " " echo " " I like the second. it is proper html check it with w3.org. -- Chris Lee [EMAIL PROTECTED] ""scott [gts]"" <[EMAIL PROTECTED]> w

Re: [PHP] General Coding Question

2001-06-20 Thread Chris Lee
me('a'); for($c = 0; $c < 10; $c++) echo "test"; $debug->time('b'); for($c = 0; $c < 10; $c++) ?>testtime('a'); ?> 0.0002 : a 2.0003 : b 1.9478 : a therefore on *my* system it is very very slightly faster to exit out of php and

Re: [PHP] Problem starting session

2001-06-20 Thread Chris Lee
does the dir exist ? I dont use win2k for php so im guessing. win2k also has some sort of permissions doesnt it ? does the dir have to have the same perms that the server does ? linux needs this to be true. -- Chris Lee [EMAIL PROTECTED] "Ben Edwards" <[EMAIL PROTECTED]>

Re: [PHP] Printingt Variables in Included Text

2001-06-20 Thread Chris Lee
hehe. ok i'll explain, half way through you will see what you were doing wrong :) // valid $test = 'chris lee'; echo $test; // in-valid echo $test; $test = 'chris lee'; // valid $pullquote1 = 'test for pull quote'; include('header.inc

Re: [PHP] PHP class

2001-06-20 Thread Chris Lee
I havent used them in php/pear but here is some more info http://www.php.net/manual/en/class.pear.php -- Chris Lee [EMAIL PROTECTED] "Martín Marqués" <[EMAIL PROTECTED]> wrote in message 01062015390800.12018@bugs">news:01062015390800.12018@bugs... > Can we dre

Re: [PHP] newbie algorithm help!!!!!

2001-06-20 Thread Chris Lee
"; foreach($array as $pos => $val) if ( !(@$row++ % 2) AND $row != 1) echo " $val "; else echo " $val "; echo " "; ?> -- Chris Lee [EMAIL PROTECTED] ""McShen"" <[EMAIL PROTECTED]> wr

Re: [PHP] Starting session

2001-06-19 Thread Chris Lee
why do you want todo it this way ? to tell if a user is logged in I assign a valid people_id (session_var) if the var has a valid id, then they are logged in, else they are not. -- Chris Lee [EMAIL PROTECTED] ""Rosen"" <[EMAIL PROTECTED]> wrote in message 9

Re: [PHP] doesnt work as expected

2001-06-19 Thread Chris Lee
ok. to anser my own questions. oi. type=image name=done then the var will not be $done but $done_x and $done_y -- Chris Lee [EMAIL PROTECTED] ""Chris Lee"" <[EMAIL PROTECTED]> wrote in message 9ehgvu$s2b$[EMAIL PROTECTED]">news:9ehgvu$s2b$[EMAIL

Re: [PHP] doesnt work as expected

2001-05-24 Thread Chris Lee
cleanly. -- Chris Lee [EMAIL PROTECTED] ""Chris Lee"" <[EMAIL PROTECTED]> wrote in message 9ehgvu$s2b$[EMAIL PROTECTED]">news:9ehgvu$s2b$[EMAIL PROTECTED]... > echo " > $done1 > $done2 > > > > > > "; > ?>

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

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

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

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

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

[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

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

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] 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
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] 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] 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] Loop issue

2001-04-12 Thread Chris Lee
$id] = $result['link_id']; $this->link_cat[$id][$cat] = $result['link_cat']; $this->link_url[$id]= $result['link_url']; $this->link_name[$id]= $result['link_name']; } } } ok this is a supper basic example, but try it, modify it, play aroun

Re: [PHP] header( )

2001-04-11 Thread Chris Lee
$peop_r = fetch_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

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

2001-04-11 Thread Chris Lee
7; threads 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 ma

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

Re: [PHP] Include / Require

2001-04-05 Thread Chris Lee
s.php will still not be able to return anything. 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 PROTE

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(".{18} ", '', $article_body); that seemed to work. oi, regex is bad stuff, haha. -- Chris L

[PHP] stripping tags with regex ?

2001-04-03 Thread Chris Lee
I have this ... or ... or ... or ... I want to strip the all that out of my text. I havent a clue about regex, I wish I did. could I get some insight, even a site to learn a little more. ? thanks -- Chris Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

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

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

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

2001-04-02 Thread Chris Lee
ase->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 P

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

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 messag

Re: [PHP] php sessions and classes

2001-03-26 Thread Chris Lee
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"" <[EMAIL PROTECTED]> wrote in message 99nf2e$vq0$[EMAIL PROTECTED]"&g

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]">ne

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

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. test"; ?> -- Chris Lee [EMAIL PROTECTED] ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message 99gkbv$tcg$[EMAIL PROTECTED]">news:99gkbv$tcg$[EMAIL PROTECTED]... Hi! I write

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

2001-03-23 Thread Chris Lee
experiencing is bad, its your 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 wh

Re: [PHP] string->integer

2001-03-23 Thread Chris Lee
even better, verify the date as a whole rather then just as an int. there you go, try it. someone puts an invalid date in? no problem it fixes it for you. -- Chris Lee [EMAIL PROTECTED] ""Matt Williams"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

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

2001-03-23 Thread Chris Lee
you have to register the variable after it is set, not before. also only register the variable once, dont keep re-registering it, some builds ie php-4.0.5 (snap) doesnt like re-registering vars (sometimes). this is my session file, works great for me. -- Chris Lee [EMAIL PROTECTED

Re: [PHP] WebCam and PHP

2001-03-23 Thread Chris Lee
x27;); 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, capt

Re: [PHP] Don't understand HTTP_SESSION_VARS

2001-03-23 Thread Chris Lee
I have never heard that $GLOBALS[''] causes performance issues, where did you get this info? does $HTTP_SESSION_VARS work if you turn register_globals on; in php.ini? here is my session.egn file. -- Chris Lee [EMAIL PROTECTED] "Michael Champagne" <[

[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] 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. -- Chris Lee [EMAIL PROTECTED] ""Lic. Rodolfo Gonzalez Gonzalez"" <[EMAIL PROTECTED]

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:00ad

<    1   2   3   4   >