Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Newbie question: Include external files
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 13th October 15:56
marsel <>
External User
 
Posts: 1
Default Newbie question: Include external files



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=4 584& 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
  Reply With Quote


 


2 13th October 15:56
roedy green
External User
 
Posts: 1
Default Newbie question: Include external files



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.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
  Reply With Quote
3 20th October 16:46
robert larsen
External User
 
Posts: 1
Default Newbie question: Include external files


WOW !!
Do you think you can get people to do that ??
They will have to trust you an awful lot.
  Reply With Quote
4 20th October 16:46
randy webb
External User
 
Posts: 1
Default Newbie question: Include external files


Robert Larsen said the following on 10/17/2007 3:38 AM:

Only if you equate stupid and trust

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


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666