| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | 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. 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.
__________________ Vermont SEO Automotive SEO For Sale: Co-Sign.com | Skiny.net | CSIFAQ.com | FuelBank.net | Jibbar.com | |
| |
| | #2 (permalink) | |
| Stud Sausage | Quote:
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 07:48 AM. | |
| |
| | #3 (permalink) |
| Senior Member | Matt, Awesome, and this will make the link appear as if it is on the page to the engines? -- rep on its way. D
__________________ Vermont SEO Automotive SEO For Sale: Co-Sign.com | Skiny.net | CSIFAQ.com | FuelBank.net | Jibbar.com | |
| |
| | #4 (permalink) | |
| Stud Sausage | Quote:
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 | |
| |
| | #5 (permalink) |
| Senior Member | 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?
__________________ Vermont SEO Automotive SEO For Sale: Co-Sign.com | Skiny.net | CSIFAQ.com | FuelBank.net | Jibbar.com | |
| |
| | #6 (permalink) | |
| Stud Sausage | Quote:
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 | |
| |
| | #7 (permalink) |
| Senior Member | 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?
__________________ Vermont SEO Automotive SEO For Sale: Co-Sign.com | Skiny.net | CSIFAQ.com | FuelBank.net | Jibbar.com | |
| |
| | #8 (permalink) | |
| Stud Sausage | The error means what it says ![]() Quote:
![]() Matt | |
| |
| | #9 (permalink) | |
| Senior Member | Quote:
Thanks again for your help.
__________________ Vermont SEO Automotive SEO For Sale: Co-Sign.com | Skiny.net | CSIFAQ.com | FuelBank.net | Jibbar.com | | |
| |
| | #11 (permalink) | |
| Senior Member | Quote:
right back at 'cha.actually, thanks. I thought it would know the top was in public_html.
__________________ Vermont SEO Automotive SEO For Sale: Co-Sign.com | Skiny.net | CSIFAQ.com | FuelBank.net | Jibbar.com | | |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |