| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() | This is a really noobish question... On my image hosting site they're is a 1MB filesize limit, the script I use to check that is: ????: NamePros.com http://www.namepros.com/programming/114015-this-is-a-really-noobish-question.html PHP Code: 2nd question: would that work? |
| |
| | #2 (permalink) |
| Senior Member Join Date: May 2005 Location: Australia
Posts: 1,197
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | there are 1048576 bytes in 1mb and die("") I dont think will work use die(); PHP Code: |
| |
| | #5 (permalink) | ||||
| NamePros Regular Join Date: Jun 2004
Posts: 587
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=114015 die(); or die(""); Quotes can be most useful to report back an error to the surfer if you want. I do this all the time when I write code for inept end-users. I will display a SPECIFIC error that I can trace back to the exact line in the code. For example, if you are trying to open a file and it fails, you can always report the error something like this: PHP Code:
__________________ Can't wait to be out of this forsaken business. Getting close! :) | ||||
| |
| | #7 (permalink) |
| Senior Member Join Date: May 2005 Location: I'm right here
Posts: 3,526
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | or error_reporting(0);
__________________ WP Theme Developer Your One-stop for Premium Magazine/CMS WordPress Themes Deluxe Themes |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Religious Question. | Humdizzy | The Break Room | 99 | 06-22-2005 11:53 AM |
| Not at trick question | Coastalguy | The Break Room | 5 | 05-04-2005 05:22 PM |
| Quick question... | kektex | Domain Newbies | 1 | 03-31-2005 02:24 PM |
| little question.. | khkhan | Domain Appraisals | 2 | 11-20-2004 05:28 AM |
| two-letter .com domain question | questioning | Domain Name Discussion | 1 | 10-05-2004 05:08 PM |