1212jtraceur
01-04-2007, 03:35 AM
Hi Everyone,
I'm trying to learn PHP by testing it on my free webspace (memebot). However, I'm having trouble:
Memebot's FAQ says:
Do you support PHP?
Yes, as shebange'ed scripts in the cgi-bin directory (#!/usr/bin/php). Try to make your scripts generate HTML one time, and then have the results be static, like good weblog software, rather than being parsed on each invocation.
You can upload an .htaccess file that uses a RewriteRule to make the cgi-bin transparent to your users. Our wiki uses this.
In addition to putting #!/usr/bin/php, you need to make sure your scripts are CHMOD'ed to 750. Good FTP clients can do this.
Now when I shebang scripts, do I put '#!/usr/bin/php' as the first line in the script? Or is it something I specify when I include a script in another page?
Thanks much,
1212jtraceur
I'm trying to learn PHP by testing it on my free webspace (memebot). However, I'm having trouble:
Memebot's FAQ says:
Do you support PHP?
Yes, as shebange'ed scripts in the cgi-bin directory (#!/usr/bin/php). Try to make your scripts generate HTML one time, and then have the results be static, like good weblog software, rather than being parsed on each invocation.
You can upload an .htaccess file that uses a RewriteRule to make the cgi-bin transparent to your users. Our wiki uses this.
In addition to putting #!/usr/bin/php, you need to make sure your scripts are CHMOD'ed to 750. Good FTP clients can do this.
Now when I shebang scripts, do I put '#!/usr/bin/php' as the first line in the script? Or is it something I specify when I include a script in another page?
Thanks much,
1212jtraceur