Dynadot โ€” .com Transfer

Help with css

Spaceship Spaceship
Watch

jwahl16

Established Member
Impact
0
ok so on my website saphiregames.com

if you look at my source code you will see this big long script for a search engine code. is there a way to put this in to css or something so it doesn't take up all that space on my page (it makes editing a hassle)

thanks guys
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
You could insert the code with php by creating a separate file for the search engine code. Then include (aka drop) the file into your main code using <?php include(' '); ?>.
 
Last edited:
0
•••
ok this is kind of giberish to me but let me try to figure this out.

i copy code and paste it in to notepade saved as freefind.php or something. then on my site it type in <?php include9'freefind.php');?>

would that be all i need?
 
0
•••
You got it :hehe:

Take your code and save it into a file, in your case freefind.php. Then in your regular web file, wherever you want the code to appear, type:

<?php

include( 'freefind.php' );

?>

In order for the code to work, you have to save the file as index.php rather than index.html so the server can recognize the php code. Hope this helps.
 
0
•••
thanks a lot!
 
0
•••
ok so i was going to put this in for all my pages. i put it in saphiregames.com/vector-runner.php

i get this error:

Warning: main(freefind.php) [function.main]: failed to open stream: No such file or directory in /home/www/saphiregames.com/vector-runner.php on line 10

Warning: main() [function.include]: Failed opening 'freefind.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/saphiregames.com/vector-runner.php on line 10



is that because freefind.php is in a folder within my directory?
 
0
•••
Sorry about the delayed reply,

It looks like the php interpreter could not open your file. Is freefind.php located in the correct directory? If it's not in the same folder as the file calling it, you'll have to point to it like:

include( 'folder/freefind.php' );
 
Last edited:
0
•••
yeah thats probably it since i put it in a folder called php


EDIT: Thanks so much!! it works!
 
Last edited:
0
•••
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back