Hello,
I have been looking how to upload big files more than 1GB , with php but
it doesn't work well. I guess php POST multipart method is to memory
consuming.
Is there a way , like in the apache.commons to catch the stream and
handle it ?
I've looked at the rfc1867.c file implementation and
On Sun, Feb 24, 2013 at 1:07 PM, user@domain.invalid wrote:
Hello,
I have been looking how to upload big files more than 1GB , with php but it
doesn't work well. I guess php POST multipart method is to memory consuming.
Is there a way , like in the apache.commons to catch the stream and
Fatal error: Call to undefined function mysqli__connect() in
/var/www/html/log_book_MySQLnew_i.php on line 116
phpinfo.php shows mysqli
Additional .ini files parsed
/etc/php.d/curl.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/json.ini,
/etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini,
2013/1/20 Fred Silsbee fredsils...@yahoo.com
Fatal error: Call to undefined function mysqli__connect() in
/var/www/html/log_book_MySQLnew_i.php on line 116
There is an underscore _ to much: 'mysqli_connect()'
phpinfo.php shows mysqli
Additional .ini files parsed
/etc/php.d/curl.ini,
Regular Windows networking.
On Jul 30, 2012, at 2:29 PM, Mike Mackintosh mike.mackint...@angrystatic.com
wrote:
What protocol are you targeting? FTP, SFTP, SSH, SMB, etc?
--
Mike Mackintosh
PHP 5.3 ZCE
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Jul 31, 2012 12:12 PM, Brian Dunning br...@briandunning.com wrote:
Regular Windows networking.
On Jul 30, 2012, at 2:29 PM, Mike Mackintosh
mike.mackint...@angrystatic.com wrote:
What protocol are you targeting? FTP, SFTP, SSH, SMB, etc?
--
Mike Mackintosh
PHP 5.3 ZCE
--
On Tuesday, July 31, 2012 at 9:35 PM, tamouse mailing lists wrote:
On Jul 31, 2012 12:12 PM, Brian Dunning br...@briandunning.com
(mailto:br...@briandunning.com) wrote:
Regular Windows networking.
On Jul 30, 2012, at 2:29 PM, Mike Mackintosh
mike.mackint...@angrystatic.com
Mike Mackintosh wrote:
What protocol are you targeting? FTP, SFTP, SSH, SMB, etc?
From: Brian Dunning br...@briandunning.com
Regular Windows networking.
If you're using a 'Doze box, and you want to use PHP functions like rename(),
then IIRC the only real option that you have is to do something
I'm dealing with a Windows NT network that includes some digital printing
presses that also run Windows. PHP 5.3.8 is running on one NT machine. Its job
is to take CSV files that exist in a directory on one machine, and move them to
a directory on the digital presses. All the source and
On Monday, July 30, 2012 at 5:19 PM, Brian Dunning wrote:
I'm dealing with a Windows NT network that includes some digital printing
presses that also run Windows. PHP 5.3.8 is running on one NT machine. Its
job is to take CSV files that exist in a directory on one machine, and move
them to
This is weird. This statement fails:
$tlds = file(http://www.surbl.org/tld/three-level-tlds;,
FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
Warning: file(http://www.surbl.org/tld/three-level-tlds): failed to open
stream: HTTP request failed! HTTP/1.0 502 Bad Gateway
also tried the
Hi, TR Shaw
I would next try curl as php-extension.
If that is working well, and you need it definitely with file() I'd use
Wireshark to check which request is sent to the remote machine.
Bye
Simon
2012/3/10 TR Shaw ts...@oitc.com
This is weird. This statement fails:
$tlds =
Hello everyone,
I've a question.
I'm using map drive for file upload but dos'nt work.
How can i do file upload map drive with php?
Best Regards.
Hi !
I'm developing my new website and I'm worried about concurrent file access.
In fact, I want to suppress a maximum database interactions so I keep
information in files with faster I/O than databases.
But I'm worried by the fact that an error can occur when someone try to
access a file
On Fri, Jul 22, 2011 at 10:44 AM, Florian Lemaitre
florian.lemai...@evolutioncom.eu wrote:
Hi !
I'm developing my new website and I'm worried about concurrent file access.
In fact, I want to suppress a maximum database interactions so I keep
information in files with faster I/O than
Hi gang:
I wrote a simple script to upload image files from my desktop to a
server -- the exact same code works on two servers, but fails on a
third.
I suspect there is something set different between the servers, but I
can't find it.
Oddly enough, I can upload image files directly to the
On Wed, Apr 6, 2011 at 1:10 PM, tedd t...@sperling.com wrote:
Hi gang:
I wrote a simple script to upload image files from my desktop to a server --
the exact same code works on two servers, but fails on a third.
I suspect there is something set different between the servers, but I can't
On Wed, Apr 6, 2011 at 13:10, tedd t...@sperling.com wrote:
Hi gang:
I wrote a simple script to upload image files from my desktop to a server --
the exact same code works on two servers, but fails on a third.
I suspect there is something set different between the servers, but I can't
find
I'd like to know (from someone who knows the internals more than I do)
whether the following functions lock files and to what extent:
fopen($filename, 'w');
Does this function lock the file from writes until fclose()?
Does it lock from reads as well?
fopen($filename, 'r+');
Does this function
On Monday, 4 April 2011 at 15:28, Paul M Foster wrote:
I'd like to know (from someone who knows the internals more than I do)
whether the following functions lock files and to what extent:
fopen($filename, 'w');
Does this function lock the file from writes until fclose()?
Does it lock from
It may not be a direct answer to your question, but...
You could just use flock() to lock the file while accessing it.
louis
2011/4/4 Paul M Foster pa...@quillandmouse.com:
I'd like to know (from someone who knows the internals more than I do)
whether the following functions lock files and to
Hello
I'm searching for a utility that let our users upload a file
on a server , then generate a temporary link that point
to the real file.
As this is for internal use we don't need security, the file
can be read by anyone.
The goal is to distribute the file to our users by sending
them an
On Mon, Feb 7, 2011 at 10:56, Frank Bonnet f.bon...@esiee.fr wrote:
Hello
I'm searching for a utility that let our users upload a file
on a server , then generate a temporary link that point
to the real file.
As this is for internal use we don't need security, the file
can be read by
On 02/07/2011 05:01 PM, Daniel Brown wrote:
On Mon, Feb 7, 2011 at 10:56, Frank Bonnetf.bon...@esiee.fr wrote:
Hello
I'm searching for a utility that let our users upload a file
on a server , then generate a temporary link that point
to the real file.
As this is for internal use we don't
Frank Bonnet f.bon...@esiee.fr wrote:
On 02/07/2011 05:01 PM, Daniel Brown wrote:
On Mon, Feb 7, 2011 at 10:56, Frank Bonnetf.bon...@esiee.fr wrote:
Hello
I'm searching for a utility that let our users upload a file
on a server , then generate a temporary link that point
to the real file.
luck in your Google search.
I found nothing that's why I wrote this !!!
Frank,
Not sure what words you used, here was mine
php file upload examples
Those words resulted in these two at the top of the list
http://www.tizag.com/phpT/fileupload.php
http://www.w3schools.com/PHP
On Mon, Feb 7, 2011 at 11:03, Frank Bonnet f.bon...@esiee.fr wrote:
I found nothing that's why I wrote this !!!
My point is, you only told everyone what you're trying to do. Not
once did you ask a question or mention where you're seeking guidance,
other than your ambivalence on file uploads
There can be nothing more simpler than this!!!
I thought that this quote needed some revisiting.
Marc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nilesh's note to self: don't sound condescending when suggesting untested
code.
On Sun, Jan 16, 2011 at 10:56 AM, Marc Guay marc.g...@gmail.com wrote:
There can be nothing more simpler than this!!!
I thought that this quote needed some revisiting.
Marc
--
PHP General Mailing List
On Sun, Jan 16, 2011 at 11:19 AM, Mujtaba Arshad mujtab...@gmail.com wrote:
Nilesh's note to self: don't sound condescending when suggesting untested
Now define 'self'. Is it a remembrance(i.e. a string of molecular
structures), or a google(google 'Rich formatting' says google isn't
actually a
On 1/14/2011 9:53 PM, Nilesh Govindarajan wrote:
On 01/15/2011 06:21 AM, Mesut GULNAZ wrote:
is it possible to see which php file(s) is/are sending emails on my server
by php.ini or with any other way?
coz i have a server and i have many domains and subdomains. on my smtp
systems i saw
On 01/15/2011 10:22 PM, Jim Lucas wrote:
Um, I use OpenBSD and that command gives me an error or two...
$ grep -l mail $(find -name *.php)
find: unknown option -- n
find: unknown option -- a
find: unknown option -- m
find: unknown option -- e
formmail.php
$ grep -l mail $(find ./ -name *.php)
On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajan nil...@itech7.com wrote:
On 01/15/2011 10:22 PM, Jim Lucas wrote:
Um, I use OpenBSD and that command gives me an error or two...
$ grep -l mail $(find -name *.php)
find: unknown option -- n
find: unknown option -- a
find: unknown option --
At 11:23 AM +0530 1/15/11, Nilesh Govindarajan wrote:
On 01/15/2011 06:21 AM, Mesut GULNAZ wrote:
is it possible to see which php file(s) is/are sending emails on my server
by php.ini or with any other way?
coz i have a server and i have many domains and subdomains. on my smtp
systems i saw
On 01/15/2011 11:13 PM, Daniel Brown wrote:
On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajannil...@itech7.com wrote:
On 01/15/2011 10:22 PM, Jim Lucas wrote:
Um, I use OpenBSD and that command gives me an error or two...
$ grep -l mail $(find -name *.php)
find: unknown option -- n
find:
On Sat, Jan 15, 2011 at 13:51, Nilesh Govindarajan nil...@itech7.com wrote:
hahaha, that command wasn't broken. It works on Linux. But certain commands
have to be changed to work on *BSD.
For example, chmod u=rwx,g=rwx,o= directory -R will work on linux, but will
not on FreeBSD. It has to be
On 01/16/2011 12:45 AM, Daniel Brown wrote:
On Sat, Jan 15, 2011 at 13:51, Nilesh Govindarajannil...@itech7.com wrote:
hahaha, that command wasn't broken. It works on Linux. But certain commands
have to be changed to work on *BSD.
For example, chmod u=rwx,g=rwx,o= directory -R will work on
On Sat, Jan 15, 2011 at 10:32 PM, Nilesh Govindarajan nil...@itech7.com wrote:
On 01/16/2011 12:45 AM, Daniel Brown wrote:
On Sat, Jan 15, 2011 at 13:51, Nilesh Govindarajannil...@itech7.com
wrote:
hahaha, that command wasn't broken. It works on Linux. But certain
commands
have to be
On 1/15/2011 10:51 AM, Nilesh Govindarajan wrote:
On 01/15/2011 11:13 PM, Daniel Brown wrote:
On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajannil...@itech7.com wrote:
On 01/15/2011 10:22 PM, Jim Lucas wrote:
Um, I use OpenBSD and that command gives me an error or two...
$ grep -l mail
On 01/16/2011 12:33 PM, Jim Lucas wrote:
On 1/15/2011 10:51 AM, Nilesh Govindarajan wrote:
On 01/15/2011 11:13 PM, Daniel Brown wrote:
On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajannil...@itech7.com wrote:
On 01/15/2011 10:22 PM, Jim Lucas wrote:
Um, I use OpenBSD and that command
is it possible to see which php file(s) is/are sending emails on my server
by php.ini or with any other way?
coz i have a server and i have many domains and subdomains. on my smtp
systems i saw that many random mails are being sent from www server which
has RELAY permission. I know i must
On 01/15/2011 06:21 AM, Mesut GULNAZ wrote:
is it possible to see which php file(s) is/are sending emails on my server
by php.ini or with any other way?
coz i have a server and i have many domains and subdomains. on my smtp
systems i saw that many random mails are being sent from www server
On Wed, Dec 29, 2010 at 07:23:25PM +0100, Michelle Konzack wrote:
Hello,
my users have an Online-File-Store with nearly anything they need but
one feature is missing: Drag-D-Drop.
I like to implement Drag-D-Drop so users can Drag a file from a File-
Manager and Drop it on the
Hello,
my users have an Online-File-Store with nearly anything they need but
one feature is missing: Drag-D-Drop.
I like to implement Drag-D-Drop so users can Drag a file from a File-
Manager and Drop it on the Upload-Icon in my Webinterface.
Can someone tell me HOW THIS WORKS?
Thanks,
On Wed, Dec 29, 2010 at 13:23, Michelle Konzack
linux4miche...@tamay-dogan.net wrote:
Hello,
my users have an Online-File-Store with nearly anything they need but
one feature is missing: Drag-D-Drop.
I like to implement Drag-D-Drop so users can Drag a file from a File-
Manager and
-Original Message-
From: Michelle Konzack [mailto:linux4miche...@tamay-dogan.net]
Sent: Wednesday, December 29, 2010 10:23 AM
To: PHP - General
Subject: [PHP] File-Upload per Drag-N-Drop?
Hello,
my users have an Online-File-Store with nearly anything they need but
one
On Wed, Dec 29, 2010 at 10:30 AM, Daniel P. Brown
daniel.br...@parasane.net wrote:
That's more of a frontend question to which you and your
six-million-line signature should check Google to find the answer.
Don't get me wrong, Michelle, we've always tried to help out even with
off-topic
to
this question; only several different platform dependent solutions from one
vendor to handle each main OS.
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: Michael Shadle mike...@gmail.com
Date: Wed, Dec 29, 2010 21:38
Subject: [PHP] File-Upload per Drag-N-Drop?
To: Michelle
From: Ricardo Martinez
i want ask to the list, if anyone knows a FIle Manager with ACL,
written in
PHP and MySQL.
Dokuwiki doesn't require a DBMS, but can use MySQL if you really need to
shoehorn it in.
http://www.splitbrain.org/projects/dokuwiki
Bob McConnell
--
PHP General Mailing List
Hi!
i want ask to the list, if anyone knows a FIle Manager with ACL, written in
PHP and MySQL.
thanks!
--
Ricardo
___
IT Architect
website: http://www.rjmc.es
At 4:41 PM -0500 5/28/10, Karl DeSaulniers wrote:
On May 28, 2010, at 4:25 PM, tedd wrote:
At 3:39 PM -0500 5/28/10, Karl DeSaulniers wrote:
Hello,
How can I go about restricting the number of downloads of a file
on my server?
For Eg: if I want a music track to only be able to be downloaded
How can I go about restricting the number of downloads of a file on my
server?
Something like this could be triggered every time and then you can do
whatever you want once it hits 150... maybe have it send you an email
notification or something...
http://www.stevedawson.com/article0007.php
--
On May 28, 2010, at 3:54 PM, Marc Guay wrote:
How can I go about restricting the number of downloads of a file
on my
server?
Something like this could be triggered every time and then you can do
whatever you want once it hits 150... maybe have it send you an email
notification or
At 3:39 PM -0500 5/28/10, Karl DeSaulniers wrote:
Hello,
How can I go about restricting the number of downloads of a file on my server?
For Eg: if I want a music track to only be able to be downloaded by
150 people and thats it.. ever,
how can I go about doing this?
Much obliged,
Karl
On May 28, 2010, at 4:25 PM, tedd wrote:
At 3:39 PM -0500 5/28/10, Karl DeSaulniers wrote:
Hello,
How can I go about restricting the number of downloads of a file
on my server?
For Eg: if I want a music track to only be able to be downloaded
by 150 people and thats it.. ever,
how can I
The users will have gone through a registration and login to get to
the downloads.
The files will be served from MySQL and output to HTML of Flash.
This is for a small project of limited edition audio or pictures or
scripts, etc.
Hens, I'd like to limit each user in the allotted 150 to be
Folks:
If I wanted to encrypt a file in PHP and then write it out to disk
(one-way encryption, requiring a password), what PHP built-ins might you
recommend to encrypt the contents of the file before writing it out to
disk?
Paul
--
Paul M. Foster
--
PHP General Mailing List
On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote:
Folks:
If I wanted to encrypt a file in PHP and then write it out to disk
(one-way encryption, requiring a password), what PHP built-ins might you
recommend to encrypt the contents of the file before writing it out to
disk?
Paul
On Thu, Apr 01, 2010 at 08:45:53PM +0100, Ashley Sheridan wrote:
On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote:
Folks:
If I wanted to encrypt a file in PHP and then write it out to disk
(one-way encryption, requiring a password), what PHP built-ins might you
On Thu, Apr 1, 2010 at 3:47 PM, Paul M Foster pa...@quillandmouse.com wrote:
Folks:
If I wanted to encrypt a file in PHP and then write it out to disk
(one-way encryption, requiring a password), what PHP built-ins might you
recommend to encrypt the contents of the file before writing it out
On Thu, 2010-04-01 at 16:04 -0400, Paul M Foster wrote:
On Thu, Apr 01, 2010 at 08:45:53PM +0100, Ashley Sheridan wrote:
On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote:
Folks:
If I wanted to encrypt a file in PHP and then write it out to disk
(one-way
On Thu, Apr 1, 2010 at 4:05 PM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Thu, 2010-04-01 at 16:04 -0400, Paul M Foster wrote:
On Thu, Apr 01, 2010 at 08:45:53PM +0100, Ashley Sheridan wrote:
On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote:
Folks:
If I wanted
Paul M Foster wrote:
Folks:
If I wanted to encrypt a file in PHP and then write it out to disk
(one-way encryption, requiring a password), what PHP built-ins might you
recommend to encrypt the contents of the file before writing it out to
disk?
Paul
Here's a very generic mcrypt example.
Then one-way encryption would be something no one would do. I must be using
the wrong term. What I mean is that it needs a password, which is used to
encrypt and decrypt the file.
*Symmetric* encryption uses the same key to encrypt and decrypt the text
(what you're talking about, and example
Hello,
When uploading a file the variable $_FILES['userfile']['tmp_name'] is not
set and when debugging I get the following error although /tmp folder exists
and the permissions are set to 777:
$_FILES['userfile']['error'] = 6
which says
UPLOAD_ERR_NO_TMP_DIR
Value: 6; Missing a temporary
Ali Reza Sajedi wrote on 30/01/2010 12:27:
UPLOAD_ERR_NO_TMP_DIR
Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP
5.0.3.
Has anyone encountered such a problem or has a clue as to what the cause
could be?
What does print phpinfo(); tell you about the upload_tmp_dir?
On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi arsaj...@khanehjou.comwrote:
Hello,
When uploading a file the variable $_FILES['userfile']['tmp_name'] is not
set and when debugging I get the following error although /tmp folder exists
and the permissions are set to 777:
-
From: Eric Lee
To: Ali Reza Sajedi
Cc: phpList list
Sent: Saturday, January 30, 2010 1:21 PM
Subject: Re: [PHP] File Upload
On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi arsaj...@khanehjou.com
wrote:
Hello,
When uploading a file the variable $_FILES['userfile
observed.
Any idea?
Kind regards
Ali
- Original Message -
From: Eric Lee
To: Ali Reza Sajedi
Cc: phpList list
Sent: Saturday, January 30, 2010 1:21 PM
Subject: Re: [PHP] File Upload
On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi arsaj
Quadling rquadl...@googlemail.com wrote:
From: Richard Quadling rquadl...@googlemail.com
Subject: Re: [PHP] File upload directive: $_FILES['filename']['name'] instead
of $_FILES['filename']['tmp_name']
To: Andrei Iarus poni1...@yahoo.com, PHP General list
php-general@lists.php.net
Date
2009/12/22 Andrei Iarus poni1...@yahoo.com:
Hello,
On my production testing servers (production runs on a centrino and testing
runs on Windows) I can only access the temporary uploaded file using
ini_get( 'upload_tmp_dir' . '/' . $_FILES['filename']['name'];
while the file
2009/12/23 Andrei Iarus poni1...@yahoo.com:
Of course: also tried the is_uploaded_file, exactly like in the manual. And
it fails :(
--- On Wed, 12/23/09, Richard Quadling rquadl...@googlemail.com wrote:
From: Richard Quadling rquadl...@googlemail.com
Subject: Re: [PHP] File upload
Hello,
On my production testing servers (production runs on a centrino and testing
runs on Windows) I can only access the temporary uploaded file using
ini_get( 'upload_tmp_dir' . '/' . $_FILES['filename']['name'];
while the file $_FILES['filename']['tmp_name'] simply does not exist (checked
I've got a PHP script running on a shared host [Blue Host] that creates a
directory and writes files in it.
The directory and files are owned by the site name, not nobody as I've
always seen on other shared hosts.
Anyone have a possible explanation for this?
Thanks, Al.
--
PHP
On Sun, 2009-12-20 at 12:58 -0500, Al wrote:
I've got a PHP script running on a shared host [Blue Host] that creates a
directory and writes files in it.
The directory and files are owned by the site name, not nobody as I've
always seen on other shared hosts.
Anyone have a possible
On 12/20/2009 1:06 PM, Ashley Sheridan wrote:
On Sun, 2009-12-20 at 12:58 -0500, Al wrote:
I've got a PHP script running on a shared host [Blue Host] that creates a
directory and writes files in it.
The directory and files are owned by the site name, not nobody as I've
always seen on other
At 10:17 AM + 11/15/09, Ashley Sheridan wrote:
Like someone mentioned on the link you posted; storing the images in the
database does offer a layer of security, as database access is far
easier to control than file access.
Thanks,
Ash
http://www.ashleysheridan.co.uk
It also offers ease
On Mon, Nov 16, 2009 at 8:05 AM, tedd tedd.sperl...@gmail.com wrote:
At 10:17 AM + 11/15/09, Ashley Sheridan wrote:
Like someone mentioned on the link you posted; storing the images in the
database does offer a layer of security, as database access is far
easier to control than file
On Sun, 2009-11-15 at 16:43 +1300, German Geek wrote:
Hi, Could it have something to do with an eof character being encoded or
something like that? Do you really need to store the files in the DB? It
uses more processing power if stored in the DB because on retrieval, you
have to unescape the
Hello,
I am trying to create an UPLOAD page to Update a Images and PDFs into
a BLOB field in mySQL. The image keeps getting corrupted (it draws a
portion of the image and the rest is GRAY) We tried it with Safari and
Firefox with bad results.
Here is the form that is used to browse and
Hi, Could it have something to do with an eof character being encoded or
something like that? Do you really need to store the files in the DB? It
uses more processing power if stored in the DB because on retrieval, you
have to unescape the string and return it. Modern filesystems are optimised
Hi Everyone,
I've setup a filedownload which works but i'm having an issue, i've
left out but when it downloads it, while it has the correct file it
doesn't have a file extension associated with it, I need the .7z
extension associated with the filename, can anyone see why that would
do this
I think that your problem in this line:
header(Content-Disposition: filename=$file . %20);
I don't know what that %20 is for and you should quote the filename,
that line should be something like this:
header(Content-Disposition: attachment; filename=\$file\);
Considering that $filename
That is for IE and its silly FileName[N] rather than FileName
here a good old function to download:
http://www.devpro.it/code/72.html
Regards
Date: Sun, 6 Sep 2009 15:43:27 -0300
From: tapi...@gmail.com
To: chris_pa...@danmangames.com
CC: php-general@lists.php.net
Subject: Re: [PHP] File
are u shure, u dont send anything out before u send the headers? even one
space would be too much.
ralph_def...@yahoo.de
Dan Shirah mrsqua...@gmail.com wrote in message
news:a16da1ff0908281328k641ea332v25d887c4de5b3...@mail.gmail.com...
You will need to add some headers to the page to popup
On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote:
are u shure, u dont send anything out before u send the headers? even one
space would be too much.
ralph_def...@yahoo.de
Dan Shirah mrsqua...@gmail.com wrote in message
even the .tif is valid or not, the file should be downloaded
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1251530173.27899.135.ca...@localhost...
On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote:
are u shure, u dont send anything out before u send the headers? even
one
- Original Message -
From: Ashley Sheridan a...@ashleysheridan.co.uk
To: Ralph Deffke ralph_def...@yahoo.de
Cc: php-general@lists.php.net
Sent: Saturday, August 29, 2009 3:16 PM
Subject: Re: [PHP] File Open Prompt?
On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote:
are u shure, u
- Original Message -
From: Eric blueray2...@yahoo.com
To: a...@ashleysheridan.co.uk; Ralph Deffke ralph_def...@yahoo.de
Cc: php-general@lists.php.net
Sent: Saturday, August 29, 2009 5:01 PM
Subject: Re: [PHP] File Open Prompt?
- Original Message -
From: Ashley Sheridan
Greetings,
I'm having a problem trying to get a file download prompt.
Basically I have a page with image links.
When the link is clicked, the user is directed to another page I have. That
page finds the image path based on the image ID from the previous page.
Once the image path is found I
On Fri, 2009-08-28 at 15:03 -0400, Dan Shirah wrote:
Greetings,
I'm having a problem trying to get a file download prompt.
Basically I have a page with image links.
When the link is clicked, the user is directed to another page I have. That
page finds the image path based on the image
On Fri, Aug 28, 2009 at 3:03 PM, Dan Shirahmrsqua...@gmail.com wrote:
Greetings,
I'm having a problem trying to get a file download prompt.
Basically I have a page with image links.
When the link is clicked, the user is directed to another page I have. That
page finds the image path based
- Original Message -
From: Ashley Sheridan a...@ashleysheridan.co.uk
To: Dan Shirah mrsqua...@gmail.com
Cc: PHP General php-general@lists.php.net
Sent: Saturday, August 29, 2009 3:10 AM
Subject: Re: [PHP] File Open Prompt?
On Fri, 2009-08-28 at 15:03 -0400, Dan Shirah wrote
You will need to add some headers to the page to popup the prompt, at least
with
these.
$filename = 'somefile.tif';
$filesize = filesize($filename);
header('Content-Type: application/force-download');
header('Content-disposition: attachement; filename=' . $filename);
-to-know-from-which-php-file-the-request-comes-fromtp25003587p25003587.html
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this message in context:
http://www.nabble.com/is-there-a-better-way-to-know-from-which-php-file-the-request-comes-fromtp25003587p25003587.html
Sent from the PHP - General mailing list archive at Nabble.com.
Neither GET or POST is more secure, it's just that POST requires a tiny
bit more work
HTTP_REFERRER is transparent, but if can be messed with very easily. I
prefer use of $_SESSION vars if security is needed in my application
(epically when a page is shown after a POST request)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is a newbie question...
Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
submission from page1.php or page2.php will take user to page3.php.
I know that we can use parameter that is appended in the action attribute of
the form (e.g FORM METHOD=POST
??.).
So which one is most secured and better ??
Thanks..
--
View this message in context:
http://www.nabble.com/is-there-a-better-way-to-know-from-which-php-file-the-r
equest-comes-fromtp25003587p25003587.html
Sent from the PHP - General mailing list archive at Nabble.com.
Neither GET
On 8/17/09 5:17 AM, nashrul anas_a...@yahoo.com wrote:
This is a newbie question...
Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
submission from page1.php or page2.php will take user to page3.php.
I know that we can use parameter that is appended in the action
1 - 100 of 1885 matches
Mail list logo