Considering I'm not an ASP user (phew!), I really won't have an idea on
how to do that directly in ASP.
Here's an interesting idea that would require a bit of extra work:
Make a php script that all it does is pass through a random ad (or however
that works), then all you have to do in the ASP source code (or HTML,
basically) would be this:
<img src=http://yoursite/yourpath/adfile.php?x=480&y=60> (the x and y
could be used if you have more than one ad size).
The script would then grab an ad file, print out a header line with a
content type of img/gif or whatever applicable, then pass the image file
through (with readfile).
Your thoughts?
-Dash
"Let me assure you that to us here at First National, you're not just a
number. You're two numbers, a dash, three more numbers, another dash
and another number."
-- James Estes
On Sat, 26 Oct 2002, Jason Porembski wrote:
> No definetly not in the same file. But this is the current problem that
> I am facing. We are in the midst of putting ads on our sites. (I know I
> know no popups thankfully =) ) Fortunetly those ads use PHP and most of
> our sites are run with PHP very tightly except ONE. The admin of that
> page refuses to use PHP and is in love with ASP. I need to run some PHP
> code from within ASP. How can this be done? My first idea was to use
> <!--#exec cgi="filename.php" --> but I noticed that ASP doesn't parse
> that. Any ideas?
>
>
> -----Original Message-----
> From: Dash McElroy [mailto:php@;l1te.net]
> Sent: Saturday, October 26, 2002 9:46 PM
> To: Jason Porembski
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] <Script language=php???
>
>
> I just took a look in my php.ini file and I didn't see any restrictions
> about the <script language="php"> syntax. Is this syntax in a .php (or
> php
> parsed) file?
>
> Also, as to executing PHP code in an ASP page, I'm not sure how possible
> that is - unless all you need to do is to do an 'include' (if that
> works). I'm hoping you don't want PHP and ASP code in the same file...
>
> Good luck.
>
> -Dash
>
> Bureaucrats cut red tape -- lengthwise.
>
> On Fri, 25 Oct 2002, Jason Porembski wrote:
>
> > Hey folks. I am attempting to run PHP code with <script
> > language="php"> and it doesn't work. Any ideas as to why and how I
> > can fix that? Also what is the best way to run a snippet of PHP code
> > in an ASP page? Thanks in advance.
> >
> > Jason "Gluten Mifflin" Porembski
> > http://www.world-gaming.com
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php