| | |||||
| ||||||||
| Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms. |
![]() | NamePros Design Contests | Forum Sponsorship |
| Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest) | ||
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jan 2009
Posts: 174
![]() | help with css 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
__________________ DSM Showcase - A website dedicated to DSM performance modifications For Sale: ProjectClutch.com (Make an offer) |
| | |
| | #2 (permalink) |
| NamePros Regular Join Date: Oct 2006 Location: U.S.
Posts: 413
![]() ![]() ![]() | 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 by FathomJH; 02-23-2009 at 04:19 PM.
Reason: none
|
| | |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Jan 2009
Posts: 174
![]() | 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?
__________________ DSM Showcase - A website dedicated to DSM performance modifications For Sale: ProjectClutch.com (Make an offer) |
| | |
| | #4 (permalink) |
| NamePros Regular Join Date: Oct 2006 Location: U.S.
Posts: 413
![]() ![]() ![]() | You got it 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. |
| | |
| | THREAD STARTER #5 (permalink) |
| NamePros Member Join Date: Jan 2009
Posts: 174
![]() | thanks a lot!
__________________ DSM Showcase - A website dedicated to DSM performance modifications For Sale: ProjectClutch.com (Make an offer) |
| | |
| | THREAD STARTER #6 (permalink) |
| NamePros Member Join Date: Jan 2009
Posts: 174
![]() | 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?
__________________ DSM Showcase - A website dedicated to DSM performance modifications For Sale: ProjectClutch.com (Make an offer) |
| | |
| | #7 (permalink) |
| NamePros Regular Join Date: Oct 2006 Location: U.S.
Posts: 413
![]() ![]() ![]() | 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 by FathomJH; 02-26-2009 at 01:45 PM.
Reason: moo
|
| | |
| | THREAD STARTER #8 (permalink) |
| NamePros Member Join Date: Jan 2009
Posts: 174
![]() | yeah thats probably it since i put it in a folder called php EDIT: Thanks so much!! it works!
__________________ DSM Showcase - A website dedicated to DSM performance modifications For Sale: ProjectClutch.com (Make an offer)
Last edited by jwahl16; 02-26-2009 at 02:10 PM.
|
| | |