|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
PHP N00by question
What's the difference b/w
PHP Code:
PHP Code:
|
#2
|
||
|
the main difference is that upon an error (ie. the specified file isnt there) a require will give a fatal error and the script will stop there, a include will give a warning and continue with the script...
|
#3
|
||
|
uh huh ... include be good, huh?
|
#4
|
||
|
You use require when requiring files that are for sure needed for the script to work. For instance if you have a file like header.php which connects, sets variables, etc...if it doesn't work you need a fatal error. It could be dangerous to just include it. (i think). Include as mike said just gives a warning and continues on. so include files such as count.php which would count the hits of the site...that's it.
|
#5
|
||
|
header () question
How common is the usage of hardcoding URL using header () ?
Something like PHP Code:
Edit: BTW THanks Elite. |
#6
|
||
|
it is common whenever you want to redirect with out a message on the page your redirecting from. If you want a thanks for posting, you will be transfere in 5 seconds META_REFRESH or whatever works better.
Umm i've never seen PHP Code:
|
#7
|
||
|
I haven't tried refresh yet ... but was just wondering if it be used. Let me know if it actually works
Edit: Following code works for Refreshing in PURE PHP Environment. PHP Code:
Last edited by DevilDog#1; 12-30-2005 at 09:42 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
php question | BlackMass | Web design and Programming | 7 | 06-26-2006 09:22 PM |
PHP Question? | Webviper2006 | Web design and Programming | 12 | 02-08-2006 04:37 PM |
PHP uploader question | BOne | Web design and Programming | 11 | 03-18-2005 04:22 PM |
PHP question | Ice Cannon | Web design and Programming | 3 | 07-07-2003 12:14 AM |
PHP question | Kip Kilagan | Web design and Programming | 3 | 03-21-2003 02:39 AM |