and what about this one?

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


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, September 10, 2001 12:19 PM
Subject: RE: [PHP] hi


> It still won't work though.
> (unless show_source is javascript, which I doubt)
>
> You can't embed php in html like that.  HTML is for client side, and they
> aren't running php in their browser.  Browsers generally support
javascript
> or vbscript ECMA style scripting on client side.
>
> If you wanted to show the source for something you can't write a one line
a
> href, you'll have to make it some code.
>
> eg.
>
> sourceme.php
>
> <?php
> show_source('source.php');
> ?>
>
>
> myhtml.html
>
> <a href="sourceme.php">View Source</a><br/><br/>
>
>
> -----Original Message-----
> From: Seb Frost [mailto:[EMAIL PROTECTED]]
> Sent: September 10, 2001 5:30 PM
> To: Balaji Ankem; [EMAIL PROTECTED]
> Subject: RE: [PHP] hi
>
>
> Fixed:
>
> <?php
>
> echo "<a href=\"show_source('source.php')\">view
> source</a><br/><br/>";
>
> ?>
>
> - 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]
>
> --
> 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]
>


-- 
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