| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 579
![]() ![]() | 2 PHP questions Hey just got a couple of questions. 1. I have billions of pages on my server and I guess it's time I organised them. However, they all need the "head.php" and the "foot.php". So how can I organise the files into folders and still use the php 'include' function. 2. My logo on my site is a link to the homepage. How can I have it as a link without following my CSS link properties (it underlines when on hover). I've tried assigning it an ID without text-decoration and also used the same method as the attribute 'style' to the actual <img> element. Thanks
__________________ SQL Dumpster - SQL Database Dumps and Resources |
| |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1. put an absolute link in the include function (i.e. www.abcxyz.com/header.php rather than header.php) 2. Not a php question, but w/e lol. try making a new custom CSS style for images and then assign it to the image in the html file. this way (i think, not a css expert) itll override the generic hyperlink code.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | THREAD STARTER #3 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 579
![]() ![]() | 1. Didn't work 2. The links in 'head.php' will not work unless - Is it a good idea to change the links in the 'head' with the following example: Should: index.php be www.whatever.com/index.php?
__________________ SQL Dumpster - SQL Database Dumps and Resources |
| |
| | #4 (permalink) | ||||
| NamePros Regular Join Date: Aug 2005
Posts: 214
![]() | Can you dump the source of one of your pages here... So we can see how your doing the include? PHP Code: on the CSS issue, I don't have a clue.
__________________ OnlineGames.net | ||||
| |
| | THREAD STARTER #5 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 579
![]() ![]() | Sorry, I got 1 and 2 wrong way round >.< Should I use the URL or the web root for includes?
__________________ SQL Dumpster - SQL Database Dumps and Resources |
| |
| | THREAD STARTER #8 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 579
![]() ![]() | Thanks guys. Just stuck on the image/link thing now
__________________ SQL Dumpster - SQL Database Dumps and Resources |
| |
| | #9 (permalink) | ||||
| NamePros Regular Join Date: Aug 2005
Posts: 214
![]() |
PHP Code: PHP Code: ????: NamePros.com http://www.namepros.com/showthread.php?t=125307 Both will work. The first method is slower, because PHP has to make a request to resolve the domain. However, it's portable. If you want to go with the second method, do this, it's fast and is portable for when/if you change hosts. PHP Code:
__________________ OnlineGames.net | ||||
| |
| | #10 (permalink) | ||||
| Senior Member Join Date: Jun 2003 Location: Naperville Illinois
Posts: 1,786
![]() ![]() ![]() ![]() | using an http request will not always work. If you have variables being set in the header.php file that you want to be accessible by the current page, you won't be able to use them.
__________________
| ||||
| |
| | #11 (permalink) | ||||
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! | ||||
| |
| | #12 (permalink) | ||||
| NamePros Regular Join Date: Aug 2005
Posts: 214
![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=125307 Okay, scratch that suggestion...
__________________ OnlineGames.net | ||||
| |
| | THREAD STARTER #13 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 579
![]() ![]() | Still need help with this CSS thing. www.darkfx.co.uk You'll see what I mean if you hover over the logo. Thanks
__________________ SQL Dumpster - SQL Database Dumps and Resources |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial: Getting started with PHP (The Basics) | deadserious | Webmaster Tutorials | 60 | 11-17-2007 11:35 AM |
| Googlism - What does google think of you? | deadserious | The Break Room | 55 | 12-15-2005 09:09 AM |
| RSS (PHP and google) questions | traderone | Web Design Discussion | 8 | 07-28-2005 02:38 PM |