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
>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
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
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
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'
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
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
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[
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++) {
$
> 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
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:
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
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
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
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
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
>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.
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
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
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
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
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
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
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
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$[
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
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
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
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
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
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
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
>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
>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
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
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
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
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:
>
> 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
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
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
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)
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
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
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
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
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
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
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
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
101 - 150 of 150 matches
Mail list logo