SitePoint Sponsor |
|
User Tag List
Results 1 to 25 of 25
Thread: File uploading
-
Jan 10, 2005, 00:32 #1
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
File uploading
Sir,
I cannot upload file of size 75mb in php.Is there is limit in php it cannot upload of file size of more than 50 mb.
Thanks in advance,
ArunKumar
-
Jan 10, 2005, 00:43 #2
- Join Date
- Aug 2003
- Location
- Manchester, UK
- Posts
- 4,007
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Create a <?php phpinfo() ?> page.
Any upload/post limits should be stated on there.
-
Jan 10, 2005, 00:46 #3
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sir,
Where should i create phpinfo file
ArunKumar
-
Jan 10, 2005, 00:49 #4
- Join Date
- Aug 2003
- Location
- Manchester, UK
- Posts
- 4,007
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Anywhere where you can access it via a url.
For example, if your url is http://foobar.com then create a phpinfo.php file with the following in it:
PHP Code:<?php phpinfo() ?>
Be sure to remove phpinfo.php once you're done to prevent other people from viewing it.
-
Jan 10, 2005, 00:53 #5
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
sir,
I cant get you,I am soory for it.The below is my code how to do i sir.
/*********************************************************/
<? include "pathfile.php";
echo " <form enctype=\"multipart/form-data\" action=\"".$pathconfig."backupload.php\" method=\"POST\">\n";
echo " Send this file: <input name=\"tst\" type=\"file\" /> \n";
echo " <input type=\"submit\" value=\"Send file\" /> \n";
echo " </form> \n";
?>
/***********My link goes here****************************/
if (isset($_fileS['tst']) && is_array($_fileS['tst']) && isset($_fileS['tst']['tmp_name']) && is_uploaded_file($_fileS['tst']['tmp_name'])) {
copy($_fileS['tst']['tmp_name'], 'upload/'.$_fileS['tst']['name']);
unlink($_fileS['tst']['tmp_name']);
echo 'uploaded file: '.$_fileS['tst']['name'].', '.$_fileS['tst']['size'].' bytes';
}
///////////////////////******************************//////////
-
Jan 10, 2005, 00:56 #6
- Join Date
- Aug 2003
- Location
- Manchester, UK
- Posts
- 4,007
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The phpinfo.php file above is a completely new file you need to create ... forget about any existing files you may currently have.
Just create a brand new file called phpinfo.php (as above) and upload/ftp it to your host/server. Put it in the same place as your index.php file (or index.html) then goto http://yoursite.com/phpinfo.php
-
Jan 10, 2005, 00:57 #7
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sir,
I am trying to uploads a rar file.
I simply want to upload a file more that 60 mb.
I face the same problem when downloading also.
Thanks,
Arunkumar
-
Jan 10, 2005, 01:00 #8
- Join Date
- Aug 2003
- Location
- Manchester, UK
- Posts
- 4,007
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yes, but you need to find out why you are having this problem.
A <?php phpinfo() ?> file will show you all your PHP/Apache settings, some of those are related to uploading files, you need to check them to make sure there's no predefined file size limit.
If you do what i suggested above and view http://yoursite.com/phpinfo.php you'll see what i mean.
-
Jan 10, 2005, 01:01 #9
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sir
I doit as you said but there are more value displaying what to do it.
Thanks,
Arunkumar
-
Jan 10, 2005, 01:02 #10
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sir
I doit as you said but there are more value displaying what to do it.
Thanks,
Arunkumar
-
Jan 10, 2005, 01:03 #11
- Join Date
- Aug 2003
- Location
- Manchester, UK
- Posts
- 4,007
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I presume you now see a page similar to this example one http://cirtexhosting.com/phpinfo.php ?
If so, what are the values of:
post_max_size
upload_max_filesize
?
-
Jan 10, 2005, 02:05 #12
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
sir,
Ya sir,I am having it .The values are 8.
ArunKumar
-
Jan 10, 2005, 02:12 #13
- Join Date
- Aug 2003
- Location
- Manchester, UK
- Posts
- 4,007
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
8? Hmm..that means you have a limit of 8M (and your form isn't specifying any limit).
That means you should only be able to upload 8M files so not even sure how you can upload a 50M one
You don't have to call be sir by the way ... that's my dad
-
Jan 10, 2005, 02:40 #14
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
hello mark,
How can i change,Is there is anyway to change.
And i feel very pleasure to get answer from you,And i like your last mail.
Can I get your mail id,
Mines is arun@bandvalley.com
Thanks,
Arun Kumar
-
Jan 10, 2005, 02:47 #15
- Join Date
- Aug 2003
- Location
- Manchester, UK
- Posts
- 4,007
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Some hosts won't allow you to change the upload limit but you can try creating a .htaccess file.
So .. create a new file, called .htaccess and in there put:
php_value upload_max_filesize "100M"
php_value post_max_size "100M"
then upload the .htaccess file to your host, the same way you did it with the phpinfo.php file.
-
Jan 10, 2005, 02:58 #16
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Is the file extension is .htaccess
ArunKumar
-
Jan 10, 2005, 02:59 #17
- Join Date
- Aug 2003
- Location
- Manchester, UK
- Posts
- 4,007
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
That's the entire file name, just .htaccess nothing else
-
Jan 10, 2005, 03:03 #18
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I have created it bi=ut still it not working
i have just typed what you give is there neccesarry to put $ infront of php_ value.....
-
Jan 10, 2005, 03:05 #19
- Join Date
- Aug 2003
- Location
- Manchester, UK
- Posts
- 4,007
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
No, you don't need the $
Like i said, some hosts won't allow you to change it .. i'm presuming this isn't your server but a hosts?
-
Jan 10, 2005, 03:27 #20
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Is that require put these under php tag <? ?>
Arunkumar
-
Jan 10, 2005, 03:34 #21
- Join Date
- Oct 2003
- Location
- €uroLand
- Posts
- 1,340
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
No, this is nothing PHP specific.
-
Jan 10, 2005, 03:38 #22
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
i saved it as
php_value upload_max_filesize "10000M"
php_value post_max_size "10000M"
and file name is .htaccess and then i store it in my server diredotry where all my php prgramms are there but still i cannot upload the file
-
Jan 10, 2005, 04:21 #23
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
should i save these in /etc/lib
Arun
-
Jan 10, 2005, 06:20 #24
- Join Date
- Jan 2005
- Location
- India:Chennai
- Posts
- 827
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
sir,
I have changed still i cannot download it.
ArunKumar
-
Jan 10, 2005, 13:40 #25
- Join Date
- Aug 2003
- Location
- Manchester, UK
- Posts
- 4,007
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The .htaccess goes where you originally had it (where you PHP files are .. index.php etc) not in /etc/lib
But it looks like your host doesn't allow you to upload files over 8M to prevent people uploading massive files and clogging up their server.
Bookmarks