Hi. There seems to be a minor error in the page
http://www.php.net/manual/en/features.file-upload.php. In Example 38-2
"Validating file uploads", there is a line:
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
It looks like basename() is not required there. Because i found t
# [EMAIL PROTECTED] / 2006-12-03 18:39:41 +0800:
> Hi. There seems to be a minor error in the page
> http://www.php.net/manual/en/features.file-upload.php. In Example 38-2
> "Validating file uploads", there is a line:
>
> $uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
>
> It
""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sat, December 2, 2006 5:31 am, Tony Marston wrote:
>> If you site administrator thinks that using an htaccess file is a
>> security
>> issue then he is very much mistaken. The directives in an htaccess
>> file DO
At 10:35 PM +0100 12/2/06, Alain Roger wrote:
I'm working on .htaccess file for improving security.
Based on documentation from PHPSEC.org, we should be able to store DB_USER
login and DB_PASS password in some secret-stuff (for example) file, which
should be located outside root of web document r
Hi there!
I have created a script the generates random pictures...
With this above script the same picture can be shown twice. Is there any
smart way of avoiding this without having to rely on cookies/sessionids?
Best regards
/Gustav Wiberg
Stammis Internet - http://www.stammis.com/ -
Without using cookies or session information, you're going to go through your
picture list faster depending on how many users are accessing the random pic
page. If you don't make it user-specific, then it doesn't really matter if you
go through the images sequentially.. it may appear random on
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, December 03, 2006 11:52 PM
Subject: Re: [PHP] Random pictures - not twice
Without using cookies or session information, you're going to go through
your picture list faster depending on how many us
On Sun, December 3, 2006 5:22 am, Tony Marston wrote:
>
> ""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> On Sat, December 2, 2006 5:31 am, Tony Marston wrote:
>> I think it is quite possible for a sysAdmin to configure
>> AllowOverride
>> and .htaccess in such a
On Sun, December 3, 2006 4:39 am, MS P wrote:
> Hi. There seems to be a minor error in the page
> http://www.php.net/manual/en/features.file-upload.php. In Example 38-2
> "Validating file uploads", there is a line:
>
> $uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
>
> It looks l
On Sun, December 3, 2006 9:57 am, tedd wrote:
> At 10:35 PM +0100 12/2/06, Alain Roger wrote:
>>I'm working on .htaccess file for improving security.
>>Based on documentation from PHPSEC.org, we should be able to store
>> DB_USER
>>login and DB_PASS password in some secret-stuff (for example) file,
Sample ".htaccess" file that uses an authentication file:
Options -Indexes
AuthName "Photo Access"
AuthType Basic
AuthUserFile /home/me/BasicAuth/photo_users.txt
require valid-user
Hope this helps.
--
Anas Mughal
On 12/3/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Sun, December 3, 20
That is the MS FrontPage auth system. Directories beginning with _ underscores
cannot be viewed in your browser. Unless you want to
dump FrontPage, you do not want to be messing with this setup.
If you can't view these directories in FrontPage, it's because you do not have
the website set to sho
Dears,
I want to make a web app about music online. But i don't know how to use
streaming in PHP to load a music file for playing. Please help me for the
best direction.
Thanks alot and best regard.
13 matches
Mail list logo