Full Trust European Hosting

BLOG about Full Trust Hosting and Its Technology - Dedicated to European Windows Hosting Customer

WordPress 4.0.1 Hosting - HostForLIFE.eu :: Installing Google Analytics in WordPress

clock December 16, 2014 06:53 by author Peter

Understanding however guests are getting to your website, what they're looking for and the way they're interacting along with your content is crucial if you wish to become a productive blogger. Google Analytics (GA) could be a nice product able to answer for all those queries. most significantly it’s completely FREE and incredibly easy to set up!

This article will step by step guide you through GA setup on your WordPress site/ blog. The first thing you can do is, register or signup on Google account then Sign Up to Google Analytics. In order to do that, visit the Google Analytics Sign Up page -> log in with your Google account login username and password. You must land on a page which looks similar to this:

CREATE Google Analytics TRACKING CODE

STEP 1. Set up your account
Now you are on the tracking code setting up page. It looks like on the picture below:

Since you would like to make a tracking for your WordPress site, ‘website’ because the property to track. Then you'll be able to choose between a Classic and Universal Analytics. Within the time of writing, Universal Analytics is in a beta version, however it's already stable and can offer you more choices to settle on from within the future, so I extremely suggest to go for this feature, but if you favor the Classic version, the selection won’t influence further steps in the article.

STEP 2: Set up your property
Now, it’s time to share more information about your WordPress site- since it’s pretty self-explanatory- provide Website URL (if your site is available under www. version then provide that bit as well), then choose industry category and reporting time zone and hit Get Tracking ID button. A pop-up window with Google Terms and Conditions will appear- click ‘I agree” and you will be presented with you tracking code, similar to this one:

STEP 3. Select and copy the code
Now, Google ask you to copy and paste this code into every webpage you want to track. Do not close this page, leave it open and go to your website in a new tab (in this way, you can always get back to it).

INSTALL GOOGLE ANALYTICS TRACKING CODE ON YOUR SITE
Since your have a WordPress site, the good news is that installing the tracking code is very easy. There are a few ways to install it and you can choose from one of the following options:

  • Installing a plugin
  • Adding code to HEADER.PHP
  • Adding code to functions.php

1. Installing the Plugin
You need to add Google Analytics tracking code to each page on your site. Next, install the plugin, will help you to do that in a very quick and easy way. There are quite a few plugins available although I recommend this plugin as it is very light and quite easy. To install that plugin, go to your WordPress dashboard Admin Panel, then select Plugins >Add New and type Google Analytics. There will be many search results, but select the Google Analytics created by Kevin Sylvestre - install it and clickt activate it. Then go to Settings> Google Analytics. Here you need to paste the property ID which can be found within your code created in step 5- it has this format ‘UA-XXXXXXXX-X’

2. Add that code to header.php
If you don’t want to install too many plugins on your site (too many plugins, can slow down your website), you can add the tracking code to the header file of your site. Head section (in header file) is used on every single page across your site. In order to add the code, go to Appearance> Editor and find your header.php file on the right- hand side, select the file and paste all code which you copied just before the </head> tag and click on Update the File button.

3. Add code to functions.php
I recommend to go for this solution only if you have experience with PHP and you really know what you are doing! In order to add the code, select Appearance> Editor and find functions.php file on the right side and click on the file. Then copy the code below and paste it at the end of the file.
// Include the Google Analytics Tracking Code (ga.js)
// @ http://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html
function google_analytics_tracking_code(){ 
    $propertyID = 'UA-XXXXX-X'; // GA Property ID 
    if ($options['ga_enable']) { ?&amp;gt; 
        &amp;lt;script type="text/javascript"&amp;gt;          
var _gaq = _gaq || [];
          _gaq.push(['_setAccount', '&amp;lt;?php echo $propertyID; ?&amp;gt;']);
          _gaq.push(['_trackPageview']); 
          (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
          })();
        &amp;lt;/script&amp;gt; 
&amp;lt;?php }

// include GA tracking code before the closing head tag
add_action('wp_head', 'google_analytics_tracking_code'); 
// OR include GA tracking code before the closing body tag
// add_action('wp_footer', 'google_analytics_tracking_code');

After that do not forget replace the UA-XXXXX-X with your property ID.



HostForLIFE.eu Proudly Launches of WordPress 4.0.1 Hosting

clock December 15, 2014 10:14 by author Peter

European leading web hosting provider, HostForLIFE.eu announced the support for WordPress 4.0.1 hosting plan due to high demand of WordPress 4.0.1 users in Europe. HostForLIFE.eu is a popular online WordPress hosting service provider catering to those people who face such issues. The company has managed to build a strong client base in a very short period of time. It is known for offering fast, fully-managed and secured services in the competitive market.

HostForLIFE.eu hosts its servers in top class data centers that is located in Amsterdam (NL), London (UK), Paris (France) and Seattle (US) to guarantee 99.9% network uptime. All data center feature redundancies in network connectivity, power, HVAC, security, and fire suppression. All hosting plans from HostForLIFE.eu include 24×7 support and 30 days money back guarantee. All hosting plans from HostForLIFE.eu include 24×7 support and 30 days money back guarantee. The customer can start hosting our Wordpress 4.0.1 site on our environment from as just low €3.00/month only.

WordPress 4.0.1 patches a critical cross-site scripting vulnerability affecting comment boxes on websites running the content management system software. An attacker would need only to inject malicious JavaScript into a comment that would infect a reader viewing it on the webpage or an admin in the management dashboard.
The update also addresses three other cross-site scripting vulnerabilities, a cross-side request forgery flaw, a denial-of-service bug related to password checks, server-side request forgery issues, and what WordPress called “an extremely unlikely hash collision” that could lead to account compromise. WordPress said it also invalidates links in a password reset email if the user remembers our password and logs in and changes our email address.

WordPress 4.0.1 addresses an additional eight security issues, including three other XSS vulnerabilities that can be exploited by a contributor or an author, a cross-site request forgery (CSRF) that can be leveraged to trick a user into changing his/her password, and a denial-of-service (DoS) bug. HostForLIFE.eu is a popular online Windows based hosting service provider catering to those people who face such issues. The company has managed to build a strong client base in a very short period of time. It is known for offering ultra-fast, fully-managed and secured services in the competitive market. Our powerful servers are specially optimized and ensure WordPress 4.0.1 performance.

For more information about this new product, please visit http://hostforlife.eu/European-WordPress-401-Hosting

About us:
HostForLIFE.eu is awarded Top No#1 SPOTLIGHT Recommended Hosting Partner by Microsoft (see http://www.asp.net/hosting/hostingprovider/details/953). Our service is ranked the highest top #1 spot in several European countries, such as: Germany, Italy, Netherlands, France, Belgium, United Kingdom, Sweden, Finland, Switzerland and other European countries. Besides this award, we have also won several awards from reputable organizations in the hosting industry and the detail can be found on our official website.



HostForLIFE.eu Proudly Launches ASP.NET 5 Hosting

clock December 8, 2014 10:14 by author Peter

European leading web hosting provider, HostForLIFE.eu announces the launch of ASP.NET 5  support on the recently released Windows Server 2012.

HostForLIFE.eu was established to cater to an under served market in the hosting industry; web hosting for customers who want excellent service. HostForLIFE.eu – a cheap, constant uptime, excellent customer service, quality, and also reliable hosting provider in advanced Windows and ASP.NET technology. HostForLIFE.eu proudly announces the availability of the ASP.NET 5 hosting in our entire servers environment.

ASP.NET is Microsoft's dynamic website technology, enabling developers to create data-driven websites using the .NET platform and the latest version is 5 with lots of awesome features. ASP.NET 5 is a lean .NET stack for building modern web apps. Microsoft built it from the ground up to provide an optimized development framework for apps that are either deployed to the cloud or run on-premises. It consists of modular components with minimal overhead.

According to Microsoft officials, much of the functionality in the ASP.NET 5 release is a new flexible and cross-platform runtime, a new modular HTTP request pipeline, Cloud-ready environment configuration, Unified programming model that combines MVC, Web API, and Web Pages, Ability to see changes without re-building the project, etc.

HostForLIFE.eu hosts its servers in top class data centers that is located in Amsterdam (NL), London (UK), Paris (FR) and Seattle (US) to guarantee 99.9% network uptime. All data center feature redundancies in network connectivity, power, HVAC, security, and fire suppression. All hosting plans from HostForLIFE.eu include 24×7 support and 30 days money back guarantee. The customers can start hosting our ASP.NET 5 site on our environment from as just low €3.00/month only.

HostForLIFE.eu is a popular online ASP.NET  based hosting service provider catering to those people who face such issues. The company has managed to build a strong client base in a very short period of time. It is known for offering ultra-fast, fully-managed and secured services in the competitive market.

HostForLIFE.eu offers the latest European ASP.NET 5 hosting installation to all our new and existing customers. The customers can simply deploy our ASP.NET 5 website via our world-class Control Panel or conventional FTP tool. HostForLIFE.eu is happy to be offering the most up to date Microsoft services and always had a great appreciation for the products that Microsoft offers.

Further information and the full range of features ASP.NET 5 Hosting can be viewed here http://www.hostforlife.eu

About Company
HostForLIFE.eu is European Windows Hosting Provider which focuses on Windows Platform only. HostForLIFE.eu deliver on-demand hosting solutions including Shared hosting, Reseller Hosting, Cloud Hosting, Dedicated Servers, and IT as a Service for companies of all sizes.

HostForLIFE.eu is awarded Top No#1 SPOTLIGHT Recommended Hosting Partner by Microsoft (see http://www.asp.net/hosting/hostingprovider/details/953). Their service is ranked the highest top #1 spot in several European countries, such as: Germany, Italy, Netherlands, France, Belgium, United Kingdom, Sweden, Finland, Switzerland and other European countries. Besides this award, we have also won several awards from reputable organizations in the hosting industry and the detail can be found on our official website.



Drupal 7.3 Hosting UK - HostForLIFE.eu :: Using Drupal Feeds Module to Import Images

clock December 4, 2014 05:12 by author Peter

Importing text content utilizing Drupal feeds module is simple. Importing images utilizing feeds is simple as well however it needs a little function and it's not as straightforward as importing text content.

Initially you need to copy image files in your server, you are able to copy all of these anywhere within your web site directory, however I like copying it to public files directory (sites/default/files). When you've copied the images, you have to produce a CSV importer. Within which CSV importer we'll specify the trail from the image. Look into the feed importer :

Product images is the important subject during this feed importer. Product images is an image field. Right listed below is that the CSV importer :
"SKU";"Title";"Description";"Brief Description";"Taxonomy Terms";"Product Selection";"Product Images"

"IMPORTED-PRODUCT-1";"Imported product display one";"This is an imported product one. This is an imported product one.";"This is an imported product one";"Clothing";"IMPORTED-PRODUCT-1";http://mysite.local/sites/default/files/image1.jpg


When you have already uploaded the image towards the server then you are able to import data by using the CSV.
This was concerning importing images utilizing feeds. Suppose, the field accepts multiple images and you would like to import multiple images by using the importer, then you are able to use feeds tamper module for that. Look into the feeds tamper configuration to the images field:

 

You are able to alter the exploding character to anything, however be certain the character is unique and it is not present inside the URL of image. Right listed below is that the CSV importer for importing multiple images :
"SKU";"Title";"Description";"Brief Description";"Taxonomy Terms";"Product Selection";"Product Images"
"IMPORTED-PRODUCT-1";"Imported product display one";"This is an imported product one. This is an imported product one.";"This is an imported product one";"Clothing~Jackets";"IMPORTED-PRODUCT-1";"http://mysite.local/sites/default/files/compressed/image1.jpg~http://mysite.local/sites/default/files/compressed/image2.jpg"



European Moodle 2.8 Hosting - UK :: How to Install Moodle in IIS on Windows Server Hosting Enviroment

clock November 24, 2014 06:28 by author Scott

In this tutorial, we will show you how to install the latest Moodle manually on Windows Server hosting environment with Plesk Control panel and will show you the error during the installation. Hope this tutorial will help you.

Moodle Installation Requirement

To install Moodle, we need to make sure that your server support the latest PHP 5.4 version or higher. Without this PHP version, we can’t install the latest Moodle version. And also you need to install MySQL on your server. With our configuration settings (Plesk), we have install MySQL previously and you can create the database via Control Panel. Please see this complete steps how to install Moodle

1. Download the latest Moodle version directly on their site https://download.moodle.org/releases/latest/. Just download it to your computer.

2. Login to your Plesk Control Panel and add MySQL database.

3. Extract the Moodle file to your root folder.

4. Then, you may try to browse your site and it will prompt permission error as below

5. What we need to do is give full permission to root folder and then change the open_basedir restriction to NONE on your Plesk Control Panel. Login to your Control Panel, find PHP settings on your Plesk Control Panel and then set open_basedir to None and then click OK. Please see this image below:

6. Browse your site again. It will ask the Moodle installation.



7. It will show the error message again:


"Parent directory (C:\ClientSites\MyDomain.com) is not writeable. Data directory (C:\ClientSites\MyDomain.com\moodledata) cannot be created by the installer."


Then, please give full permission again to C:\ClientSites\MyDomain folder. Once, you have given the permission, then you can continue the installation.

8. Once you click Next, it will ask the database server that you want to use. In this case, we use MySQL server so we select MySQL.



9. Once you click Next, Moodle requires your database details. Please make sure you fill the correct details so you can continue the installation.

10. Once you have filled all your database details, it will show this error message

If you receive this error message, then refresh the installation again

11. Once you have refreshed it, you won’t see this error message again. You will be asked about language that you want to use.

12. Then, some of you find this error message:

HTTP Error 500.0 - Internal Server Error
c:\php-fastcgi\php-cgi.exe - The FastCGI process exceeded configured activity timeout


This is the last error that you might find during the installation. If you can fix this issue, then the Moodle is ready. This issue is about the timeout error, so we need to increase PHP activity timeout on the server.

How to Increase Fast-CGI ActivityTimeout in IIS

When your PHP script runs longer than 10 minutes (600 seconds) you will get an 500 Internal server error.

To fix this issue you will need to increase the fastCgi activityTimeout in IIS7.

1. Start a command promt and go to this folder:

c:\Windows\System32\inetsrv

2. Execute this command to see the current settings:

C:\Windows\System32\inetsrv>appcmd list config -section:system.webServer/fastCgi

Output will be something like this:

<system.webServer>
<fastCgi>
<application fullPath="C:\Program Files (x86)\PHP\v5.4\php-cgi.exe" monitorChangesTo="php.ini" activityTimeout="600" requestTimeout="600" instanceMaxRequests="10000">
<environmentVariables>
<environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="10000" />
<environmentVariable name="PHPRC" value="C:\Program Files (x86)\PHP\v5.4" />
</environmentVariables>
</application>
</fastCgi>
</system.webServer>

3. To change the timeout to 1 hour (3600 seconds) execute the following command:

C:\Windows\System32\inetsrv>appcmd set config -section:system.webServer/fastCgi "-[fullPath='C:\Program Files (x86)\PHP\v5.4\php-cgi.exe'].activityTimeout:3600"

Not the use of double and single quotes to specify the correct parameters.

4. After you run this command you will see this output:

Applied configuration changes to section "system.webServer/fastCgi" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"

After running the list config command again the output now looks like this:

<system.webServer>
<fastCgi>
<application fullPath="C:\Program Files (x86)\PHP\v5.4\php-cgi.exe" monitorChangesTo="php.ini" activityTimeout="3600" requestTimeout="600" instanceMaxRequests="10000">
<environmentVariables>
<environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="10000" />
<environmentVariable name="PHPRC" value="C:\Program Files (x86)\PHP\v5.4" />
</environmentVariables>
</application>
</fastCgi>
</system.webServer>

As you can see the activityTimeout is now increased.

5. Restart your IIS service and your good to go.

Conclusion

I hope article above help you to install Moodle. Please feel free to share this tutorial if you find this is useful. Thank you for reading this tutorial.



European Wordpress Hosting - UK :: Tips to Improve Your Wordpress Performance

clock November 17, 2014 07:49 by author Scott

Speed is essential for your website and can determine the success of your online business. Slow loading pages are bad for business and your visitors will be reluctant and leave your site and seek another one. In fact, you can lose rankings in search results, however we are here to help you and below we share several tips to help users improve their WordPress website speed.

Choose a reliable web hosting provider

An efficient and reliable wordpress hosting is definitely essential to your fast loading speed. If you select one not so efficient you may experience problems such as frequent down (during high peak) traffic times, slow website speed and slow servers.

Select an appropriate theme

When you decide on a Theme, what you should take into consideration is not just a basic theme, but also a framework for extra benefits to your weblog site, for instance, you should look at how often the framework is modified and whether it is protected enough.

Database Optimization

WordPress uses the database to store pages, posts, settings, comments and plugin information. Whenever a page is loaded, WordPress automatically reads the. It’s important for databases to be optimized on a consistence basis; this is because the information shown or found may take a long time when your database is too busy. We recommend using the WP-DBManager plugin, which restores, optimizes and helps you back up your database.

Delete spam comments

We recommend cleaning up and deleting spam comments because they help slow your website down. Users can modify their site quicker by removing them from your WordPress dashboard. Simply just click the “Empty spam” button and this will clear all the current spam comments on your site. Furthermore, there’s hundreds of WordPress spam plugins to eliminate the spam also i.e. Spam Comments Cleaner.

Delete Post Revisions

When editing a post in WordPress, the old version will be saved. So every post will more likely end up with 10 post or more, so removing these revisions can help speed up your WordPress site to some level. If you want to delete WordPress revisions, we recommend choosing the “Better Delete Revision “plugin and after installed, simply go to your settings and click the Check Revision Posts and delete them, that’s it!



Crystal Report 2013 Hosting France - HostForLIFE.eu :: How to Create Report on Crystal Reports without a Database ?

clock November 13, 2014 10:34 by author Peter

Sometimes we would like to do tricks with the Crystal Reports 2013 engine, like taking advantage of the exporting functions to make Word, Excel, or PDF files. What if we do not scan the data from a database? this article shows the details on making a Crystal Reports sub report, and the way to fill it from code, without a database.

Using the code

  1. First thing you should do is Create the Project: File -> New -> New Project
  2. Then, creat a new Crystal Reports Visual Basic Windows Application.
  3. Next, Create the DataSet schema. Right click the Crystal Reports project -> Add -> New Folder. Name it that folder: “DataSets”.
  4. Right click the “DataSets” folder , click Add then select New Item.
  5. Now, create the new CRDataSet DataSet. Right click the CRDataSet Designer Page, click Add, then select New element. I give it a name: MainTable.
  6. Add new Field1, Field2, Field3 rows.
  7. Repeat steps three and four, then Add a new DetailTable element.

You will have the following DataSet tables schema as shown as picture below:

Now,  we are going to Create report on Crystal Report:
1. First, Right click the Crystal Reports project -> Click “Add” -> SelectNew Folder.
2. Name it that folder “Reports”.
3.Right click on the Reports folder -> Click Add -> then select New Item.
4. Open a new MainReport Crystal Reports report.
5. Now, Click the Register Later button to close the register window, if it appears.
6. Select the Subreport and then click OK button. In the Contain Subeport Expert window Data tab, expand the Project Data -> Select ADO.NET DataSet -> CrystalReport.CRDataSet.
7. Choose MainTable. Now, Click the Insert Table button.
8. Click Next.
9. Next Step: Click the Add All button ->  Next -> Next -> Next.
10. Next to the Create a Subreport choice of the Subreport window tab, then fill  DetailReport in the Report Name edit box.
11. Click the Report Expert button. Insert the DetailTable. Then Click Next to open the Subreport Generator. Add All fields. Click Next. Click Next. Click Next. Click Next.
12. Type "No DB Subreport Crystal Report Sample" as the Subreport Title.
13. Click Finish.
14. After that Click Next. Type "No DB Crystal Report Sample." as the Main Report title. And now, click Finish.

And now we will add the a CrystalReportViewer1 to the form.

  1. Open the Form1 form. Click View -> Toolbox in the menu.
  2. Drag a CrystalReportViewer into the form.
  3. Right click the CrystalReportViewer1 CrystalReportViewer in the form -> Properties.
  4. Set the Dock property to Fill.
  5. Next step, Add the code to fill & show the Crystal Reports report. Then, Right click the Form -> View Code. Add the following Form1_Activated method:

Private Sub Form1_Activated(ByVal sender As Object, _
        ByVal e As System.EventArgs) _
        Handles MyBase.Activated
    Dim dsObj As CRDataSet = New CRDataSet
    FillDataSet(dsObj)
    Dim cr As MainReport = New MainReport
    ' Set the report DataSet  
   cr.SetDataSource(dsObj)
    CrystalReportViewer1.ReportSource = cr
End Sub


Now, I’m gonna Add the following FillDataSet code:

Public Sub FillDataSet(ByRef dataSet As CRDataSet)
    ' Turn off constraint checking before the dataset is filled.
    ' This allows the adapters to fill the dataset without concern
    ' for dependencies between the tables.
    dataSet.EnforceConstraints = False
    Try
        ' Attempt to fill the dataset MainTable
        dataSet.MainTable.AddMainTableRow("Hello!", _
                         "This is", "my sample data")
        ' Attempt to fill the dataset DetailTable
        dataSet.DetailTable.AddDetailTableRow("This is", _
                           "the detail", "information")
        dataSet.DetailTable.AddDetailTableRow("added", _
                           "without the", "need of")
        dataSet.DetailTable.AddDetailTableRow("actually", _
                           "access a", "database.")
    Catch ex As Exception
       ' Add your error handling code here.
        Throw ex
    Finally
        ' Turn constraint checking back on.
        dataSet.EnforceConstraints = True
    End Try
End Sub


Build and Run this Application. Hope this tutorial works for you!



HostForLIFE.eu Windows Hosting Proudly Launches New Data Center in Paris (France)

clock November 10, 2014 10:56 by author Peter

HostForLIFE.eu, a leading Windows web hosting provider with innovative technology solutions and a dedicated professional services team proudly announces New Data Center in Paris (France) for all costumers. HostForLIFE’s new data center in Paris will address strong demand from customers for excellent data center services in Europe, as data consumption and hosting services experience continued growth in the global IT markets.

The new facility will provide customers and our end users with HostForLIFE.eu services that meet in-country data residency requirements. It will also complement the existing HostForLIFE.eu. The Paris (France) data center will offer the full range of HostForLIFE.eu web hosting infrastructure services, including bare metal servers, virtual servers, storage and networking.

HostForLIFE.eu expansion into Paris gives us a stronger European market presence as well as added proximity and access to HostForLIFE.eu growing customer base in region. HostForLIFE.eu has been a leader in the dedicated Windows & ASP.NET Hosting industry for a number of years now and we are looking forward to bringing our level of service and reliability to the Windows market at an affordable price.

The new data center will allow customers to replicate or integrate data between Paris data centers with high transfer speeds and unmetered bandwidth (at no charge) between facilities. Paris itself, is a major center of business with a third of the world’s largest companies headquartered there, but it also boasts a large community of emerging technology startups, incubators, and entrepreneurs.

Our network is built from best-in-class networking infrastructure, hardware, and software with exceptional bandwidth and connectivity for the highest speed and reliability. Every upstream network port is multiple 10G and every rack is terminated with two 10G connections to the public Internet and two 10G connections to our private network. Every location is hardened against physical intrusion, and server room access is limited to certified employees.

All of HostForLIFE.eu controls (inside and outside the data center) are vetted by third-party auditors, and we provide detailed reports for our customers own security certifications. The most sensitive financial, healthcare, and government workloads require the unparalleled protection HostForLIFE.eu provides.

Paris data centres meet the highest levels of building security, including constant security by trained security staff 24x7, electronic access management, proximity access control systems and CCTV. HostForLIFE.eu is monitored 24/7 by 441 cameras onsite. All customers are offered a 24/7 support function and access to our IT equipment at any time 24/7 by 365 days a year.

For more information about new data center in Paris, please visit http://hostforlife.eu/Paris-Hosting-Data-Center

About HostForLIFE.eu
HostForLIFE.eu is an European Windows Hosting Provider which focuses on the Windows Platform only. HostForLIFE.eu deliver on-demand hosting solutions including Shared hosting, Reseller Hosting, Cloud Hosting, Dedicated Servers, and IT as a Service for companies of all sizes.

HostForLIFE.eu is awarded Top No#1 SPOTLIGHT Recommended Hosting Partner by Microsoft (see http://www.asp.net/hosting/hostingprovider/details/953). Our service is ranked the highest top #1 spot in several European countries, such as: Germany, Italy, Netherlands, France, Belgium, United Kingdom, Sweden, Finland, Switzerland and other European countries. Besides this award, we have also won several awards from reputable organizations in the hosting industry and the detail can be found on our official website.



Europe ASP.NET Hosting - HostForLIFE.eu :: How to Use AspEncrypt as a Client-site ActiveX Control

clock November 6, 2014 07:03 by author Frank

What is AspEncrypt?

AspEncrypt is an Active Server component that brings security to your applications through encryption. With AspEncrypt, you can encrypt data, send S/MIME-based secure mail, compute one-way hash values, generate and verify digital signatures, issue and manage X.509 digital certificates, and more. This component can be used in an ASP/ASP.NET or VB environment on Windows 2000/XP/2003/2008/Vista/7.In this article we will tell you about “How to Use AspEncrypt as a Client-site ActiveX Control”.

Use AspEncrypt as a Client-side ActiveX Control

Starting with Version 2.0, the AspEncrypt.dll file contains an ActiveX control component called XEncrypt which can be used on the client side inside Internet Explorer 4.0+. All the cryptographic operations offered by AspEncrypt can now take place on the user’s machine and not just the web server. XEncrypt exposes the same properties and methods as CryptoManager with the exception of a few methods not applicable to client-side operations. Most importantly, XEncrypt allows your Web-based application to perform operations involving the user’s private key such as digital signing or data decryption without jeopardizing the security of the private key. XEncrypt does not require a registration key, so you do not need to purchase a license for every client machine XEncrypt will be downloaded to. However, XEncrypt will only work under IE and not any other environment such as VB, etc. For containers other than IE, you must continue using the CryptoManager object which requires a registration key.

Using XEncrypt under IE

The XEncrypt ActiveX control resides in the same DLL as the rest of the AspEncrypt objects, aspencrypt.dll. To use XEncrypt on the client side, your web page must reference it using the <OBJECT> tag, as follows:

<OBJECT
  CLASSID="CLSID:F9463571-87CB-4A90-A1AC-2284B7F5AF4E"
  CODEBASE="aspencrypt.dll"
  ID="XEncrypt">
</OBJECT>

The CLASSID attribute is the globally unique identifier (GUID) of the XEncrypt control. The CODEBASE attribute points to a relative path of the file aspencrypt.dll on your server. For this code to work, you must place the file aspencrypt.dll in a virtual directory on your web server where the browser can find and download it from. Note that you do not need to register aspencrypt.dll in that location. Your web server may have the file aspencrypt.dll registered in, say, the system folder c:\winnt\system32, and another copy of that file placed in the same virtual directory as the HTML or ASP files that reference it. The ID attribute is to be used by client-side VBScript to reference the XEncrypt control (see code samples below). AspEncrypt is a digitally signed DLL, so when your users run this page for the first time, they will see a dialog box similar to this: XEncrypt is an invisible control with no user interface. It can only be invoked by client-side script. The code sample http://localhost/aspencrypt/client_side/simple_client.asp demonstrates simple text encryption and decryption performed on the client side:

<HTML>
<HEAD>
<OBJECT
classid="CLSID:F9463571-87CB-4A90-A1AC-2284B7F5AF4E"
codeBase="aspencrypt.dll"
id="XEncrypt">
</OBJECT>
 
<SCRIPT LANGUAGE="VBSCRIPT">
Sub Encrypt
  Set Context = XEncrypt.OpenContext("mycontainer", False)
  Set Key = Context.GenerateKeyFromPassword("my password")
  Set Blob = Key.EncryptText( document.myForm.txtEncr.Value )
  document.myForm.txtDecr.Value = Blob.Base64
End Sub
 
Sub Decrypt
  Set Context = XEncrypt.OpenContext("mycontainer", False)
  Set Key = Context.GenerateKeyFromPassword("my password")
  Set Blob = XEncrypt.CreateBlob
  Blob.Base64 = document.myForm.txtDecr.Value
  MsgBox Key.DecryptText(Blob)
End Sub
</SCRIPT>
</HEAD>

<BODY>
<FORM NAME="myForm">
<INPUT TYPE="TEXT" NAME="txtEncr" SIZE="60" VALUE="Text to encrypt">
<INPUT TYPE="BUTTON" OnClick="Encrypt" VALUE="Encrypt">
<P>
<INPUT TYPE="TEXT" NAME="txtDecr" SIZE="60">
<INPUT TYPE="BUTTON" OnClick="Decrypt" VALUE="Decrypt">
</FORM>

</BODY>
</HTML>

Best and Cheap Classic ASP Hosting With AspEncrypt Recommendation

HostforLIFE.eu was founded in 2008. It has been topping the list of almost all the web hosting review sites so far. Still have websites running on ASP 3.0 or Classic ASP? Don’t worry; we still support legacy technology like Classic ASP Hosting. You can also mix and match Classic ASP and ASP.NET code in one single web site. We will make sure that Classic ASP runs smoothly on our servers and that your website is safer, faster and better supported than anywhere else! Our best and cheap Classic ASP hosting plan is starting at $5.00/mo. HostforLIFE.eu is now providing free domain and double SQL server space for new clients to enjoy the company’s outstanding web hosting service.



SQL Server 2014 Hosting UK - HostForLIFE.eu :: How to Change Configuration Settings With sp_configure

clock October 23, 2014 08:03 by author Peter

I was recently asked where to go in Configuration Manager to vary the settings for xp_cmdshell on MSSQL 2014 Hosting. it was then that i spotted that the existence of sp_configure is maybe not universal data. I used to be actually afraid. for a few reason I had thought that DBA’s were born with this data. As this seems to not be the case, I felt it might be an honest plan to allow sp_configure a quick run through. Note: This keep procedure modifies system settings. Make certain you understand the setting that you're changing and the need for the change before you creating it.

The system keep procedure sp_configure is used to view or modify variefty of various system settings. These settings will include the default MAXDOP for the server, whether or not SMOs is enabled, whether xp_cmdshell is enabled and an extended list of others. to urge a whole list you'll either question sys.configurations or run sp_configure with no parameters.

Why is that the list from sp_configure shorter than the list on sys.configurations? If I will modify xp_cmdshell victimisation sp_configure. Some configurations are thought-about Advanced. If you would like to see them you may need to change the setting show advanced choices (using of course sp_configure).
EXEC sp_configure 'show advanced options', 1
RECONFIGURE

The Reason why you're adding during this RECONFIGURE command, because sp_configure solely changes the configured value. RECONFIGURE updates the running value with the configured value (there are some exceptions wherever a reboot or instance restart is required). thus in order to actually modification the currently running configuration value you have got to use each commands. as luck would have it RECONFIGURE checks that the configured value is valid before setting it because the running value.

If you're fully bound you recognize what you're doing and want to update one of the configuration values with one thing outside of its allowed vary you'll be able to embrace the WITH OVERRIDE choice of the RECONFIGURE command. So here’s the factor, if you're aiming to be administrating SQL Server you would like to have at least a passing familiarity of the sp_configure and RECONFIGURE commands and a reasonable idea of what settings they modify.



About HostForLIFE

HostForLIFE is European Windows Hosting Provider which focuses on Windows Platform only. We deliver on-demand hosting solutions including Shared hosting, Reseller Hosting, Cloud Hosting, Dedicated Servers, and IT as a Service for companies of all sizes.

We have offered the latest Windows 2019 Hosting, ASP.NET 5 Hosting, ASP.NET MVC 6 Hosting and SQL 2019 Hosting.


Tag cloud

Sign in