PHP/MySQL/JavaScript question...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Fatal-X
Forum Newbie
Posts: 5
Joined: Wed May 08, 2002 7:46 pm
Location: Cumberland,MD

PHP/MySQL/JavaScript question...

Post 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..
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Errr......

Post 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)
Fatal-X
Forum Newbie
Posts: 5
Joined: Wed May 08, 2002 7:46 pm
Location: Cumberland,MD

Post 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?
Post Reply