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!

Friday, September 23, 2005

Server Side Includes (SSI)

I am trying to get SSI to work on my site. It should be a simple thing but i am having a hard time to make it work!

How the hell do i include a php or asp script in the SSI? Made a search on Google and all results say the same thing: <!-- #include file="test.txt" --> Yeh i know that!

But when i change it to <!-- #include file="test.asp" --> it doesnt work. Nothing is displayed on the screen. And when you view the source code, you can see the actual php script in text format. Not very nice, is it?

Friday, September 16, 2005

My first ever blog

Well i wanted to have my own space on the web, something which is simple to use. I dont want to be doing more html. I do that enough at work!

I need to be able to write a few words, upload my pictures (i got loads of them) and easily manage my files.

Javed recommended that i use flickr for the fotos and i must admit that it really good (thx bro).

Im uploading more pix now, so i'll write later.

Cheers!