Be a Supporter!

just wondering...

  • 416 Views
  • 10 Replies
New Topic Respond to this Topic
Thomas
Thomas
  • Member since: Feb. 14, 2005
  • Offline.
Forum Stats
Member
Level 13
Musician
just wondering... 2006-12-04 20:42:39 Reply

Since it's been around 3 or more months since I've done anything with this programming stuff,I don't remember much and was just wondering what the code is to insert a php file into a page I'm working on.


wat
a compessor wil raise the volume while lowering the db - chronamut

DearonElensar
DearonElensar
  • Member since: Jun. 10, 2002
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to just wondering... 2006-12-04 20:59:17 Reply

include ();


BBS Signature
Jessii
Jessii
  • Member since: Feb. 10, 2005
  • Offline.
Forum Stats
Member
Level 36
Movie Buff
Response to just wondering... 2006-12-04 21:10:26 Reply

<?php include 'yourpage.php'; ?>

DearonElensar
DearonElensar
  • Member since: Jun. 10, 2002
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to just wondering... 2006-12-04 21:19:00 Reply

At 12/4/06 09:10 PM, Jessii wrote: <?php include 'yourpage.php'; ?>

ugh sorry, Jessii's code is the right one, and i should go to bed >_>


BBS Signature
Jessii
Jessii
  • Member since: Feb. 10, 2005
  • Offline.
Forum Stats
Member
Level 36
Movie Buff
Response to just wondering... 2006-12-04 21:44:08 Reply

At 12/4/06 09:19 PM, DearonElensar wrote: ugh sorry, Jessii's code is the right one, and i should go to bed >_>

lol I think so too! I just c/ped it off of my site because I know it works. I think include (); works too though.

Craige
Craige
  • Member since: Jul. 17, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to just wondering... 2006-12-04 22:05:20 Reply

At 12/4/06 09:44 PM, Jessii wrote: lol I think so too! I just c/ped it off of my site because I know it works. I think include (); works too though.

Indeed it does.

thecoshman
thecoshman
  • Member since: Jun. 11, 2006
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to just wondering... 2006-12-05 13:55:27 Reply

well, as include is a function, i spose you can argue that it should use brakets, like the eho function should. but then i dont think that that is an underpinning idea of php. but for me i use it as include() though you do need to use single quotes i belive, not to sure, i got it set up in about a day and not used that funciton since, bit sillie realy aint it.

henke37
henke37
  • Member since: Sep. 10, 2004
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to just wondering... 2006-12-05 14:47:03 Reply

include is a construct.


Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.

DFox
DFox
  • Member since: Aug. 9, 2003
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to just wondering... 2006-12-05 14:50:40 Reply

At 12/5/06 02:47 PM, henke37 wrote: include is a construct.

Exactly, so thecoshman, you can't argue that include should use parenthesis, the only thing you can argue is that it should NOT use them, because constructs don't use parenthesis.

But there's really no point in arguing being both do the same thing and work fine.


BBS Signature
Gutya
Gutya
  • Member since: Nov. 27, 2006
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to just wondering... 2006-12-05 14:50:56 Reply

At 12/5/06 01:55 PM, thecoshman wrote: Gibberish

I didn't understand a word of that. =/

Craige
Craige
  • Member since: Jul. 17, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to just wondering... 2006-12-05 18:09:57 Reply

At 12/5/06 02:47 PM, henke37 wrote: include is a construct.

As is echo, which he mentioned being a function.