Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Web Wiz ASP mixed with PHP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Web Wiz ASP mixed with PHP

 Post Reply Post Reply
Author
slappyJ View Drop Down
Groupie
Groupie
Avatar

Joined: 28 January 2004
Status: Offline
Points: 178
Post Options Post Options   Thanks (0) Thanks(0)   Quote slappyJ Quote  Post ReplyReply Direct Link To This Post Topic: Web Wiz ASP mixed with PHP
    Posted: 01 November 2007 at 5:42pm

Question:

I recently got my internet host  to move all my files to a hybrid server (one that runs both ASP and PHP). I want to begin running banner ads on my site and the software that I want to use is openads (www.openads.com).
 
Openads runs on PHP...can I insert PHP Openads code into Web Wiz forum code? 
Back to Top
javi712 View Drop Down
Senior Member
Senior Member


Joined: 22 May 2003
Location: United States
Status: Offline
Points: 488
Post Options Post Options   Thanks (0) Thanks(0)   Quote javi712 Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2007 at 7:48pm
Last I heard, you couldn't combine two server-side scripting languages. I'm not a programmer though, so someone else here may have a tweak to allow that. I did google this though and it appears that you can not do that.
Back to Top
slappyJ View Drop Down
Groupie
Groupie
Avatar

Joined: 28 January 2004
Status: Offline
Points: 178
Post Options Post Options   Thanks (0) Thanks(0)   Quote slappyJ Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2007 at 7:56pm
This is a response I got from the openads forum:
 
If your server allows PHP, you can serve Openads on that server. If not, you can host Openads on a PHP server and still serve banners on your ASP website (on the ASP server) by using Javascript, iFrame, XML-RPC, or Image ad tags.
 
Not exaclty sure how to read into this...sounds like it's referring to 2 DIFFERENT servers...not the same hybrid server that allows both ASP and PHP.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2007 at 8:03am
Most Windows web hosts these days will offer support for both ASP, ASP.NET and PHP, so it's not an unusal setup more of standard these days, which is why Windows server 2008 IIS 7 will have better support for PHP.

However, you can not use ASP and PHP in the same file. You can not even use ASP and ASP.NET in the same file and they are both Microsoft technologies.

The best way to get around this type of thing is to use an IFrame so that the PHP page isn't part of the same file as the ASP page.

Also with many ad software products you can use JavaScript to display ads in a page which is not PHP like static HTML page, or ASP and ASP.NET pages.
Back to Top
slappyJ View Drop Down
Groupie
Groupie
Avatar

Joined: 28 January 2004
Status: Offline
Points: 178
Post Options Post Options   Thanks (0) Thanks(0)   Quote slappyJ Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2007 at 6:59pm

Thanks so much for the info -boRg-

What would be the best way to serve ads and provide statistics to advertisers using Web Wiz? Is there anybody out there that uses openads with Web Wiz? I got the idea from this forum about openads so I assume that there are some people using this combination. I'd love to hear from these people.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2007 at 10:47pm
I use OpenAds (phpMyAdsNew) on my sites, and i use iFrames.

Mostly because ive had the odd time where the ads dont work or are slow, and in JavaScript its stopped the whole site from loading, where as with iFrame its just the frame that doesnt load or is slow to load.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.