Page 1 of 1
PHP/MySQL/JavaScript question...
Posted: Tue Jun 11, 2002 10:11 pm
by Fatal-X
allright.. i was wondering.. i got pretty ugly host right now.. and anyways.. heres what i was wondering.. can i make a call to a php script to my "cgi-server" have the php script get my "news" from the mysql server.. return it to php then return it to javascript somehow then use a
Code: Select all
<script src="http://cgi.trip-fx.com/path/to/script.php?op=shownews" language="javascript"></script>
to print the news somehow? ive been trying different ways but nothings been working.. hopefully somebody can help..
Errr......
Posted: Wed Jun 12, 2002 5:07 am
by BDKR
Reading that made me dizzy!
So let's try to get this straight. The server that's generating the news is on a different machine than the page that is supposed to display it. Is that correct.
How about.....
SERVER A: News
SERVER B: Serves the page that needs to show the news.
Another thing..... What do you need Javascript for? Nothing in your dizzying disertation
mentioned that.
Please clarify so I can help,
Later on,
TRC (BDKR)
Posted: Wed Jun 12, 2002 3:25 pm
by Fatal-X
yea thats right.. sorry bout that.. i knew it all didn't make sence but i was seriously tired last night..
anyways let say..
Server A: Win2k
Server B: RedHat Linux
which is how the servers are setup in my situation..
Available languages on Server A: html, xml..
Available languages on Server B: php, cgi, mysql, xml...
anyways i need to pull news from Server B, and display it on Server A.. and im trying to use PHP/MySQL/Javascript but since i got more than one line of news, The document.write(); wont hold all of it and produces an error..
have any suggestions on what i could do?