Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,299 members, 7,819,010 topics. Date: Monday, 06 May 2024 at 09:56 AM

My Upload File Script Fails To Work Online - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / My Upload File Script Fails To Work Online (627 Views)

How To Work Online / Does The UBA Visa Debit Card Work Online? / How To Upload File To My Site For Others To Download (2) (3) (4)

(1) (Reply) (Go Down)

My Upload File Script Fails To Work Online by leastpay(m): 6:32pm On Sep 25, 2013
i have a script to upload a zip file of 45MB in php that works very well in localhost , but when i take it online i.e upload my upload.php script to the server it fails to work but rather manage to upload file less than 2 MB only which is below my expectation. please i need solution from any body.
Re: My Upload File Script Fails To Work Online by talk2hb1(m): 10:22pm On Sep 25, 2013
Are you sure your file has write permission to write on the server?
Re: My Upload File Script Fails To Work Online by dhtml4: 11:36pm On Sep 25, 2013
The server does not have permission to upload more than 2mb - default setting, please inform your webhost
Re: My Upload File Script Fails To Work Online by leastpay(m): 5:59am On Sep 26, 2013
Thanks
Re: My Upload File Script Fails To Work Online by dhtml4: 6:39am On Sep 26, 2013
You can create a simple file like

server.php
<?php
phpinfo();
?>

Search the entries for upload_max_filesize and post_max_size entries

The two of them together must be increased to say 100MB

You can alternatively try this, it might work

Create a text file called php.ini into your server root directory containing:

post_max_size = 100M
upload_max_filesize = 100M


After that, you can retry your upload or run the server.php and see if the entries have been changed
Re: My Upload File Script Fails To Work Online by talk2hb1(m): 6:46am On Sep 26, 2013
dhtml4: You can create a simple file like

server.php
<?php
phpinfo();
?>

Search the entries for upload_max_filesize and post_max_size entries

The two of them together must be increased to say 100MB

You can alternatively try this, it might work

Create a text file called php.ini into your server root directory containing:

post_max_size = 100M
upload_max_filesize = 100M


After that, you can retry your upload or run the server.php and see if the entries have been changed



Thats a quick cheat from Oga at Top
Re: My Upload File Script Fails To Work Online by yawatide(f): 1:02pm On Sep 26, 2013
I believe this can be increased via the php.ini file on your server. Having said that, if you are on a shared server, your host may still not allow more than 2mb.

Can't you just take the strain off of your server and use dropbox, or other similar alternatives?
Re: My Upload File Script Fails To Work Online by dhtml4: 7:59pm On Sep 26, 2013
talk2hb1:
Thats a quick cheat from Oga at Top
Ahem, a cheat? why would i have done that? Have you seen a cross-domain file transloader which might even employ an FTP script to bypass all them server settings?
@op, if all above options does not work and web host does not do anything, let me know so we can possibly use a real cheat code. . .
Re: My Upload File Script Fails To Work Online by leastpay(m): 8:20pm On Sep 26, 2013
I'll keep you posted

(1) (Reply)

Need D Best Website Proposal / Script To Detect Attacks And Send A Response / Am Willing To Give Away Sharpiq.com [blogger Blog] For Free! Who Wants It?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.