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, visit: http

[PHP] Apache per directory setting

2004-01-06 Thread Chris Lee
(Default is off). Any Hints? Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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
first? I am using PHP 4.3.2 (cli) (built: May 28 2003 15:10:38) Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Local IP Address

2003-07-28 Thread Chris Lee
Try this: ?php 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] 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

[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

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 [EMAIL PROTECTED

[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]... Hello guys, at moment i'm read

[PHP] Re: page has expired

2001-12-21 Thread Chris Lee
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 message [EMAIL PROTECTED]">new

[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]... Hey guys, I know this has been br

[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 will generate output that

[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.mediawaveonline.com'); -- Chris Lee

[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 this website should be able to b

[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 message 00cd01c18a1a

[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 PROTECTED]">new

[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]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent

[PHP] Re: session destroy ??

2001-12-19 Thread Chris Lee
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]... In my online store i use session. I use a script to check that a user dont make

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] wrote in message

[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]... The following code

[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énieur système SONATRACH Email

[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 a href='javascript:windowpopup('page.php?id=$pos')'$val /abr ; -- Chris Lee [EMAIL PROTECTED] Martin Hughes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How could

[PHP] Re: Problem with fopen / url

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

[PHP] Re: Remote image

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

[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 a online editor thanx R.

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

2001-12-18 Thread Chris Lee
foreach( $array_name as $pos = $val ) echo input type=hidden name='array_name[$pos]' value='$val' ; or use sessions. -- Chris Lee [EMAIL PROTECTED] Gkin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I want to pass through

[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 the manual and

[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 [EMAIL PROTECTED] Steve Osborne

[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:002101c18293$671c5d00$

[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 character a

[PHP] Re: http referer problems

2001-12-18 Thread Chris Lee
break it down. if ( $ef != 'nm' ) echo a : $efbr; else echo b : $ef br; if ( $HTTP_REFERER != 'http://www.globalhealth.org/news/article.php3?id=1526' ) echo c : $HTTP_REFERERbr; else echo d : $HTTP_REFERERbr; now you can see where the bug is. -- Chris Lee [EMAIL PROTECTED

[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 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]"

[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 [EMAIL PROTECTED] Jim

[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 help me along with using php and m

[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 [EMAIL PROTECTED

[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] wrote in message

[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 from UML diagrams

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

2001-12-18 Thread Chris Lee
=$prevcarry_keep='back/a a href='$PHP_SELF?position=0carry_keep='home/a a href='$PHP_SELF?position=$nextcarry_keep='next/a ; -- Chris Lee [EMAIL PROTECTED] J. Roberts [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm trying to update a report gen

[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 01c1816b$ae010230$796010ac

[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] wrote in message

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

[PHP] Re: including outside pages

2001-12-18 Thread Chris Lee
it in the 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, Two questions 1) Is it

[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 an image using php image functions

[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:[EMAIL PROTECTED]..

[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 message [EMAIL PROTECTED]"

Re: [PHP] php htpasswd

2001-12-18 Thread Chris Lee
' AND password = '$PHP_AUTH_PW' ) ) $SessionID = $peop_r['peopleID']; else { Header(WWW-Authenticate: Basic realm='$SERVER_NAME' ); Header(HTTP/1.0 401 Unauthorized); bad_passwd(); } ? http://www.mediawaveonline.com/examples/ -- Chris Lee [EMAIL PROTECTED] Jtjohnston [EMAIL PROTECTED] wrote

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

2001-12-18 Thread Chris Lee
-select_array('', 'petinfo', '') as $pos = $val ) echo $val['pet_name'] .br; if ( !isset($val['pet_name']) ) echo No Pets br; I like that more. but whatever. -- Chris Lee [EMAIL PROTECTED] Jay Fitzgerald [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL P

[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">news:001d01c17ddc$a898fc40$6701

[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 wall with sessions. I

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

2001-12-05 Thread Chris Lee
you a starting point on recursion. -- Chris Lee [EMAIL PROTECTED] Alawi [EMAIL PROTECTED] wrote in message 002201c17dc2$75276cd0$753f47d4@mcsh2l7jqy8bgj">news:002201c17dc2$75276cd0$753f47d4@mcsh2l7jqy8bgj... I want to know how can i do that Recursive loop to get categories as example

[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 PROTECTED] wrote in message

[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 within the file manager is wi

[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.com) to (www.mydomain2.com) I

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

2001-11-19 Thread Chris Lee
echo td.$row[id].td\n;//id for the firt record ex:1 echo td.$row[name].td\n;//id for the second record ex: 2 or echo td.$row[0].td\n;//id for the firt record ex:1 echo td.$row[1].td\n;//id for the second record ex: 2 is that what you mean? -- Chris Lee

[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. ?PHP header(Content-type: application/octet-stream); header(Content-Disposition: attachment; filename=file.txt); // get file data rom db or wherever echo $data; ? -- Chris Lee [EMAIL PROTECTED] Joe Van

[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.admin group on news.php.net), b

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, Chris Lee

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

2001-11-16 Thread Chris Lee
number of keywords is guna be ugly. any SQL idea's ? yes I know this is a php forum, but its related. -- 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

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

2001-11-16 Thread Chris Lee
%') ) WHERE ( (search_query LIKE '%ba%') OR (search_engine LIKE '%ba%') ) WHERE ( (search_query LIKE '%cc%') OR (search_engine LIKE '%cc%') ) WHERE ( (search_query LIKE '%ab%') OR (search_engine LIKE '%ab%') ) nasty eh? any better idea's. I hope so .. -- Chris Lee [EMAIL PROTECTED] Chris Lee [EMAIL

[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. ?php $INC = explode('/', $REQUEST_URI); unset($INC[0]); unset($INC[1]); $INC = implode('/', $INC); include_once($INC); ? Chris Lee [EMAIL PROTECTED] Oòkó‰öårzòËèkó [EMAIL

[PHP] Re: Destroying Ssessions

2001-11-01 Thread Chris Lee
. -- 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_name(adminid); session_start(); unset($sess); sessi

[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]">news:[EMAIL P

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

[PHP] Re: Crating program for access parallel

2001-11-01 Thread Chris Lee
'busy.tmp' doesnt exist - - write a file 'busy - - do something - - delete the file - else - - bugger off ? -- Chris Lee [EMAIL PROTECTED] Luz Lopez [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all I am creating a program PHP that will be ac

[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: 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 for many persons at the same time.

[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... For reference: OS

[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 keep getting an error of: Warning:

[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 ActivePerl, which gives me a wa

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 PROTECTED] wrote in message 0110231140330C

[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... Hello, How can I search for a cert

[PHP] Re: session ID does not delete itself

2001-10-19 Thread Chris Lee
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 my books says that session ID's are created in the /tmp dire

[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
'/a ; -- Chris Lee [EMAIL PROTECTED] Nicklas Bondesson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... all ideas are very welcomed !! /nicke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

[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 in message [EMAIL

[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 message [EMAIL PROTECTED]">new

[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 amazing : =

[PHP] Re: next and previous links

2001-10-05 Thread Chris Lee
/next.gif'/a ; -- Chris Lee [EMAIL PROTECTED] Mick Fitzpatrick [EMAIL PROTECTED] wrote in message 005801c14db9$6bfe4900$0100a8c0@garage">news:005801c14db9$6bfe4900$0100a8c0@garage... Hello After several days of reading various articles on the web I've 'finally' got a basic

[PHP] Re: session var being lost between pages

2001-10-01 Thread Chris Lee
, 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 to be losing my session vars when I load up a different php page. My set-up: 1- main page starts

[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 PROTECTED]... I used a pretty basic system to check HTTP authen

[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:[EMAIL PROTECTED]...

[PHP] Re: writing files

2001-09-25 Thread Chris Lee
it is. -- Chris Lee [EMAIL PROTECTED] Jeb Scarbrough [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When I run the code below it writes the image to the webroot/images directory on a Solaris machine running iPlanet and php4.04pl1. When I run the exactly s

[PHP] Re: dates only in the future

2001-09-25 Thread Chris Lee
at the 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 Kanarik [EMAIL PROTECTED] wrote

[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 creating my first php-4.0.4pl1-9 page

[PHP] Re: Counter

2001-09-25 Thread Chris Lee
there are tutorials all over the inet. ? $file_name = '/tmp/counter.txt'; $counter = fread(fopen($file_name, 'r'), 4096); echo $counter; unlink($file_name); fwrite(fopen($file_name, 'w+'), ++$counter); ? -- Chris Lee [EMAIL PROTECTED] Mark Lo [EMAIL PROTECTED] wrote

[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]">news:[EMAIL P

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

2001-09-21 Thread Chris Lee
(category set); document.formMoviesSearch.submit(); } /script ... input type='hidden' name='sub' value='' img src=genre.png onclick=set_category() or if you want the hand to show up over the image. change the img tag to a href='javascript: set_category()'img src=genre.png/a -- Chris Lee [EMAIL

[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 application that opens a socket us

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

2001-09-19 Thread Chris Lee
. the obvious question is why are you loading 10 100k libraries 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

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

2001-09-19 Thread Chris Lee
: '. 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 [EMAIL PROTECTED] wrote in message 01091919575201.01019@hubert"

[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 message [EMAIL PROTECTED

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]... On Mon, 17 Sep 20

[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 Lee [EMAIL PROTECTED] Ville Mattila [EMAIL PROTECTED

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

2001-09-18 Thread Chris Lee
; } echo /tr ; there you go every five products you get a new line. -- Chris Lee [EMAIL PROTECTED] Alawi Albaity [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... how can i show my record to user to view it five record by fifve record by cl

Re: [PHP] Handling sessions between servers?

2001-09-18 Thread Chris Lee
, but it works. -- Chris Lee [EMAIL PROTECTED] Josh Hoover [EMAIL PROTECTED] wrote in message E973048AB322D411AE99009027E32DF685CD83@FRAZ">news:E973048AB322D411AE99009027E32DF685CD83@FRAZ... You can use NFS shares, but I've read that it is too slow for most situations. My suggestion would b

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) ) a href='$PHP_SELF?pos=$pos'Next/a you get the idea. Chris Lee [EMAIL PROTECTED] Jeff Oien [EMAIL

[PHP] Re: SESSIONS! - please help

2001-09-06 Thread Chris Lee
, $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 having problems with sessions. the following does nothing but should appe

[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 [EMAIL PROTECTED]">news:[EMAIL P

[PHP] Re: multi updates

2001-09-06 Thread Chris Lee
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] wrote in message [EMAIL

[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.net/support.p

  1   2   3   4   >