I think it has something to do with the required file must return a positive output or something. My server used to tell me something like that when I didn't put it at the end.
Yes, it is especially important for sub-routines, so the master file knows where it ends.
However good programming habits prevent frustrations and screw ups.
If you have an included file, subroutine or not, add the 1; to save yourself a potential headache.
*aside -- who let in all these free thinkers? man!*
Suzanne
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.
Orpheus posted this at 03:50 — 24th August 2000.
They have: 568 posts
Joined: Nov 1999
1;? I think thats just another way of saying exit. But who knows, some people are weird.
Suzanne posted this at 04:24 — 24th August 2000.
She has: 5,507 posts
Joined: Feb 2000
And NOTHING can go after it. AT ALL.
1; is vital as the last line of any required file. It tells the master file that the required file EXISTS.
Suzanne
123finder.com posted this at 04:49 — 24th August 2000.
They have: 60 posts
Joined: Aug 2000
I do have required files without 1;
And they work fine, the main script still include the file when compiling
minton posted this at 08:34 — 24th August 2000.
They have: 314 posts
Joined: Nov 1999
I too have required files in scripts before and never added 1 to the end but I saw it in one of the ubb files and always wondered what it meant.
Orpheus posted this at 00:18 — 25th August 2000.
They have: 568 posts
Joined: Nov 1999
I just figured out the REAL meaning of it.
It seems that when you are using sub routines in a seperate file from the script you have to put the 1; at the end so it will work correctly.
Mike Fisher posted this at 01:06 — 25th August 2000.
They have: 429 posts
Joined: Jul 2000
I know I always put 'Mom' in the end of my scripts.
Umm.. Turn that camera off!
123finder.com posted this at 04:10 — 25th August 2000.
They have: 60 posts
Joined: Aug 2000
What if I don't? Will the sub work okay? I tried & they seem fine!
Edge posted this at 05:25 — 25th August 2000.
They have: 117 posts
Joined: Mar 2000
I think it has something to do with the required file must return a positive output or something. My server used to tell me something like that when I didn't put it at the end.
--Edge
Suzanne posted this at 06:24 — 25th August 2000.
She has: 5,507 posts
Joined: Feb 2000
I told ya, geez!
Yes, it is especially important for sub-routines, so the master file knows where it ends.
However good programming habits prevent frustrations and screw ups.
If you have an included file, subroutine or not, add the 1; to save yourself a potential headache.
*aside -- who let in all these free thinkers? man!*
Suzanne
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.