OK, first off I admit I don't have clue about JAVA. I am a newbie noknow :)
I want to launch an affiliate program, where publishers can include configurable feed from my site.
Generation of the code in PHP is done, so publishers could simply ad
<?php
include "http://mysite.com/ad.php?n=5&o=h&w=460&bgc=white&bc=lightgray&afid=4584& etc.etc...";
?>
to their code. Of course this only works for PHP publishers. ASP cannot handle external includes (so I am told), and I
would also hate to rule out HTML pages.
So, is there a (simple) way to solve this with JAVA? I would appreciate any help to point me in the right direction.
Thanks,
Marsel
Roedy Green - 13 Oct 2007 08:08 GMT
><?php
>include "http://mysite.com/ad.php?n=5&o=h&w=460&bgc=white&bc=lightgray&afid=4584& etc.etc...";
[quoted text clipped - 4 lines]
>
>So, is there a (simple) way to solve this with JAVA? I would appreciate any help to point me in the right direction.
You can embed links in HTML, or Java Applets or Servlets. However,
bald PHP code itself is not going to be any use inside a Java
program.
To make it useful, you would need to create a C++ wrapper around your
code, and JNI glue so that you could use your PHP api from Java.
See http://mindprod.com/jgloss/jni.html
That is fairly tricky. You need someone who understands PHP, C++,
Java and JNI.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Robert Larsen - 17 Oct 2007 08:38 GMT
> <?php
> include "http://mysite.com/ad.php?n=5&o=h&w=460&bgc=white&bc=lightgray&afid=4584& etc.etc...";
> ?>
WOW !!
Do you think you can get people to do that ??
They will have to trust you an awful lot.
Randy Webb - 17 Oct 2007 09:28 GMT
Robert Larsen said the following on 10/17/2007 3:38 AM:
>> <?php
>> include "http://mysite.com/ad.php?n=5&o=h&w=460&bgc=white&bc=lightgray&afid=4584& etc.etc...";
[quoted text clipped - 3 lines]
> Do you think you can get people to do that ??
> They will have to trust you an awful lot.
Only if you equate stupid and trust :)

Signature
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/