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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-04-2004, 01:22 AM   #1
Dravyk
Confirmed User
 
Join Date: Jan 2001
Location: Yo, Philly!
Posts: 1,202
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.
Dravyk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2004, 01:23 AM   #2
Triple 6
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.
Triple 6 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2004, 01:25 AM   #3
Triple 6
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.
Triple 6 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2004, 01:45 AM   #4
{fusion}
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.
{fusion} is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2004, 02:00 AM   #5
Dravyk
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!
Dravyk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2004, 02:30 AM   #6
masterE
Confirmed User
 
Join Date: Aug 2004
Location: at home! ICQ 199579013
Posts: 366
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.
__________________

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! ^^
masterE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.