I have a a probelm with this function ...
This is take from my functions.php file
What i want is to change the
To an variable like
and set it in a nother page to call.
like..
I cant change it like iw ant with my curretn code it says invalid fuunction foreach.Any ideas?
[/code]
This is take from my functions.php file
| Code: |
| //3 OUTPUTS THE CODE WITH LINES NUMBERS( TABLE) FROM FILES
function code (){ $lines=file("/www/xampp/htdocs/network/db/code.php"); echo "<table border=0><tr><td>\n"; foreach ($lines as $line_num => $line) { echo "$line_num<br>\n"; } echo "</td><td>\n"; foreach ($lines as $line_num => $line) { echo htmlspecialchars($line)."<br />\n"; } echo "</td></tr></table>\n"; } |
What i want is to change the
| Code: |
| $lines=file("[u]/www/xampp/htdocs/network/db/code.php[/u]"); |
To an variable like
| Code: |
| $codefile |
like..
| Code: |
| <?
include"functions.php"; $codefile="script1.php"; echo code();?> |
I cant change it like iw ant with my curretn code it says invalid fuunction foreach.Any ideas?
[/code]
