Monday, 29 January 2018

Add your website to the Google search engine

Get your content on Google

Do you have content that you want on Google? Here are a few ways to submit it to us.

What content do you have?

A website or app

  • Add your URL – Submit your website for inclusion in Google's index.
  • App crawling – Get your app indexed by Google.
  • Search Console – Submit a Sitemap of your website to Google.
  • Structured data – Label your structured content to help users find pages relevant to their search.

A business

  • Google for Retail – Promote your products on Google Shopping, Google Offers, and other properties; submit your product catalogs digitally to Google Search.
  • Google My Business – Get your business on Google Maps.
  • Street View – Invite customers on a virtual tour of your business.

Digital content

  • Google Books and eBooks – Promote your books online and sell your titles through our eBook store.
  • Google News – Share timely reporting on matters that are important or interesting to our audience.
  • Scholar – Include scholarly works in Google's academic index.
  • Google Play Newsstand – Publish your content in Google's app for fresh, beautiful news and magazine editions.

Local information

  • Base Map Partner Program – Simplify navigation of your community by improving and enriching our base map.
  • Google Indoor Maps – Upload floor plans or blueprints of your business to Google Maps.
  • Imagery Partner Program – Offer users a sharper aerial view of your community's landscape and built environment.
  • Local Enhanced Content – If you're an aggregator of local content, publish it through Google.
  • Photo Sphere – Photograph and share the world with 360° pictures.
  • Street View – Provide a panoramic virtual tour of your property.
  • Transit Partner Program – Encourage use of public transit by making it easy to locate routes, schedules and fares.

Media

  • Video Search – Publish and syndicate online video content to make it searchable on Google.
  • YouTube – Upload, distribute, and monetize your videos.

Wednesday, 24 January 2018

jQuery plugin helps you to prevent copy and paste





This jQuery plugin helps you to prevent copy and paste of your post content from your blog. This mainly helps you to avoid someone from copying the your quality content.
This is very simple to add this in your blog. Just follow few steps to add it.

STEP 1:
Add following jQuery plugins in the head (<head> </head>)section of the html home page.
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>
<script src='https://dl.dropboxusercontent.com/u/49791983/disableSelection.js'></script>

STEP2:
Now add following script just below that.
<script>
$(document).ready(function(){
$('body').disableSelection();
});
</script>
Note: Add this jQuery library only if you never add it before in your page.
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>





If you felt any difficulty implementing this please leave the comments.



Tuesday, 23 January 2018

Kennedy Sakala - The Developer


I don’t find myself defined by the work I’ve done. I define myself by the work I want to do.
I believe skills can be taught—personality is inherent. My personality is what separates me from others. Rather than getting awards, advancing status, or gaining accolades, I prefer to keep learning, continue challenging myself, and do interesting things that matter.
I’m the accumulation of many skills and talents. my wisdom, creativity, and experience. I’m not a collection of hours. I’ve stopped seeing myself as a per-hour commodity.
I work with clients who want results and invest in their business in order to make it profitable. The value of what I do is based on the impact I can have on my client’s business.
I am currently available for hire.

Sunday, 21 January 2018

Single use download

Single use download

Brief


This script was written to be a very easy way for non-programmers to be able to create a secure way to share a single file. It is ideal for bands looking to give a single song to a single person, and invalidating the link once the song has been downloaded. However, it will work for any type of file.

Description


This script allows you to generate a unique link to download a file. This file will only be allowed to be downloaded one time. This link will also have also have an expiration date set on it.

For instance, if you wanted to sell a song for your band. You sold the song on your website for $1, you could use this script to allow that person to download your song only one time. It would only give them a limited number of hours/days/weeks/years to claim their download.

You can also mask the name of the file being downloaded, for further protection. For example, if your song was called "greatsong.zip", you could set the download link as "Band_Awesome-Awesome_Song.zip" (it is not a good idea to leave spaces in URL titles)

Update


On January 11, 2018 a multi-file feature branch was merged with the single file. It is now possible to download multiple files at once.

Example



Git the code


Github repository

If you have problems using the script leave a comment i will be happy to help you

Friday, 19 January 2018

How to remove .php, .html, .htm extensions with .htaccess

How to remove .php, .html, .htm extensions with .htaccess


I recently wanted to remove the extensions from my website, in order to make the URLs more user and search engine friendly. I stumbled across tutorials on how to remove the .php extension from a PHP page. What about the .html? I wanted to remove those as well! In this tutorial I’ll show you how to do that easily, by editing the .htaccess file.
##What is an .htaccess file
An .htaccess file is a simple ASCII file that you create with a text editor like Notepad or TextMate. It provides a way to make configuration changes on a per-directory basis.
Please note that .htaccess is the file’s extension. It isn’t file.htaccess, it is simply .htaccess.
.htaccess files affect the directory in which they are placed and all sub-directories. For example if there is one .htaccess file located in your root directory of yoursite.com, it would affect yoursite.com/content/, yoursite.com/content/images/, etc.
It is important to remember that this can be prevented — for example if you don’t want certain .htaccess commands to affect a specific directory — by placing a new .htaccess file within the directory you don’t want affected with the changes, and removing the specific command(s) from the new .htaccess file that you do not want affecting this directory.
##Features
With an .htaccess file you can:
  • Redirect the user to different page
  • Password protect a specific directory
  • Block users by IP
  • Preventing hot linking of your images
  • Rewrite URIs
  • Specify your own Error Documents
In this tutorial we’ll be focusing only on rewriting URIs.
##Removing Extensions
To remove the .php extension from a PHP file for example yoursite.com/wallpaper.php to yoursite.com/wallpaper you have to add the following code inside the .htaccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
If you want to remove the .html extension from a html file for example yoursite.com/wallpaper.html to yoursite.com/wallpaper you simply have to alter the last line from the code above to match the filename:
RewriteRule ^([^\.]+)$ $1.html [NC,L]
That’s it! You can now link pages inside the HTML document without needing to add the extension of the page. For example:
<a href="http://whatever.com/wallpaper" title="wallpaper">wallpaper</a>
##Adding a trailing slash at the end
I received many requests asking how to add a trailing slash at the end. Ignore the first snippet and insert the following code. The first four lines deal with the removal of the extension and the following, with the addition of the trailing slash and redirecting. Link to the HTML or PHP file as shown above. Don’t forget to change the code if you want it applied to an HTML file.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]
Some people asked how you can remove the extension from both HTML and PHP files. I haven’t got a coding solution for that. But, you could just change the extension of your HTML file from .html or .htm to .php and add the code for removing the .php extension.
##Conclusion For those who are not so experienced with .htaccess files there is an online tool for creating .htaccess files. It is pretty good for novice users and very easy to use. Visit their website.
##Updates
Attention GoDaddy users: In order to remove the extensions you need to enable MultiViews before. The code should look like this:
Options +MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php
If you’re worried that search engines might index these pages as duplicate content, add a canonical meta tag in your HTML head:
<link rel="canonical" href="https://phpcable.com/post/single-post">

Wednesday, 17 January 2018

Completion Of Home Page

ABOUT US


We Are happy To Announce The completion of The About Page

For Contributions please contact us by filling in the form here http://jukemaasmo.com/phpcable/