[!--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 /