[advanced search]
Results from the most recent live auction are here.
22 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Domain Name Industry Newsletter
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 05-28-2006, 04:53 PM   · #1
WherezHost
NamePros Member
 
Trader Rating: (8)
Join Date: Dec 2005
Posts: 189
NP$: 0.00 (Donate)
WherezHost will become famous soon enough
Php - Css

Yo i got a CSS script from another script and wanna insert it in ma php page. Im tryin to include it in ma php page with this code
PHP Code:
<?php

include 'style.css';

?>


But wen i go to the site @ www.nextlevelstuff.info it displays all the CSS code instead of applying it.
Safe please help me coz im totally gonners @ php safe


Please register or log-in into NamePros to hide ads
WherezHost is offline   Reply With Quote
Old 05-28-2006, 05:07 PM   · #2
Dan
Buy my domains.
 
Dan's Avatar
 
Name: Dan
Trader Rating: (63)
Join Date: Feb 2006
Posts: 2,801
NP$: 54.00 (Donate)
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
Autism Autism Autism Autism Autism Autism Autism
1. CSS isn't a script. :X
2. You don't include it with PHP. (or don't need to.)

<link rel="stylesheet" href="style.css" /> is how you do it.
You could echo that.

Also, if you are going to include a CSS file and it is how its supposed to be in a CSS file (no <style> tags), then you would do:

<style type="text/css">
<?php include('style.css'); ?>
</style>
Dan is offline   Reply With Quote
Old 05-28-2006, 05:55 PM   · #3
nasaboy007
NamePros Regular
 
Location: mysitememberships.com
Trader Rating: (32)
Join Date: Jul 2005
Posts: 925
NP$: 4800.90 (Donate)
nasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to behold
yeah there is no reason to use php include functions to link a css style sheet. as dan already mentioned, simply place <link rel="stylesheet" href="style.css" /> in the <head> tags of every html page. if u dont wanna go thru editin lots of pages, then mebbe u cud have another file called head.php or something where u cud put the exact code of what the <head> tags say and then just use the <?php include('head.php'); ?> throughout every page that u have so that u make a change to that one page and it is made on all the pages.
__________________
nasaboy007 is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
EscrowDNS RealTechNetwork Hunting Moon
Advertise your business at NamePros
All times are GMT -7. The time now is 11:42 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0