Tuesday, September 27, 2005

The solution to the SSI problem

Well i found out how to make SSI display an asp or php script now. The guys from my hosting company moved my query from Support Level 1 to Level 2 and then Level 3 but even then they couldnt find a solution and to make things simpler, they just said that it cant be done. LoL!

Because we are dealing with a dynamic file (the asp or php script), we need to tell the server that we are passing a script and that it shouldnt render it as TEXT! We do not want our visitors to see what our script is doing, do we? We are only interested in the results.

So we just place our asp or php file in the cgi-bin folder and there you go, all done and working! We dont use the include anymore but replace it with exec (command line for execution of a script):

<!-- #exec cgi="cgi-bin/test.asp" -->

Thats it folks!

No comments: