|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi,
Something that would be really useful for a new project im working on would be to have automated browser titles using some php code in the <title> tags. The only way I can think of doing this is by having the php code read the url im using for navigation, e.g. /windows/atari2600/ and use that data, edit it and have it display as 'Windows > Atari 2600' Has this kind of thing been done before? are there any other common ways of doing this? Also are there any tutorials around? Thanks! |
| Sponsored Links |
|
|
|
|||||
|
Assuming you have a file located in the www/windows/atari2600 directory, and the URL is http://www.domain.com/windows/atari2600 here is a possible solution:
PHP Code:
Quote:
PHP Code:
$dir[1] = atari2600 Then a simple: PHP Code:
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall Last edited by John; 09-25-2007 at 11:57 PM. |
|
|||
|
You could automate that even more and do this
PHP Code:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial - An Internet browser! | travy92 | VB Tutorials | 8 | 02-17-2008 10:10 PM |
| Most Used Browser | Saint | Website Design | 54 | 07-17-2007 08:28 PM |
| Importance of title tag | DevilsCharm | Search Engine Optimization | 2 | 04-23-2007 05:47 PM |
| Visual Studio 2005 and Windows Vista | Jordan | General Programming | 3 | 01-22-2007 04:21 PM |
| OidView Pro MIB Browser 2.7 | Kernel | Software Development Tools | 0 | 09-28-2006 08:12 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 97%