Re: [PHP] What's the proper way to open a file? File access permissions?

2003-02-17 Thread Dunkel
Jason Wong wrote: On Friday 14 February 2003 16:36, Dunkel wrote: How do I ensure that all file access permissions are allowed? What is the proper way to do it? - I tried to 'fopen' an existing text file but got Permission denied error. - I tried different parameters, same error - I tried

Re: [PHP] RSA implementation

2003-02-17 Thread José León Serna
El mié, 12-02-2003 a las 16:27, Chris Hewitt escribió: Or it could be an MD5 hash. Current password hash compared with what is in the database, if OK then store new password hash. I'm just suggesting that its possible to use MD5 and not a two-way encryption/decryption. I have no experience

Re: [PHP] RSA implementation

2003-02-17 Thread José León Serna
El mié, 12-02-2003 a las 18:47, Matt Vos escribió: Why not try this: I'm not trying to log in the user, this is already done with MD5, I'm trying to allow the user to change its own password, so I need encryption/decryption. Regards. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Default argument values

2003-02-17 Thread neko
Hey All, I've been trying to write a function that accepts multiple optional parameters, some of which are ints. The function signature looks like this: function blahBlah($fromDate, $toDate = 0, $limit = 20, $limitNodeType = null) I've been reading up here:

[PHP] Re: Default argument values

2003-02-17 Thread Stephen Willcock
Yes, you can call your function with these arguments, but in this case of course the defaults will not be used because you have supplied arguments. SW Neko [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey All, I've been trying to write a function that

[PHP] Re: forking sendmail

2003-02-17 Thread Brendon
On Sun, 16 Feb 2003 01:05:58 -0300, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, On 02/16/2003 12:15 AM, Brendon wrote: I've been trying to fork sendmail because DNS checks cause it to be slow delivering messages... Here's what i've tried, and many other variations... $str = to: [EMAIL

[PHP] Re: forking sendmail

2003-02-17 Thread Manuel Lemos
Hello, On 02/17/2003 07:04 AM, Brendon wrote: I've been trying to fork sendmail because DNS checks cause it to be slow delivering messages... Here's what i've tried, and many other variations... $str = to: [EMAIL PROTECTED]\nfrom: [EMAIL PROTECTED]\nsubject: test; exec('sendmail -i -t $str

[PHP] Search engine PHP

2003-02-17 Thread Andrian Ivanov
Hello, Can somebody direct me to a documentation source, about creating small database search engines with PHP? Thank you in advance, Andrian Ivanov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 17 Feb 2003 11:01:29 -0000 Issue 1888

2003-02-17 Thread php-general-digest-help
php-general Digest 17 Feb 2003 11:01:29 - Issue 1888 Topics (messages 135786 through 135814): Re: List problem 135786 by: David T-G Re: recursion? 135787 by: David T-G Re: Inserting records in a particular way in MySQL 135788 by: Miles Thompson Converting a

Re: [PHP] Future compatibility

2003-02-17 Thread Zeev Suraski
At 07:03 17/02/2003, Lord Loh. wrote: Future compatibility === Php and zend have constantly been discarding old syntax...making it deprecated and all... How can I be sure that a code I write will run for ever (or at least 10 years) irrespective of future PHP versions... Is there a

FW: [PHP] List problem

2003-02-17 Thread Uttam
please remove [EMAIL PROTECTED] from the list. -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 06:06 To: PHP General list Cc: Beauford.2002 Subject: Re: [PHP] List problem Beauford -- ...and then Beauford.2002 said... % % Does anyone else

[PHP] Re: Converting a large number of passwords to MD5 at once.

2003-02-17 Thread Nenad Djordjevic
Hello Vernon, If database is MySQL you can use MySQL function MD5: UPDATE TableName SET password = MD5(password) If database is not MySQL: write PHP script and use PHP function md5; Best regards, Nenad Djordjevic mailto:[EMAIL PROTECTED]

RE: [PHP] Re: URL of calling page

2003-02-17 Thread Uttam
or $_SERVER[HTTP_REFERER] availability depends or server though... regds, -Original Message- From: Luke Woollard [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 10:48 To: PHP-general Subject: RE: [PHP] Re: URL of calling page dude - try this: echo $HTTP_REFERER; It'l give

[PHP] RE: Search engine PHP

2003-02-17 Thread Uttam
may be browsing through available classes will help you: http://uttam27.users.phpclasses.org/browse.html/class/22.html -Original Message- From: Andrian Ivanov [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 16:30 To: [EMAIL PROTECTED] Subject: Search engine PHP Hello, Can

[PHP] safe mode

2003-02-17 Thread Wilbert Enserink
Hi all I'm having troubles with the safe mode. My ISP has safe mode ON. Now i'm busy accessing files, deleting uploaded files, moving them and so on. Different actions are performed by different scripts. I want to make use of functions like stat() and so on, but each time I get the warning:

[PHP] Re: Search engine PHP

2003-02-17 Thread Lord Loh.
See mine... MySQL, PHP http://findmaan.sourceforge.net/ opensource, So you can modify as long as you give me the cridits and comply with the licence... Lord Loh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Default argument values

2003-02-17 Thread Lord Loh.
So you want to do overloading ? Try depricating the function call by @blhablah($a,$b,[$c]); No warnings generated! Hope this helps Lord Loh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] long running PHP application

2003-02-17 Thread Lord Loh.
There is a execution time out(30 sec. by default) How do you avert it! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] preg_match_all

2003-02-17 Thread Cenk Uysal
hi, i try to parse html data with php's preg_match_all() function. here is a sample data that i try to parse: a href=http://www.xxx.com; class=Mxxx/a the regular expression that i use is: preg_match_all(/a[ ]href=\([^\]+)\[ ]class=M([^]+)\/a/,$buffer,$ma tch); by this expression i get the

Re: [PHP] long running PHP application

2003-02-17 Thread Ernest E Vogelsinger
At 13:06 17.02.2003, Lord Loh. spoke out and said: [snip] There is a execution time out(30 sec. by default) How do you avert it! [snip] ini_set('max_execution_time', 1800); // set to 30 minutes... -- O

[PHP] register_globals On

2003-02-17 Thread Sam
I'm thinking of running a shopping cart package (osCommerce) that requires register_globals to be enabled. With all the warnings about security with register_globals enabled I'm worried. How dangerous is it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: database selection

2003-02-17 Thread Hans Prins
One more question about this: If I wanted to select the last row, would I use this code? $query = SELECT * FROM polls ORDER BY pollID DESC LIMIT 0,1; Hans Prins [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... thank you, that did the trick :) Thomas

[PHP] Re: .htpasswd and PayPal generated passwords

2003-02-17 Thread Rob Packer
Hi David, When using the IPN feature that PayPal offers, you can optionally have them generate a username:password pair for you. That way it will be stored at paypal and the user can check their history to retrieve it anytime. Robert David Duong [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] removing html attributes by preg_replace

2003-02-17 Thread Tomas Lehuta
hello! could somebody please help me to build a regexp to strip some attributes from html code? i'd like to remove all class= attributes from html, but the example below seems not match i don't know what i'm doing wrong, this simply doesn't work! ?php $html = 'A href=http://www.anywhere.com;

Re: [PHP] RSA implementation

2003-02-17 Thread Jason Sheets
If all you are doing is trying to allow a user to change their password you do not need decryption, all you need to do is md5 the new password and update the database. If you really want to use public key encryption take a look at the PHP GPG Exetension or GPG. Again unless you have information

[PHP] PHP + XML

2003-02-17 Thread Sandy Pleyte
Hi, I have a problem with PHP and XML, I can't get the right data out of the XML file. I made a small example of what I want: --- Code --- function startElement($xml_parser, $name, $attrs) { echo [$name]br;} function externalEntityRefHandler($xml_parser, $openEntityNames, $base,

[PHP] session cookie that never expires

2003-02-17 Thread Altug Sahin
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. How can I make this happen without changing my session related code?

[PHP] Does ZEND studio has secure FTP?

2003-02-17 Thread Hardik Doshi
Hi Everyone, Does zend studio has Secure FTP feature? I am not able to find information from Zend website. thanks Hardik __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP General Mailing List

Re: [PHP] register_globals On

2003-02-17 Thread Jonathan Pitcher
Sam, The register_globals can be dangerous to turn on but it really depends on the quality of code that the shopping cart was written. See Examples below for explanation. Say you had a script that looked like this. ?PHP $Q = Select * from Stored CreditCards where User='$User'; .

[PHP] Problem creating array from MySql query

2003-02-17 Thread Janyne Kizer
What we are trying to do is build an array from a query. I don't understand why but this is failing on the line $affiliations[] = $affiliation_row[affiliation]; Basically there are two tables in the database, since clubs can have multiple affiliations and the affiliations are not set in stone,

RE: [PHP] anyone know what ical and outlook are programmed in?

2003-02-17 Thread acleave
If you really want to know I can ask a friend of mine that worked with the person who wrote Outlook (MS didn't come up with Outlook, an engineer of thiers had already written it on his own and when they saw it they decided to add it to their line). Let me know in private if it really matters.

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
It helps if you show us all your code, not just what you think we might need. For isntance, what does your mysql_query() statement look like? Does it have an or die(mysql_error())) clause? - Original Message - From: Janyne Kizer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

[PHP] Multisorting an array

2003-02-17 Thread Joachim Krebs
I have an array with the following structure: Array ( [0] = Array ( [name] = images [type] = dir ) [1] = Array ( [name] = includes [type] = dir ) [2] = Array ( [name] = index.php

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Janyne Kizer
Thanks for taking a look at this. ?php mysql_connect (, , ); mysql_select_db (); $result = mysql_query(SELECT * FROM clubs WHERE id=$id); $row = mysql_fetch_array($result); print Reading affiliations...; $affiliation_result = mysql_query(SELECT

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
where is $id set in (SELECT affiliation FROM club_affiliations WHERE club_id=$id) Also, change to: $query = (SELECT affiliation FROM club_affiliations WHERE club_id=$id; $affiliation_result = mysql_query($query) or die(mysql_error()); The above will help identify bad queries. rick People will

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Janyne Kizer
Rick Emery wrote: where is $id set in (SELECT affiliation FROM club_affiliations WHERE club_id=$id) The $id comes in from a link and it is the row ID. Also, change to: $query = (SELECT affiliation FROM club_affiliations WHERE club_id=$id; $affiliation_result = mysql_query($query) or

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
If you have to comment out $affiliations[] = $affiliation_row[affiliation];, tghen it's not working, because this is the crux of your algorithm. What error are you getting? rick People will forget what you said. People will forget what you did. But people will never forget how you made them

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Janyne Kizer
No error. It just times out. Rick Emery wrote: If you have to comment out $affiliations[] = $affiliation_row[affiliation];, tghen it's not working, because this is the crux of your algorithm. What error are you getting? rick People will forget what you said. People will forget what

[PHP] Re: Removing a comma from a form field

2003-02-17 Thread Eric Golpe
Just a thought.. If it is only a comma, and it is a form field, why do this on the server side, Perhaps a javascript onsubmit function that traps the comma (indexOf/charAt) and then shift the values over with substring. Since you know it's USD then you could do value.length-3 or something

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
what times out? The query? rick People will forget what you said. People will forget what you did. But people will never forget how you made them feel. - Original Message - From: Janyne Kizer [EMAIL PROTECTED] To: Rick Emery [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Janyne Kizer
I'm not sure. It sits and spins. If I go to view - source that doesn't yield any additional information. We are trying to build the array and then use in_array to handle the data appropriately. Rick Emery wrote: what times out? The query? rick People will forget what you said. People

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Leif K-Brooks
I believe I've spotted your problem: for ($i=0; i $count;$i++) { You left the $ out. It's looking for a constant named i, which doesn't exist. Janyne Kizer wrote: I'm not sure. It sits and spins. If I go to view - source that doesn't yield any additional information. We are trying

[PHP] **need info ASAP - displaying existing pdf files and other 'tricks'

2003-02-17 Thread Erin Fry
Hey there. I want to display an existing pdf file. However, I have a variable that is passed that will determine where I want the pdf file to ‘begin’. For example, if the value of the variable passed is ‘B’ then I want the entire pdf file to be displayed with pg. 75 in the immediate viewing

[PHP] MD5 login troubles

2003-02-17 Thread Vernon
Hey all, I'm using the following code to save an MD5 password into a database along with an unencrypted username and email address: $insertSQL = sprintf(INSERT INTO penpals (email, password, username) VALUES (%s, MD5(%s), %s), All seems to have worked well, the password is encrypted and so

[PHP] check if a file has already be included

2003-02-17 Thread Greg
Is there any way to check if a file has been included / required already, and if not include / require it? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] MD5 login troubles

2003-02-17 Thread Rick Emery
Make it easy on yourself: $pw = md5($password); $query = INSERT INTO penpals (email, password, username) VALUES \$email\,\$pw\,\$username\); mysql_query($query); $pw = md5($password); $query = SELECT email,password,username FROM penpals WHERE email=\$email\ password=\$pw\; $result =

Fw: [PHP] check if a file has already be included

2003-02-17 Thread Rick Emery
can you use: include_once(filename); This way, if it wasn't included, it will be. If it was included, this statement is ignored. - Original Message - From: Greg [EMAIL PROTECTED] To: Sent: Monday, February 17, 2003 10:18 AM Subject: [PHP] check if a file has already be included Is

Re: [PHP] check if a file has already be included

2003-02-17 Thread Greg
Thanks, forgot about that :) I'm a converted ASP programmer...ASP has no such ability. -Greg Rick Emery [EMAIL PROTECTED] wrote in message 013b01c2d6a1$2a599d70$0500a8c0@honeybee">news:013b01c2d6a1$2a599d70$0500a8c0@honeybee... can you use: include_once(filename); This way, if it wasn't

[PHP] MD5 Passwords (How it works?)

2003-02-17 Thread Vernon
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 happens when I user has lost there password and needs to

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

2003-02-17 Thread Greg Donald
On Mon, 17 Feb 2003, Vernon 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 happens when I user has

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

2003-02-17 Thread Leif K-Brooks
No, it's not reversable. When a user loses their password, you must generate a new one. To stop malicious users from requesting a new password for a user they dislike with a program (and stopping the user from logging in, since their password keeps changing), a link with a random code is

[PHP] select query question

2003-02-17 Thread Sunfire
hi i have a select query i need to do on a field in my table.. the field is called Flags and there is 1 char for every flag that is set for a certain group.. the flags are F S L C G R now what i want to do is search for every instance of Flags field that has any value except L and C in it and

[PHP] PHP Compile question ....

2003-02-17 Thread James Hatridge
Hi all... I just compiled PHP from source for the first time. It works, but not like I want it to. I need it to work with Mysql, do graphs, and let me run programs (ie safe-mode is off). Also the odd thing is that before I compiled my own PHP I could access all my mysql databases. Now I can

Re: [PHP] RSA implementation

2003-02-17 Thread José León Serna
El lun, 17-02-2003 a las 15:33, Jason Sheets escribió: If all you are doing is trying to allow a user to change their password you do not need decryption, all you need to do is md5 the new password and update the database. And what happens if this MD5 is sniffed? Any one can make a POST again

Re: [PHP] browser identification problem

2003-02-17 Thread chip . wiegand
Jason Wong [EMAIL PROTECTED] wrote on 02/14/2003 10:08:45 PM: On Saturday 15 February 2003 05:01, [EMAIL PROTECTED] wrote: I have an ecommerce app (MAS200 eBusiness Manager) that works. I am updating my web site to php frames. Now when I want to connect to the eBusiness Manager server

Re: [PHP] PHP Compile question ....

2003-02-17 Thread Mat Harris
i like to use to following with php 4.3.0. Note the $APACHE_PREFIX should be changed: ./configure --prefix=/usr --with-apxs=$APACHE_PREFIX/bin/apxs --enable-debug=no --enable-safe-mode --with-mysql=/usr --with-regex=system --with-xml --with-imap --with-snmp --with-kerberos --with-imap-ssl

Re: [PHP] browser identification problem

2003-02-17 Thread chip . wiegand
Chris Shiflett [EMAIL PROTECTED] wrote on 02/14/2003 02:47:43 PM: --- [EMAIL PROTECTED] wrote: I have an ecommerce app (MAS200 eBusiness Manager) that works. I am updating my web site to php frames. There is no such thing. Perhaps you mean HTML frames? Take a look at this web site -

[PHP] emptying jammed mailbox by PHP?

2003-02-17 Thread Chris Hayes
hi, maybe not the most professional way but my mailbox is jammed and i want to clear it. My ISP host is doing some office refurnishing and needs all his attention to pick the right color hues. So i thought maybe i can send a simple POP command to delete all mails in the mailbox? It's 14000

Re: [PHP] select query question

2003-02-17 Thread Rick Emery
SELECT * FROM mytable WHERE flags NOT IN('L','C') rick People will forget what you said. People will forget what you did. But people will never forget how you made them feel. - Original Message - From: Sunfire [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 17, 2003 11:19

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

2003-02-17 Thread Robin Mordasiewicz
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. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ;

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

2003-02-17 Thread role . php-general
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 missing php.so loadable module. However, it appears

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

2003-02-17 Thread Rick Emery
I also use Redhat 7.1 and use FTP successfully. Something in your setup? rick People will forget what you said. People will forget what you did. But people will never forget how you made them feel. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February

Re: [PHP] browser identification problem

2003-02-17 Thread chip . wiegand
Here's a bit more info - just for clarity and understanding of what's going on... There are actually 3 server involved - My current web site is hosted on my isp's server. I have another server here in my office which contains about a gigabyte of down- loadable docs. And we have our ecommerce

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

2003-02-17 Thread role . php-general
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 use RPM's) and the function not found suggests the

Re: [PHP] processing status page

2003-02-17 Thread Jeff Schwartz
Faking it with Javascript doesn't really work because the termination of the Javascript isn't tied to the completion of the processing. Here's how we're doing it for a new anti-spam product: results.html ?php if ($display): // display results else: // save form

[PHP] LDAP authentication to NDS

2003-02-17 Thread Brad Harriger
Is there any way to find out what privileges a user has to an NDS object throught LDAP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RSA implementation

2003-02-17 Thread Matt Vos
I don't care what you say, all you need is Secure-Socket-Layer contrary to what you may believe, you don't need a beefy server to implement it. I had apache+ssl+php+mysql running quite well on a 486 DX4/100 with 64MB ram. Decrypting is worse than you think. Anything you can decrypt, so can someone

Re: [PHP] register_globals On

2003-02-17 Thread David Eisenhart
yeh, I'd strongly agree with Jonathan's view that quality of the code can mitigate against the dangers of register_globals. FYI, an interesting article on php vulnerabilities is at: http://www.securereality.com.au/studyinscarlet.txt David Eisenhart Jonathan Pitcher [EMAIL PROTECTED] wrote in

[PHP] RE: traversing and displaying directories in html [newbie]

2003-02-17 Thread Bobby Rahman
Hiya I am trying to find a way to drill down on html file names, if there are directories to display the files in the new directory. Im assuming this needs the calling of the same page which displayed the intial file names again with the argument of new directory. Does anyone have any tips

[PHP] Re: slideshow/flush

2003-02-17 Thread Joel Boonstra
Hi, I'm looking for a way to do something, not sure if someone can help me. I would like to be able to control, in a way, what a remote user is seeing, almost like running a slideshow. For example, user goes to website, it shows block of text or picture. I login to admin area.I click next

[PHP] I have a problem with MsSQL

2003-02-17 Thread Jimmy Huaman
Hi. My problem is the characters in spanish: example: Construcción (Data of MsSQL Server) Result in web with PHP: Construcci¢n Thanks you. Prompyme a su servicio - Prompyme a su servicio. El Estado su mejor cliente, visite la página de

[PHP] Locale install

2003-02-17 Thread David A Dickson
The system I am wroking on only has english locales. How do I install the french locales? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL DB Schema

2003-02-17 Thread Phillip S. Baker
Greetings all, Is there an easy way to pull out the schema of a MySQL for viewing?? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: emptying jammed mailbox by PHP?

2003-02-17 Thread Manuel Lemos
Hello, On 02/17/2003 11:27 PM, Chris Hayes wrote: hi, maybe not the most professional way but my mailbox is jammed and i want to clear it. My ISP host is doing some office refurnishing and needs all his attention to pick the right color hues. So i thought maybe i can send a simple POP command

RE: [PHP] **need info ASAP - displaying existing pdf files and other 'tricks'

2003-02-17 Thread Erin Fry
Wonderful. Thanks so much for the info. -Original Message- From: Mathias Rockel [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 10:39 AM To: Erin Fry Subject: Re: [PHP] **need info ASAP - displaying existing pdf files and other 'tricks'

Re: [PHP] emptying jammed mailbox by PHP?

2003-02-17 Thread Ernest E Vogelsinger
At 03:27 18.02.2003, Chris Hayes said: [snip] hi, maybe not the most professional way but my mailbox is jammed and i want to clear it. My ISP host is doing some office refurnishing and needs all his attention to pick the right color hues. So i thought

[PHP] MD5 Password Login Driving me Crazy

2003-02-17 Thread Vernon
For what ever reason I cannot seem to get a user to login using MD5. The user creates the password on log and it works fine, password encrypted and all. I test to see if the process is working ok on creation by using the UPDATE penpals SET password = MD5(password) and the encrypted passwords

Re: [PHP] PHP Compile question ....

2003-02-17 Thread James Hatridge
Thanks! I'll give it a shot in the morning! JIM On Monday 17 February 2003 18:19, Mat Harris wrote: i like to use to following with php 4.3.0. Note the $APACHE_PREFIX should be changed: ./configure --prefix=/usr --with-apxs=$APACHE_PREFIX/bin/apxs --enable-debug=no --enable-safe-mode

[PHP] Re: MD5 Password Login Driving me Crazy

2003-02-17 Thread Philip Hallstrom
see the trim() function... not sure if that will solve your problem, but that's the function you're looking for. On Mon, 17 Feb 2003, Vernon wrote: For what ever reason I cannot seem to get a user to login using MD5. The user creates the password on log and it works fine, password encrypted

[PHP] Error Opening file

2003-02-17 Thread Pushpinder Singh Garcha
Hello All; I am trying to open a File called cmi_list.txt ( stored at the same level as the php file) and then load these into an array. Now I check the $passport_codes with the value the User has entered and set the $flag accordingly ? . $PASSPORT_CODES =file(cmi_list.txt);

[PHP] PHP 5

2003-02-17 Thread Adrian Portsmouth
Hi, I have been checking out the books on Amazon.com and it seems there is a PHP5 book in the works due to be released on March the 4th. Does anyone know where I can find out information about this new release of PHP, what changes there are etc? TIA Adrian www.phpscriptsearch.com -- PHP

Re: [PHP] PHP 5

2003-02-17 Thread Stephan Seidt
Hi, Well, something very important in php5 is ZendEngine2: http://cvs.php.net/co.php/ZendEngine2/ZEND_CHANGES bye Adrian Portsmouth wrote: Hi, I have been checking out the books on Amazon.com and it seems there is a PHP5 book in the works due to be released on March the 4th. Does anyone know

Re: [PHP] Multisorting an array

2003-02-17 Thread Kevin Stone
- Original Message - From: Joachim Krebs [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 17, 2003 8:25 AM Subject: [PHP] Multisorting an array I have an array with the following structure: Array ( [0] = Array ( [name] = images

[PHP] pro-rated date

2003-02-17 Thread Paul Chvostek
Anybody have a quick way of determining the number of days remaining in the current month? I'm currently using: $nextmonth = strftime(%Y-%m-01,strtotime(+1 month)) $monthdays = strftime(%d,strtotime($nextmonth)-86400); $daysleft = $monthdays - strftime(%d,time()); I can obviously

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

2003-02-17 Thread Michael Eacott
When I have the following in a form: ?php $testvar = a b c; ? input type=text size=20 name=testvar value=?php echo $testvar; ? 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? Mike -- PHP General Mailing List (http://www.php.net/)

[PHP] Data from DB

2003-02-17 Thread Miguel Brás
Hello gents, I have a table with users and passwords with over than 100 rows. I have 7 specific users that I wanna display on a page, as well their data. How can I display this specific users on the page? Thx Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Protecting files

2003-02-17 Thread PR
Hello, 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? -- Thank

Re: [PHP] PHP 5

2003-02-17 Thread Greg Donald
On Mon, 17 Feb 2003, Stephan Seidt wrote: Well, something very important in php5 is ZendEngine2: http://cvs.php.net/co.php/ZendEngine2/ZEND_CHANGES Looks like PHP5 will be a lot like java/c++ when released. Exception handling, true object support, and an inline debugger, oh my! When is the

Re: [PHP] Data from DB

2003-02-17 Thread David A Dickson
On Mon, 17 Feb 2003, Miguel Brás wrote: Hello gents, I have a table with users and passwords with over than 100 rows. I have 7 specific users that I wanna display on a page, as well their data. How can I display this specific users on the page? A little more information is need: 1. What

Re: [PHP] Data from DB

2003-02-17 Thread Greg Donald
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 that I wanna display on a page, as well their data. How can I display this specific users on the page? You probably want to execute some SQL queries. Then the data

Re: [PHP] PHP Compile question ....

2003-02-17 Thread Mat Harris
no problem. the only thing i forgot to say is that this is on a redhat 7.3 machine and the libraries that are used by some of those options are from redhat rpms. If you aren't using a similar version of redhat then you may get messages about certain options missing headers etc. up to you whether

Re: [PHP] Protecting files

2003-02-17 Thread Greg Donald
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 than my site... can this be done by htaccess? is so , could anyone point me into

[PHP] IRR Function in PHP

2003-02-17 Thread Jonathan Pitcher
We are getting ready to automate a process that was currently done in Excel to a Web page. This process involves an IRR Calculation. Or Internal Rate of Return. I have looked at PHP.net and spent the last couple hours searching for a pre-built function to handle this but have come up blank.

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

2003-02-17 Thread Kevin Stone
It's your HTML Failing to enclose the value in quotes may lead to truncation. Your output looks like this... input type=text size=20 name=testvar value=a b c You should always quote every parmeter in the tag just to avoid such problems. This should work.. input type=text size=20 name=testvar

Re: [PHP] IRR Function in PHP

2003-02-17 Thread Marco Tabini
On Mon, 2003-02-17 at 16:44, Jonathan Pitcher wrote: We are getting ready to automate a process that was currently done in Excel to a Web page. This process involves an IRR Calculation. Or Internal Rate of Return. I have looked at PHP.net and spent the last couple hours searching for a

Re: [PHP] IRR Function in PHP

2003-02-17 Thread Greg Donald
On Mon, 17 Feb 2003, Jonathan Pitcher wrote: This process involves an IRR Calculation. Or Internal Rate of Return. Sorry, I don't think there are any accountants lurking on the list, so please explain what the actual calculation for an IRR should be. -- Greg Donald http://destiney.com --

Re[2]: [PHP] Protecting files

2003-02-17 Thread PR
Hello Greg, Yes, I am in a shared environment..but I do have access to chmod.. GD What kind of system is it? If it's unix you can make use of chown and GD chmod to protect your stuff. If it's windows, I don't know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] IRR Function in PHP

2003-02-17 Thread Marco Tabini
If I may barge in... The IRR represents the actual return of an investment over an arbitrary period of time (usually annualized). Say, for example, that you invest $100 and, after two years, you have $120. Your overall return is 20%. If your interest rate was constant over the two-year period

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

2003-02-17 Thread Jonathan Pitcher
I received an Excel Spread sheet with built in calculations for creating our rate sheets that we pass out to our branches and so on. In this rate sheet to calculate our APR the spread sheet calls built in Finance Functions IRR Internal Rate of Return PMT Calculates a Payment PV Calculates

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

2003-02-17 Thread rentAweek support
Thanks I tried our your suggestion sic: input type=text size=20 name=testvar value=?php echo $testvar; ? Still truncation Mike --- Kevin Stone wrote: It's your HTML Failing to enclose the value in quotes may lead to truncation. Your output looks like this... input type=text size=20

  1   2   >