[PHP] Sessions not expiring

2002-08-01 Thread Lee
Hi, I have having problems getting the session to automatically destroy itself after inactivity. Currently I am using the following code, just to test my setup before writing a bigger project. Current Cache Expire = " . session_cache_expire(); // currently set to 1 in php.ini ?> my php.in

Re: [PHP] Readdir

2002-08-01 Thread Danny wall
>if ($handle = opendir('/my/directory')) { > echo "Directory handle: $handle\n"; > echo "Files:\n"; > > > > while (false !== ($file = readdir($handle))) { > echo "$file\n"; > } Everything is good, you just to make a slight addition to your echo. echo "$file" -Danny "You

[PHP] Re: attachements in mail()

2002-08-01 Thread Manuel Lemos
Hello, On 08/01/2002 03:14 PM, Danny Wall wrote: > I've looked, and can not find out how you send attachments using the > mail() function. I find it difficult to believe that this was left out, > so obviously I'm missing something right in front of my face. > > So my question is, how do you s

[PHP] adding info to an array?

2002-08-01 Thread Hawk
I have a for loop, and an if that checks something, and if true, it's supposed to add info to an array called $ra, but instead of adding it to the array it seems like it's overwriting it, currently I'm using $ra[$r] = "$r"; where $r is a number.. after the for } I put a print_r($ra); and it only

[PHP] Re: adding info to an array?

2002-08-01 Thread Aaron
just assign the value to $ra[] "Hawk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a for loop, and an if that checks something, and if true, it's > supposed to add info to an array called $ra, but instead of adding it to the > array it seems like it'

[PHP] Re: adding info to an array?

2002-08-01 Thread Hawk
Tried that now, and with the same results print_r($ra); still only shows the last info inserted in the array :/ "Aaron" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > just assign the value to $ra[] > > > "Hawk" <[EMAIL PROTECTED]> wrote in message > [EMAIL

[PHP] Re: adding info to an array?

2002-08-01 Thread Aaron
can we see the code? -aaron "Hawk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Tried that now, and with the same results > print_r($ra); still only shows the last info inserted in the array :/ > > "Aaron" <[EMAIL PROTECTED]> skrev i meddelandet > [EMAIL PR

Fw: [PHP] Re: adding info to an array?

2002-08-01 Thread Kevin Stone
It's all in the manual.. http://www.php.net Each one of these methods will assign two strings to the array and print the string, "mysecondvalue". -- $ra = array ("myfirstvalue", "mysecondvalue"); echo $ra[1]; -- $ra = array(); $ra[] = "myfirstvalue"; $ra[] = "mysecondvalue"; echo $ra[1]; -- $ra[

[PHP] Re: adding info to an array?

2002-08-01 Thread Hawk
I'm a newbie at php, so dont tease me ;P first I have to input fields for $group and $amount and a textarea where you enter bla,blah,blabla etc $total = $amount*$group-1; $da = split (",", $textarea); for ($a = 1; $a <= $group; $a++) { print "Group $a:"; for ($b = 1; $b <= $amount; $b++) { $

RE: [PHP] Can several different sessions coexist?

2002-08-01 Thread John Holmes
> I'd like to register a session and create several session variables. In > another part of my site, I'd like to register another session again > creating > session variables. After a bit, I'd like to destroy this second > registered > session keeping the first intact. Thus far, whenever I issue

[PHP] Best way to save?

2002-08-01 Thread Shane
Besides using fOpen to save the output of a script to a file, What would be your best recommendation for a way to save the output of a PHP script to an HTML doc. Images will be included. Thanks gang. - NorthBayShane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP] Favorite Calendar Anyone?

2002-08-01 Thread Shane
Anyone have a favorite Calendar script out there they would like to share? - NorthBayShane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: adding info to an array?

2002-08-01 Thread Hawk
hahahaha, that was so stupid of me... should have put if (! $ra) { $ra = array(); } but I seemed to have missed this.. lol :P thanks for your help and sorry for being an idiot ;D "Hawk" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm a newbie at php, so

Re: [PHP] Re: attachements in mail()

2002-08-01 Thread Danny wall
This thing's pretty cool! Thanks! -Danny >From: Manuel Lemos <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: [PHP] Re: attachements in mail() >Date: Thu, 01 Aug 2002 17:43:04 -0300 > >Hello, > >On 08/01/2002 03:14 PM, Danny Wall wrote: >>I've looked, and can no

[PHP] Protect PHP coding

2002-08-01 Thread YC Nyon
Is there any method to encrypt PHP files. Nyon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Protect PHP coding

2002-08-01 Thread Martin Towell
One option is the Zend Encoder Martin -Original Message- From: YC Nyon [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 2:59 AM To: [EMAIL PROTECTED] Subject: [PHP] Protect PHP coding Is there any method to encrypt PHP files. Nyon -- PHP General Mailing List (http://www.php

Re: [PHP] A Fond Farewell

2002-08-01 Thread Bob Lockie
>Howdy List, > >Well, apparently we are no longer permitted to receive "personal" emails where I am >working, so I'm afraid I'll have to part ways with the lot of you. It's unfortunate, >considering I think this one of the best places to find information about PHP (and more!) on the internet.

Re: [PHP] Example safe use of eval()

2002-08-01 Thread Justin French
You can't really do much to make sure the execution of eval is safe, it's more than you have to trust the string that you're about to eval(). So, as long as you and your production team were the only ones who put the code into the strings or tables, and tested the code before hand, then 90% there

Re: [PHP] How much should this cost Or ...

2002-08-01 Thread Justin French
I suggest you look at the article restricting page access by Kevin Yank on http://sitepoint.com... I used it for the basis of what I use on every site now, and it will give you a better understanding of sessions, logging in, registering, etc etc. Other comments included in your email below: on

Re: [PHP] Example safe use of eval()

2002-08-01 Thread David Pratt
Thanks, Justin. I am really trying to figure something else out instead of eval. It is really too much of a security hole. I really appreciate the community to bounce ideas. Regards, Dave -- >From: Justin French <[EMAIL PROTECTED]> >To: David Pratt <[EMAIL PROTECTED]>, <[EMAIL PROTECTE

Re: [PHP] Protect PHP coding

2002-08-01 Thread Verdana Musone
And the server must install Zend Optimizer - Original Message - From: Martin Towell Sent: Friday, August 02, 2002 8:09 AM To: 'YC Nyon'; [EMAIL PROTECTED] Subject: RE: [PHP] Protect PHP coding One option is the Zend Encoder Martin -Original Message- From: YC Nyon [mailto:[EMAI

[PHP] Re: Protect PHP coding

2002-08-01 Thread Manuel Lemos
Hello, On 08/01/2002 01:58 PM, Yc Nyon wrote: > Is there any method to encrypt PHP files. Use bcompiler which is free and is part of PEAR/PECL official PHP extensions repository: http://pear.php.net/package-info.php?pacid=95 -- Regards, Manuel Lemos -- PHP General Mailing List (http://ww

Re: [PHP] extending class then calling its original function

2002-08-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Wong) wrote: > On Wednesday 31 July 2002 18:36, lallous wrote: > > Hello when I extended a class and overwrite a function, can i after > > overwriting that function call it so it does what it used to do? > > > > for example in Delphi I say

[PHP] decrypting values in MYSQL

2002-08-01 Thread Michael P. Carel
Hi to all, How could i decrypt the encrypted data in MYSQL? I've inserted values in mysql using the PASSWORD( $userpassword ) function to encrypt all user password. Example: Insert into Users_Table set Password_Field=PASSWORD('$userpassword'); But i don't know how to select to view the $userpass

[PHP] Re: decrypting values in MYSQL

2002-08-01 Thread Julio Nobrega
You can't view it anymore. You can compare a string with PASSWORD('string') to see if they match. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br "Michael P. Carel" <[EMAIL PROTECTED]> escreveu na mensagem 001101c239c1$541db6a0$[EMAIL PROTECTED]">news:001101c239c1$541db6a0$[

Re: [PHP] decrypting values in MYSQL

2002-08-01 Thread Michael P. Carel
so you mean there's no way to decrypt that. I wan't to create a Password Reminder to my script, that would email them their password if ever they forgot it. Is there any suggestion/comments? >You can't view it anymore. You can compare a string with >PASSWORD('string') to see if they match. >Juli

[PHP] mail reading newbie and line lengths...

2002-08-01 Thread Jeff D. Hamann
I'm trying to read messages using php imap functions. I have emails that were sent as simple text but the line lengths are more than x characters. The orginal lines look like... F55232251820029 24006001 440023300 F55232251820029 18007

Re: [PHP] decrypting values in MYSQL

2002-08-01 Thread Justin French
on 02/08/02 11:44 AM, Michael P. Carel ([EMAIL PROTECTED]) wrote: > so you mean there's no way to decrypt that. I wan't to create a Password > Reminder to my script, that would email them their password if ever they > forgot it. > Is there any suggestion/comments? You can't! If you choose to en

Re: [PHP] Best way to save?

2002-08-01 Thread 1LT John W. Holmes
You can wrap some output buffering around your PHP script. Then flush the buffer at the end to a variable and write it to a .html file. Full details in the manual, I'm sure... ---John Holmes... - Original Message - From: "Shane" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday

Re: [PHP] decrypting values in MYSQL

2002-08-01 Thread 1LT John W. Holmes
This was just discussed. Either you reset the password a new one, and email them the new password... or, you send them a web page to change their email address. If they don't want to change it, they don't have to. Along the same lines, you can email them a code to enter somewhere to change their

Re: [PHP] Re: adding info to an array?

2002-08-01 Thread Jason Wong
On Friday 02 August 2002 06:30, Hawk wrote: > hahahaha, that was so stupid of me... should have put if (! $ra) { $ra = > array(); } but I seemed to have missed this.. lol :P > thanks for your help and sorry for being an idiot ;D It's better to initialise $ra outside of the for-loop. -- Jason W

[PHP] Re: decrypting values in MYSQL

2002-08-01 Thread Aaron Ott
for future you could use mysql's encode and decode functions. serves your purpose though not as secure. http://www.mysql.com/doc/M/i/Miscellaneous_functions.html --aaron "Michael P. Carel" <[EMAIL PROTECTED]> wrote in message 001101c239c1$541db6a0$[EMAIL PROTECTED]">news:001101c239c1$541db6a0

Re: [PHP] still need help with crash on make

2002-08-01 Thread Bob Lockie
>Thanks, Tyler, I will if I have to, but is there someone out there who has >done this on Linux? There are a bunch of people (I use 1.3.26) because Apache 2 support is experimental. Grab the latest source of Apache from CVS and it should work. >cheers > >Kirk > >"Tyler Longren" <[EMAIL PROTECTE

Re: [PHP] Undefined function: dbmopen() in loaded Windows binaries of PHP 4.2.1

2002-08-01 Thread Bob Lockie
>Hello. > >Say me pls, are there method to enable DBM support in loaded Windows binaries of PHP >4.2.1? > >I have "Fatal error: Call to undefined function: dbmopen() in ..." my .php file... :(( I thought DBM files were only available on Unix. Recompile from source. -- PHP General Mailing L

Re: [PHP] decrypting values in MYSQL

2002-08-01 Thread Glenn Sieb
At 09:44 AM 8/2/2002 +0800, Michael P. Carel posted the following... >so you mean there's no way to decrypt that. I wan't to create a Password >Reminder to my script, that would email them their password if ever they >forgot it. >Is there any suggestion/comments? You can, instead, have it email t

[PHP] Need help to choose hosting!

2002-08-01 Thread Mantas Kriauciunas
Hey php-general, i want to buy hosting. but i can't find good one for me. maybe someone could point some links. but this is what i need! Storage up to 100MB normal transfer limit(best would be without) CGI/Perl/PHP/ASP/SSI/SSL MySQL database (can be only 1) some pop3 mailboxes fr

Re: [PHP] Need help to choose hosting!

2002-08-01 Thread Justin French
Aside from shell, ssh & background processes, i can recommend experthost.com How do you expect to get ASP (assuming you mean microsoft's Active Server Pages) on a Unix box? Sure, PHP could be on a Windows box, but I think your chances of finding a solid host that supports ASP AND PHP on the one

Re: [PHP] problems with random again

2002-08-01 Thread Tom Rogers
Hi, Friday, August 2, 2002, 5:03:19 AM, you wrote: H> Is there some easy way to make rand() only use each number once in a loop, H> to avoid getting the same values more than once? H> HÃ¥kan Have a look at shuffle() it may do what you want -- regards, Tom -- PHP General Mailing List (http:

RE: [PHP] Need help to choose hosting!

2002-08-01 Thread Peter Houchin
> > How do you expect to get ASP (assuming you mean microsoft's Active Server > Pages) on a Unix box? > Justin, you can use ChilliSoft, http://www.chillisoft.com, by Sun Microsystems that is a ASP plugin that works with Apache as well as other browsers such as IBM's Websphere, and many others a

Re: [PHP] Why Protect PHP coding?

2002-08-01 Thread php @ banana
Just out of curiosity when and why? >Is there any method to encrypt PHP files. > >Nyon > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > --__-__-__ eat pasta type fasta -- PHP General Mailin

Re[2]: [PHP] Need help to choose hosting!

2002-08-01 Thread Mantas Kriauciunas
Hello Justin, heh... sorry about that ASP thing... i copied from one hosting site and just paste it hare. forgot about ASP :) i'll check out that experthost.com :) thanks JF> Aside from shell, ssh & background processes, i can recommend experthost.com JF> How do you expect to get ASP (assuming

Re[2]: [PHP] Need help to choose hosting!

2002-08-01 Thread Mantas Kriauciunas
Hello Justin, >> Hey php-general, >> >> i want to buy hosting. but i can't find good one for me. maybe >> someone could point some links. but this is what i need! >> >> Storage up to 100MB >> normal transfer limit(best would be without) >> CGI/Perl/PHP/SSI/SSL >> MySQL database (can be only 1)

Re: [PHP] still need help with crash on make

2002-08-01 Thread EdwardSPL
Yes, there are many users they recommend to use apache 1.3.26 and php 4.2.2 ! What useful of CVS ? Bob Lockie wrote: > >Thanks, Tyler, I will if I have to, but is there someone out there who has > >done this on Linux? > > There are a bunch of people (I use 1.3.26) because Apache 2 support is exp

Re: Re[2]: [PHP] Need help to choose hosting!

2002-08-01 Thread 1LT John W. Holmes
Why not get your own box? Then you can have whatever you want. I think you can get them from rackshack.com for $99. ---John Holmes... - Original Message - From: "Mantas Kriauciunas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 02, 2002 3:00 AM Subject: Re[2]: [PHP] Ne

[PHP] authorize.net

2002-08-01 Thread ed
Hey all. I have an app that I need to integrate with an online payment service. I read an article here http://www.devshed.com/Server_Side/Administration/CREDIT/page4.html that uses authorize.net as the example and suggests that you don't need an account to test your app with their service. Does a

Re: [PHP] passing arrays between pages with serialize

2002-08-01 Thread DoL
Thanks, I found the problem was with the creation of the 2-di array. - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'DoL'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 12:21 PM Subject: RE: [PHP] passing arrays between pages with serialize

Re: [PHP] passing arrays between pages with serialize

2002-08-01 Thread DoL
Hi Valeri Thanks for your advise. I am new to php and have never used $_SESSION, is this the one that I need to session_register the variables/arrays? Thanks again. Dominic - Original Message - From: "Valeri Felberg" <[EMAIL PROTECTED]> To: "DoL" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED

Re: [PHP] Why Protect PHP coding?

2002-08-01 Thread Manuel Lemos
Hello, On 08/02/2002 01:47 AM, Php @ Banana wrote: > Just out of curiosity when and why? When you want to sell your PHP applications or otherwise do not want to disclosed the knowledged embedded in the code. >>Is there any method to encrypt PHP files. -- Regards, Manuel Lemos -- PHP Ge

[PHP] Can somebody explain this scripts to me?

2002-08-01 Thread L.Jacquiline
I have attached. begin 666 grab.txt M/#]P:' -"@T*)'5R;" ](")H='1P.B\O=W=W+F-N;BYC;VTO5$5#2"\B.PT* M#0HD9F0](&9R96%D*&9O<&5N*"1UPT*#0H@(" @)'-T87)T/2!S=')P;W,H)&9D+" G/'-P86X@ M8VQAhttp://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: [PHP-DEV] [CROSS POST] PHP Meetup & Texas PHP Users

2002-08-01 Thread Jay Blanchard
Well, the predictions have come true. In San Antonio only four folks signed up for the meetup, and the event was cancelled with no way to get in touch with the other local developers to make a go of it. Out of the 147 cities listed only 15 had enough people for meetup.com to do their thing. A nobl

<    1   2