473,396 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

external HTML code in all websites

5
Hello everybody,

so i need some hints where to start at...

i want to create website, which generates some text, for example everyday this text will be diffrent... and i need to provide some code to everyone who wants use this text in their own websites... essence is that this text must be inlined in other websites in some way like PURE HTML and search engines would be able to index this text!!! so i can't use <iframe src='http://someaddress.com/mypagewithtext.aspx'>, i can't use any javascript too, becouse everything that is inside <script> tags woun't be indexed by search engines....

i need server side scipting in this case yeah? and i need some diffrent versions of code (which get my generated text in some way) for php, asp.net, jsp an etc.

i have tried to do soomething like this: i generate some xml, and this xml is on my server, this xml i can renew without any troubles.... also i provide some short code fragments (php, asp.net, jsp) which reads that xml on my server, but i encoutered with security problem, becouse let's say most php servers is configured to deny remote file access, so i can't do something like (fopen('http://someaddress.com/mypagewithtext.aspx', r)).... :( and i can't expect from everyone whou wants use my code to change server settings...

maby exists some excelent solution for my problem and i can't find it???

thanks
Jan 5 '08 #1
6 1785
Hello Sir/Madam,

I have solution of your Problem.

1.if u change ur text then use Time check in asp page that display ur text differently and take ur test from database.
2.if u give ur URL then you use Ur database file connection url.
3.One solution is this u generate time check code and type static text in a seperate file and folder.And give you file source to others to use in their own website.
For further information Contact me.

thankx
Jan 6 '08 #2
pbmods
5,821 Expert 4TB
Heya, Ambeer.

What server-side language do you typically work with?
Jan 6 '08 #3
garrow
32
for php you can use something similar to this

[PHP]$xml = simplexml_load_file("http://www.myserver.com/wow.xml");
foreach ($xml->thing as $thing) {
echo "<p>" . $thing . "</p>";
}[/PHP]


XML file
[HTML]<xml>
<thing>im a thing</thing>
<thing>im another thing</thing>
<thing>im a third thing</thing>
</xml>[/HTML]


Im sure there are other functions or libraries in other languages.
Jan 7 '08 #4
ambeer
5
for php you can use something similar to this

[PHP]$xml = simplexml_load_file("http://www.myserver.com/wow.xml");
foreach ($xml->thing as $thing) {
echo "<p>" . $thing . "</p>";
}[/PHP]


XML file
[HTML]<xml>
<thing>im a thing</thing>
<thing>im another thing</thing>
<thing>im a third thing</thing>
</xml>[/HTML]


Im sure there are other functions or libraries in other languages.
like i have noteced before


have tried to do soomething like this: i generate some xml, and this xml is on my server, this xml i can renew without any troubles.... also i provide some short code fragments (php, asp.net, jsp) which reads that xml on my server, but i encoutered with security problem, becouse let's say most php servers is configured to deny remote file access, so i can't do something like (fopen('http://someaddress.com/mypagewithtext.aspx', r)).... :(

it's the same problem with simplexml_load_file(url)
Jan 7 '08 #5
ambeer
5
Heya, Ambeer.

What server-side language do you typically work with?
webpage which generates text i want to write with asp.net 2.0 but it doesn't matter yes?

That generated text access and display as html must be able by php, jsp, asp.net etc...
Jan 7 '08 #6
In PHP you can use fsockopen instead of fopen. This works even when allow_url_fopen is disabled. You setup a connection write the headers, then you can use the file handle with fread functions if you want.

Example #1 on this page should be all you need http://us.php.net/manual/en/function.fsockopen.php to do it on PHP.

This probably isn't the forum for this question. You should repeat the question in ASP and JSP forums to get answers in those two languages.
Jan 7 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: Don Wash | last post by:
Hi All! First of all I would like to say that VS.NET is one of the finest IDE I've used in years. It really helps me code quickly. Workspace management using auto hide windows, minimizing and...
6
by: wASP | last post by:
Hello everyone, I'm new to C# and ASP.NET, so pardon my stupidity on this one. I'm having a problem with referencing methods/functions external to a class member function. My code is as...
4
by: orware | last post by:
Hi! This is my first post...and when I begin working on this project, it will also be my first PHP project! I do have some programming experience from my first year at college, but that was in Scheme...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
7
by: Mariusf | last post by:
I am a novice Perl programmer and need to change a perl script that I use to create web pages with thumbnail images and some text. Currently the script created a web page for each artist / category...
2
by: Big Moxy | last post by:
Can I define a <td></tdcell so that it will display the content from some URL (http://yoursite.com)? Thank you!
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
4
by: Mark B | last post by:
I have a on-the-fly created image that is something of a performance badge or emblem to reflect each salesperson's performance. The image includes their grade "A+" and their sales "650 K" embedded...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.