Public feed #723980

Jeremy

public php v1 · immutable
Raw Edit
·published 2007-10-03 06:25 UTC
rendered paste body
<?phpfunction curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") {  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else {  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL;}?>Testing:pageurl: <?php echo curPageURL(); ?><br>permalink: <?php the_permalink() ?> <?php if ('<?php echo curPageURL(); ?>' == '<?php the_permalink() ?>') { ?>           <?php the_excerpt() ?> <p><a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" title="Read the rest of this entry">Read The Full Article</a></p> <?php } else { ?>    <?php the_content() ?> <?php } ?>