![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2001
Location: Yo, Philly!
Posts: 1,202
|
![]() 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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2002
Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: isN'T everything
Posts: 5,394
|
function it
bwahaaaahah
__________________
SIG TOO SMALL! Maximum 1200x600 button and no more than 30 text lines of ALL SIZES and COLORS. Unless your sig is for a GFY top banner sponsor, then you may use a 6240x4800 instead of a 1024x800. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2002
Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: Location: isN'T everything
Posts: 5,394
|
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
__________________
SIG TOO SMALL! Maximum 1200x600 button and no more than 30 text lines of ALL SIZES and COLORS. Unless your sig is for a GFY top banner sponsor, then you may use a 6240x4800 instead of a 1024x800. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Sep 2003
Posts: 1,650
|
just include it.
<?php include 'header.php'; ?> the header.php will just be html code probably, a real simple mod. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jan 2001
Location: Yo, Philly!
Posts: 1,202
|
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Aug 2004
Location: at home! ICQ 199579013
Posts: 366
|
Quote:
![]()
__________________
![]() Promote Lady Sonia and earn 60% on sign-up and 60% on rebills! ![]() ^^ Weekly CCBill Payouts - Hosted Galleries - Promo Content - Free Hosting ^^ ^^ No Cross Sells - No Traffic Leaks - 100% Exclusive Content! ^^ |
|
![]() |
![]() ![]() ![]() ![]() ![]() |