Log in

View Full Version : dynamic content output depending on page


AN-net
01-08-2005, 12:43 PM
how would i go about reading a page's content and then output something depending on that content such as googl adsense does or phpadsnew does. anyone know how this is possible?

rake
01-08-2005, 04:27 PM
I've never done it, nor have i thought about it until now, but i guess you could first read the contents of the target file into a variable using fread or file or whatever, then run a regexp to find a certain array of words and display content based on that. Just an idea...

AN-net
01-08-2005, 09:14 PM
I've never done it, nor have i thought about it until now, but i guess you could first read the contents of the target file into a variable using fread or file or whatever, then run a regexp to find a certain array of words and display content based on that. Just an idea...
yeah i was thinking of that, ill look into this and tell my findings;)