See... basically, I have two sites. One site provides user authentication
and another one requests the authentication. The requesting site need to
send to the authentication site its request in an XML. The authentication
site is suppose to get the XML file using $HTTP_POST_FILES. I'm using PHP
Ahh, if you *have* to push the data (which you obviously do) and the
authentication site has no other authentication methods then you have to
POST the file with PHP. It can be done, there are many classes for it, I
can't recommend any specific class, but I'm sure someone else here could.
I
On Tuesday 26 October 2004 03:45, Philip Thompson wrote:
I have a form to upload a file from a user's computer to the server. I
want to then modify the file, and then let the user save it back.
However, I am having troubles opening the file. It says it doesn't
exist. Any suggestions?
Jose wrote:
Hi,
Some of the filesystem function can't be executed in a linux httpd server.
I tried,
mkdir();
chmod();
fwrite(); and some other filesystem functions. Those worked in widows enviornment but in linux i got a message Permission denied
My PHP version is 4.2.3 in linux.
What are the
Aidal wrote:
Hi NG.
I'm experiencing some problems when trying to copy a file from one location
to another on the web server.
example:
dir1/subdir1/some_image_name.jpg -- dir2/subdir2/some_new_image_name.jpg
When I do this the file permissions changes and I'm no longer the owner of
the file. I
ftp_chmod() is part of PHP 5 and I'm working with PHP 4.3.1.
I tried the ftp_raw('CHMOD 777 filename.jpg'); doesn't work either though :(
Silvio Porcellana [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Aidal wrote:
Hi NG.
I'm experiencing some problems when trying to copy a
how about setting the correct umask. Or else su'ing to the correct user
before moving it.
Aidal wrote:
ftp_chmod() is part of PHP 5 and I'm working with PHP 4.3.1.
I tried the ftp_raw('CHMOD 777 filename.jpg'); doesn't work either though :(
Silvio Porcellana [EMAIL PROTECTED] wrote in message
ERR, I meant I tried ftp_exec(), ftp_raw() is a PHP 5 function too...
Aidal [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
ftp_chmod() is part of PHP 5 and I'm working with PHP 4.3.1.
I tried the ftp_raw('CHMOD 777 filename.jpg'); doesn't work either though
:(
Silvio Porcellana
Aidal
Could you post the relevant parts of your code so we have a little
context to work in?
You say you're copying a file from one location to another on the same
server. If this is the case you are very unlikely to be in need of the
ftp family of functions, which are only valid for use over
Chris Dowell wrote:
Aidal
Could you post the relevant parts of your code so we have a little
context to work in?
You say you're copying a file from one location to another on the same
server. If this is the case you are very unlikely to be in need of the
ftp family of functions, which are only
Aidal,
presumably, your server had the write to copy the file, otherwise the
copy would have failed. Is the only problem that you don't have the
correct permissions on the copied file?? if so check out
http://www.php.net/manual/en/function.umask.php. If you set the umask
before you copy,
On Wed, 2004-10-20 at 19:27 -0400, Nathan Mealey wrote:
This file upload problem has me very confused.
The code is:
$upload_dir = '/articles_store/';
$uploadfile = $upload_dir . basename($_FILES['userfile']['name']);
if (move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile)) {
On Wed, 2004-10-20 at 17:00 -0700, Robby Russell wrote:
On Wed, 2004-10-20 at 19:27 -0400, Nathan Mealey wrote:
This file upload problem has me very confused.
The code is:
$upload_dir = '/articles_store/';
$uploadfile = $upload_dir . basename($_FILES['userfile']['name']);
if
Sorry accidently replied off-list
I basicly said to check out debug_backtrace()
at http://www.php.net/debug-backtrace
On Mon, 18 Oct 2004 13:56:33 -0600, Adrian Madrid
[EMAIL PROTECTED] wrote:
Is there a way to know which file and line called a function youo are
in? I want to create an error
Chances are your 1KB file contains an error message - try changing the
Content-Type to text/plain or text/html to see what PHP is throwing at you
Cheers
Chris
Marek Kilimajer wrote:
PHP Junkie wrote:
Ave,
I've been having a very nagging and frustrating problem for a while
and I
hope someone can
Ave,
I made a change last evening, and since the change.. It seems to be working
fine. Thus far I haven't had the 1 KB downloaded file problem. I have been
trying all evening and this morning, from different places, and somehow
right now it seems to be working fine.
What I simply did was this:
From: PHP Junkie [EMAIL PROTECTED]
As my link to the download file, I changed it to
a href=\imsafm_user_dl.php?F=imsafm/$user/$myrow[filename]\img
src=b_newtbl.png border=0/a
And changed the code in the download file to
?php
header(Content-Description: File Transfer);
header(Content-Type:
John Holmes wrote:
From: PHP Junkie [EMAIL PROTECTED]
As my link to the download file, I changed it to
a href=\imsafm_user_dl.php?F=imsafm/$user/$myrow[filename]\img
src=b_newtbl.png border=0/a
And changed the code in the download file to
?php
header(Content-Description: File Transfer);
PHP Junkie wrote:
Ave,
I've been having a very nagging and frustrating problem for a while and I
hope someone can help me out with this.
I created a simple File Manager application, a lot of you already know about
it as you helped me with coding at different stages.
The problem is this: The
On Saturday 04 September 2004 23:36, Dre wrote:
I'm trying to upload a file using a form
$base_img_dir = http://localhost/app_images/;;
The destination directory/file has to be a path on the local filesystem.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software
thanks Jason .. it worked
thanks again
Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Saturday 04 September 2004 23:36, Dre wrote:
I'm trying to upload a file using a form
$base_img_dir = http://localhost/app_images/;;
The destination directory/file has to be a
Syed Ghouse wrote:
Hi All
i have to transfer files from one server to another server thru php program.will
anybody tell me how to do it?
PHP is not the way to do it! use SCP you don't have to write a single
line of code. Don't look at FTP. even though the FTP rcf talks about
transfering
raditha dissanayake wrote:
Syed Ghouse wrote:
Hi All
i have to transfer files from one server to another server thru php program.will
anybody tell me how to do it?
PHP is not the way to do it! use SCP you don't have to write a single
line of code. Don't look at FTP. even though the FTP rcf
Marek Kilimajer wrote:
raditha dissanayake wrote:
Syed Ghouse wrote:
Hi All
i have to transfer files from one server to another server thru php
program.will anybody tell me how to do it?
PHP is not the way to do it! use SCP you don't have to write a single
line of code. Don't look at FTP. even
(Sorry if this is a repost, had some problems with my news client not
sending properly)
Thanks for the pointers Raditha, unfortunately I still can't get it
working.
I have been banging away at this for a few days now, and I currently
have the following my script:
ini_set(max_execution_time,
On 11 Aug 2004 21:30:38 -, Mark Collin [EMAIL PROTECTED] wrote:
(Sorry if this is a repost, had some problems with my news client not
sending properly)
Thanks for the pointers Raditha, unfortunately I still can't get it
working.
I have been banging away at this for a few days now, and
On Thursday 05 August 2004 13:42, PHP E-Mail List wrote:
You don't have permission to access /directory uploaded
to/renamed file.txt on this server.
What are the permissions on that file?
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems
PHP E-Mail List wrote:
Ok, I figured I'd tackle this since I've been coding php for about 6
months now. And wouldn't ya know, I'm having problems with, what I
thought would be the easiest thing to code ever. Yeah well I get the
file to upload, and heck I can even take the file and display what
Mark Collin wrote:
I'm having problems with my file upload code. If I start to upload
files larger than a approx 400k the page seems to time out and I get a
page cannot be displayed error.
I have checked the php.ini on the server and max file size is 2Mb and
max Post size is 8Mb.
This is
1:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] File Uploading Issue
On Thursday 05 August 2004 13:42, PHP E-Mail List wrote:
You don't have permission to access /directory uploaded
to/renamed file.txt on this server.
What are the permissions on that file?
--
Jason Wong
Hi! I saw the php function flock(), since I never used it before so I
thought I would ask you folks a couple of questions.
did you read all of the user comments on http://us2.php.net/flock
There is a bunch of good info in there
--
PHP General Mailing List (http://www.php.net/)
To
Yea, read that, very good info there. Alright, I'll make one from scratch
and do some testing to find what need to be add/change/remove to make it
more a rock solid script. Boy, it remind me of Perl.
Thanks,
FletchSOD
Matt M. [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi! I
Nah! I'll settle for a simplier one... file_exists() by checking to see
if the file exist then spit out the error message. Meaning the file is in
use...
FletchSOD
Matt M. [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi! I saw the php function flock(), since I never used it
* Thus wrote Scott Fletcher:
Nah! I'll settle for a simplier one... file_exists() by checking to see
if the file exist then spit out the error message. Meaning the file is in
use...
Don't use file_exists() for that, it will fail miserable with
racing conditions. a better more portable way
Vail, Warren wrote:
Perhaps this is more about HTML than PHP, but the PHP $_FILES var seems to
be set up to allow a list of files to be uploaded. How does one get the
pop-up window to allow a user to select (ctrl-click or whatever) multiple
files in the same pop-up window? Everything I have
you might need to resolve to Java applet or other means to select more than
one files at same time. The following is an example:
http://barleypop.vrac.iastate.edu/BarleyBase/test/upload/version_05/Upload.php
yours,
xin
- Original Message -
From: Vail, Warren [EMAIL PROTECTED]
To:
Hi there
If i am not mistaken, that is a standard part of the nfs suite.
All you need to make sure is that your export is correct, and the you are
not using the
-nolock option.
Other than that if its PHP you more interested in, look at the flock()
function.
Kind Regards
Brent Clark
Thanks a lot , your information is really useful for me.
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
kyle wrote:
Hi all,
Is there any simple, safe, and efficiency way to do file locking over
NFS?
Thanks.
You can mysql locks (maybe it works in other
So if it is a windows box, how would I set the permissions? or is the
permissions of the person who is logged into the machine?
Thanks In advance
raditha dissanayake [EMAIL PROTECTED] 7/5/2004 4:08:41 PM
Angelo binc2 wrote:
Hi all I am trying to upload a file using PHP.
I can successfully
I found this from php function list manual:
flock() will not work on NFS and many other networked file systems. Check
your operating system documentation for more details.
I wish flock can do NFS file locking, but offical manual says no to
Brent Clark [EMAIL PROTECTED] wrote in message
Hello,
On 07/06/2004 05:25 AM, Kyle wrote:
I found this from php function list manual:
flock() will not work on NFS and many other networked file systems. Check
your operating system documentation for more details.
I wish flock can do NFS file locking, but offical manual says no to
This is not
Hi.
[quote from php manual ]
In some Unix texts the ctime of a file is referred to
as being the creation time of the file. This is wrong.
There is no creation time for Unix files in most Unix
filesystems.
[/quote from php manual]
http://in2.php.net/filectime
zareef ahmed
--- Richard Davey
Hi.
[quote from php manual ]
In some Unix texts the ctime of a file is referred to
as being the creation time of the file. This is wrong.
There is no creation time for Unix files in most Unix
filesystems.
[/quote from php manual]
http://in2.php.net/filectime
zareef ahmed
--- Richard Davey
[snip]
Is there a way to get the timestamp when a file was CREATED? Looking
at stat I can find the modified date, last accessed and changed - but
not the created date. There doesn't appear to be a Filesystem function
for it either. I'm sure it's obvious, but it is alluding me for now.
[/snip]
The
Angelo binc2 wrote:
So if it is a windows box, how would I set the permissions? or is the
permissions of the person who is logged into the machine?
That's not a PHP question! and i know very little about windows but I
can tell you that you can do it by right clicking on a folder and
selecting
Hi Manuel,
Do you mean I can just use flock over NFS ?
Manuel Lemos [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
On 07/06/2004 05:25 AM, Kyle wrote:
I found this from php function list manual:
flock() will not work on NFS and many other networked file systems.
Check
Hello,
On 07/06/2004 12:56 PM, Kyle wrote:
Hi Manuel,
Do you mean I can just use flock over NFS ?
It depends. You need to check whether the NFS server that you use
supports it.
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP
Angelo binc2 wrote:
Hi all I am trying to upload a file using PHP.
I can successfully create a folder, but when I try upload the file it
gives me the following error when using the move_uploaded_file function:
Warning: move_uploaded_file(c:/program files/apache
group/apache/htdocs/zerodocs/40/)
kyle wrote:
Hi all,
Is there any simple, safe, and efficiency way to do file locking over NFS?
Thanks.
You can mysql locks (maybe it works in other databases too):
GET_LOCK(str,timeout);
RELEASE_LOCK(str);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Brent Clark wrote --- napísal::
Hi all
I have this script whereby I use the php function file().
Just a quick question, do I need to implement file locking.
if so, can I just use something like
flock( file(/path/file.ext) );
No, you need file locking only for writing.
--
PHP General
If you're just going to read only, no.
Hi all
I have this script whereby I use the php function file().
Just a quick question, do I need to implement file locking.
if so, can I just use something like
flock( file(/path/file.ext) );
Kind Regards
Brent Clark
--
PHP General Mailing List
I have this script whereby I use the php function file().
Just a quick question, do I need to implement file locking.
If you want to ensure that the file is not changed by other scripts while
you're reading from it, yes. Note that this is advisory only - writer
scripts will only respect the
Just for the record, (and archives), This can be accomplished by:
dirname( __FILE__);
This allowes me to put the following into an application's config file,
to be included via the prepend, the following localized, global values:
(assuming the application's files are kept OUT of the document root
[snip]
So, what do I replace I_NEED_A_FUNCTION_HERE with?
[/snip]
not eaxatly sure what the question is.
Couldn't you use getcwd ? That would give you current working
directory
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Is there any php set for file management ?
The only thing I want is a set of PHP functions that allows me add and remove
lines from a file.
Is there any thing done ?
[/snip]
See http://www.php.net/fopen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Yury B . [EMAIL PROTECTED]@ctb-mesg6.saix.net wrote in message
news:[EMAIL PROTECTED]
Hi,
I believe there is possibility to upload html and other types of
files to the site location via email. Using Cron I can make script to
retreave POP3 email messages with sertain content/attachments which
Thank you very much I'll try it
Torsten Roehr [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Yury B . [EMAIL PROTECTED]@ctb-mesg6.saix.net wrote in message
news:[EMAIL PROTECTED]
Hi,
I believe there is possibility to upload html and other types of
files to the site location
Sorry,
This message is sent by mistake:
Yury [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I believe there is possibility to upload html and other types of files to
the site location via email. Using Cron I can make script to retreave POP3
email messages with sertain
Ryan Schefke wrote:
Can anyone recommend a file upload script (or if you have one) that has the
following:
* Restricts size/dimensions
* Restricts file type/extension
* Customizeable to specify directory
* Allows user to delete files (optional)
* Restricts # of
, 2004 10:12 AM
To: Php-General-Help
Subject: Re: [PHP] File Upload Recommendations
Ryan Schefke wrote:
Can anyone recommend a file upload script (or if you have one) that has
the
following:
* Restricts size/dimensions
* Restricts file type/extension
* Customizeable
Tony (I'm guessing) --
...and then Anthony Ritter said...
%
% In the following snippet, which uploads binary files to a mySQL database it
% works fine when Register Globals are set to ON.
...
% $data = addslashes(fread(fopen($form_data, r), filesize($form_data)));
This line is important to
Hello Gawain,
Thursday, April 15, 2004, 9:47:50 PM, you wrote:
G I have no idea where the apparent 500k choke point is coming from... Any ideas?
Check the MAX_FILE_SIZE setting in your upload form - some people
claim it has no relevance, but they're wrong :)
--
Best regards,
Richard Davey
Hello Gawain,
Thursday, April 15, 2004, 10:04:34 PM, you wrote:
G As usual, it's something simple. A long time ago when I had
G originally coded the form, I left a MAX_FILE_SIZE directive in the
G HTML form. I'm using templates so my code is separate from the HTML...
Rats.. next time I'll read
Eric Wood wrote:
- Original Message -
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to
get the raw post info.
I recently began to use megaupload, it
I posted about this the other day. I was directed to look at megaupload
http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to get the raw post info.
Issues in general:
Whenever this issue comes up people will ask why you need the functionality? I have a
From: Jeff McKeon [EMAIL PROTECTED]
Does anyone know of a way to display the %complete of a file upload
using a form (POST) method?
Look on phpclasses.org. I noticed there was a class mentioned in their last
mailer that did just this.
---John Holmes...
--
PHP General Mailing List
-Original Message-
From: Steve Murphy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 4:58 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] File upload progress
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to
get the raw post info.
Unfortunately, the web server being used is IIS on a Windows Server, not
Apache
Issues in
for this function in
4.4.
Steve
-Original Message-
From: Jeff McKeon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 5:18 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] File upload progress
I posted about this the other day. I was directed to look at
megaupload http
* Thus wrote Steve Murphy ([EMAIL PROTECTED]):
I'm sorry to hear that. You could use one of the million ASP meters but then you
have to use IE on winblows which may or may not be an issue for you.
Cross compatibility would also be solved if this was done by PHP.
Maybe someone at PHP will
PROTECTED]
Sent: Tuesday, April 06, 2004 6:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] File upload progress
* Thus wrote Steve Murphy ([EMAIL PROTECTED]):
I'm sorry to hear that. You could use one of the million ASP meters but then you
have to use IE on winblows which may or may not be an issue
all upgrade.
Steve
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 6:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] File upload progress
* Thus wrote Steve Murphy ([EMAIL PROTECTED]):
I'm sorry to hear that. You could use one
[EMAIL PROTECTED] wrote:
There is a java appley which can do uploads, lemme know if u want me to
find it
Perhaps you are thinking of http://www.radinks.com/upload/ (this is a
shameless plug) :-)
Curt,
Thats a very valid point. But as it was stated before, the average user
does not
Jeff McKeon wrote:
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to
get the raw post info.
Unfortunately, the web server being used is IIS on a Windows Server, not
Apache
never worked for me plus what is this drag and drop system ? i get an
exception
Jeff McKeon wrote:
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to
get the raw post info.
[EMAIL PROTECTED] wrote:
never worked for me plus what is this drag and drop system ? i get an
exception
Let's take this discussion to the mega upload message board (at
http://www.sourceforge.net/projects/megaupload/) . I am sure others
would appreciate that.
thanx.
Jeff McKeon wrote:
- Original Message -
I posted about this the other day. I was directed to look at
megaupload http://www.raditha.com/megaupload/
It works pretty well, I believe it uses Apache::Request to
get the raw post info.
I recently began to use megaupload, it relies on perl cgi to measure
.'' );
header ( 'Expires: ' . date ( 'r', 0 ));
Still getting the same behavior, on both the Windows
and Solaris platforms.
Andy
From: Curt Zirzow [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:56 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] File Download link not working in
PHP 4.3.4
* Thus
Check the comments on this page:
http://us2.php.net/manual/en/function.session-cache-limiter.php
---John Holmes...
- Original Message -
From: Andrew Hauger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 11:18 AM
Subject: Re: [PHP] File Download link not working
* Thus wrote Andrew Hauger ([EMAIL PROTECTED]):
the file name. When the OK button is clicked, an
error dialog pops up with the message Internet
Explorer cannot download ... [snipped URL]. Internet
Explorer was not able to open this Internet site. The
requested site is either unavailable or
On Thursday 11 March 2004 02:59 pm, Decapode Azur wrote:
hi all,
I am looking for a file management system.
Does anyone know if such a thing exists?
The goal is to make a web site with computer graphics resources.
Take a look at http://www.abnormis.com/
It's an awesome resource for dark
hi,
how about RCP,SCP, SFTP or FTP or worse comes to worse NFS
Harish wrote:
Hello All,
Is there any possibility to open a file in another machine, provided the IP
of the machine using PHP scripts.
I only need to open a file with the format abc190104.csv in another machine
write data into
Sounds like a scope problem. I suggest using $_FILES['fichier'] inside the
function since $_FILES is a superglobal and is accessible everywhere. If you
use this method, you won't need to pass anything to the function.
Shaunak
-Original Message-
From: marc serra [mailto:[EMAIL
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
everything has a limit, but im sure in this case you are under it big time
ive seen ppl running 1-2megs scripts hehe
Matthew Oatham wrote:
hi is there a limit to the filesize of a php ?
I know tomcat had limits on the file size of jsps.
My
On Monday 09 February 2004 16:23, merlin wrote:
there is following scenario:
- One php file saved with .pdf extension
- .htaccess tells php to parse this file
- ?ID=x provides the database id for individual files
That whole thing workes perfectly as long as you access it via browser
and
On 30-Jan-2004 Dan Joseph wrote:
Hi Everyone,
Hoping someone can shed a light on this. I have to send a file
separator
in a string that I piece together to a remote system. I've been told
this
is x'1C' ASCII or x'22' HEX. I have no idea what to really send.
I've
tried several
Hi Igor,
The approach taken by yahoo etc is the most popular. In your case you
will just need to enter the message in it's entirity in the database as
you normally would but perhaps mark it as a draft so that it does not
become visible.
SHAMLESS PLUG: alternatively you can use rad upload at
Hi,
You recommend to allocate post id when Compose mail pressed and set
draft(boolean) = true. Than I can attach files one by one linking them to
post_id in DB.
This approach is better than mine, I think, as files will be already linked
to post_id in DB and if post will never be submitted prune
On Tuesday 13 January 2004 06:47, Timmy wrote:
Since the incremented number is at 3, there should be 3 timestamps in a
stack order. Overwriting the sole number for incrementing or
decrementing is no problem. However, inserting a new timestamp is where I
get stuck. The current timestamp is
Hello Tristan,
Monday, January 12, 2004, 2:30:15 PM, you wrote:
TPrsc What I want to do now, is allow the other site users to upload files to
TPrsc that same directory...
TPrsc From what I'v estudied on line, I can't do this, but I'm not convinced...
TPrsc Anyone know if this os possible, via a
Hello Peter,
Tuesday, January 13, 2004, 12:25:14 AM, you wrote:
PV Instead of it being picture.jpg it was
PV /tmp/progtemp/php/uploads/phpeZQiXd. Can anyone shed some light
PV as to how I could check to make sure that only JPEG images get
PV uploaded ? Thanks in advance...
The filename isn't
On Mon, 2004-01-12 at 19:33, Richard Davey wrote:
The filename isn't always the best way to tell. I mean I could rename
an mp3 to jpg and you'd think it was a jpg and happily insert it into
your database. Instead it's probably better to test the integrity of
the image itself.
I didn't
Rick Laird wrote:
I am trying to uplaod a 3 MB file to a server running apache and PHP. I
seem to hitting a 1.7 MB limit on the file size. I do not have
max_file_size set in my php.ini.
Not having upload_max_filesize set (which I assume is the setting you
are referring to) will cause PHP to use
On Sunday 11 January 2004 04:30, Rick Laird wrote:
I am trying to uplaod a 3 MB file to a server running apache and PHP. I
seem to hitting a 1.7 MB limit on the file size. I do not have
max_file_size set in my php.ini. I am using the Jakarta HTTPClient java
classes as the client.
Hmm, well, to answer my own question, it looks like
the following will do. Sorry to make an ass of
myself. Hope you were all entertained!!
form enctype=multipart/form-data action=_URL_
method=POST
input type=hidden name=MAX_FILE_SIZE
value=3
Send this file: input name=userfile type=file
According to the documentation you have to have the maxfilesize tag before
the input tag.
-Original Message-
From: Dino Costantini [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 6:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] File upload problem
i'm trying to write a page
This works for me
My Form
?php
?
form enctype=multipart/form-data action=savefile.php method=POST
input type=hidden name=MAX_FILE_SIZE value=10
Send this file: input name=filename type=file
input type=submit value=Send File
/form
savefile.php
?php
// In PHP earlier then 4.1.0,
On Thu, 4 Dec 2003 01:54:31 -0800 (PST), you wrote:
Warning: file(http://webmail.juicemarketing.net;) - Success in
/me notes this is a pyramid scam site
Don't know about the rest of you... but there are some people I'd prefer
/not/ to do free consultancy for.
--
PHP General Mailing List
Hello [-^-!-%-,
Thursday, December 4, 2003, 9:54:31 AM, you wrote:
$_html = implode('',file('http://myaddress.com'));
Sorry, just noticed you're bringing it back via file which (should)
convert it to an array. In which case the bad argument would be the
lack of a delimeter (the first value).
Hello [-^-!-%-,
Thursday, December 4, 2003, 9:54:31 AM, you wrote:
$_html = implode('',file('http://myaddress.com'));
Warning: Bad arguments to implode() in
$_html is empty, even though the remote page exist and is working
properly.
implode creates a string from an array. Your web page is
301 - 400 of 938 matches
Mail list logo