Re: hi
| From: | Ing. Lalka Peter | Date: | Mon, 10 Sep 2001 10:47:51 +0000 |
| Subject: | Re: hi | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66720@lists.php.net to get a copy of this message | ||
and what about this one?
<?echo "<a href=".show_source('source.php').">view
source</a><br>";?>
----- Original Message -----
From: <Lawrence.Sheed@dfait-maeci.gc.ca>
To: <seb@raceshoot.com>; <balaji.ankem@wipro.com>;
<php-general@lists.php.net>
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:seb@raceshoot.com]
> Sent: September 10, 2001 5:30 PM
> To: Balaji Ankem; php-general@lists.php.net
> 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:balaji.ankem@wipro.com]
> Sent: 10 September 2001 10:25
> To: php-general@lists.php.net
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>