Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Tags > Re: Help create...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 386 of 439
Post > Topic >>

Re: Help create a tag that will open a php file

by "Jim Michaels" <jmichae3@[EMAIL PROTECTED] > Feb 4, 2006 at 12:25 AM

"jon" <jon@[EMAIL PROTECTED]
> wrote in message 
news:Kkhuf.284$WY5.51@[EMAIL PROTECTED]
>
> "David Dorward" <dorward@[EMAIL PROTECTED]
> wrote in message
> news:dpc0gh$ihs$1$830fa17d@[EMAIL PROTECTED]
>> jon wrote:
>>
>> > Can anyone show me what type of html and php codes are need to have a
> user
>> > click on the graphics and then it will open a php file.
>>
>> A regular link with an image in it.
>>
>> alt=""? That doesn't look like a very good alternative to an image that

>> is
>> the only content of a link. Based on the filename I'm guessing you have

>> an
>> RSS button (a graphic with the letters RSS on it), in which case the 
>> value
>> of the alt attribute should be "RSS".
> Ok, your right about that .
>
>> > 2)<a href="http://www.test/com/forum/rss.php"
target="_blank">
>>
>> Foisting new windows on users isn't a very good idea. Its difficult to
>> override, and isn't always noticed (why isn't my back button working?)
> Ok, good suggestion.
>
>> Your problem is caused by an error in the PHP (which you haven't shown
> us),
>> not the HTML.
>>
> Ok, I don't want to include the whole php file because it is fairly long

> but
> it basically is a real simple syndication file of a site on the web with
a
> simple include statement. When I try to validate the rss file it show no
> errors. Here is how it looks.
> <html>
> <head>
> <title>test</title>
> <body>
> <?php
> include('/path to the .rss');

There's your problem right there.  You don't include your RSS feed as PHP 
code.  It won't execute.
Try using readfile('/path to the .rss'); instead on that file if you want
to 
output it to the browser.
include and include_once is used for including PHP code.


> ?>
> </body>
> </html>
>
>




 6 Posts in Topic:
Help create a tag that will open a php file
"jon" <jon@[  2006-01-02 17:47:48 
Re: Help create a tag that will open a php file
David Dorward <dorward  2006-01-02 19:54:39 
Re: Help create a tag that will open a php file
"jon" <jon@[  2006-01-02 21:56:58 
Re: Help create a tag that will open a php file
"--Fred--" <  2006-01-04 16:32:48 
Re: Help create a tag that will open a php file
"Jim Michaels"   2006-02-04 00:25:27 
Re: Help create a tag that will open a php file
"Jim Michaels"   2006-02-04 00:20:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 1:42:21 CDT 2008.