Well you can't just have a link to this function.  Make a page like so:

showsource.php
**************************
<?php

        $file="source.php";

        show_source($file);

?>

yourfile.php
**************************

<?php

        echo "<a href=\"showsource.php\">view source</a>";

?>



- seb


-----Original Message-----
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2001 10:25
To: [EMAIL PROTECTED]
Subject: [PHP] hi


Hi, what z wrong in this code??


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

<?php

echo "<a href=\"<?php show_source('source.php')?>\">view
source</a><br/><br/>";

 ?>

>>>>>>>>>>>>>>>>>>>>>>>>>>>

I am getting the following error

Forbidden
You don't have permission to access /< on this server.

---------------------------------------------------------------------------
-----

Apache/1.3.20 Server at ankem.wipro.com Port 80


How to rectify this thing??

Thanks in advance
Regards
-Balaji




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to