Hi,
i came here to see the solution of one of my problems, I was making a banner rotation script for my site so i made a php script which simply opens a txt file and converts all ad links into an array (exploding) and then randomly choose the link to display, this runs perfect but the problems is i am displaying the whole page from Mysql database means all page html data and everything comes from database. to make it clear let me give you example, if you click any link on my site the link will go like this www.xxx.com/display.php?content=1 and in display.php it will access database and find the article with id # 1. so if i place this banner rotation script it does not compiles and comes to the browser uncompiled (client side thing i guess) .
ok, so i was thinking to place the php banner script in cgi directory and call it using javascript cuz javascript is client side programming. My question is how to call php function that is in x.php file located in cgi-bin through Javascript?
I will greatly appriciate this