Re: [PHP] IRR Function in PHP -- MORE Info

2003-02-17 Thread Marco Tabini
Hey Jonathan-- This page has an excellent description of what the IRR is and how it's calculated. http://invest-faq.com/articles/analy-int-rate-return.html I'd love to help more than this, but this is quite a bit of work and without the actual spreadsheet I'm not sure that I'd be able to give

Re: [PHP] Text data truncated after first blank character in form fields

2003-02-17 Thread Kevin Stone
Hmm. Don't know what to tell ya. It works on my computer. Have you tried pressing CTRL+F5 to flush your browser cache? - Kevin - Original Message - From: "rentAweek support" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]> Cc: "Michael Eacott" <[EMAIL PROTECTED]>; <[EMAIL PROTE

Re: [PHP] Text data truncated after first blank character in form fields

2003-02-17 Thread Ernest E Vogelsinger
At 22:04 17.02.2003, Michael Eacott said: [snip] >When I have the following in a form: > >> >the value shown in the form field is a and not a b c >why? >and how can I get to see the untrucated text, please? [snip] Y

Re: [PHP] Protecting files

2003-02-17 Thread Brendon
On Mon, 17 Feb 2003 15:32:31 -0600 (CST), Greg Donald <[EMAIL PROTECTED]> wrote: On Mon, 17 Feb 2003, PR wrote: How can I protect my php files among other files like templates (.inc) and mysql config (config.inc) files being copied/read/imported (front page)/used by other applications other t

Re: [PHP] Data from DB

2003-02-17 Thread Miguel Brás
Using MySQL Any change for a code sample? Thx Miguel "Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Mon, 17 Feb 2003, Miguel Brás wrote: > > > >I have a table with users and passwords with over than 100 rows. > >I have 7 specific users tha

RE: [PHP] Protecting files

2003-02-17 Thread Luke Woollard
If you want to hide the content of an .inc or other file that contains PHP code simply rename it with a .php ie: config.inc becomes config.inc.php the server will parse the file as PHP now and not allow users to download it... Alternatively you can protect a directory with a .htaccess file if yo

RE: [PHP] Protecting files

2003-02-17 Thread Bryan Lipscy
>How can I protect my php files among other files like templates >(.inc) and mysql config (config.inc) files being copied/read/imported >(front page)/used by other applications other than my site... >can this be done by htaccess? is so , could anyone point me into right >direction? I have ren

RE: [PHP] Protecting files

2003-02-17 Thread Bryan Lipscy
>How can I protect my php files among other files like templates >(.inc) and mysql config (config.inc) files being copied/read/imported >(front page)/used by other applications other than my site... >can this be done by htaccess? is so , could anyone point me into right >direction? I have ren

RE: [PHP] Protecting files

2003-02-17 Thread Luke Woollard
CAPS >How can I protect my php files among other files like templates >(.inc) and mysql config (config.inc) files being copied/read/imported >(front page)/used by other applications other than my site... >can this be done by htaccess? is so , could anyone point me into right >direction? I have

Re: [PHP] Protecting files

2003-02-17 Thread Ray Hunter
Try putting your files config files in a directory outside of the root web directory and access the files via the include_path directive in the php.ini file. If you dont have access you can add create a .htaccess file or set the configuration in a php script that is run before your other scripts.

Re: [PHP] What happened to phpEdit???

2003-02-17 Thread Al
Did you try the URL you posted? I tried that one and several others listed for phpEdit. All say the site is not responding. Bryan Lipscy wrote: Did you check google? http://ozu.arecom-sa.com/~marms/phpedit.net/ -Original Message- From: Al [mailto:[EMAIL PROTECTED]] Sent: Sunday, Febru

Re: [PHP] What happened to phpEdit???

2003-02-17 Thread Chase Urich
It worked just fine for me, even just phpedit.net worked. Cahse On Mon, 2003-02-17 at 18:21, Al wrote: > Did you try the URL you posted? > > I tried that one and several others listed for phpEdit. > > All say the site is not responding. > > Bryan Lipscy wrote: > > Did you check google? > > http

Re: [PHP] pro-rated date

2003-02-17 Thread Tom Rogers
Hi, Tuesday, February 18, 2003, 7:03:37 AM, you wrote: PC> Anybody have a quick way of determining the number of days remaining in PC> the current month? PC> I'm currently using: PC> $nextmonth = strftime("%Y-%m-01",strtotime("+1 month")) PC> $monthdays = strftime("%d",strtotime($nextmo

Re: [PHP] session cookie that never expires

2003-02-17 Thread Jason Sheets
Making your session never expire is a bad idea, by doing this you are most likely going to be using the same session id forever which gives attackers a much longer amount of time to guess or brute force a session id AND you will continue to use hard drive space and inodes on your server because gc

Re: [PHP] What happened to phpEdit???

2003-02-17 Thread John Nichel
It works fine for me. So does www.phpedit.net Al wrote: Did you try the URL you posted? I tried that one and several others listed for phpEdit. All say the site is not responding. Bryan Lipscy wrote: Did you check google? http://ozu.arecom-sa.com/~marms/phpedit.net/ -Original Message--

Re: [PHP] Protecting files

2003-02-17 Thread Justin French
My preference 1. if possible, store the files above your public_html directory (doc root)... this means they cannot be over http:// by apache, if that isn't possible: 2. use .htaccess to either block the entire directory of includes, or all *.inc files, or whatever you think is best. Personally,

Re: [PHP] What happened to phpEdit???

2003-02-17 Thread John Wells
Hmm...doesn't work here. Interesting. Partial blackout? John Nichel said: > It works fine for me. So does www.phpedit.net > > Al wrote: >> Did you try the URL you posted? >> >> I tried that one and several others listed for phpEdit. >> >> All say the site is not responding. >> >> Bryan Lipscy w

Re: [PHP] MD5 Password Login Driving me Crazy

2003-02-17 Thread Justin French
on 18/02/03 6:42 AM, Vernon ([EMAIL PROTECTED]) wrote: > When the user goes to login into the page though I have the encrypted > password echo to the page and they match except a 52 on the end of it which > I am assuming is a space or something being picked up on submit or > something. I recall th

[PHP] Counter has gremlins

2003-02-17 Thread Brian V Bonini
I have this basic counter: $counterFile"); } print "Visitor #$num"; } if (!file_exists($counterFile)) { exec("echo 1 > $counterFile"); } displayCounter($counterFile); ?> Works like a charm but every so often for no appare

Re: [PHP] MD5 Passwords (How it works?)

2003-02-17 Thread Justin French
on 18/02/03 3:59 AM, Vernon ([EMAIL PROTECTED]) wrote: > I'm thinking that the MD5 function more than likely encrypts a password to > store into a database, and when you log in using the MD5 function it will > simply encrypt the value being passed along again the same way. Now I'm > wondering what

Re: [PHP] Counter has gremlins

2003-02-17 Thread Jason Sheets
You could be having problems with multiple users, if two visitors come at the same time file locking problems come into play, one script could unlink the file at the same time another script tries to open it resulting in an empty file. A database would be a better way to do this, but assuming you

Re: [PHP] session cookie that never expires

2003-02-17 Thread Justin French
on 18/02/03 1:40 AM, Altug Sahin ([EMAIL PROTECTED]) wrote: > Hi there, > > I have setup a site with session management but even the browser is closed > or after the default time expiration of the session, the user should be able > to see his/her personalized settings. I am nor using any cookies.

Re: [PHP] Counter has gremlins

2003-02-17 Thread Andrew Brampton
I believe this is a concurrency problem... 2 PHP scripts can run at the same time and the problem is that your first script gets as far as the unlink thus deleting the file. Then the 2nd script is ran (at the same time) and trys to open the file which doesn't exist, therefore it reads a num of 0. T

Re: [PHP] MD5 Passwords (How it works?)

2003-02-17 Thread Jason Sheets
If you do a password reset system please remember not to reset the password before they confirm who they are. This means instead of having them entering their login and email address and immediatly resetting their password send the account owner an e-mail with a link that will reset their password

Re: [PHP] session cookie that never expires

2003-02-17 Thread Jason Sheets
You shouldn't store user password in cookies on a browser, instead a more secure method for the user is: On your login form offer the ability to be remembered, if they click the "Remember Me" box generate a unique random ID (or 2 and combine them), now store this ID in your database attached to th

Re: [PHP] MD5 Passwords (How it works?)

2003-02-17 Thread Justin French
Very true -- forgot to mention that step :) Thanks for the reminder!! Justin on 18/02/03 12:49 PM, Jason Sheets ([EMAIL PROTECTED]) wrote: > If you do a password reset system please remember not to reset the > password before they confirm who they are. > > This means instead of having them en

Re: [PHP] session cookie that never expires

2003-02-17 Thread Justin French
Nice!! Justin French on 18/02/03 12:54 PM, Jason Sheets ([EMAIL PROTECTED]) wrote: > You shouldn't store user password in cookies on a browser, instead a > more secure method for the user is: > > On your login form offer the ability to be remembered, if they click the > "Remember Me" box genera

[PHP] Getting around the LOAD DATA LOCAL with MySQL 3.23.49 + using PHP?

2003-02-17 Thread Peter Janett
I upgraded my MySQL on my web server, and the upgrade broke some PHP code that loaded a file. The reason this is a PHP questions is that I need to get my old PHP code to work with the new MySQL server, and I hope someone here can help. Here's the details on the fact that newer versions of MySQL d

[PHP] file-upload.errors

2003-02-17 Thread Nate
Hi guys, I'm curious about a couple things regarding: $_FILES['userfile']['error'] (On page: http://www.php.net/manual/tw/features.file-upload.errors.php ) and also The manual says "Since PHP 4.2.0, PHP returns an appropriate error code along with the file array. The error code can be found i

Re: [PHP] image creation error

2003-02-17 Thread Michael P. Carel
i've already compiled my PHP4 with imagejpeg support but now im loosing my imagegif function. Image jpeg function is now working but for the gif im receiving this error: Fatal error: Call to undefined function: imagegif() Here's my php info after my re-compilation : Configure Command './configur

Re: [PHP] file-upload.errors

2003-02-17 Thread Marco Tabini
On Mon, 2003-02-17 at 21:44, Nate wrote: > Does this mean the file was examined by the browser and it determined it was > too large OR does it have to upload the file temporarily and then check to > see if its too large? > > It sounds like browser would first examine the file before it gets upload

[PHP] Sessions and phplib.

2003-02-17 Thread Vincent M.
Hello, I am using the phplib just for the sessions management and unfortunately this projects seems dead (no?), no official realise using the php4 session support. What's more, i am looking for a sessions library which could check the IP adress of users not only the cookie. In case of bad hats

Re: [PHP] image creation error

2003-02-17 Thread Jason Wong
On Tuesday 18 February 2003 10:51, Michael P. Carel wrote: > i've already compiled my PHP4 with imagejpeg support but now im loosing my > imagegif function. Image jpeg function is now working but for the gif im > receiving this error: > Fatal error: Call to undefined function: imagegif() > > Here's

[PHP] invalid argument supplied for foreach()

2003-02-17 Thread Lynn
Could anyone please tell me what a valid argument would be in this script? error message Warning: Invalid argument supplied for foreach() in /home1/domains/$domain/htdocs/image.php on line 334 line 323-343 $dg = opendir("$thumb"); echo "$title"; PrintHeader(); echo ""; echo ""; while ( g

Re: [PHP] file-upload.errors

2003-02-17 Thread Jason Wong
On Tuesday 18 February 2003 10:44, Nate wrote: > It sounds like browser would first examine the file before it gets > uploaded, however, if I try to upload a 1mb file it takes noticably longer > to produce an error than say a 501 byte file. Some browsers do: http://marc.theaimsgroup.com/?l=php-g

Re: [PHP] invalid argument supplied for foreach()

2003-02-17 Thread Jason Wong
On Tuesday 18 February 2003 12:27, Lynn wrote: > Could anyone please tell me what a valid argument would be in this script? > > > error message > Warning: Invalid argument supplied for foreach() in > /home1/domains/$domain/htdocs/image.php on line 334 foreach needs an array. var_dump($retVal) to

Re: [PHP] Sessions and phplib.

2003-02-17 Thread Jason Sheets
Using the built in PHP 4 session support you can do IP checking on the sessions, in fact you should be able to do IP checking with any session library as long as you do it in your application. Checking the IP when using sessions might give you some additional security but many ISPS use web proxies

Re: [PHP] file-upload.errors

2003-02-17 Thread Nate
So something like my below function isn't going to work because the file HAS to be uploaded temporarily for it to fopen? The ONLY possible way to check it is with javascript then? Anyone know where I could find some code to do that? $maxbytes=500; function ImageSizeCheck($img,$maxbytes,&$arewe

Re: [PHP] Protecting files

2003-02-17 Thread Peter Janett
The issue here is that Apache is running as a single user, so that single user must be able to read all php scripts it wants to parse. So, putting the files in non htdocs directory can help a little, but Apache still can read them, if anyone else on the server asks apache to. The real way to prot

Re: [PHP] browser identification problem

2003-02-17 Thread Jason Wong
On Tuesday 18 February 2003 01:18, [EMAIL PROTECTED] wrote: > > then set 'user_agent' in > > php.ini to match that of one of the compatible browsers. > > I don't see any user_agent entry in my php.ini file. I did a search on the > php.net site and didn't find any info on this. What would be the pr

Re: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-17 Thread Martin Marques
Quoting [EMAIL PROTECTED]: > Hi, > > Installed RPM's from RedHat (latest patches) and using PHP with Apache > under RH7.1 Linux, lots of scripts, no problems. > > The hitch is that a user just tried ftp_connect(), and got the > "unknown function" error. > > Okay, so I expected this to be a miss

Re: [PHP] MD5 Passwords (How it works?)

2003-02-17 Thread Jason Wong
On Tuesday 18 February 2003 01:03, Greg Donald wrote: > md5 is one-way encryption. I use a password 'hint' field in conjunction > with md5. It is not an encryption at all -- it's a hash. Encryption implies a corresponding decryption, so a one-way encryption is either useless or an oxymoron. -

Re: [PHP] image creation error

2003-02-17 Thread Hugh Danaher
General builds of the GD library don't contain gif support. Visit the GD site to see what they say about gif support. If you're building a graph then use png; if an image use jpg. Hugh - Original Message - From: "Michael P. Carel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday,

Re: [PHP] mail function - using remote smtp in php.ini

2003-02-17 Thread Jason Wong
On Tuesday 18 February 2003 01:44, Robin Mordasiewicz wrote: > IS there a way to tell php to use a remote smtp daemon for its mta under > UNIX. I see in the example it looks like windows can be configured to use > a remote smtp. If so what is the syntax. > > > [mail function] > ; For Win32 only. >

[PHP] vni -> unicode

2003-02-17 Thread Jimmy Brake
Hi! I was wondering if anyone has vni -> unicode conversion script. Thanks Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protecting files

2003-02-17 Thread Nate
Just something that crossed my mind a few times. What if another website includes this file in their own php page. That site can't access those variables can they? (I'm sure PHP wouldn't allow that but I need to put this curiousity to rest) Nate "Bryan Lipscy" <[EMAIL PROTECTED]> wrote in message

RE: [PHP] Protecting files

2003-02-17 Thread Bryan Lipscy
That is called Cross-Site Scripting (XSS). I have not been able to get access to the variables via an XSS exploit. It appears that Apache renders the php code before sending off the requesting include function. I also like the .htaccess way of preventing user access to the scripts. This is also wo

Re: [PHP] Protecting files

2003-02-17 Thread Nate
I wonder though, if they're on a the same server but different sites. Like a shared host environment. Aw the things the bewilder the mind. Nate "Bryan Lipscy" <[EMAIL PROTECTED]> wrote in message 01c2d710$81a68e20$6301a8c0@ukiuki">news:01c2d710$81a68e20$6301a8c0@ukiuki... > That is called

Re: [PHP] What happened to phpEdit???

2003-02-17 Thread Ernest E Vogelsinger
At 01:38 18.02.2003, John Wells said: [snip] >Hmm...doesn't work here. Interesting. Partial blackout? [snip] The site is up, but there's a note that reads A HARD DISK CRASH MADE ME LOOSE ALL MAILS SENDED TO [EMAIL

Re: [PHP] invalid argument supplied for foreach()

2003-02-17 Thread Ernest E Vogelsinger
At 05:27 18.02.2003, Lynn said: [snip] >Could anyone please tell me what a valid argument would be in this script? > > >error message >Warning: Invalid argument supplied for foreach() in >/home1/domains/$domain/htdocs/image.php on line 334 > > >line 323-343

Re: [PHP] browser identification problem

2003-02-17 Thread Ernest E Vogelsinger
At 06:05 18.02.2003, Jason Wong said: [snip] >On Tuesday 18 February 2003 01:18, [EMAIL PROTECTED] wrote: > >> > then set 'user_agent' in >> > php.ini to match that of one of the compatible browsers. >> >> I don't see any user_agent entry in my php.ini file.

Re: Re[2]: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-17 Thread Martin Marques
Quoting [EMAIL PROTECTED]: > Rick, > > In response to your mail of Monday 17 February 2003 at 17:46:49: > > > Thanks for your swift response! > > > RE> I also use Redhat 7.1 and use FTP successfully. Something in your > RE> setup? > > Well, I don't think so ... it's all fairly standard (only

[PHP] Array not working

2003-02-17 Thread Chris Blake
Greetings all, My database has one table with three fields i.e. ClientID, ClientName and Distance . I`m trying to get all the field data printed to a form but whenever I try to add the "ClientID" and "Distance" fields to the code below it bombs out with the following error : Parse error: parse e

[PHP] [Fwd: [PHP-DOC] Urgent....plz]

2003-02-17 Thread didou
Message original Sujet: [PHP-DOC] Urgentplz De: [EMAIL PROTECTED] Date: Mar, 18 Février 2003, 4:17 A: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Hi... I'm Wardi from Malaysia.I'm working in the private company which is involved in developing and integrate software solutions.Curre

[PHP] PHP Security Advisory: CGI vulnerability in PHP version 4.3.0

2003-02-17 Thread Jani Taskinen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 PHP Security Advisory: CGI vulnerability in PHP version 4.3.0 Issued on: February 17, 2003 Software: PHP/CGI version 4.3.0 Platforms: All The PHP Group has learned of a serious security vulnerability in the CGI SAPI of PHP version 4.3.0.

[PHP] RE: PHP Security Advisory: CGI vulnerability in PHP version 4.3.0

2003-02-17 Thread McKinney, Rod ERM
Remove me from your list -Original Message- From: Jani Taskinen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 12:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: PHP Security Advisory: CGI vulnerability in PHP version 4.3.0 -BEGIN PGP SIGNED MES

[PHP] Re: [PHP-DEV] RE: PHP Security Advisory: CGI vulnerability in PHPversion 4.3.0

2003-02-17 Thread Derick Rethans
On Mon, 17 Feb 2003, McKinney, Rod ERM wrote: > Remove me from your list See the footer of this email: -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php Derick -- Stop mad cowboy disease!

<    1   2