Page 2 of 2

Posted: Tue Oct 28, 2003 10:54 pm
by m3rajk
kendall wrote:evilMind,

I kinda know what CGI and MODULE's are i just wanted to know what was meant by it in relation to PHP

m3rajk,

AH....thanks i think you made it a bit clearer for me....

so your saying that all i need to do is insert

Code: Select all

<script language="php">
<?php
php code here
?>
</script>
then how come...

Code: Select all

<script language="php" runat="www.onlinetnt.com" src='file.php'></script>
doesn't work??? further more...WTF is the attribute 'runat' ??? i dont see it in the 3WC documentation. this is something that 'popped' up in dreamweaver coding hints.

JAM,

ma man Jamm....believe it or not seeing that all else failed i was attempting this method because all i want people to do is just insert one small tag that will link the banners to there pages and not have to insert a large bunch of code with <script><?php ?></script> method...i'm having a bit of a time understanding how it actually works but im still trying to figure it out myself...


Kendall
because the second is trying to use a linked script. what i showed has the code in it.

also, you need to have the cgi module for it to work.. i think in either way

Posted: Wed Oct 29, 2003 1:30 pm
by kendall
m3rajk,

well i dont no if my host has this setting bu i was able to

Code: Select all

<script src="file.php" runat="server"></script>
and get it working...what i had to do was in the file.php

Code: Select all

<?php
// process code

<!--
document.write(<?php output ?>);
-->
?>
so to speak thus i needed the javascript to output the php result image...

i have a question though...how do you guys handle HTML advertisement banners?

do you output to an <iframe>? or something? how do you guys adjust your scripts to handle HTML and IMG type banners...for instance the one above it has links and stuff format with html tags...how'd he do that??

Kendall

Posted: Wed Oct 29, 2003 2:16 pm
by m3rajk
i thought about ad banners on the site i made for a demo site if i ever go public (which would mean i need to stop adding more features and other embellishments, or keep this for that and find a set without any of them not working 100% to use live) but decided against it for my purposes... it just strikes me like it's not worth it for me. you get so little it's be more of a hassle than it's worth, and people would liek the site better without ads, thus the site would grow faster, andmore people would spend enough time there that they might decide it's worth it to upgrade to the second level i worked in that would be for ppl that pay for those extra features.

Posted: Wed Oct 29, 2003 2:48 pm
by kendall
m3rajk,

Wow man...thats deep...i dont no what to say man...got me feeling like im kawt int he matrix

...wow

Kendall

Posted: Wed Oct 29, 2003 6:04 pm
by JAM
kendall wrote: ...
i have a question though...how do you guys handle HTML advertisement banners?

do you output to an <iframe>? or something? how do you guys adjust your scripts to handle HTML and IMG type banners...for instance the one above it has links and stuff format with html tags...how'd he do that??

Kendall
Sorry for the late replies... I think I missed some discussion above.

When I had to work with banners, I did dynamic images only. Meaning; I used the GD lib to actually create the text on the fly, and then display it.

Not the same as html-banners (I think I'd use iframes for that purpose), but I wanted to mention it.

Posted: Thu Oct 30, 2003 8:17 am
by kendall
JAM,

ok thanks...im re-visiting my approach on this banner system im scripting...will let you no how it goes