[PHP] Need libmcrypt.dll for Windows PHP 4.3.9

2005-04-09 Thread HarryG
Need libmcrypt.dll for Windows PHP 4.3.9. Can anyone send it to me? Thanks HarryG

Re: [PHP] Re: Why is it possible to assign data to _not_declared_ vars in a class (PHP 5.0.3)?

2005-04-09 Thread hanez
On Friday 08 April 2005 20:22, Matthew Weier O'Phinney wrote: * Johannes Findeisen [EMAIL PROTECTED]: If i understand right, all variables should be declared in PHP5. So why is it possible to add a membervariable called c to the object without making a declaration? I got no error with

Re: [PHP] sessions not being stored : DAY 2

2005-04-09 Thread Burhan Khalid
Yuri Huitrón Alvarado wrote: running whoami in php returns : root Are you saying that you typed 'whoami' from a shell, and it gave you root. Or are you saying that when you did ?php `whoami` ? you got 'root'. If this is the case, then you are running a big security risk if your PHP scripts

Re: [PHP] Storing password in cookie

2005-04-09 Thread trlists
On 9 Apr 2005 Andy Pieters wrote: It doesn't matter how you encrypt it. DO NOT STORE PASSWORDS ON USERS COMPUTER I hope that's clear enough. A couple of people have stated this but I think it is incorrect. For one thing the users themselves are very likely to store the password there,

Re: [PHP] Need libmcrypt.dll for Windows PHP 4.3.9

2005-04-09 Thread Computer Programmer
Go to http://ftp.emini.dk/pub/php/win32/mcrypt/ On Apr 9, 2005 2:05 PM, HarryG [EMAIL PROTECTED] wrote: Need libmcrypt.dll for Windows PHP 4.3.9. Can anyone send it to me? Thanks HarryG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing password in cookie

2005-04-09 Thread Jason Wong
On Saturday 09 April 2005 19:29, [EMAIL PROTECTED] wrote: On 9 Apr 2005 Andy Pieters wrote: It doesn't matter how you encrypt it. DO NOT STORE PASSWORDS ON USERS COMPUTER I hope that's clear enough. A couple of people have stated this but I think it is incorrect. For one thing the

Re: [PHP] Storing password in cookie

2005-04-09 Thread Computer Programmer
Thanks for all of your reply. :) Just like what trlists said, I'd like to create an auto-login at least with a maximum of 30 days. Users will have the option to choose whether to logout and/or prompt for their password for the next 1 hour, 4 hours, etc. just like what Yahoo! is doing. What is

[PHP] Problem with ob_get_contents()

2005-04-09 Thread Prathaban Mookiah
Hello, I've posted a miniature version of my code here to explain my problem. CODE ? phpinfo(); ob_start(); register_shutdown_function(hello); echo (HELLO); die(); function hello() { $logfile = logfile; $error_string = ob_get_contents(); if(!$handle = fopen($logfile, a)) {

Re: [PHP] Need libmcrypt.dll for Windows PHP 4.3.9

2005-04-09 Thread HarryG
Got it. Thanks. Computer Programmer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Go to http://ftp.emini.dk/pub/php/win32/mcrypt/ On Apr 9, 2005 2:05 PM, HarryG [EMAIL PROTECTED] wrote: Need libmcrypt.dll for Windows PHP 4.3.9. Can anyone send it to me? Thanks HarryG --

[PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Mark Sargent
Hi All, I did a source install, of which I'm a newb at, and then created a index.php file containing the following, ?php phpinfo(); ? but, that shows in the browser, Firefox, when typing localhost/index.php. I've confirmed that httpd is running, and generates pages as I got the Apache welcome

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Jason Wong
On Saturday 09 April 2005 20:17, Mark Sargent wrote: I did a source install, of which I'm a newb at, and then created a index.php file containing the following, ?php phpinfo(); ? but, that shows in the browser, Firefox, when typing localhost/index.php. I've confirmed that httpd is

Re: [PHP] Storing password in cookie

2005-04-09 Thread John Nichel
[EMAIL PROTECTED] wrote: snip A couple of people have stated this but I think it is incorrect. For one thing the users themselves are very likely to store the password there, so why shouldn't you -- with permission of course? If the user wants to circumvent security measures by storing

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread John Nichel
Mark Sargent wrote: Hi All, I did a source install, of which I'm a newb at, and then created a index.php file containing the following, ?php phpinfo(); ? but, that shows in the browser, Firefox, when typing snip You need to tell Apache how to handle php files. -- By-Tor.com ...it's all about

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Mark Sargent
John Nichel wrote: Mark Sargent wrote: Hi All, I did a source install, of which I'm a newb at, and then created a index.php file containing the following, ?php phpinfo(); ? but, that shows in the browser, Firefox, when typing snip You need to tell Apache how to handle php files. Hi All, sorry

Re: [PHP] Storing password in cookie

2005-04-09 Thread trlists
On 9 Apr 2005 John Nichel wrote: While it is not absolute that you can't store passwords in a cookie, it is an absolute that you _shouldn't_ Sorry, I don't agree. There are very few absolute rules in software development. For sites accessing sensitive information or that allow spending

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Jason Wong
On Saturday 09 April 2005 21:27, Mark Sargent wrote: I did a source install, of which I'm a newb at, and then created a index.php file containing the following, ?php phpinfo(); ? but, that shows in the browser, Firefox, when typing snip You need to tell Apache how to handle

Re: [PHP] Storing password in cookie

2005-04-09 Thread Jason Wong
On Saturday 09 April 2005 21:33, [EMAIL PROTECTED] wrote: On 9 Apr 2005 John Nichel wrote: While it is not absolute that you can't store passwords in a cookie, it is an absolute that you _shouldn't_ Sorry, I don't agree. There are very few absolute rules in software development. But in

Re: [PHP] Storing password in cookie

2005-04-09 Thread Josip Dzolonga
On , 2005-04-09 at 22:56 +0800, Jason Wong wrote: Sorry, I don't agree. There are very few absolute rules in software development. But in this case there really is no reason *why* you need to store a password (encrypted or otherwise). IMO storing the password hash (md5,sha1,

Re: [PHP] sessions not being stored : DAY 2

2005-04-09 Thread Yuri Huitrón Alvarado
but then what could be causing that the sessions are not being stored in /tmp/sess ? --- On Sat 04/09, Burhan Khalid [EMAIL PROTECTED] wrote: From: Burhan Khalid [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Date: Sat, 09 Apr 2005 14:13:53

Re: [PHP] Storing password in cookie

2005-04-09 Thread Ryan A
On 4/9/2005 3:33:50 PM, [EMAIL PROTECTED] wrote: On 9 Apr 2005 John Nichel wrote: While it is not absolute that you can't store passwords in a cookie, it is an absolute that you _shouldn't_ Sorry, I don't agree. There are very few absolute rules in software development. For

[PHP] Including class of Exception in exception message

2005-04-09 Thread C Drozdowski
I'm using Exceptions and variously handling them in try..catch blocks or defaulting to my set_exception_handler handler. When I create an Exception I'd like to prepend the class of the Exception to the message. Can this be done with code or do I have to hard code the name of the Exception class

RE: [PHP] Including class of Exception in exception message

2005-04-09 Thread Jared Williams
I'm using Exceptions and variously handling them in try..catch blocks or defaulting to my set_exception_handler handler. When I create an Exception I'd like to prepend the class of the Exception to the message. Can this be done with code or do I have to hard code the name of the

[PHP] Session gets corrupted (or lost)

2005-04-09 Thread Binomic | Marcelo
Hi, I´ve made a simple site with a loguin, that in my machine works perfectly, but not on the server. The problem seems to be on the session handling. I don´t loose the SID, but the session gets corrupted. If I do a print_r($_SESSION), after the loguin i get the correct vars, but after i click

[PHP] Session gets corrupted (or lost)

2005-04-09 Thread Marcelo Volmaro
Hi, Ive made a simple site with a loguin, that in my machine works perfectly, but not on the server. The problem seems to be on the session handling. I dont loose the SID, but the session gets corrupted. If I do a print_r($_SESSION), after the loguin i get the correct vars, but after i click

Re: [PHP] Including class of Exception in exception message

2005-04-09 Thread Josip Dzolonga
On , 2005-04-09 at 11:27 -0400, C Drozdowski wrote: where CODE is some php code that refers to the class of the exception being thrown. Take a look at magic constants [ http://www.php.net/manual/en/language.constants.predefined.php ]. Hope this helps, Josip Dzolonga http://josip.dotgeek.org

Re: [PHP] Session gets corrupted (or lost)

2005-04-09 Thread Chris
What does your class definition look like, and when you you declare it? Maybe your class isn't defined when you do the session_start() ? Chris Binomic | Marcelo wrote: Hi, I´ve made a simple site with a loguin, that in my machine works perfectly, but not on the server. The problem seems to be on

Re: [PHP] Installation Warning?

2005-04-09 Thread Jochem Maas
[EMAIL PROTECTED] wrote: So it seems that Apache's multi-threading is the issue. So IIS is the way to go then or Apache 1.x eh? The trouble with going the Apache 1.x route is that I've been having trouble downgrading from 2.x to 1.x... Well someday I'll find a use for Linux...The check is in the

[PHP] Date time simplicity gotten out of hand

2005-04-09 Thread Ryan A
Hey, I thought this would be simple and just a few mins of programming but along the way...i have managed to confuse myself ;-D I have 2 field in my table users_online: present_date_time datetime expires_in datetime for present_date_time I am using now() to insert but for expires_in I need to

Re: [PHP] Date time simplicity gotten out of hand

2005-04-09 Thread Greg Donald
On Apr 9, 2005 12:35 PM, Ryan A [EMAIL PROTECTED] wrote: Hey, I thought this would be simple and just a few mins of programming but along the way...i have managed to confuse myself ;-D I have 2 field in my table users_online: present_date_time datetime expires_in datetime for

Re: [PHP] Date time simplicity gotten out of hand

2005-04-09 Thread Ryan A
On 4/9/2005 7:28:34 PM, Greg Donald ([EMAIL PROTECTED]) wrote: On Apr 9, 2005 12:35 PM, Ryan A [EMAIL PROTECTED] wrote: Hey, I thought this would be simple and just a few mins of programming but along the way...i have managed to confuse myself ;-D I have 2 field in my table

[PHP] Alternate to timediff() (might be slightly 0T)

2005-04-09 Thread Ryan A
Hey, Reading the time and date functions of MySql I see that to compare my two timedates I would need to go with TIMEDIFF, but theres a note there that states: TIMEDIFF() was added in MySQL 4.1.1. and our host is running 4.0 and another 3.23.x So how can I compare 2 timedates which are: now()

Re: [PHP] Alternate to timediff() (might be slightly 0T)

2005-04-09 Thread Greg Donald
On Apr 9, 2005 1:09 PM, Ryan A [EMAIL PROTECTED] wrote: So how can I compare 2 timedates which are: now() and now() + 5 mins to see if I get a positive or negitive value? mysql select NOW() DATE_ADD( NOW(), INTERVAL 5 MINUTE ); +--+ | NOW()

Re: [PHP] Alternate to timediff() (might be slightly 0T)

2005-04-09 Thread Ryan A
Hmmm. we have a new sql guru on the list eh? welcome master... :-) Thanks mate. -Ryan On 4/9/2005 8:18:10 PM, Greg Donald ([EMAIL PROTECTED]) wrote: On Apr 9, 2005 1:09 PM, Ryan A [EMAIL PROTECTED] wrote: So how can I compare 2 timedates which are: now() and now() + 5 mins

Re: [PHP] Storing password in cookie

2005-04-09 Thread trlists
On 9 Apr 2005 Jason Wong wrote: I might, depending on the needs, store a hash code as others have suggested Why not in *all* cases? Well, just because I'm not sure it is worth the effort. What is the point of storing a hash code as a proxy (in the colloquial sense of the word) for an

Re: [PHP] Storing password in cookie

2005-04-09 Thread trlists
On 9 Apr 2005 Ryan A wrote: This certainly has turned out to be an interesting discussion.I usually send the info via sessions...how bad is that? Well if you are using sessions it is worth thinking about session security, for example:

Re: [PHP] Variable Passing

2005-04-09 Thread Matthew Weier O'Phinney
* Brad Brevet [EMAIL PROTECTED]: This seems to be what I was looking for, but I am curious, will the / be included in the variable? Will I have to do a stripslashes() command on it? If you echo out $_SERVER['PATH_INFO'] for the URL shown below, it will give you: /321 Usually what you do

Re: [PHP] Re: Why is it possible to assign data to _not_declared_ vars in a class (PHP 5.0.3)?

2005-04-09 Thread Matthew Weier O'Phinney
* Hanez [EMAIL PROTECTED]: On Friday 08 April 2005 20:22, Matthew Weier O'Phinney wrote: * Johannes Findeisen [EMAIL PROTECTED]: If i understand right, all variables should be declared in PHP5. So why is it possible to add a membervariable called c to the object without making a

Re: [PHP] How can i do refresh my web since java script?

2005-04-09 Thread Marek Kilimajer
Tomás Rodriguez Orta wrote: input name=refrescar type=submit class=btn id=refresh onClick=sendrefresch() value=Refrescar script language=JavaScript type=text/JavaScript !-- function sendrefresch() { How can I do for refresch my web, by the button Refresh? } Why do you want to use javascript? You

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread John Nichel
Mark Sargent wrote: snip http://www.php.net/manual/en/install.unix.php it has 2 examples, 4-1 and 4-2. Little confused with what shared and static modules are and which 1 pertains to me. I was wanting to get php running to allow base to show results of snort logging in mysql. Snort/Mysql/Base etc

Re: [PHP] Storing password in cookie

2005-04-09 Thread John Nichel
[EMAIL PROTECTED] wrote: On 9 Apr 2005 John Nichel wrote: While it is not absolute that you can't store passwords in a cookie, it is an absolute that you _shouldn't_ Sorry, I don't agree. There are very few absolute rules in software development. This isn't a rule. It's common sense. The

Re: [PHP] Variable Passing

2005-04-09 Thread Jordi Canals
What I do to control it only by PHP without using the mod_rewrite for apache is to use URL with this format: http://sample.com/script.php/param1/param2/param3 Then, work in the script looking at the variable $_SERVER['REQUEST_URI'] wich will contain, in this sample:

Re: [PHP] Storing password in cookie

2005-04-09 Thread Skippy
On Sat, 09 Apr 2005 14:51:49 -0400 [EMAIL PROTECTED] wrote: A digression to a related issue (where I did take the conservative approach): A system I'm working on now was originally set up with password hashes in the database -- the PW itself was never stored. But the client wanted an

Re: [PHP] Variable Passing

2005-04-09 Thread Matthew Weier O'Phinney
* Jordi Canals [EMAIL PROTECTED]: What I do to control it only by PHP without using the mod_rewrite for apache is to use URL with this format: http://sample.com/script.php/param1/param2/param3 Then, work in the script looking at the variable $_SERVER['REQUEST_URI'] wich will contain, in

[PHP] Viewing a specific item within a php web-page?

2005-04-09 Thread Carlos Palomino
I have a document entitled: articles.php Within this document, I want to store various written articles which are headed by a string value - example: $post_040905 = text for April 9th 2005; print($post_040905); $post_041005 = article for April 10th 2005; print($post_041005); How can I view a

Re: [PHP] Simple Licensing System

2005-04-09 Thread Bruno B B Magalhães
Hi Richard, And how do I generate this, and how would I check it?!?! Thanks, Bruno B B Magalhaes On Apr 8, 2005, at 11:48 PM, Richard Lynch wrote: On Fri, April 8, 2005 1:06 pm, Bruno B B Magalhães said: I need a help with a licensing system, I want something very simple, for example a simple var

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Mark Sargent
John Nichel wrote: Mark Sargent wrote: snip http://www.php.net/manual/en/install.unix.php it has 2 examples, 4-1 and 4-2. Little confused with what shared and static modules are and which 1 pertains to me. I was wanting to get php running to allow base to show results of snort logging in mysql.

[PHP] Re: Problem with ob_get_contents()

2005-04-09 Thread Skrol 29
Hi, I've tested your code on PHP 4.3.3 and I have the same behavior has yours. Hello is output at the end of the PhpInfo data, followed by a PHP notice : Notice: ob_end_clean(): failed to delete buffer. No buffer to delete. in ... And there is an empty logfile file created in the Apache

Re: [PHP] Installation Warning?

2005-04-09 Thread Andy Pieters
On Friday 08 April 2005 20:27, [EMAIL PROTECTED] wrote: Anyone have any ideas on why it is suggesting NOT to use php and Apache 2.0.x in a production environment? I'm planning on developing several large apps for my company and expect 300-400 people to be hitting it throughout the business