CSS doesn't work after convering to .PHP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: CSS doesn't work after convering to .PHP (
/showthread.php?tid=403498)
CSS doesn't work after convering to .PHP -
Jernu - 30.12.2012
Okay guys, what happened was, I got everything working.. I then pressed "File > Save as... > index.php" and deleted the index.html
I removed a bit of code from the index.php and saved it as "header.inc.php" in the files "inc > incfiles > here" and added
"<? include("inc/incfiles/header.inc.php"); ?>" at the top of the index.php file but the CSS isn't showing.
Can someone help me or add me on skype and help me over Teamviewer?
Re: CSS doesn't work after convering to .PHP -
BlackBank - 30.12.2012
Change <? to <?php...
Re: CSS doesn't work after convering to .PHP -
thefatshizms - 30.12.2012
Quote:
Originally Posted by BlackBank3
Change <? to <?php...
|
You don't have to put the php there. It's not required
Re: CSS doesn't work after convering to .PHP -
BlackBank - 30.12.2012
Quote:
Originally Posted by thefatshizms
You don't have to put the php there. It's not required
|
Some webhostings don't have enable the 'no need for "php" after bracket'.
Re: CSS doesn't work after convering to .PHP -
GWMPT - 30.12.2012
---remove
Re: CSS doesn't work after convering to .PHP -
SchurmanCQC - 30.12.2012
Cut and paste the css into a file called something like "main.css"
Then in the <head> of the HTML in your PHP file, do this:
<link rel="stylesheet" type="text/css" href="main.css" media="screen" />
EDIT: And yes, ALWAYS use <?php
I believe it is in good practice as most PHP interpreters look for that.