Hi I sent this on 21st of april and got no answer...
there is no way to check the real mime type of a file?
even a file without extension?
thanks,
melanie
From: mel list_php [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] mime-type related to extension?
Date: Thu, 21 Apr 2005 13:45
Hi guys!
I have a basic form to upload files, my problem is about the mime type.
I use $type= $_FILES[$file_uploaded]['type']; to check the mime-type of the
fila as I want to allow only .jpeg.
I have then a test like:
if ($type==image/pjpeg || $type==image/jpeg)
{
...
}
Upload working fine if I
what about a file()?
this will return the file in an array:each element of the array is a line of
the file.
then you can do a count to have the numer of elements in the array.
you can get rid of the html tags with a strip_tags.
hth,
melanie
From: Ng Hwee Hwee [EMAIL PROTECTED]
To:
Hi!
I have a column type enum in mysql.
At the moment the possible values are 1,2 and 3.
I make a form for my user to modify that value, something like:
select
option value='1'1/option
option value='2'2/option
option value='3'3/option
/select
I may need to add a value 4 to the enum, and in that
Thank you very much!
Here is the winner (actually a mix of both!)
form name=downloads method=post action=./callFile.php
input type=hidden name='dlId_to_dl' value=1
a href=javascript:document.downloads.submit();download test.pdf/a
/form
and in the callFile I have a switch on dlId_to_dl.
I didn't
Hi list,
(mail problem you may get that one twice!)
My problem: I protect my files by storing them out of the web root or behind
a htaccess.
As I'm not using the htaccess authentication for my users, I use a readfile
to serve the file, basically something like:
a
I found some information on pear:
[2004-08-17 13:53 UTC] troy at versiontwo dot com dot au
I could only find a list of reserved words for php4. However, I can
assure you that the following words are now reserved for php5: try,
catch, throw, exception, public, private, protected, abstract,
Hi list!
I have a php5-related problem I think.
I do a sql query and retrieve an array.
$resultTask = mysql_query(select * from dbTask where taskId=$taskId) or
die(erreur recup task.mysql_error());
while( $row_resultTask = mysql_fetch_array($resultTask ) )
{
$ownerId=$row_resultTask[ownerID];
Hi!
I have an authentication problem...
My users are authenticated through a mysql table. This set up a session
variable to true and allow them to browse different pages (in each page I
test that session variable).
To deny direct access to the directory, I put an htaccess which simply
denies
: Re: [PHP-DB] php5-sessions next
Date: Wed, 02 Mar 2005 10:50:38 -0600
mel list_php wrote:
Hi again,
I erased and recreated my php.ini file from the php ini recommended.
In my application I use a suthentication of the user against a database
table, once the user is allowed I set a session
it has to it's ok, I don't see the security
breach.
From: anirudh dutt [EMAIL PROTECTED]
Reply-To: anirudh dutt [EMAIL PROTECTED]
To: mel list_php [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], php-db@lists.php.net
Subject: Re: [PHP-DB] onClick
Date: Tue, 1 Mar 2005 21:12:38 +0530
On Tue, 01 Mar 2005 14
HI,
I was trying to set up php5.
Everything is fine except the warning can't open /root/tmp to store the
seesion file, check your session.save_path.
first: why is it trying to store that in /root/tmp?
I then wanted to check my php.ini even if I didn't modify that value which
by default should
Hi again,
I erased and recreated my php.ini file from the php ini recommended.
In my application I use a suthentication of the user against a database
table, once the user is allowed I set a session variable at true.
I test this variable at the beginning of each script.
With php4 no problem, in
I use a submit button with a name:
input type='submit' name='cloningView' value='View'
and then I can test on that name:
if($_POST[cloningView])
{
...display new web page ..
}
From: Ron Piggott [EMAIL PROTECTED]
To: PHP DB php-db@lists.php.net
Subject: [PHP-DB] onClick
Date: Mon, 28 Feb 2005
+, mel list_php [EMAIL PROTECTED]
wrote:
I use a submit button with a name:
input type='submit' name='cloningView' value='View'
and then I can test on that name:
if($_POST[cloningView])
{
...display new web page ..
}
(i think) he means
if(isset($_POST['cloningView'])) //add single
PROTECTED]
To: mel list_php [EMAIL PROTECTED]
CC: php-db@lists.php.net
Subject: Re: [PHP-DB] php/other language (perl)
Date: Wed, 23 Feb 2005 06:22:17 -0800
On Wed, 2005-02-23 at 10:54 +, mel list_php wrote:
Hi,
I'm used to work with php/MySQL, and have developped a web app in php.
As I'm
Hi,
I'm used to work with php/MySQL, and have developped a web app in php.
As I'm working on biological applications, I would like to use some of the
BioPerl features.
My first idea was calling perl through php (system command). But I'm
wondering about the security issues, as some data (for
Hi!
I have a few questions about the sessions in php.
I have a website where users are authentified through a login/password
stored in a database. Once accepted, I start a session.
- can I disconnect an user? I mean I have a logout script, which is called
when the user wants to logout, but can
, don't store them in the database ;-)
Cheers - Neil
At 18:59 18/01/2005 +, you wrote:
Message-ID: [EMAIL PROTECTED]
From: mel list_php [EMAIL PROTECTED]
To: php-db@lists.php.net
Date: Tue, 18 Jan 2005 11:30:12 +
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Subject: mysql - image
Hi list,
I try to store/retrieve pictures into MySQL.
I know that a lot of people will say this is not a good practice, so here
are briefly my reasons:
-I want to protect that pictures (restricted access)
-I don't want to use htaccess as I want my users to be able to modify their
password
: Tue, 18 Jan 2005 10:46:50 -0500
so what exactly is the problem?
bastien
From: mel list_php [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] mysql - image storing
Date: Tue, 18 Jan 2005 11:30:12 +
Hi list,
I try to store/retrieve pictures into MySQL.
I know that a lot of people
21 matches
Mail list logo