| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Dec 2004 Location: Burlington, Vermont
Posts: 1,048
![]() ![]() ![]() | Help needed, possibly with ASP. I have a site with a number of pages, and want to sell a banner ad on each page (not separately, just one package deal). Instead of having to go through and update each page every time I sell the space, I would like to have code on the pages that pulls the ad (the image, url to link to, alt tag, title tag) from another file. I don't want to use an iframe because that would lessen the value of the banner because it wouldn't look like a link to the search engines, and iframes aren't great for SEO anyway. ????: NamePros.com http://www.namepros.com/programming/298059-help-needed-possibly-with-asp.html I think the above can be done with ASP, but I'm not sure how. Rep for the one who can solve my problem. Update: Would an Ajax include script do this? I know it would load the info, but would also have to appear like it's actually on the page it is being loaded to by the search engines. |
| |
| | #2 (permalink) | ||||
| Senior Member Join Date: Dec 2006 Location: England
Posts: 1,568
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=298059 Anyway, all you want here is a simple php include, asp will also do this but php is more widely supported. PHP Code: Matt
Last edited by Matthew.; 02-24-2007 at 08:48 AM.
| ||||
| |
| | #4 (permalink) | ||||
| Senior Member Join Date: Dec 2006 Location: England
Posts: 1,568
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Thanks for the rep btw edit: Remember your file needs to be a *.php or you need to add a .htaccess rule to allow php to parse in *.htm(l) files. Matt | ||||
| |
| | THREAD STARTER #5 (permalink) |
| Senior Member Join Date: Dec 2004 Location: Burlington, Vermont
Posts: 1,048
![]() ![]() ![]() | The files already are php, so that's good. One last question (though that's not a promise): I want to have the file that is pulled be only the size of the image (so 468x60). How do I get it to show appropriately like that? |
| |
| | #6 (permalink) | ||||
| Senior Member Join Date: Dec 2006 Location: England
Posts: 1,568
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
PHP Code: PHP Code: HTML Code: <strong>Hello <em>Maverick</em></strong> Hope that make sense, if it doesn't, since its sometimes hard to get things from explanations then give it a try Matt | ||||
| |
| | THREAD STARTER #7 (permalink) |
| Senior Member Join Date: Dec 2004 Location: Burlington, Vermont
Posts: 1,048
![]() ![]() ![]() | Well, it makes sense but I'm getting an error: Warning: include(/ad.txt) [function.include]: failed to open stream: No such file or directory in /home/encentra/public_html/hosting-guide.php on line 19 Any thoughts? |
| |
| | #8 (permalink) | ||||
| Senior Member Join Date: Dec 2006 Location: England
Posts: 1,568
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | The error means what it says ![]()
![]() ????: NamePros.com http://www.namepros.com/showthread.php?t=298059 Matt | ||||
| |
| | THREAD STARTER #9 (permalink) | ||||
| Senior Member Join Date: Dec 2004 Location: Burlington, Vermont
Posts: 1,048
![]() ![]() ![]() |
Thanks again for your help. | ||||
| |
| | THREAD STARTER #11 (permalink) | ||||
| Senior Member Join Date: Dec 2004 Location: Burlington, Vermont
Posts: 1,048
![]() ![]() ![]() |
right back at 'cha.????: NamePros.com http://www.namepros.com/showthread.php?t=298059 actually, thanks. I thought it would know the top was in public_html. | ||||
| |