Category: Computers and Internet

PHP disable_functions eval base64 horror and others

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to redditShare on MyspaceShare via email

Most websites and web hosts now have their own custom php.ini so as a hosted user, you would be interested in adding some of security to your website , a typical joomla security tip will look like this

open_basedir = /home/users/you/public_html:/tmp
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
open_basedir = /home/users/you/public_html

Ofcourse , if you understand what you are doing, add to the disable functions list any commands you wish php to ignore and not parse, and when u doubt urself about a command, try on php.net/yourcommand and read more about it.

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to redditShare on MyspaceShare via email
 

Office to PDF (Office 2007 Save as PDF) PDF Addin

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to redditShare on MyspaceShare via email

Many wonder how to convert Office files ( word, excel, powerpoint etc .. ) to PDF , and if you do some google search you will find out that there are many many tools to do that, including printer drivers (pdf printer drivers) and all types of upload to website to convert, and shareware, and in the end many will require money payments even for micropayments, one should wonder why would he pay when its legally free and available from Microsoft website itself !

The PDF Addin,

http://www.microsoft.com/downloads/details.aspx?FamilyID=f1fc413c-6d89-4f15-991b-63b07ba5f2e5&displaylang=en

And direct download link is here

This adds a simple Save as PDF to all your office 2007 engine :)
This applies, when all you need is to save your files as PDF !

Grats , you’re done !

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to redditShare on MyspaceShare via email
 

download Premium links using unix WGET (Rapidshare Megashare Etc)

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to redditShare on MyspaceShare via email

AH !

Here is one nasty trick i’ve had trouble getting to find out, many people do have rapidshare or other account, and a unix server access or only SSH access …

Normally with Lynx its annoying, or even with multiple files downloads thats more annoying to handle, especially if you aint in the luv of waiting each download to finish or queue files..

Here is how you would do it easy  in 3 steps…

First :

Save Login Cookies ( Ill use rapidshare for this example )

wget –save-cookies ~/.cookies/rapidshare –post-data “login=USERNAME&password=PASSWORD” -O – https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi > /dev/null

Megaupload example … :

wget –save-cookies ~/.cookies/megaupload –post-data “login=1&redir=1&username=USERNAME&password=PASSWORD” -O – http://megaupload.com/?c=login > /dev/null

( The first highlighted can be changed to any path , remember it , ull use it ! )

Second:

Create a file containing all your rapidshare links …

Ill call it ::   down

Third Execute :

wget  -c –load-cookies ~/.cookies/rapidshare –input-file=-down -output-file=log -b

As you see, loading cookies, defining input file, log file ( you might cancel that after you know ur doing things right) and finally, the -b for background execution, that is unless u want to see verbose instead of output-file !

Blabbing about chmod , path (using ~ in my example) or ./ or whatever path is simply unneeded, if you know what is wget and understand whats written up, am sure you dont need the rest of silly advices.!

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to redditShare on MyspaceShare via email
 

Adobe CS3 – Product license has expiredAdobe CS3 – Product license has expired

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to redditShare on MyspaceShare via email

Adobe CS3 – Product license has expired

This method worked for me !

Here’s the method that would solve the problem.

1. delete cache.db in “c:\Program Files\Common Files\Adobe\Adobe PCD\cache\”
2. Run the adobe cs3 product
3. enter the products key for adobe cs3 product
4. set read-only attribute for “c:\Program Files\Common Files\Adobe\Adobe PCD\cache\cache.db”
5. Click “Next”
6. remove read-only attribute for “c:\Program Files\Common Files\Adobe\Adobe PCD\cache\cache.db”
7. “Never register” in Product registration from
8. set read-only attribute for “c:\Program Files\Common Files\Adobe\Adobe PCD\cache\cache.db”
9. Complete

PS: if you need to activate another Adobe CS3 product, please do the same thing like above except for the step 1.
Replace the step 1 by
1. remove read-only attribute for “c:\Program Files\Common Files\Adobe\Adobe PCD\cache\cache.db”\cache\”

This applies for Adobe Photoshop CS3 and Illustrator CS3

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to redditShare on MyspaceShare via email
 

Cpanel Exim Monitor outgoing and incoming mail

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to redditShare on MyspaceShare via email

It always takes sometime to research and find about how to put commands, but again u use it, and once again you forget how you did it the first time.

This is why i blog, mostly to keep some notes for myself and share as well !

Here is a quick solution to Cpanel users to monitor domain to an email.

(PS even if you are not on cpanel, just add an exim filter as below noted )

Open

/etc/cpanel_exim_system_filter

find

[code]

if not first_delivery

then

finish

endif

[/code]

add

[code]

if first_delivery

and ("$h_to:, $h_cc:" contains "domain.com")

or ("$h_from:" contains "domain.com")

then

unseen deliver "monitor@domain.com"

endif

[/code]

Replace as you see fit, and restart Exim !

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to redditShare on MyspaceShare via email