Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

Newbie question: Include external files

Thread view: 
Marsel - 12 Oct 2007 17:55 GMT
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/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.