Jump to content

Rahnetjera

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Rahnetjera's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [code] <?php ///   Header.php ?> <html><head>Head specific content here</head> <title>Page Title</title> <body><table 1>Banner upper barlinks etc</table> <table 2>Left side nav bar</table> <?php /// whatever page index for arguement sake. // index.php include "header.php";  // includes your upper logo, and left hand navmenu ?> <table>Main site content</table> <?php include "footer.php";  // includes right hand nav menu and lower site info ?> <?php // footer.php ?> <table 3>Right hand menu</table> <table 4>bottom site specs/author shouts whatever</table> </body></html> [/code] From creating a header.php and footer.php you can simply include those two at the start and end of your script and keep all pages uniform. I know the explanation was haphazard, but I hope I gave you some inspiration.
  2. [!--quoteo(post=362431:date=Apr 6 2006, 10:25 PM:name=script)--][div class=\'quotetop\']QUOTE(script @ Apr 6 2006, 10:25 PM) [snapback]362431[/snapback][/div][div class=\'quotemain\'][!--quotec--] .../newsarticle.php/54 list($newsart) = explode('/', substr($PATH_INFO,1)); [/quote] I'm gonna take a stab at this. $PATH_INFO = "<SOME DIR>/newsarticle.php/"; # WITH TRAILING / ? using explode() you are splitting Full path at each instance of '/' Win ex: C:\Program FIles\php\newsarticle.php gives three strings Program FIles php and newsarticle.php and finally the 54 substr() is dropping the last byte of $PATH_INFO which is possibly your trailing /
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.