Is it possible to include just 1 line of a PHP file?

Why dont you just select that 1 line of the php code and replace the include with it
You could put the line into a new file and then use this code to show that line:
PHP Code:<? include("Link to page here") ?>
Well a way you can kinda do this (on a generated page is)
$line = file("somedir/somefile.htm");
echo $line['15'];
From memoery, i think its the file command at least, i may have it confused im to lazy to check
Basicaly it puts the file contents in to an array split by the lines. so just echo out the array segment of the line you want, in this case line 16 (note array starts at zero so take account of that)
just use
PHP Code:<?php
$file = file("file.php");
eval($file[1]);
?>
Want to hide these adverts? Register an account for free!