Re: [PHP] MD5 / crypt

2001-02-06 Thread Alexander Wagner
Dan Harrington wrote: > What is the best way to encrypt/decrypt strings when passing between > php pages? If your encryption is meant to be anything near secure, there is only one way: DON'T GET or POST-Parameters are for user-input. Handing information over to the client and taking it back la

Re: [PHP] Is PHP integrated with LDAP?

2001-02-06 Thread Alex Akilov
Zhu George-CZZ010, There is an LDAP extension in PHP. Check the manual. Alex -- 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] Questions about simple php problems

2001-02-06 Thread David VanHorn
> >I think it's just "test.html", although I am not 100% >sure. I will check that. Maybe this is the reason... I hit this early on too. I write my code on a windows machine, and upload it using cute-ftp to the server, which is linux. I started out trying to make files like "file.ext" on windows

[PHP] Odd question regarding creating a php file

2001-02-06 Thread Dusten
I'm having trouble creating a php file. I've tried to explain it to the peeps in IRC but am having trouble. It'll be easier to paste my code: ... $result2 = mysql_query("INSERT INTO winLoss(login, pass) VALUES('$login', '$pass')"); if($result2) { $fp = fopen ("/home2/colorado/public

Re: [PHP] How to use phpIRC and question about HTML streaming!

2001-02-06 Thread Alexander Wagner
Zenith wrote: > I have readying "web application develoment with PHP4.0" by Tabias > Ratschiller and Till Gerken at these days! > In chapter 3, I have talk about creating a IRC client with phpIRC and > HTML streaming, > but it hasn't talk too much about the implementation, also, it > haven't talk

Re: [PHP] MD5 / crypt

2001-02-06 Thread David VanHorn
> >GET or POST-Parameters are for user-input. Handing information over to the >client and taking it back later is a potential security leak. If you have >no means of revalidating the information after it crossed the so called >trust boundary, you should't do it. >Send a handler, some random an

Re: [PHP] Questions

2001-02-06 Thread Jericho Barimen
--- Josh G <[EMAIL PROTECTED]> wrote: > Any of you guys care to enlighten this fellow any > further than me? Thank you for your reply. It helps a lot. Thanks to everyone who took this effort to reply to me. I just try to learn and taklking to experienced people seems a good wayto learn. > Pleas

Re: [PHP] Questions about simple php problems

2001-02-06 Thread David VanHorn
> >Here's what my normal "Index.php" looks like. > > > > Well.. the mailing list munged it.. I can email you a copy if you're interested. -- Dave's Engineering Page: http://www.dvanhorn.org Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 -- PHP General Mailing List (http://

Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-06 Thread Shane McBride
Phil, Did you happen to copy the php4ts.dll into the winnt directory? I am not sure of the error you are getting, but it may help? - Original Message - From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 06,

Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-06 Thread Shane McBride
Phil, Hey check out this thread: http://www.phpbuilder.com/forum/read.php3?num=3&id=100242&thread=100047 - Original Message - From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 11:14 AM Subject: Re: [PHP

[PHP] Io Ports?

2001-02-06 Thread Chris
Hi, Is it possible to access IO ports with PHP, specifically the parallel port. I would like to do this with php, not printing functions, but access to the port, like being able to control LED's, etc. I didn't see any functions in php for that so I think I probably have to use C or something. C

Re: [PHP] Odd question regarding creating a php file

2001-02-06 Thread Chris Lee
there are a few errors in here. number one being this. echo "... mysql_query("SELECT ..."; do you see it? youve got the " in the middle there, that is ending your " " section, not what you wanted right. second too is the fact anything in " " will be evaluated, anything in ' ' will not. fwrite($

Re: [PHP] Date Formatting

2001-02-06 Thread Steve Edberg
At 3:04 PM -0800 2/6/01, Richard Scott Crawford wrote: >Cold Fusion has a wonderful function called CreateODBCDate(), which >takes as an argument any date in just about any format and returns a >standard ODBC date format that you can plug into a database without >worrying about conversion. > >D

[PHP] MANY GREAT THANKS!!!

2001-02-06 Thread Jericho Barimen
Guys, Thousand blessings for all the help I got from all of you. There are still lots of thinsg I do not understand, but I learnt a LOT tonight. You won't believe it... I was stuck reading the boring tutorials and books and fed up. After all your great help, I have just created a very very simp

[PHP] passing array to function?

2001-02-06 Thread Jaxon
How do you write a function that takes an array as an argument? Could someone please point me at an example? Regards, Jaxon -- 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 admin

[PHP] Retrieve item from table at random

2001-02-06 Thread enthalpy
anyone have example code for randomly grabing an item from a mysql table? <-CoreComm-Internet-Services--http://core.com/-> (Jon Marshall CoreComm Services Chicago) ([EMAIL PROTECTED] Systems Engineer II) ([EMAIL PROTECTED] Network Operations) <--

RE: [PHP] MD5 / crypt

2001-02-06 Thread Dan Harrington
> If your encryption is meant to be anything near secure, there is only > one way: > DON'T Well, this is true. I kinda just want to be able to pass things back and forth without giving the average user the ability to even have a clue as to what I am doing. If they can't see, they will have less

[PHP] breaking up images to sets of 5

2001-02-06 Thread enthalpy
i use mysql to store urls for all my images and have php query that for the images. is there an easy way to set it up so it does 5 at a time and has a lil next 5 link at the bottom.. the entriees in the table are not numbered. <-CoreComm-Internet-Services--http://core.com/-> (Jon Marshal

Re: [PHP] breaking up images to sets of 5

2001-02-06 Thread Mark Green
enthalpy wrote: > > i use mysql to store urls for all my images and have php query that for > the images. is there an easy way to set it up so it does 5 at a time and > has a lil next 5 link at the bottom.. the entriees in the table are not > numbered. Append your SQL query with LIMIT $edge,

Re: [PHP] breaking up images to sets of 5

2001-02-06 Thread Mark Green
Boy my syntax on that one sure was rough... think I need another coffee! Hope you get the idea thou, Limit is really useful for moving through large queries ;] Mark Green wrote: > > enthalpy wrote: > > > > i use mysql to store urls for all my images and have php query that for > > the images. is

Re: [PHP] breaking up images to sets of 5

2001-02-06 Thread enthalpy
well that should do it for me i already have all the code i was unaware that there was a limit command.. i should be able to do something like url.php?limit=0,5 or something like that <-CoreComm-Internet-Services--http://core.com/-> (Jon Marshall CoreComm Services Ch

[PHP] XSLT problems....

2001-02-06 Thread Chris Lee
test.xml 1 :PHatCat http://freshmeat.net/projects/phatcat/ A PHP CueCat Decoder. Oct 9th 2000 Web/Applications GPL 2 About Me http://freshmeat.net/projects/aboutme/ A system for recording/sharing preferences Apr 18th 2000 Web/Tools GPL test.xsl http://www.w3.org

[PHP] Getting referrer page

2001-02-06 Thread Dennis Gearon
Is there any way in straight HTML to get the page referred from and make a link out of it? Or is scripting languages, like my favorite, PHP, the only way to do that? -- Sites by friends of mine: http://www.myhiddentreasures.com/ ___

Re: [PHP] passing array to function?

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 11:30, Jaxon wrote: > How do you write a function that takes an array as an argument? > > Could someone please point me at an example? > > Regards, > Jaxon Try this: $val"; } } $fruits=array("a"=>"apple","b"=>"banana","c"=>"cucumber","d"=>"apricot",); show_e

Re: [PHP] Retrieve item from table at random

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 11:28, enthalpy wrote: > anyone have example code for randomly grabing an item from a mysql table? > Mysql 3.23 will let you order by RAND() and you could use a LIMIT to restrict to one result. I haven't tried it, though. -- David Robley| WEBMASTER &

[PHP] sending mail with PHP from web

2001-02-06 Thread Yamin Prabudy
Hi there,... i had make a web interface to send announcement mail to my customers,..rite now i had about 500 once I send mail to my customers my server hang ( i guess to much open file)...i complie by kernel again to get a big descriptor, but still worried about the hang problemi put a delay i

[PHP] File upload - ascii format

2001-02-06 Thread Shane McBride
How can I ensure that a file is transferred in ascii mode using the following: File to Upload: emplresults.txt  applresults.txt I think it may be how you specify the enctype? - Shane

[PHP] Can I do this to write out html file using fopen

2001-02-06 Thread [EMAIL PROTECTED]
Hi people, the syntax below is what I intend to use it to write out the customer detail on a new file according the customer ID. I only make it rough and short and did not go too detail on it, have limited experience oho here in some way. https://www.manageasy.com/" . "requestDetail.php3?filena

[PHP] Alarm/Timer in PHP??

2001-02-06 Thread GAYTAN BAHAMONDEZ DANIEL EDUARDO
Hi there, I need to do some kind of alarm in php, I have a date(dd-mm-) in mysql and need that system warn me a week or so before that date, is there a function like that in php?? Thanks in advance Daniel Gaytan B. -- PHP General Mailing List (http://www.php.net/) T

[PHP] which template?

2001-02-06 Thread Thomas Jaske
Which template can I use to do this simply? $template = new Template(); $template->assign(content_item, placeholder); $page = template($template_file); $page->print(); thanks! tomo __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com

Re: [PHP] File upload - ascii format

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 13:42, Shane McBride wrote: > > How can I ensure that a file is transferred in ascii mode using the > following: action="do_upload.php"> > > File to Upload: > > emplresults.txt value="emplresults">  applresults.txt name="file_type" value="applresults"> name="submit" value="

[PHP] [newbie] minor trouble with "while, list and explode" from a text-file

2001-02-06 Thread SED
Hi, I'm trying to figure out how to do this right: I have this text file: date 1 | head 1 | text 1 date 2 | head 2 | text 2 date 3 | head 3 | text 3 And I want to display in a HTML-page like this: date 1 head 1 text 1 date 2 head

Re: [PHP] File upload - ascii format

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 13:58, David Robley wrote: > On Wed, 7 Feb 2001 13:42, Shane McBride wrote: > > > How can I ensure that a file is transferred in ascii mode using the > > > > following: > action="do_upload.php"> > > > > File to Upload: > > > > emplresults.txt > value="emplresults">  applresu

[PHP] Header Location Question

2001-02-06 Thread Jeff Oien
I have the code below within a larger web page which is like a portal. When I submit the form, I get this message: Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\index1.php3:9) Can I get it to take me to the BigCharts site a

Re: [PHP] Alarm/Timer in PHP??

2001-02-06 Thread Michael Kimsal
No. PHP simply executes a script when it is called by something. An option would be to an external 'something' automatically call PHP periodically. At that point, the script that is invoked could do periodic maintenance (check DB, warn you if date in MYSQL is < 1 week, etc.) We have a service

Re: [PHP] [newbie] minor trouble with "while, list and explode" from a text-file

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 14:14, SED wrote: > Hi, I'm trying to figure out how to do this right: > > I have this text file: > > date 1 | head 1 | text 1 > date 2 | head 2 | text 2 > date 3 | head 3 | text 3 > > And I want to display in a HTML-page like this: > > date 1 > he

[PHP] parent constructor

2001-02-06 Thread Aaron Tuller
why doesn't this work? $parentClass = get_parent_class($this); parent::{$parentClass}(); I get a parse error. can I not use variable functions with the "::" syntax? I tried eval() and it loses the context. thanks for the help! -aaron -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] XSLT problems....

2001-02-06 Thread Javier Muniz
In my experience this is caused by an error in your .xsl... not exactly the most verbose error so I don't know what's actually happening here. -jm -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 5:34 PM To: [EMAIL PROTECTED] Subject: [PHP]

php-general Digest 7 Feb 2001 04:14:56 -0000 Issue 497

2001-02-06 Thread php-general-digest-help
php-general Digest 7 Feb 2001 04:14:56 - Issue 497 Topics (messages 38394 through 38486): Re: I wish: IIS and ISAPI $PHP_AUTH_USER 38394 by: Phil Driscoll 38457 by: Shane McBride 38458 by: Shane McBride Re: GD 38395 by: Web Admin Re: Parse error on blank li

Re: [PHP] Name of Class' instance

2001-02-06 Thread Steve Werby
"Boget, Chris" <[EMAIL PROTECTED]> wrote: > So if you do: > > $joeBob = new myClass(); > > "myClass" can somehow know that "joeBob" is the name of > it's instance? > > I'm thinking 'no', but would like verification. I'm not aware of a way to do so. I'm curious why you'd want to? If you want to

Re: [PHP] parent constructor

2001-02-06 Thread Aaron Tuller
ok, I == dumb. this works: $parentClass = get_parent_class($this); eval("$parentClass::$parentClass();"); still, I think I should be able to do what I wrote below. -aaron At 8:05 PM -0800 2/6/01, Aaron Tuller wrote: >why doesn't this work? > >$parentClass = get_parent_class($this); >parent::{

Re: [PHP] Alarm/Timer in PHP??

2001-02-06 Thread Rasmus Lerdorf
Just use the standalone php binary and write yourself a little php script and run it from your cron periodically. -Rasmus On Wed, 7 Feb 2001, GAYTAN BAHAMONDEZ DANIEL EDUARDO wrote: > Hi there, > I need to do some kind of alarm in php, I have a date(dd-mm-) > in mysql and need that sy

Re: [PHP] Indexing Engine

2001-02-06 Thread Steve Werby
"Diego Fulgueira" <[EMAIL PROTECTED]> wrote: > I was wondering if anyone around knows of a tool (free if possible) to index > all the pages of my website and implement a search engine. I prefer it to > run on NT. My favorite is mnoGoSearch (formerly udmsearch) found at http://search.mnogo.ru/. I

Re: [PHP] Odd question regarding creating a php file

2001-02-06 Thread Steve Werby
"Dusten" <[EMAIL PROTECTED]> wrote: > fwrite($fp, " $result = mysql_query("SELECT * from winLoss WHERE > login='$login'AND pass='$pass'"); >?> > Ive ommited the redundant things. Basicly it just creates this: SELECT * > from winLoss WHERE login=''

Re: [PHP] Header Location Question

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 13:27, Jeff Oien wrote: > I have the code below within a larger web page which is > like a portal. When I submit the form, I get this message: > > > Warning: Cannot add header information - headers already sent by (output > started at c:\apache\htdocs\index1.php3:9) >

Re: [PHP] Retrieve item from table at random

2001-02-06 Thread Steve Werby
"David Robley" <[EMAIL PROTECTED]> wrote: > On Wed, 7 Feb 2001 11:28, enthalpy wrote: > > anyone have example code for randomly grabing an item from a mysql table? > > > > Mysql 3.23 will let you order by RAND() and you could use a LIMIT to > restrict to one result. I haven't tried it, though. I

Re: [PHP] sending mail with PHP from web

2001-02-06 Thread Steve Werby
"Yamin Prabudy" <[EMAIL PROTECTED]> wrote: > i had make a web interface to send announcement mail to my customers,..rite > now i had about 500 > once I send mail to my customers my server hang ( i guess to much open > file)...i complie by kernel again to get a big descriptor, but still worried > a

Re: [PHP] software development qu

2001-02-06 Thread Dean Hall
Okay, since no one seems interested in replying, I'll put it a different way. Does anyone know of a language-independent way to document an API? I've thought of writing Java interfaces or using IDL, but I'd like to hear if anyone has a better idea. Dean. ""Dean Hall"" <[EMAIL PROTECTED]> wrote

Re: [PHP] How to use phpIRC and question about HTML streaming!

2001-02-06 Thread Zenith
Thanks you very much!! -- 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]

[PHP] Emacs PHP doc/ref system?

2001-02-06 Thread Phil. C
Does anyone know of a PHP quick reference or documentation system for Emacs? I have been playing around with the HTML manual, trying to get it to load into a window based on the current function, but I'm not having much success. Any help would be greatly appreciated! Thank you, Phil. -- PHP G

[PHP] phplib phplib-7.2b is severely inconsistent

2001-02-06 Thread Jeff
Can anyone explain this? I thought phplib was supposed to provide a consistent interface to databases. If you depend on the mysql and pgsql layers to work the same you are screwed. Their connect method inconsistency is pathetic. One function returns a value and the other does not. This code i

[PHP] PHP Contractor In Israel

2001-02-06 Thread Shimon Dekel
I am looking for someone able to do PHP contract or consulting work in Tel-Aviv Israel, Please write directly to me: [EMAIL PROTECTED] Thanks == Shimon Dekel, Israeli Vegetable Board Information System Manager 2 Karlibach St Tel-Aviv 67132

[PHP] Time problem

2001-02-06 Thread Roman
Hello !! I have one problem with mysql database. In table i have 2 arrays with time format. For example this arrays calls IN and OUT. In php script i want to have distinction between this arrays. For example IN is 8:30:45 and OUT is 16:45:15 and result will be: 8:14:30. Exists any functi

[PHP] image* functions won't work.

2001-02-06 Thread Lauri Jakku
Hi, i've installed latest apache and php.. and find out that the image* functions dosen't work .. apache_1.3.17 freetype-2.0.1 gd-1.8.4 jpeg-6b php-4.0.4pl1 are compiled & installed without any whine .. -- Terv. \-^-/ ( o o ) v- Idiots tr

Re: [PHP] GD, TTF, and Anit-Alias

2001-02-06 Thread Lauri Jakku
On Tue, 6 Feb 2001, Brandon Orther wrote: > Hello > > I am making a php script that make an image with the text that I send to the > script. What I was wondering is if there was an anti-alias function in GD > for my test. > i've made one that has zoom function and 4 buildin styles done with php

Re: [PHP] XSLT problems....

2001-02-06 Thread sterling hughes
Javier Muniz wrote: > > In my experience this is caused by an error in your .xsl... not exactly > the most verbose error so I don't know what's actually happening here. > > -jm > Yup, it is, to correct this, place the following function in your xslt document:: function report_xslt_error($pars

[PHP] Alternative PHP Cache

2001-02-06 Thread Herman Tolentino
Dear folks, Anybody out there with experience using Alternative PHP Cache (http://apc.communityconnect.com)? I am at a loss for information regarding its use with PHP, specifically, Zend Optimizer. Thanks in advance. Herman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

[PHP] AW: Sessions and Objects

2001-02-06 Thread Matthias Krehl
As far as I unterstood: No! The variables however should be accessible directly (*sic*). I wonder why there is no nice example documented how to take advantage of objects in PHP sessions. I'd really appreciate any hints! bye Matthias Matthias Krehl [EMAIL PROTECTED] > -Ursprüngliche Nachr

Re: [PHP] image* functions won't work.

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 17:52, Lauri Jakku wrote: > Hi, > i've installed latest apache and php.. and find out that the > image* functions dosen't work .. > > apache_1.3.17 > freetype-2.0.1 > gd-1.8.4 > jpeg-6b > php-4.0.4pl1 > > are compiled & installed without any whine .. What do you me

<    1   2