GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Can I use <? include("filename.... (https://gfy.com/showthread.php?t=560275)

brizzad 01-04-2006 09:59 PM

Can I use <? include("filename....
 
can I use that tag in a php file to include a regular html file?

SmokeyTheBear 01-04-2006 10:00 PM

sure :) .........

Slap Dot 01-04-2006 10:02 PM

Yeah, if you finish it..

Lace 01-04-2006 10:02 PM

yup yup..

brizzad 01-04-2006 10:03 PM

Quote:

Originally Posted by Slap Dot
Yeah, if you finish it..

If i'm doing this within the <?php and ?> tags, do I need to still do the whole thing

<?php include("file"); ?>

or can I just do

include("file");

brizzad 01-04-2006 10:06 PM

helloooooooo?

Tempest 01-04-2006 10:07 PM

Quote:

Originally Posted by brizzad
If i'm doing this within the <?php and ?> tags, do I need to still do the whole thing

<?php include("file"); ?>

or can I just do

include("file");

If you're already inside a pair of <?php ?> tags then you don't need to put them again... You might also want to consider putting a @ in front of the include (@include('file.html');). That way if there's an error and it's not found it won't print out one of those ugly php messages that shows your path etc.

brizzad 01-04-2006 10:09 PM

Quote:

Originally Posted by Tempest
If you're already inside a pair of <?php ?> tags then you don't need to put them again... You might also want to consider putting a @ in front of the include (@include('file.html');). That way if there's an error and it's not found it won't print out one of those ugly php messages that shows your path etc.

okay great, thanks! :thumbsup

thanks everyone else too


All times are GMT -7. The time now is 09:51 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123