RE: [PHP] hi
| From: | Lawrence dot Sheed at dfait-maeci dot gc dot ca | Date: | Mon, 10 Sep 2001 10:19:39 +0000 |
| Subject: | RE: [PHP] hi | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-66715@lists.php.net to get a copy of this message | ||
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