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 extensi
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 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:
Subject:
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:
1
2
3
I may need to add a value 4 to the enum, and in that case I would like to
avoid modifying the code.
I would like to know it it is possib
Thank you very much!
Here is the winner (actually a mix of both!)
download test.pdf
and in the callFile I have a switch on dlId_to_dl.
I didn't get the tag though, what does that mean?
From: Andrés G. Montañez <[EMAIL PROTECTED]>
Reply-To: Andrés G. Montañez <[EMAIL PROTECTED]>
To: php-db@list
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:
File to serve
and in the script ca
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];
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,
interface
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 a
ssions 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 variable at true.
I test this
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
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 be
et it. For me as long as
my test returns false when 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.ne
script validation u wanna use
won't even be called.
On Tue, 01 Mar 2005 09:37:09 +, mel list_php <[EMAIL PROTECTED]>
wrote:
> I use a submit button with a name:
>
>
> and then I can test on that name:
> if($_POST[cloningView])
> {
> ...display new web page ..
I use a submit button with a name:
and then I can test on that name:
if($_POST[cloningView])
{
...display new web page ..
}
From: "Ron Piggott" <[EMAIL PROTECTED]>
To: "PHP DB"
Subject: [PHP-DB] onClick
Date: Mon, 28 Feb 2005 21:41:45 -0500
Another question: Is there a way that I may set up a
ks for any help.
From: Robby Russell <[EMAIL 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
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 examp
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
y path, and use
readfile() to pass through the file data directly to the browser.
Really, 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
ts.php.net
Subject: RE: [PHP-DB] mysql - image storing
Date: 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 t
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 wheneve
21 matches
Mail list logo