[PHP] Re: PHP called recursively?

2001-12-21 Thread Chris Lee
the dir .. -- Chris Lee [EMAIL PROTECTED] "Thomas Karcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi PHP users, > > I have a couple of PHP scripts that generate dynamic content for a website. > Now the admin of

[PHP] Re: some body flood mypage how can I prevent them ?

2001-12-21 Thread Chris Lee
hehe, not exactly a php question but whatever. you have a firewall correct? if you dont, lie and say you do because no one should be caught dead without one, and add the person to your block list. -- Chris Lee [EMAIL PROTECTED] "Alawi" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] file height and width

2001-03-21 Thread Chris Lee
you *could* limit them, imaesx() and imagesy() are what your looking for. what I would say is why? why limit someones image upload when you can easily resize it. display_thumbnail.inc should be able to hack it up :) -- Chris Lee [EMAIL PROTECTED] ""george"" <[

Re: [PHP] header redirection

2001-03-21 Thread Chris Lee
header("Location: http://$SERVER_NAME/$redirurl"); or better header("Location: http://$SERVER_NAME/$redirurl?$SID"); where $SID = "PHPSESSID=". session_id(); this way your sessions will carry if your not using cookies and are using --enable-trans-sid i <[EMAIL PROTECTED]> wrote in message

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? $val) { global $val; session_register($val); } } ?> this will work for that. -- Chris Lee [EMAIL PROTECTED] ""Tobias Talltorp"" <[EMAIL PROTECTED]> wrote in message

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 c

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

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]

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

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

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

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

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

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

[PHP] ROUND inconsistency

2001-04-12 Thread Lee Howard
precision] [, char method]) where the optional method value indicates the method of rounding, the default being the current method. Thanks. Lee Howard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

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

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

[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

[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: 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: 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: 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: 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] 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: 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] 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: 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: 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: large external script to include in many pages

2001-08-13 Thread Chris Lee
putting something like

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

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

[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: 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: this newsgroup via newsgroup program?

2001-09-06 Thread Chris Lee
I use Outlook Express and Im posting this via news.php.net into php.general -- Chris Lee [EMAIL PROTECTED] "Chris Hayes" <[EMAIL PROTECTED]> wrote in message 3B981E0F.25754.4210CA@localhost">news:3B981E0F.25754.4210CA@localhost... > hi, > from http://www

[PHP] Re: Releasing Your Code

2001-09-06 Thread Chris Lee
dont like it, write your own. my examples are allways updated, they're just symbloic links to the accual files I use. because its code src, not bin, you can change it however you want, have fun, people shouldnt be so anal about their code or others code. -- Chris Lee [EMAIL PROT

Re: [PHP] Re: More thoughts about PHP: Taglibs

2001-09-12 Thread Eugene Lee
NOT a tag-based language. You can create : any functions you want and call them already from a combination : : ColdFusion 5 finally allows users to define functions, so the above strength for PHP is now a strength for ColdFusion. -- Eugene Lee [EMAIL PROTECTED] -- PHP General Mai

[PHP] downloadable annotated PHP manual?

2001-09-12 Thread Eugene Lee
Like the subject says, is there a downloadable version of the Annotated PHP Manual? I'm not always connected to the Internet, so this would be a great help. Thanks in advance. -- Eugene Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: [PHP] downloadable annotated PHP manual?

2001-09-12 Thread Eugene Lee
On Wed, Sep 12, 2001 at 10:14:29PM -0400, Jack Dempsey wrote: : Eugene Lee [mailto:[EMAIL PROTECTED]] asked: : > : > Like the subject says, is there a downloadable version of the Annotated : > PHP Manual? I'm not always connected to the Internet, so this would be : > a great

[PHP] string comparisons not working as expected

2001-09-14 Thread Chris Lee
ve spec. type casted that as strings, they should compare fine as strings. this is where I beleive there is more then a quirk and more of a bug. the third susceeds just as it should, its just not near as elegant as a simple if ($var_1 == $var_2). -- Chris Lee [EMAIL PROTECTED] -- PHP G

[PHP] NEED HELP: select box repeat

2001-09-17 Thread Brian Lee
OK I am trying to write a script that will bring data out of a database into a select box. But what I need it to do is repeat 5 times or more depending on what it brings out. I can only get it to display one select box. Here is what I got so far: Flavors Select "> Please HE

[PHP] Re: Problem: lost session id when htaccess'ing.

2001-09-18 Thread Chris Lee
- you have cookie support on or off ? - you using any header redirects ? (you have to manually add the SID to URI's) send some src and a link. lets see whats going on. -- Chris Lee [EMAIL PROTECTED] "Lic. Rodolfo Gonzalez Gonzalez" <[EMAIL PROTECTED]> wrote in mes

Re: [PHP] What is PHP's equivalent?

2001-09-18 Thread Chris Lee
correct me if Im wrong, but I wanted to add a note saying that php supports loading .COM and .NET only if the server is windows based. -- Chris Lee [EMAIL PROTECTED] "Sterling Hughes" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

[PHP] Re: Getting data over https?

2001-09-18 Thread Chris Lee
php doesnt support https url-wrappers. grab the data with an external app maybe, it'll be ugly. exec('lynx -source https://www.pilotmedia.fi/ > /tmp/somefile.txt'); fopen('/tmp/somefile.txt', 'r'); unlink('/tmp/somefile.txt'); -- Chris Le

[PHP] Re: how can i show my table 5 record by five record ?

2001-09-18 Thread Chris Lee
) echo " "; echo " {$val['product_name']} "; } echo " "; there you go every five products you get a new line. -- Chris Lee [EMAIL PROTECTED] "Alawi Albaity" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

Re: [PHP] Handling sessions between servers?

2001-09-18 Thread Chris Lee
using mysql is an excelent choice, if your not using a db Ive seen people pass the data raw echo " mediawaveonline.com "; then session_decode(base64_decode($session_data)); its ugly, but it works. -- Chris Lee [EMAIL PROTECTED] "Josh Hoover" <[EMAIL PROTE

[PHP] Re: Sockets

2001-09-19 Thread Chris Lee
is this even a php related question? post some code and an example site and we'll see what we can do. -- Chris Lee [EMAIL PROTECTED] "Jonathan Hilgeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I run a web appli

[PHP] Re: Modularity--Optimizing Includes and Libs

2001-09-19 Thread Chris Lee
aries that your not going to use ? only put relevant data in your libraries and only call relevant libraries and you wont have a problem. -- Chris Lee [EMAIL PROTECTED] "Bora Paksoy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

[PHP] Re: session screw up - any experience/hints for me?

2001-09-19 Thread Chris Lee
('Last-Modified: '. gmdate('D, d M Y H:i:s') .' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); should tell most browsers not to cache. -- Chris Lee [EMAIL PROTECTED] "Wolfram Kriesing&q

[PHP] Re: calling javascript function from a form image

2001-09-21 Thread Chris Lee
or if you want the hand to show up over the image. change the tag to -- Chris Lee [EMAIL PROTECTED] "Neil Freeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have a form which contains an: > > W

[PHP] next maintenance release?

2001-09-25 Thread Eugene Lee
PHP 4.0.6 has been out for 3 months now. Any word on the next update? -- Eugene 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

Re: [PHP] Feature?

2001-09-25 Thread Eugene Lee
I know of is Objective-C, which is the base language for Apple's new Unix-based Mac OS X. As for PHP supporting named parameters, it seems silly to preserve C's use of parentheses. Why not do something more radical like Objective-C that draws from Smalltalk syntax: $bar = [

[PHP] Re: writing files

2001-09-25 Thread Chris Lee
'/images/image1.png' is '/images/image1.png' 'images/image1.png' is '/images/image1.png' you are using the first, unless your something wierd on your first box, like chroot, or safe_mode, or something else Ive never used, I dont know why the first server i

[PHP] Re: dates only in the future

2001-09-25 Thread Chris Lee
server, if it isnt, just send the user back with a nasty message and tell them to smarten up :) if ( time() > mktime(1, 1, 1, $month, $day, $year) ) echo "Bad !!"; else echo "Good, now I'll save the data"; -- Chris Lee [EMAIL PROTECTED] "Kristjan K

[PHP] Re: Test.php does not show that it was configured with sybase on Linux 7.1

2001-09-25 Thread Chris Lee
change that to where ever your sybase dir is. -- Chris Lee [EMAIL PROTECTED] "Caleb Carvalho" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I have installed sybase on my Linux 7.1 machine and after > c

[PHP] Re: Counter

2001-09-25 Thread Chris Lee
there are tutorials all over the inet. -- Chris Lee [EMAIL PROTECTED] "Mark Lo" <[EMAIL PROTECTED]> wrote in message 000501c145d9$c5f56ca0$caccfea9@mark">news:000501c145d9$c5f56ca0$caccfea9@mark... > Hi, > > I would like to know how to w

[PHP] Re: Socket help

2001-09-25 Thread Chris Lee
script can NOT use the first apps socket, sockets arent shared like that. yes, sending and recienveing should be ok, any data backed up will just be stored in buffers. -- Chris Lee [EMAIL PROTECTED] "Stefano Baronio" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

[PHP] Re: 2D array from file

2001-09-26 Thread Chris Lee
have you thought of just using http://www.php.net/manual/en/function.serialize.php http://www.php.net/manual/en/function.unserialize.php its alot easier. -- Chris Lee [EMAIL PROTECTED] "John Frenzel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:

[PHP] Re: session var being lost between pages

2001-10-01 Thread Chris Lee
27;]) AND $PHPSESSID != $HTTP_GET_VARS['PHPSESSID']) all small things, nothing big looks wrong. try it and see. -- Chris Lee [EMAIL PROTECTED] "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Ok, newbie I am but ... I seem

[PHP] Re: HTTP Authentication / Logging Out

2001-10-01 Thread Chris Lee
. Header("WWW-Authenticate: Basic realm='someother-domain' "); Header("HTTP/1.0 401 Unauthorized"); -- Chris Lee [EMAIL PROTECTED] "Eric J Schwinder" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

[PHP] PHP & MySQL

2001-10-02 Thread Brian Lee
OK, I am working on my first shopping cart using PHP and MySQL and I am having a few problems. The first problems is I need to bring out of a database a group of Jam flavors. I can do that but when certain items come up there needs to be the same flavors but repeated mutiple times and I am no

[PHP] Re: search result page, need some ideas on how to do [PREV] 1 2 3 4 [NEXT] stuff..

2001-10-05 Thread Chris Lee
g $search_a - $search_b of $search_c Orders "; if ($prev >= 0) echo " <$IMG src='image/back.gif'> "; echo " <$IMG src='image/home.gif'> "; if ( $next < $search_c ) echo " <$IMG src='image/next

[PHP] Re: accessing localtime array directly

2001-10-05 Thread Chris Lee
there are functions like current() next() etc but they wont help you in this case. I just wrote my own. function index($array, $index) { return @$array[$index]; } $now = index(localtime(), 7); -- Chris Lee [EMAIL PROTECTED] "John A. Grant" <[EMAIL PROTECTED]> wrote i

[PHP] Re: help with exec()...

2001-10-05 Thread Chris Lee
with exec() I wouldnt assume that all the PATH info is there, just to be sure, use hardcoded paths. exec("/usr/bin/mysqldump > /tmp/somesql.txt", $return); print_r($return); -- Chris Lee [EMAIL PROTECTED] "Christian Dechery" <[EMAIL PROTECTED]> wrote in me

[PHP] Re: Fancy thing.

2001-10-05 Thread Chris Lee
why is this amazing ? -- Chris Lee [EMAIL PROTECTED] "Andrey Hristov" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > After getting the PHP source from the CVS and compiling I tested with > phpinfo(). The result was

[PHP] Re: next and previous links

2001-10-05 Thread Chris Lee
o " Displaying $search_a - $search_b of $search_c Orders "; if ($prev >= 0) echo " <$IMG src='image/back.gif'> "; echo " <$IMG src='image/home.gif'> "; if ( $next < $search_c ) echo " <$IMG src

[PHP] Knowledgebase/Troubleshooter

2004-10-14 Thread Lee Standen
Hi Guys, I was wondering if anyone knows of a project for creating a troubleshooting wizard, much like in the Microsoft help. I've managed to make something which kind of works myself, but the problem is writing an interface to add/remove/add/manage the questions and steps. Thanks in advance.

Re: [PHP] Re: Knowledgebase/Troubleshooter

2004-10-14 Thread Lee Standen
Thanks Pete, I've already spent about 45 minutes trying to find a project which does this, to no avail... On Thu, 14 Oct 2004, pete M wrote: goto sourceforge.net there's tons of stuff there.. No need to reinvent the wheel ;-))) pete Lee Standen wrote: Hi Guys, I was wondering if anyon

[PHP] Textarea to road a text file

2009-10-28 Thread Jean Lee
I want to use Textarea as the text-file viewer and editor of my homepage. But Textarea doesn't work exactly as i intended. In sometimes, TextArea doesn't show up and moreover the some parts of the file are displayed(rendered) in browser without TextArea! -- PHP General Mailing List (http://www

Re: [PHP] Textarea to road a text file

2009-10-28 Thread Jean Lee
Thank you, Jay Blanchard and Andrew Ballard!!! Could you explain what was my fault concerned about this case? Thanks in advance! My codes were . .. " . $contents . ""; ?> ""Jay Blanchard"" wrote in message news:31454d514ff9a949b1fdfe294d5d1d80080...@ygex01wal.onecall.lo

Re: [PHP] Textarea to road a text file

2009-10-30 Thread Jean Lee
Yes, I just want to edit a file in the textarea! thank you. ""Jay Blanchard"" wrote in message news:31454d514ff9a949b1fdfe294d5d1d80080...@ygex01wal.onecall.local... [snip] . .. " . $contents . ""; ?> [/snip] Try http://us3.php.net/manual/en/function.file-get-contents.php

<    2   3   4   5   6   7   8   9   >