YPresence Shutdown

I need to shutdown this facility for a moment. Coz i get report from my hosting company that my account used too much CPU resource. I’m not sure wich proccess or script that make the CPU out of resource, they never tell it. But when i look in server log, YPresence is in the first list that have the bigger hits everyday. But if the problem still occur, i will enable YPresence again. Thanx for using my YPresence Image Generator.

Yahoo! Presence Image Generator

Yahoo Presence Image Generator

Yahoo! Presence Image Generator. This is for you guys, who want to use my Yahoo! Presence Image but don’t have web server to upload it. Insert your Yahoo ID (this is required), your name to be displayed (optional) and alert message (optional) when someone click your Yahoo Image Presence. Then copy the code and paste it to webpage where you want to be appear. Maybe it works in friendster. I don’t know, i don’t test it yet. As long as your webpage suppot iframe, it will be works Read the rest of this entry »

chmod(): Operation not permitted

If you get a warning like chmod(): Operation not permitted
You can use the ftp_site() function to send a CHMOD command through.

CODE:
  1. $ftp_user_name = 'username';
  2. $ftp_user_pass = 'password';
  3. $ftp_server = 'ftp.server.com';
  4.  
  5. $connect = ftp_connect($ftp_server);
  6.  
  7. if (!ftp_login($connect, $ftp_user_name, $ftp_user_pass)) die("Couldn't connect");
  8.  
  9. @ftp_site($connect, 'CHMOD 0777 /public_html/folder_to_chmod/');
  10.  
  11. ... some process ... maybe upload ...
  12.  
  13. @ftp_site($connect, 'CHMOD 0755 /public_html/folder_to_chmod/');
  14. ftp_close($connect);

Remember this is just example, improve it yourself.
Hope this helps someone. You might need this solution if you are on a shared server.

.htaccess: Invalid command

I need temporarily put up an old page on the website. However, for that I need register_globals on. So i set .htaccess the following text:

CODE:
  1. php_value register_globals = 1

But what i got is error page 500. Go to error log and i found this:

CODE:
  1. [Apr 9 08:31:04 2008] [alert] [client xx.xxx.xx.xx] /home/xxx/public_html/.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration
  2. [Apr 9 08:18:51 2008] [alert] [client xx.xxx.xx.xx] /home/xxx/public_html/.htaccess: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

As you can see, i got the same error for php_flag too. What am I missing?
Read the rest of this entry »