Solutionist's Blog

Tech | Health | Life | Travel

php-tips-insert-href-link-in-a-php-code

If the link needs to be inside of the PHP you have two options. Option one is to end the PHP and then reopen it. Here is an example: <?php —– My PHP Code—- ?> <a href=”https://twitter.com/angela_bradley”>My Twitter</a> <?php —– My PHP Code—- ?> The other option is to print or echo the HTML code […]

ls-command-list-one-file-per-line

When I am busy with bash scripts , often need the filename only   with ls  command you can populate file names only in different line and you can take the first one with head   ls  -1    # 1 is the number not the letter l and get the first one by ls […]

html-tip-using-quotes-in-form-input-tags

In (X)HTML, attribute values should be enclosed by double or single quotes. But a common source of errors and confusion arises when those values themselves contain double or single quotes. This is especially common for form input fields, where the values might contain data obtained from a database or supplied previously by the user. Yes, […]

preventing-brute-force-attacks-using-iptables-recent-matching

Software requirements Linux kernel and iptables with ‘recent’ patch. (It seems that this patch has entered the mainline some time ago. ‘Recent’ matching e.g. is known to be included with kernels 2.4.31 and 2.6.8 ofDebian Sarge 4.0.) Implementation We begin with empty tables… iptables -F and add all the chains that we will use: iptables -N ssh iptables -N blacklist […]

how to turn off Auto-correct in iphone /ipad

Turn Off Autocorrect in iPhone Autocorrect is a great iPhone feature if you text and/or email a lot. The ability to quickly type and have the smartphone complete words for you or correct grammatical mistakes helps write efficiently and quickly. Although autocorrect feature is great, it still doesn’t understand some local words and might get […]

Display & Save Visitor’s Ip – PHP Code

found a blog post which tested and working very good PHP-Hypertext Preprocessor. PHP is a server side script language.Using php you can create a dynamic websites. This is the first lesson and on this lesson you will learn how to get visitors ip and save it on your server.(i wil learn you how add this […]

php script to show visitors IP

  Create a .php file   # vi  showip.php   <h1>My Ip Address</h1><hr> <br><br> Your Ip Address is: <strong><?php echo $_SERVER[‘REMOTE_ADDR’]; ?></strong><br><br>   Close the file and  done RESULT http://admin2.mweb.com.na/showip.php    

Secured By miniOrange