Re: [PHP] Apache per directory setting

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

Re: [PHP] Apache per directory setting

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

[PHP] Apache per directory setting

2004-01-06 Thread Chris Lee
Hi, Is it possible to set PHP flag at Apache ver 1.3.x per directory? e.g. DocumentRoot /home/www/apps/htdocs ServerName localhost php_flag register_globals on I tried but fail to turn on Register Globals settings (Default is off). Any Hints? Regards, Chris Lee -- PHP General Mailing

Re: [PHP] Cannot output before input

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

[PHP] Cannot output before input

2003-08-17 Thread Chris Lee
Hi All, I run the following program at Windows command prompt c:\php\cli\php.exe input.php The program did not show out "Input:" and waiting for input after run! Any hint to flush the output first? I am using PHP 4.3.2 (cli) (built: May 28 2003 15:10:38) Regards, Chris Lee -- P

Re: [PHP] Get Local IP Address

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

[PHP] Local IP Address

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

[PHP] Get Local IP Address

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

[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

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

[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: Standard output (printf) question...

2001-12-21 Thread Chris Lee
look at the output bufering functions. http://php.ca/manual/en/ref.outcontrol.php -- Chris Lee [EMAIL PROTECTED] "Paul H. Breslin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to create a function that wi

[PHP] Re: sessions and authentication

2001-12-21 Thread Chris Lee
insted of if ( $isloggedin ) user logged in do if ( $HTTP_SESSION_VARS['isloggedin'] ) user is logged in -- Chris Lee [EMAIL PROTECTED] "Steve Maroney" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > &

[PHP] Re: Cookie Can't Display Name on other page

2001-12-21 Thread Chris Lee
wow sessions and cookie on the same page? why dont you just use one or the other? I pref sessions. never the less. your not setting the exp, path, or domain in your setcookie() you must do all those. setcookie('name', 'chris lee', time()+84700, '/', 'www.medi

[PHP] Re: page has expired

2001-12-21 Thread Chris Lee
sent on a dynamic image the browser will cache this file to death, only downloading a new image when you clear your cache and restart your browser, so dont use this on any dynamic stock charts haha. -- Chris Lee [EMAIL PROTECTED] "Peter" <[EMAIL PROTECTED]> wrote in messa

[PHP] Re: undefined function: ftp_connect()

2001-12-20 Thread Chris Lee
run phpinfo() is ftp support in there? if not run configure like you normally do and scroll up to the ftp section, are there any errors in there? if so what are they? -- Chris Lee [EMAIL PROTECTED] "Sam Schenkman-Moore" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

[PHP] Re: JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-19 Thread Chris Lee
thats exactly how you do it. foreach( $array as $pos => $val ) echo " $val "; -- Chris Lee [EMAIL PROTECTED] "Martin Hughes" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How could I write th

[PHP] Re: inscription

2001-12-19 Thread Chris Lee
thanks for the inscription. here's mine. -- Chris Lee [EMAIL PROTECTED] "Sim/Haouhach" <[EMAIL PROTECTED]> wrote in message 58C7D97FA088D31190FD0090277B017502EA06DC@EXCHANGE">news:58C7D97FA088D31190FD0090277B017502EA06DC@EXCHANGE... Lynda Haouhach Ingé

[PHP] Re: php telnet

2001-12-19 Thread Chris Lee
if I nc to my server on port 23 I get the same thing. ie there is nothing wrong. your going to have to emulate the telnet protocal now, thats just the connect string. -- Chris Lee [EMAIL PROTECTED] "Kancha" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...

Re: [PHP] sessions var

2001-12-19 Thread Chris Lee
as long as your start the session on the new page everything will work. are your clients not using cookies? and you have trans-sid enabled? you'll need to pass the SID to the new page then obv. -- Chris Lee [EMAIL PROTECTED] "William Sanchez Sanchez" <[EMAIL PROTECTED]

[PHP] Re: session destroy ??

2001-12-19 Thread Chris Lee
http://$SERVER_NAME";); ?> works for me. yes its stupid, but a session has to be started beore it can be destroyed. -- Chris Lee [EMAIL PROTECTED] "Olivier Masudi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... &g

[PHP] Re: [PHP-DB] Re: while...if statements???

2001-12-19 Thread Chris Lee
else. have you tried the PEAR db wrappers? PEAR came out after I wrote mine, therfore I never used them, you? Chris Lee [EMAIL PROTECTED] - Original Message - From: "matt stewart" <[EMAIL PROTECTED]> To: "'Chris Lee'" <[EMAIL PROTECTED]>

[PHP] Re: while...if statements???

2001-12-18 Thread Chris Lee
iawaveonline.com/examples/ foreach( $db->select_array('', 'petinfo', '') as $pos => $val ) echo $val['pet_name'] .""; if ( !isset($val['pet_name']) ) echo " No Pets "; I like that more. but whatever. -- C

Re: [PHP] php htpasswd

2001-12-18 Thread Chris Lee
{ Header("WWW-Authenticate: Basic realm='$SERVER_NAME' "); Header("HTTP/1.0 401 Unauthorized"); bad_passwd(); } ?> http://www.mediawaveonline.com/examples/ -- Chris Lee [EMAIL PROTECTED] "Jtjohnston" <[EMAIL PROTECTED]> wrote in message [EMAIL

[PHP] Re: PHP module for modem???

2001-12-18 Thread Chris Lee
configure --help in other words, no. but there is nothing from stopping you from writing a module :) im sure there are others out there that would like such a feature, ie for fax's -- Chris Lee [EMAIL PROTECTED] "Scott Fletcher" <[EMAIL PROTECTED]> wrote in mes

[PHP] Re: MySQL Native Function in PHP Query Not Working?

2001-12-18 Thread Chris Lee
that command doesnt even work from the mysql command prompt for me, Ive never used LAST_INSERT_ID(), but it dont work for me. try it on your mysql command prompt. -- Chris Lee [EMAIL PROTECTED] "Ise" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMA

[PHP] Re: Header error while creating an Image

2001-12-18 Thread Chris Lee
you dont have output buffering on, check php.ini or add it manually to an .htaccess. -- Chris Lee [EMAIL PROTECTED] "J.F.Kishor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hello, > > I'am trying to create a

[PHP] Re: including outside pages

2001-12-18 Thread Chris Lee
url to the ssl site, if this is done then you have to treat your session data as if it were cookie data, dont trust it. -- Chris Lee [EMAIL PROTECTED] "Jordan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hello all, >

[PHP] Re: Text file busy

2001-12-18 Thread Chris Lee
try php.ca or any of the other mirrors when php.net is down. I bet you got that file your running open in an editor eh? close the file in the editor then run the file, no problems. -- Chris Lee [EMAIL PROTECTED] "Boaz Yahav" <[EMAIL PROTECTED]> wrote in message [EMAIL

[PHP] Re: Still need help with miscount

2001-12-18 Thread Chris Lee
need more info buddy. does this query work at the mysql command prompt? show us an example, show us 10 records and accual query being exec and what the returned result is and what you think it should be. -- Chris Lee [EMAIL PROTECTED] "Fîk ì?çìsâî" <[EMAIL PROTECTED]>

[PHP] Re: PHP and plugin detection

2001-12-18 Thread Chris Lee
it has to be done via javascript. javascript = clientside php = serverside if the plugins are on the clientside then javascript is needed. and no, sorry, I dont know how. -- Chris Lee [EMAIL PROTECTED] "Daniel Reichenbach" <[EMAIL PROTECTED]> wrote in message 0

[PHP] Re: What is the best way to reorder table columns...temp tables?

2001-12-18 Thread Chris Lee
carry->add('position'); $carry->add('order_by'); $carry->add('order_by_dir'); $carry->add('search'); $carry->add('search_keyword'); $carry->add('search_category'); echo " order by name order by email address

[PHP] Re: Rational Rose plugin for generating php code ?

2001-12-18 Thread Chris Lee
configure --help ie. nope, nothing there. -- Chris Lee [EMAIL PROTECTED] "Arne Brune Olsen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Does anyone know if there is a module for rational rose for generating php code f

[PHP] Re: Using @file

2001-12-18 Thread Chris Lee
haha, I bet it cant resolve, and I doubt it works on other machines :) www.myserver,com www.myserver.com see the diff? ditch the comma and put a period in insted :) trust me it happens to the best of us. -- Chris Lee [EMAIL PROTECTED] "Jeff Lewis" <[EMAIL PROTECTED]>

[PHP] Re: max # of characters for links to work in emails?

2001-12-18 Thread Chris Lee
a good guess would be every email client does it differnetly. unfort Id have to say try it yourself. Id imagine its long enough that you shouldnt have to worry about it, but I could be wrong. -- Chris Lee [EMAIL PROTECTED] "Tom Churm" <[EMAIL PROTECTED]> wrote in message

[PHP] Re: need some help

2001-12-18 Thread Chris Lee
I'll try and answer your questions as will the rest off the forum Im sure, just post away. -- Chris Lee [EMAIL PROTECTED] "Melva Garcia" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am looking for a mentor to he

[PHP] Re: Header redirecting with POST

2001-12-18 Thread Chris Lee
2k is alot of data to be sending using GET or POST, just leave it on the server in a session variable. redirect server 2000 bytes -> client GET client 2000 bytes -> server or via sessions redirect server 50 bytes -> client GET client 50 bytes -> server -- Chris Lee [EMA

[PHP] Re: Logout problem

2001-12-18 Thread Chris Lee
Header("WWW-Authenticate: Basic realm='$SERVER_NAME' "); Header("HTTP/1.0 401 Unauthorized"); is the proper http auth hearders, change the realm and you'll have to re-authenticate. -- Chris Lee [EMAIL PROTECTED] "J.F.Kishor" <[EMA

[PHP] Re: http referer problems

2001-12-18 Thread Chris Lee
break it down. if ( $ef != 'nm' ) echo "a : $ef"; else echo "b : $ef "; if ( $HTTP_REFERER != 'http://www.globalhealth.org/news/article.php3?id=1526' ) echo "c : $HTTP_REFERER"; else echo "d : $HTTP_REFERER"; now you c

[PHP] Re: Single character input on command line

2001-12-18 Thread Chris Lee
take them from the arguments list $argv[] I know its not what you asked, its just what I answered. -- Chris Lee [EMAIL PROTECTED] "August Zajonc" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Interested in getting a single

[PHP] Re: php sessions limit

2001-12-18 Thread Chris Lee
its irrelevant. now there is a file system dependancy. in linux is inodes, not enough and you'll have some problems, win2k I dont know. -- Chris Lee [EMAIL PROTECTED] "Aaustin" <[EMAIL PROTECTED]> wrote in message 002101c18293$671c5d00$0300a8c0@tomato">news:0

[PHP] Re: Cookie Retrieval

2001-12-18 Thread Chris Lee
I know this isnt answering your question, but skip cookies and goto sessions, easier to work with. now the answer to your question, you need to set the domain and path on your setcookie() setcookie('name', 'value', $exp, '/', $SERVER_NAME); -- Chris Lee [EMAI

[PHP] Re: sessions

2001-12-18 Thread Chris Lee
take a look at my session.egn file. http://www.mediawaveonline.com/examples/ -- Chris Lee [EMAIL PROTECTED] "Anthony" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I need some help with sessions. I read the sections in th

[PHP] Re: Passing through Array's to another script

2001-12-18 Thread Chris Lee
foreach( $array_name as $pos => $val ) echo " "; or use sessions. -- Chris Lee [EMAIL PROTECTED] "Gkin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I want to pass through an array with

[PHP] Re: online editor

2001-12-18 Thread Chris Lee
online editor? you got 1mb free? no? buy a floppy. install ultraedit, it's the best editor around imho. -- Chris Lee [EMAIL PROTECTED] "R. Lindeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > can someone help get

[PHP] Re: Remote image

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

[PHP] Re: Problem with fopen / url

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

[PHP] Re: automatic forward URL to other URL

2001-12-05 Thread Chris Lee
header("Location: www.domain2.com"); -- Chris Lee [EMAIL PROTECTED] "Manu Verhaegen" <[EMAIL PROTECTED]> wrote in message 001301c17c93$53be4620$[EMAIL PROTECTED]">news:001301c17c93$53be4620$[EMAIL PROTECTED]... I want automatic forward URL (www.mydomain

[PHP] Re: folver view options

2001-12-05 Thread Chris Lee
wrong newsgroup. -- Chris Lee [EMAIL PROTECTED] "Caspar Kennerdale" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have just installed mandrake > > something that is annoying me with KDE is that the default view

[PHP] Re: serialize object & session_auto_start

2001-12-05 Thread Chris Lee
to be blunt. then dont use session.auto_start. classes must be defined before variables can be created based on that class, obviously. the proper order has to be. - class definition - session initialized -- Chris Lee [EMAIL PROTECTED] "Matthieu Brunet" <[EMAIL PROTECT

[PHP] Re: Recursive Threading with PHP and MySQL.

2001-12-05 Thread Chris Lee
) and you'll get a segfault because $num will allways equal anything but 2. this gives you a starting point on recursion. -- Chris Lee [EMAIL PROTECTED] "Alawi" <[EMAIL PROTECTED]> wrote in message 002201c17dc2$75276cd0$753f47d4@mcsh2l7jqy8bgj">news:0

[PHP] Re: session question: session.auto_start vs. session_register.

2001-12-05 Thread Chris Lee
class's as session variables much more handy. -- Chris Lee [EMAIL PROTECTED] "Kurt Lieber" <[EMAIL PROTECTED]> wrote in message E16Bitf-00049T-00@z8">news:E16Bitf-00049T-00@z8... > I am working on an open source e-commerce package and have hit a wal

[PHP] Re: Simple(?) Question

2001-12-05 Thread Chris Lee
do a header re-direct. header("Location: http://domain.com/page.php";); include any variables you want, inc session vars if needed. -- Chris Lee [EMAIL PROTECTED] "Andrew Forgue" <[EMAIL PROTECTED]> wrote in message 001d01c17ddc$a898fc40$6701a8c0@ajf">n

[PHP] Re: OOP support

2001-11-19 Thread Chris Lee
this is fine as any of a place to ask OOP questions :) -- Chris Lee [EMAIL PROTECTED] "Roko Roic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I don't know if this is the right place to ask this (there is no .news.adm

[PHP] Re: Download File Problem - text not appearing on downloaded file

2001-11-19 Thread Chris Lee
I dont know if Im pointing out the obvious or if you orgot to post more code. -- Chris Lee [EMAIL PROTECTED] "Joe Van Meer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there. I managed to get the prompt for a file

[PHP] Re: diferent data on diferent columns...

2001-11-19 Thread Chris Lee
echo "".$row[id]."\n";//id for the firt record ex:1 echo "".$row[name]."\n";//id for the second record ex: 2 or echo "".$row[0]."\n";//id for the firt record ex:1 echo "".$row[1]."\n

RE: [PHP] How to create and run background process at Win2K

2001-11-18 Thread Chris Lee
Dear John, Actually I need to generate an report which need an half an hour to complete. The MS Proxy Server time out for the long process, so I want to create the report by following method: apache/mod_php -> call cgi/php -> email notify end user when completed. Regards, Chr

[PHP] How to create and run background process at Win2K

2001-11-18 Thread Chris Lee
Hi, It is possible to create/run background process at Win2K / Apache environment? If yes, how? 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

[PHP] Re: SQL question. how relevent are the search results ?

2001-11-16 Thread Chris Lee
%ba%') OR (search_engine LIKE '%ab%' AND search_engine LIKE '%ba%') ) WHERE ( (search_query LIKE '%ab%' AND search_query LIKE '%cc%') OR (search_engine LIKE '%ab%' AND search_engine LIKE '%cc%') ) WHERE ( (search_query LIKE '%ba

[PHP] SQL question. how relevent are the search results ?

2001-11-16 Thread Chris Lee
= select * from product where product_feature like '%cat%' or product_feature like '%dog%' or product_feature like '%mouse%' foreach( $result as $pos => $val ) $name[$val['product_id']] = $val['product_name'] foreach( $name as $pos => $val

[PHP] Re: is there a commandline php.exe interpreter?

2001-11-01 Thread Chris Lee
sure there is, get it at php.net goto download section and choose the cgi version. there you are. php.exe -- Chris Lee [EMAIL PROTECTED] "John A. Grant" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've installed Act

[PHP] Re: mysql & php prob...

2001-11-01 Thread Chris Lee
put the mysql_db_query in an if() statement, more likley then not your select statement isnt returning any results. -- Chris Lee [EMAIL PROTECTED] "Sc" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi; > > i

[PHP] Re: date problem

2001-11-01 Thread Chris Lee
date() shoudl give you the time in your timezone, gmdate() should give you the time in the GMT timezone. I would check your server and make sure the timezone is correctly set. -- Chris Lee [EMAIL PROTECTED] "Steve Tsai" <[EMAIL PROTECTED]> wrote in message news:none...

[PHP] Re: Distributed Data Base

2001-11-01 Thread Chris Lee
I dont worry about it. why are you? -- Chris Lee [EMAIL PROTECTED] "Luis Corea" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > I want to Know how can I save information on a Data Bse that will be access >

[PHP] Re: Secure transfer

2001-11-01 Thread Chris Lee
you dont need any unctions in php todo this. you need to install openssl and compile it into apache. port 80 = http (non-secure) port 443 = https (secure) http://www.somesite.com/index.php unsecure https://www.somesite.com/index.php same page, now everything is secure have fun. -- Chris

[PHP] Re: Crating program for access parallel

2001-11-01 Thread Chris Lee
why? if your thinking the db may give the wrong answer, postgres does a bery good job of this. if your super worried, well use mysql, they lock the table when a field is being inserted, updated, or deleted. if you want todo this for some other strange reason, do it the easy way. -- Chris

[PHP] Re: print on printer

2001-11-01 Thread Chris Lee
javascript javascript = client side php = server side unless you want to print on a printer on the server, your goign to need to use javascript. not only are you asking in the wrong forum, real answer is 'I dont know' sorry cant help ya bud. -- Chris Lee [EMAIL PROTECTED]

[PHP] Re: Is there a way not to pop up the default login window?

2001-11-01 Thread Chris Lee
if your using mod_auth then mod_auth will be called not mod_php. if you want mod_php to be called, dont use .htaccess (they are apart of mod_auth). sorry... -- Chris Lee [EMAIL PROTECTED] "Zhu George-Czz010" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

[PHP] Re: Destroying Ssessions

2001-11-01 Thread Chris Lee
tions. -- Chris Lee [EMAIL PROTECTED] "Richard Baskett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Unusual that I didnt even get one response, so I shall try again! :) > > Ok why does this not work? > > session_nam

[PHP] Re: Strange include

2001-11-01 Thread Chris Lee
this '/' method looks kinda neet, but some vars get messed, ie $PHP_SELF, just be carefull using it. Chris Lee [EMAIL PROTECTED] "Oòkó‰öårzòËèkó" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sveiki, php-gener

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

[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

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

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

[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

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

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

[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

  1   2   3   4   >