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)
-   -   PHP Question Here (https://gfy.com/showthread.php?t=351623)

Dravyk 09-04-2004 01:22 AM

PHP Question Here
 
Keep in mind I'm a semi-talented, but mostly-confused beginner when it comes to PHP. Also I do NOT actually program, but I can tweek and change or add a line or two nowadays. :)

With that background in mind, I found a PHP script. I want to use it and have it match the rest of my site. There are already other PHP scripts on the site. One of them is a header.php file that contains the style, logo and graphical site navigation.

I look into THIS script and everything is done line-by-line with echoes. (Which means it would take me forever and I would screw it up with all those quotes and semis and such.)

Can I just somehow insert the entire header.php file from the other script located in another directory which already exists and somehow just call it into this script? If so what would the syntax I would need to use?

Appreciate the assistance.

Triple 6 09-04-2004 01:23 AM

function it


bwahaaaahah

Triple 6 09-04-2004 01:25 AM

seriously why cant you add the function or whatnot from the other file to the file you want, link what you need too, etc..


whats the problemo

{fusion} 09-04-2004 01:45 AM

just include it.

<?php

include 'header.php';

?>

the header.php will just be html code probably, a real simple mod.

Dravyk 09-04-2004 02:00 AM

Triple as said, it was a ton of HTML for logo and nav, not one function. (Again, I'm new to messing and tweeking, and still can't code a damn, just a little modifying here and there.)

Ok, I'll give that a try, Fusion. That's exactly what I was wondering if could be done (and how to do it.) Thanks!

masterE 09-04-2004 02:30 AM

Quote:

Originally posted by {fusion}
just include it.

<?php

include 'header.php';

?>

the header.php will just be html code probably, a real simple mod.

Yep. :thumbsup


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

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