Dev Shed Forums http://forums.devshed.com/ Dev Shed - Open Source web development forums. Topics covered include PHP, Apache, mySQL, Zope, Jserv, Java, Python, Zend, XML, DHTML, Javascript and more. en Thu, 18 Jan 2018 14:18:40 GMT vBulletin 60 http://forums.devshed.com/images/misc/rss.png Dev Shed Forums http://forums.devshed.com/ Leasedlayer : 10% Discount on all VPS http://forums.devshed.com/web-hosting-requests/979873-leasedlayer-10-discount-vps-new-post.html Thu, 18 Jan 2018 09:45:19 GMT Leasedlayer offers 10% LIFETIME Discount on All VPS Hosting plans which is Suitable for smaller & large scale enterprises.

Leasedlayer VPS Hosting takes performance and reliability to the next level! Perfect Web hosting Solution for websites and web applications expecting fast growth and require an isolated hosting environment.

Leasedlayer offers discount on VPS Hosting
10% Discount | Code : ALL@10

VPS Hosting Plans
''''''''''''''''''''''''''''''''''''''

Netherlands Linux VPS

CPU - 2 vCPU Cores
Pure SSD - 50 GB
RAM / SWAP - 2GB / 2 GB
Port - 1 Gbps
IPv4/Ipv6 - 1/5
Price : Euros 14/mo.
> Order Now <

Germany KVM VPS

CPU - 2 vCPU Cores
Pure SSD - 40 GB
RAM / SWAP - 2GB / 2 GB
Port - 100 Mbps
IPv4/Ipv6 - 1/5
Price : Euros 12/mo.
> Order Now <

Netherlands KVM Linux VPS

CPU - 2 vCPU Cores
Pure SSD - 40 GB
RAM / SWAP - 2GB / 2 GB
Port - 1 Gbps
IPv4/Ipv6 - 1/5
Price : Euros 12/mo.
> Order Now <

Germany KVM Windows VPS

CPU - 2 vCPU Cores
Pure SSD - 40 GB
RAM / SWAP - 2GB / 2 GB
Port - 100 Mbps
IPv4/Ipv6 - 1/5
Price : Euros 15/mo.
> Order Now <

> Click to know more on VPS Hosting Services by Leasedlayer <

Contact us at any time

Verified Payment Modes
...................................
Paypal | Bank Transfer | Perfect Money | Skrill

>Terms Of Services<

Thank You. ]]>
Web Hosting Requests leasedlayer.com http://forums.devshed.com/web-hosting-requests-101/leasedlayer-10-discount-vps-979873.html
Cheap Canada Windows VPS Cloud RAM - Hostripples! http://forums.devshed.com/web-hosting-offers/979872-cheap-canada-windows-vps-cloud-ram-hostripples-new-post.html Thu, 18 Jan 2018 05:32:43 GMT *Cheap Canada Windows VPS Cloud RAM - Hostripples! * The VPS Cloud models are ideal for hosting professional production environments or critical applications. A hardware SLA is just one of the guarantees in place to provide you high availability and stable service right from the word go. *Canada Windows VPS Cloud RAM Plans* *Canada Windows VPS Cloud RAM PLAN 1 - $50/Month* Guaranteed...
Cheap Canada Windows VPS Cloud RAM - Hostripples!


The VPS Cloud models are ideal for hosting professional production environments or critical applications. A hardware SLA is just one of the guarantees in place to provide you high availability and stable service right from the word go.

Canada Windows VPS Cloud RAM Plans

Canada Windows VPS Cloud RAM PLAN 1 - $50/Month
Guaranteed RAM : 6 GB
HDD : 25 GB
Bandwidth : 100 Mbps Unlimited
CPU Cores : 1 vCore
RDP Access : YES
IPv4 : 1 IP
IPv6 : 1 IP

Buy Now!

Canada Windows VPS Cloud RAM PLAN 2 - $90/Month
Guaranteed RAM : 12 GB
HDD : 50 GB
Bandwidth : 100 Mbps Unlimited
CPU Cores : 2 vCore
RDP Access : YES
IPv4 : 1 IP
IPv6 : 1 IP

Buy Now!

Canada Windows VPS Cloud RAM PLAN 3 - $170/Month
Guaranteed RAM : 24 GB
HDD : 100 GB
Bandwidth : 100 Mbps Unlimited
CPU Cores : 4 vCore
RDP Access : YES
IPv4 : 1 IP
IPv6 : 1 IP

Buy Now!

Why choose Hostripples?
Instant Setup
Easy usability
Value for money
24 x 7 customer service
Unmatched server performance


Visit:- Cheap Canada Windows VPS Cloud RAM

It’s not that we are bragging about our services, our customers say it all!

Hurry up and get Hostripples – the one-stop solution for your web hosting requirements!

Hostripples - Affordable web hosting
Hostripples.com Cheap Hosting | Unlimited Bandwidth | Unlimited Space | Domain Name Registration

Connect with us: Facebook | Twitter | LinkedIn

Hostripples - Affordable web hosting
http://hostripples.com/
http://hostripples.in/
http://hostripples.co.uk/
https://myhostseo.com/
Hostripples.com $1 Unlimited Hosting | $2 Unlimited Windows Hosting | Unlimited Bandwidth | Unlimited Space | Domain Name Registration ]]>
Web Hosting Offers hi5s2arp http://forums.devshed.com/web-hosting-offers-100/cheap-canada-windows-vps-cloud-ram-hostripples-979872.html
hypotenuse of a right triangle http://forums.devshed.com/programming/979871-hypotenuse-triangle-new-post.html Thu, 18 Jan 2018 02:04:33 GMT I am having some issues with this. I get that the hypotenuse is 5, but I'm not converting the inputs correctly. My problem is trying to find away to convert a string number input to a numeric value type. Anyways here is the problem.

Develop a C# console application that computes the hypotenuse of a right triangle. The computation of the hypotenuse

of a right triangle is based on the Pythagorean Theorem: c2 = a2 + b2 and the hypotenuse, c ("long side") of the triangle

can be computed with the formula the hypotenuse is equal to the square root of the side a squared plus side b squared.

The application should take as many side pairs inputs as the user desires and calculate each until the user enters a zero

for both side one and side two (sentinel loop). You should use at least two (2) Math class methods.

The output should look something like this:

enter length of first side: 3

enter length of second side: 4

The hypotenuse is 5

enter length of first side: 3.44

enter length of second side: 4.88

The hypotenuse is 5.97059461025449

enter length of first side: 10.55

enter length of second side: 33.0

The hypotenuse is 34.6453820876607

enter length of first side: 0

enter length of second side: 0

Press any key to continue . . . ]]>
C Programming 1236x http://forums.devshed.com/programming-42/hypotenuse-triangle-979871.html
How to persistently assign windows function keys http://forums.devshed.com/visual-basic-programming/979870-persistently-assign-windows-function-keys-new-post.html Thu, 18 Jan 2018 00:00:44 GMT Hi,

I've created a VB program to assign the action of printing a screenshot of the current screen to a function key of choice, but I'm having trouble trying to get the assignment to persist after the program is closed.

So a couple of questions arise:

1. Is this possible to do?
2. If so, does anyone know the way to do it?

The code I currently have is:

Code:

Imports System
Imports System.IO
Imports System.Drawing
Imports System.Drawing.Printing
Imports System.Windows.Forms.Keys
Imports System.Runtime.InteropServices
Imports Shell32              ' for ShellFolderView
Imports SHDocVw              ' for IShellWindows

Public Class frmFunctionKeyChanger
        <DllImport("User32.dll")> _
        Private Shared Function RegisterHotKey(ByVal hwnd As IntPtr, _
                                                        ByVal id As Integer, ByVal fsModifiers As Integer, _
                                                        ByVal vk As Integer) As Integer
        End Function

    <DllImport("User32.dll")> _
    Private Shared Function UnregisterHotKey(ByVal hwnd As IntPtr, _
                                                        ByVal id As Integer) As Integer
    End Function

        Private Declare Function CreateDC Lib "gdi32" Alias _
          "CreateDCA" (ByVal lpDriverName As String, _
          ByVal lpDeviceName As String, ByVal lpOutput As String, _
          ByVal lpInitData As String) As Integer

        Private Declare Function CreateCompatibleDC Lib "GDI32" _
          (ByVal hDC As Integer) As Integer

        Private Declare Function CreateCompatibleBitmap Lib "GDI32" _
          (ByVal hDC As Integer, ByVal nWidth As Integer, _
          ByVal nHeight As Integer) As Integer

        Private Declare Function GetDeviceCaps Lib "gdi32" Alias _
          "GetDeviceCaps" (ByVal hdc As Integer, _
          ByVal nIndex As Integer) As Integer

        Private Declare Function SelectObject Lib "GDI32" _
          (ByVal hDC As Integer, ByVal hObject As Integer) As Integer

        Private Declare Function BitBlt Lib "GDI32" _
          (ByVal srchDC As Integer, _
          ByVal srcX As Integer, ByVal srcY As Integer, _
          ByVal srcW As Integer, ByVal srcH As Integer, _
          ByVal desthDC As Integer, ByVal destX As Integer, _
          ByVal destY As Integer, ByVal op As Integer) As Integer

        Private Declare Function DeleteDC Lib "GDI32" _
          (ByVal hDC As Integer) As Integer

        Private Declare Function DeleteObject Lib "GDI32" _
          (ByVal hObj As Integer) As Integer

        Const SRCCOPY As Integer = &HCC0020
        Dim WithEvents printDoc As New Printing.PrintDocument()
    Private printFont As Font
    Private streamToPrint As StreamReader
        Private bmpScreen As System.Drawing.Bitmap
        Private pd As New PrintDocument()
    Private strPrintText As String

        Private Sub btnAssign_Click(sender As Object, e As EventArgs) Handles btnAssign.Click

                Dim aKeyCodes As AssocArray = New AssocArray
                Dim intKeyPressed As Integer

                If (Not cboAction.SelectedItem.ToString() = "" _
                &  Not cboFunctionKey.SelectedItem.ToString() = "" _
                        ) Then
                        aKeyCodes.Fill(New String(){"F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"} _
                                                , New String(){F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12}
                                                )

            For Each varKey As Object In aKeyCodes.Elements
                If (varKey(0) = cboFunctionKey.SelectedItem.ToString()) Then
                                        intKeyPressed = varKey(1)
                                        Exit For
                End If
            Next

                        Select cboAction.SelectedItem.ToString()
                        Case "Print Screen"
                                'Assign function key to the Print Screen action
                                RegisterHotKey(
                                Me.Handle,
                                100,
                                vbNull,
                                intKeyPressed
                                )

                        Case "Print File Name List"
                                'Assign function key to the Print File Name List action
                                RegisterHotKey(
                                Me.Handle,
                                200,
                                vbNull,
                                intKeyPressed
                                )

                        Case Else
                                'Error - no action selected
                                MsgBox("An action must be selected.", MsgBoxStyle.OkOnly, "Error")

                        End Select
                Else
                        Select True
                        Case cboAction.SelectedItem.ToString() = ""
                                MsgBox("An action must be selected.", MsgBoxStyle.OkOnly, "Error")

                        Case cboFunctionKey.SelectedItem.ToString() = ""
                                MsgBox("An action must be selected.", MsgBoxStyle.OkOnly, "Error")

                        Case Else
                                'Unknown Error
                                MsgBox("Unknown Error.", MsgBoxStyle.OkOnly, "Error")

                        End Select
                End If

        End Sub

    Protected Overrides Sub WndProc(ByRef oMsg As System.Windows.Forms.Message)
        Dim id As IntPtr = oMsg.WParam
                Dim strPath As String
                Dim strFilenames As String

                Select Case (id.ToString())
        Case "100"
            'Print the screen
                        Try
                                CaptureScreen()
                                AddHandler pd.PrintPage, AddressOf Me.PrintImage
                                pd.Print()

                        Catch ex As Exception
                        End Try

                Case "200"
            'Print the file name list
                        Try
                                strPath = GetExplorerPath()
                                strFilenames = GetFilenamesAsText(strPath)
                                strFilenames = GetFilenamesAsText(strPath)

                                'Try
                                        'printFont = New Font("Courier New", 10)
                                        'AddHandler pd.PrintPage, AddressOf Me.PrintFileList
                                        'pd.Print()
                                'Finally
                                        'streamToPrint.Close()
                                'End Try
                        Catch ex As Exception
                                MessageBox.Show(ex.Message)
                        End Try
                End Select

                MyBase.WndProc(oMsg)
    End Sub

        Protected Sub CaptureScreen()

                Dim hsdc, hmdc As Integer
                Dim bmpHandle, OLDbmpHandle As Integer
                Dim releaseDC As Integer
                Dim intWidth, intHeight As Integer


                hsdc = CreateDC("DISPLAY", "", "", "")
                hmdc = CreateCompatibleDC(hsdc)

                intWidth = GetDeviceCaps(hsdc, 8)
                intHeight = GetDeviceCaps(hsdc, 10)
                bmpHandle = CreateCompatibleBitmap(hsdc, _
                intWidth, intHeight)

                OLDbmpHandle = SelectObject(hmdc, bmpHandle)
                releaseDC = BitBlt(hmdc, 0, 0, intWidth, _
                intHeight, hsdc, 0, 0, 13369376)
                bmpHandle = SelectObject(hmdc, OLDbmpHandle)

                releaseDC = DeleteDC(hsdc)
                releaseDC = DeleteDC(hmdc)

                bmpScreen = Image.FromHbitmap(New IntPtr(bmpHandle))
                DeleteObject(bmpHandle)

        End Sub

    Private Sub PrintImage(ByVal sender As Object, ByVal ev As PrintPageEventArgs)
                Dim bnds As Rectangle

                'Adjust the size of the image to the page to print the full image without losing any part of it
                bnds = ev.MarginBounds

                If (bmpScreen.Width / bmpScreen.Height > bnds.Width / bnds.Height) Then 'Image is wider
                        bnds.Height = CType((CType(bmpScreen.Height, Double) / CType(bmpScreen.Width, Double) * CType(bnds.Width, Double)), Integer)
                Else
                        bnds.Width = CType((CType(bmpScreen.Width, Double) / CType(bmpScreen.Height, Double) * CType(bnds.Height, Double)), Integer)
                End If

        'Calculate optimal orientation
        pd.DefaultPageSettings.Landscape = bnds.Width > bnds.Height

        'Put image in center of page
        bnds.X = CType(((sender.DefaultPageSettings.PaperSize.Width - bnds.Width) / 2), Integer)
        bnds.Y = CType(((sender.DefaultPageSettings.PaperSize.Height - bnds.Height) / 2), Integer)
                ev.Graphics.DrawImage(bmpScreen, bnds)

        End Sub

    'The PrintPage event is raised for each page to be printed.
    Private Sub PrintFileList(ByVal sender As Object, ByVal ev As PrintPageEventArgs)

                Dim linesPerPage As Single = 0
        Dim yPos As Single = 0
        Dim count As Integer = 0
        Dim leftMargin As Single = ev.MarginBounds.Left
        Dim topMargin As Single = ev.MarginBounds.Top
        Dim line As String = Nothing

        'Calculate the number of lines per page.
        linesPerPage = ev.MarginBounds.Height / printFont.GetHeight(ev.Graphics)

        'Print each line of the file.
        While count < linesPerPage
            line = streamToPrint.ReadLine()

                        If line Is Nothing Then
                Exit While
            End If

                        yPos = topMargin + count * printFont.GetHeight(ev.Graphics)
            ev.Graphics.DrawString(line, printFont, Brushes.Black, leftMargin, yPos, New StringFormat())
            count += 1
        End While

        'If more lines exist, print another page.
        If (line IsNot Nothing) Then
            ev.HasMorePages = True
        Else
            ev.HasMorePages = False
        End If

        End Sub

        Private Function GetExplorerPath() As String

                Dim exShell As New Shell
                Dim strPath As String = ""
                Dim strDir As String

                For Each w As ShellBrowserWindow In DirectCast(exShell.Windows, IShellWindows)
                        ' Try to cast to an Explorer folder
                        If TryCast(w.Document, IShellFolderViewDual) IsNot Nothing Then
                                strPath = DirectCast(w.Document, IShellFolderViewDual).FocusedItem.Path
                                Exit For

                        ElseIf TryCast(w.Document, ShellFolderView) IsNot Nothing Then
                                strPath = DirectCast(w.Document, ShellFolderView).FocusedItem.Path
                                Exit For
                        End If
                Next

                If Directory.Exists(strPath) Then
                        strDir = strPath
                ElseIf File.Exists(strPath)
                        strDir = Path.GetDirectoryName(strPath)
                Else
                        strDir = ""
                End If

                Return strDir

        End Function
 
        Private Function GetFilenamesAsText(strPath As String) As String

                Dim strFilenames As String = ""

                For Each filename As String In Directory.EnumerateFiles(strPath)
                        strFilenames = filename + vbCrLf
        Next

                Return strFilenames.Substring(0, Len(strFilenames) - Len(vbCrLf))

        End Function
 
    Public Sub PrintText(ByVal text As String, Optional ByVal printer As String = "")

                Dim pd As New Printing.PrintDocument

        strPrintText = text

                Using (pd)
                        If printer IsNot Nothing _
                        & printer <> "" Then
                                pd.PrinterSettings.PrinterName = printer
                        End If

                        AddHandler pd.PrintPage, AddressOf Me.PrintPageHandler
            pd.Print()
                        RemoveHandler pd.PrintPage, AddressOf Me.PrintPageHandler
        End Using

        End Sub
 
    Private Sub PrintPageHandler(ByVal sender As Object, ByVal args As PrintPageEventArgs)

                Dim myFont As New Font("Courier New", 9)

                args.Graphics.DrawString(strPrintText, _
          New Font(myFont, FontStyle.Regular), _
          Brushes.Black, 50, 50)

        End Sub

End Class

Debbie ]]>
Visual Basic Programming Debbie-Leigh http://forums.devshed.com/visual-basic-programming-52/persistently-assign-windows-function-keys-979870.html
Android sample application not working http://forums.devshed.com/android-development/979869-android-sample-application-new-post.html Wed, 17 Jan 2018 19:50:22 GMT Hi all, I am learning to program for Android and am trying to make a camera app. So I checked out this sample. https://github.com/googlesamples/android-Camera2Basic When I run it and click the button it does nothing. It is supposed to display a toast once it takes a picture. it does not. any help would be appreciated. Hi all,
I am learning to program for Android and am trying to make a camera app.

So I checked out this sample.
https://github.com/googlesamples/android-Camera2Basic

When I run it and click the button it does nothing.
It is supposed to display a toast once it takes a picture.
it does not.
any help would be appreciated. ]]>
Android Development JÞ1 http://forums.devshed.com/android-development-165/android-sample-application-979869.html
GPDHost - Free domain(.club .party .pro), SSL and Site Builder only $ 9.99 /Yr http://forums.devshed.com/web-hosting-offers/979868-gpdhost-free-domain-club-party-pro-ssl-site-builder-9-99-yr-new-post.html Wed, 17 Jan 2018 17:31:27 GMT Build your website on reliable latest generation web hosting with powerful web, security and easy to use software tools.Choose from easy to use 1-click WordPress installation, cPanel or Plesk control panel to control you GPD hosting resource. Add extra enterprise-level server space to store, serve and manage your website. GPDHost offers many variety of hosting plans with different billing cycles,... Build your website on reliable latest generation web hosting with powerful web, security and easy to use software tools.Choose from easy to use 1-click WordPress installation, cPanel or Plesk control panel to control you GPD hosting resource. Add extra enterprise-level server space to store, serve and manage your website. GPDHost offers many variety of hosting plans with different billing cycles, these plans include free SSL Certificate, free domain and website builder, also many other services and best web hosting solutions. We offer you cheap WordPress, unlimited cPanel and best Plesk hosting. New free domain from GPDHost, register your website with .xyz for 1 year without paying anything.


Limited Time Offer: Free Domain Included choose from: .CLUB .PARTY .PRO



Main Features:



• Free website migration

• All Hosting Plans Managed

• Automatic Daily Backup

• Most cost-effective option

• Easy to install and administer

• Easy website server set-up

• Professional support

• Supports all major software

• Security, data back up



GPDhost unlimited cPanel web hosting!



Starter Cpanel

• 2 GB Storage

• 1 Website

• FREE SSL (Let's Encrypt)

• 1 MySQL Data Bases

• Traffic Unlimited

Order Now $ 9.99 / Yr


Basic cPanel

• 5 GB Storage

• 2 Websites

• FREE SSL (Let's Encrypt)

• 2 MySQL Data Bases

• Traffic Unlimited

• Back Up Included


Order Now
Just $1.99 / Mo


Professional cPanel


• 20 GB Storage

• 4 Websites

• FREE SSL (Let's Encrypt)

• 4 MySQL Data Bases

• Traffic Unlimited

• 3 Year @ $1.99 /mo


Order Now Just $5.99 / Mo


Ultimate cPanel

• 50 GB Storage

• 20 Websites

• FREE SSL (Let's Encrypt)

• 20 MySQL Data Bases

• Traffic Unlimited

• 3 Year @ $4.99 / Mo


Order Now
Just $9.99 / Mo


Unlimited cPanel

• 70 GB Storage

• Unlimited Websites

• FREE SSL (Let's Encrypt)

• Unlimited MySQL Data Bases

• Traffic Unlimited

• 3 Year @ $8.99 / Mo


Order Now
Just $11.99 / Mo


- Website address: gpdhost.com
- Country: USA
- Address: 375 Pearl St 6th floor, New York, NY 10038
- Phone: +1 718 975 7576
- E-mail:cpgpdhost@gmail.com
- Payment methods: Visa, MasterCard, Discovery, American Express, PayPal, Bitcoin


Best and cheap web hosting from GPDHost. Free domain registration and SSL installation with hosting plan. If you already have website that you'd like to transfer or just want to build it from scratch, we are the best choice for you as none of these will cost you a dime if you choose GPDHost.



IMPORTANT NOTE :


Please note, that we can register your domain for free, in that condition, if you are going to use our Hosting.

Otherwise we are not able to process with your request.


Best Plesk hosting
Cheap Wordpress hosting
For more information visit GPDHost ]]>
Web Hosting Offers GPDHost http://forums.devshed.com/web-hosting-offers-100/gpdhost-free-domain-club-party-pro-ssl-site-builder-9-99-yr-979868.html
Variable Value Issues - Fail To Get Defined, Fail To get Values Incremented And Fail http://forums.devshed.com/php-development/979867-variable-value-issues-fail-defined-fail-values-incremented-fail-new-post.html Wed, 17 Jan 2018 16:42:03 GMT Php Buddies,

Do you have any clue to why I'm experiencing $variable problems that I never ever faced before ?
The following is an attempt to build a web crawler.
The cURL fetches the page. If not fetching successful then gives error.
If successful, it checks for banned words on page (content filter) and replaces if any found.
Then it extracts all the links found on the page.
Finally, it is supposed to dump the data (keywords found, links found, links count, etc.).

I have not completely finished the script to extract the imgs and count the imgs, count the links that have sought keywords in them, count the links that don't have the sought keywords in them, internal links count, external links count. But, I defined these variables as int "0" and then tried incrementing their values on each foreach loop to simulate their counts. 100% correcting their codes would follow later.
But first things first. These variables' values are not getting incremented on each foreach loop. That's problem number 2.
These variables values have been set but get undefined variables error. That's problem number 1.
These variables are failing to get dumped and so their appropriate columns in mysql tbl showing as NULL. Even though they hold initial values of "0", then those values should have got dumped. But they don't. That's problem number 3.

Do care to check the code out. I have asked these same questions in the code comments in CAPITALS for your easy spotting.
PHP Code:

<?php 

//Required PHP Files.
include 'config.php';
include 
'header.php';

//1). Set Banned Words.
$banned_words = array("asshole""nut""bull****");

$url 'https://en.wikipedia.org/wiki/HTTP_403';
// 2). $curl is going to be data type curl resource.
$curl curl_init();

// 3). Set cURL options.
curl_setopt($curlCURLOPT_URL"$url");
curl_setopt($curlCURLOPT_SSL_VERIFYPEERfalse);
curl_setopt($curlCURLOPT_RETURNTRANSFERtrue);

// 4). Run cURL (execute http request).
$result curl_exec($curl);

if (
curl_errno($curl))
{
    echo 
'Error:' curl_error($curl);
}

$response curl_getinfo$curl );

//If page is fetched then replace banned words found on page.
if($response['http_code'] == '200' )
{   
    
$regex '/\b';
    
$regex .= implode('\b|\b'$banned_words);
    
$regex .= '\b/i';
    
$substitute 'BANNED WORD REPLACED';
    
$clean_result preg_replace($regex$substitute$result);
    
//Present the banned words filtered webpage.
    
echo $clean_result;
}
else
{
    
//Show error if page fetching fails.
    
echo "Page fetching problem!";
    echo 
"$response[http_code]";
    exit();
}

curl_close($curl);

//PROBLEM NUMBER 1:
//I HAVE DEFINED THE FOLLOWING VARIABLES BUT GET ERROR THEY HAVE NOT BEEN DEFINED! WHY IS THAT ?
//Define Variables
    
$keywords_count "0";
    
$links_count "0";
    
$keywords_links_count "0";
    
$images_count "0";
    
$keywords_images_count "0";
    
$keywords_internal_links_count "0";
    
$keywords_external_links_count "0";

//Link Exractor starts here. It will extract all links present on the page.
function linkExtractor($clean_result)
{
    
    
$linkArray = array();
    if(
preg_match_all('/<a\s+.*?href=[\"\']?([^\"\' >]*)[\"\']?[^>]*>(.*?)<\/a>/i'$clean_result$link_matchesPREG_SET_ORDER)){
     foreach (
$link_matches as $link_match) {          
       
       
//PROBLEM NUMBER 2:
       //WHY THE FOLLOWING VARIABLE INT VALUES DON'T INCREMENT ?
       //Echo the following variable values on each foreach loop.
       
echo "url: $url<br>";
       echo 
"link_matches: $link_match<br>";
       
$links_count++;
       echo 
"links_count: $links_count++<br>";
       
$keywords_links_count++;
       echo 
"keywords_links_count: $keywords_links_count++<br>";
       
$images_count++;
       echo 
"images_count: $images_count++<br>";
       
$keywords_images_count++;
       echo 
"keywords_images_count: $keywords_images_count++<br>";
       
$keywords_internal_links_count++;
       echo 
"keywords_internal_links_count: $keywords_internal_links_count++<br>";
       
$keywords_external_links_count++;
       echo 
"keywords_external_links_count: $keywords_external_links_count++<br>";
          
  }
 }
 return 
$linkArray;
}
echo 
'<pre>' print_r(linkExtractor($clean_result), true) . '<pre>';


//Content Filter starts here to check for banned words present on the page.
$pieces explode(" "$clean_result);

$keywords_count "0";
foreach(
$pieces as $keyword
{
        echo 
$keyword."\n";
        echo 
"keyword: $keyword<br>";
        
$keywords_count++;
        echo 
"keywords_count: $keywords_count++<br>";
        
print_r($pieces);        
        
        
//Insert the user's inputs into Mysql database using php's sql injection prevention method "Prepared Statements".
            
$stmt mysqli_prepare($conn"INSERT INTO searchengine_index(url,keywords,keywords_count,links,links_count,keywords_links_count,images_count,keywords_images_count,keywords_internal_links_count,keywords_external_links_count) VALUES (?,?,?,?,?,?,?,?,?,?)");
            
            
//PROBLEM NUMBER 3:
            //WHY ALL FOLLOWING VARIABLES (THAT COME AFTER $url and $keyword DO NOT GET DUMPED INTO THEIR APPROPRIATE COLUMNS IN MYSQL TBL ? COLUMNS SHOW AS "NULL".
            
mysqli_stmt_bind_param($stmt'ssisiiiiii'$url,$keyword,$keywords_count,$link_match[$keywords_links_count],$links_count,$keywords_links_count,$images_count,$keywords_images_count,$keywords_internal_links_count,$keywords_external_links_count);
            
mysqli_stmt_execute($stmt);
            
            
//Check if data was successfully submitted or not.
            
if (!$stmt)
            {
                echo 
"Sorry! Our system is currently experiencing a problem indexing your website. We will try some other time!";
                exit();
            }    
}

?>

]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/variable-value-issues-fail-defined-fail-values-incremented-fail-979867.html
<![CDATA[[Python 3] writing for loop txt file give strainge result, help needed!]]> http://forums.devshed.com/python-programming/979866-python-3-writing-loop-txt-file-strainge-result-help-new-post.html Wed, 17 Jan 2018 16:23:36 GMT Hey Python Programmers...

I try to write an for loop file as an .txt document... but it will be give an strainge result...
This is my code, writting in python 3:

Code:

file = open("Doc.txt", "w")


names = ["Jamie", "Vinnie", "Bennie", "Liesbeth", "Dylan", "Marvin", "Malaicka", "Chelsea"]

for names in names:
    file.write(names)


file.close()

print(file)


But my writting .txt document result as this:
Quote:

JamieVinnieBennieLiesbethDylanMarvinMalaickaChelsea
If you can see, my list must be writted under each name... but it don't happend...

Here an example for the result thad i want (writting on the forum, this is no .txt file:
Quote:

Jamie
Vinnie
Bennie
Liesbeth
Dylan
Malaicka
Chelsea
This is an example for the just result about how it hearth, but my script doesn't this...
Can anyone help me to correct my code, just i can expiriment with it ?...

Thanks for help, Jamie. ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/python-3-writing-loop-txt-file-strainge-result-help-979866.html
<![CDATA[★Alnitech.com SSD Sale+1G Port★ E3 8GB / E3 16GB from $49.99★Special offer★]]> http://forums.devshed.com/web-hosting-offers/979865-alnitech-com-ssd-sale-1g-port-e3-8gb-e3-16gb-49-99-special-offer-new-post.html Wed, 17 Jan 2018 14:34:42 GMT Alnitech is always happy to take care of your IT infrastructure while you’re watching your business growing.

Please see below our offers, all of them and more ( get in touch with our sales) can be upgraded / downgraded or redesigned according to your personal requirements:

1. SUPERMICRO E3-1230 v2/v3 8GB 1x120GB SSD, 1G Port, 5 IPv4
1Gbps Port (10T in+10T out)
Location: Asheville, NC , USA
Price:*$49.99
Order Here -->Coupon: ALNI


2. SUPERMICRO X9SCL-F Xeon E3-1230v2 (or X10SLM-F Xeon E3-1230v3) 16GB 2x1THDD 1x120GB SSD, 1G Port, 5 IPv4
1Gbps Port (10T in+10T out)
Location: Asheville, NC , Chicago, IL USA
Price:*$79.99
Order Here -->Coupon: ALNI


3. SUPERMICRO X9SCL-F E3-1230v2 (or X10SLM-F E3-1230v3) 16GB 2x1T HDD 1x480GB SSD, 1G Port
1Gbps Port (10T in+10T out)
Location: Asheville, NC , Chicago, IL USA
Price:*$109.99.
Order Here -->Coupon: ALNI


(*) New signups only. If you are an existing Alnitech's client please contact our sales
====================================

Why choosing us:

• FULLY MANAGED SERVICE AVAILABLE
• Choice of HDDs/SSDs available
• No monthly fee for /29 IPv4 + IPv6
• 100Mbps UNMETERED BANDWIDTH
• 99.95% UPTIME
• 24x7x365 Support
• Large choice of Operating Systems
• FREE SETUP
• 24x7 PROACTIVE BMC LOG MONITORING
• DEDICATED IPMI CONNECTED TO SEPARATE NETWORK (KVM over IP, remote media)
• Delivery within 24 hours
• 21-day money-back guarantee
• RAM upgrades up to 32GB for E3 CPUs Servers; up to 128GB for E5 CPUs Servers
• HDD/SSD upgrade up to 4 per unit
• Disaster Recovery / Backup Server
• Private Clusters / Cloud
• Private Interconnect
• BGP announcement
• and other solutions on demand

====================================

Test IP:

Asheville, NC Location: test-avl01.alnitech.com
Chicago, IL Location: test-lbd01.alnitech.com

Can’t find what you need? Please contact sales team to find the best solution for you.

====================================
You may trust our 7+ years of experience, with proven record of customer satisfaction:

http://www.serchen.com/company/alnitech/
http://www.webhostingtalk.com/showth...21#post9702621
http://www.webhostingtalk.com/showth...light=alnitech
http://www.webhostingtalk.com/showth...light=alnitech
http://www.webhostingtalk.com/showth...light=alnitech
http://www.webhostingtalk.com/showth...light=alnitech
====================================
Have a question? Contact Us:
E-mail: sales@alnitech.com
Web and Live chat: https://alnitech.com
Facebook: Alnitech ]]>
Web Hosting Offers Alnitech http://forums.devshed.com/web-hosting-offers-100/alnitech-com-ssd-sale-1g-port-e3-8gb-e3-16gb-49-99-special-offer-979865.html
<![CDATA[Stable & Cheap Android App Marketing Service Starting at $69/Mo | 100 Installs]]> http://forums.devshed.com/web-hosting-offers/979864-stable-cheap-android-app-marketing-service-starting-69-mo-100-installs-new-post.html Wed, 17 Jan 2018 11:53:07 GMT With the growth of the mobile app market growing at such a rate, there have been various app marketing agencies rising, which are providing support in app promotion, optimization and marketing. Choosing the ideal support from a mass of start ups and expansive companies could be a daunting process. Temok sell APP Install Services to clients all over the world. We are in Google Play business for... With the growth of the mobile app market growing at such a rate, there have been various app marketing agencies rising, which are providing support in app promotion, optimization and marketing. Choosing the ideal support from a mass of start ups and expansive companies could be a daunting process. Temok sell APP Install Services to clients all over the world. We are in Google Play business for past 2 years. Temok also provides Android App Reviews and Ratings based on your requirements. Never again will you stare at your app's download tracker filled up with depressing ZEROs. Our app marketing service can deliver up to 100,000 installs EVERY SINGLE DAY.


We are proudly offering four different Android App Marketing Plans at the moment. Below you will find some details of them. Choose the right plan according to your need and budget & get it.

❱❱ Android App Marketing Starter Plan ❰❰

⋄ 100 Installs
⋄ 20 - 5 Star Ratings
⋄ 10 Positive Reviews
⋄ 50 Google+ Share
⋄ Unique Devices + IP
⋄ Worldwide Delivery
⋄ Google Play App Link
⋄ Delivered in 4-5 days
⋄ Price: $69/Month ⎰ Order Starter Plan

❱❱ Android App Marketing Advanced Plan ❰❰

⋄ 200 Installs
⋄ 40 - 5 Star Ratings
⋄ 20 Positive Reviews
⋄ 100 Google+ Share
⋄ Unique Devices + IP
⋄ Worldwide Delivery
⋄ Google Play App Link
⋄ Delivered in 4-5 days
⋄ Price: $138/Month ⎰ Order Advanced Plan

❱❱ Android App Marketing Professional Plan ❰❰

⋄ 300 Installs
⋄ 80 - 5 Star Ratings
⋄ 40 Positive Reviews
⋄ 250 Google+ Share
⋄ Unique Devices + IP
⋄ Worldwide Delivery
⋄ Google Play App Link
⋄ Delivered in 4-5 days
⋄ Price: $276/Month ⎰ Order Professional Plan

❱❱ Android App Marketing First-Class Plan ❰❰

⋄ 500 Installs
⋄ 160 - 5 Star Ratings
⋄ 80 Positive Reviews
⋄ 500 Google+ Share
⋄ Unique Devices + IP
⋄ Worldwide Delivery
⋄ Google Play App Link
⋄ Delivered in 4-5 days
⋄ Price: $500/Month ⎰ Order First Class Plan

The individuals who work at Temok are from the business and the majority of them possess more than 8-10 years working experience in the web hosting industry. Our people are actually our major power and we are always spending money on fresh individuals with new ideas.

⋄ We accept VISA, MasterCard, American Express, PayPal, WorldPay and Diners Club International for payment.

Contact Info:
Email: sales(@)temok.com
Skype: temok.sales
Live Chat: Available on our Website
]]>
Web Hosting Offers tk-hassan http://forums.devshed.com/web-hosting-offers-100/stable-cheap-android-app-marketing-service-starting-69-mo-100-installs-979864.html
<![CDATA[Unlimited Cpanel Shared Hosting | Unlimited Bandwidth & Space!]]> http://forums.devshed.com/web-hosting-offers/979863-unlimited-cpanel-shared-hosting-unlimited-bandwidth-space-new-post.html Wed, 17 Jan 2018 10:56:16 GMT Welcome To Dollar1hosts.com...Dollar1hosts.com is one of the budget web hosting provider where plans have been designed such a way where multiple websites can be hosted under single one roof and also with friendly and affordable budget pricing. Dollar1hosts's "Platinum" plan gives freedom to client where client can host unlimited websites with amazing features like unlimited monthly traffic, unlimited disk, unlimited addon domains, unlimited parked domains, unlimited subdomains, unlimited databases, unlimited email accounts, softacolous library, unlimited wordpress sites and much more!

Dollar1hosts.com also offers 30 Days money back guarantee, 24x7 live chat support, free migration service and these features makes us special than others and forcing clients to choose our services, so hurry and allow us to serve you.

Key Features @Dollar1hosts.com:

- Unlimited cpanel hosting
- Unlimited Mysql DB's
– Half Dollar Hosting
– Unlimited Space
– Unlimited Bandwidth
– Easy Billing Cycles
– Cheaper Reseller hosting Plans
– Easy Upgrade Facility
– Free Migration Services
– Ideal plans for wordpress Hosting
– Ideal plans for third party scripts or apps
– Multiple GEO Locations
– SEO Tools for search engine submissions
– 24×7 Live Chat Support
- Free Migration Service-Half
- Fixed Pricing for Lifetime
- No Hidden Fees
- Unconditional Money Back Guarantee.
- Cheaper Dedicated Servers
- Low Cost Dedicated Servers
- Life Time Fixed Pricing
- Fast Issue Resolution
- Priority Based Customer Support
- Best $1 Unlimited Hosting
- Paypal As an Payment Gateway
- Free Auto SSL


https://www.dollar1hosts.com/ - unlimited cpanel hosting, unlimited db hosting, unlimited mysql, unlimited databases, web hosting, hosting, web hosting, linux shared hosting, half dollar hosting, one dollar hosting, $1 hosting, $1 web hosting, $1 unlimited hosting, reliable web hosting, affordable web hosting, latest php hosting, free ssl hosting, money back hosting, cheap dedicated servers, low cost dedicated serfvers, priority hosting support, 24x7 support, best support hosting, dollar1hosts, dollar1host, dollar 1 host, dollar host, 1 dollar host, 1 dollar hosting, 1 dollar web, web hosting $1, cheap hosting solutions, cheap vps hosting, cheap ssl cert, free dedicated hosting, free domain hosting.

HURRY UP.

————
Dollar1hosts.com
Sales/Support Team
]]>
Web Hosting Offers karryjones http://forums.devshed.com/web-hosting-offers-100/unlimited-cpanel-shared-hosting-unlimited-bandwidth-space-979863.html
WHUK Exquisite Offer | Save 20% on E3 Dedicated Servers » High Performance SSD http://forums.devshed.com/web-hosting-offers/979862-whuk-exquisite-offer-save-20-e3-dedicated-servers-performance-ssd-new-post.html Wed, 17 Jan 2018 09:50:46 GMT WHUK's Intel® Xeon® E3-v6 series Managed Dedicated Server which is industry leading server configuration built to deliver optimum performance to any website. Get Free Plesk Web Pro and Free Server Monitoring with any of the below servers. From last 15 years we deliver the ultimate dedicated hosting solutions with Enterprise Quality Server Hardware and Exuberant Support.

WHUK E3-v6 Server features:
  • Enterprise Quality Server Hardware
  • SmarterBundle Pro
  • Proactive Server Monitoring
  • IPv6 Support
  • UK Data Centres

This is a limited time offer and ends on Wednesday 31 January 2018, 11.59pm BST. So rush to get yours today!

With our latest promo on managed E3-v6 series dedicated servers, our entire range of plans have evolved into more affordable and value for money proposition! Here's what you can avail through the latest promotion:

Quote:

Use Coupon Code "DS20" to avail 20% OFF.
Initiate a LIVE CHAT with one of our friendly sales advisor to avail exclusive benefits on these servers!

WHUK E3 Standard (HDD)
CPU Model - Intel Xeon E3-1220v6 3.0GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 4 Threads
RAM - 8GB DDR4 (Max 64GB)
Hard Disk - 2 x 2 TB 7.2K SATA
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 69.99/pm | Order Now

WHUK E3 Standard (SSD)
CPU Model - Intel Xeon E3-1220v6 3.0GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 4 Threads
RAM - 8GB DDR4 (Max 64GB)
Hard Disk - 2 x 240GB Performance SSD
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 89.99/pm | Order Now

WHUK E3 Professional (HDD)
CPU Model - Intel Xeon E3-1230v6 3.5GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 8 Threads
RAM - 16GB ECC DDR4 (Max 64GB)
Hard Disk - 2 x 1 TB 7.2K SATA
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 89.99/pm | Order Now

WHUK E3 Professional (SSD)
CPU Model - Intel Xeon E3-1230v6 3.5GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 8 Threads
RAM - 16GB DDR4 (Max 64GB)
Hard Disk - 2 x 480 GB Performance SSD
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 109.99/pm | Order Now

WHUK E3 Enterprise (HDD)
CPU Model - Intel Xeon E3-1270v6 3.8GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 8 Threads
RAM - 32GB DDR4 (Max 64GB)
Hard Disk - 2 x 2 TB 7.2K SATA
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 109.99/pm | Order Now

WHUK E3 Enterprise (SSD)
CPU Model - Intel Xeon E3-1270v6 3.8GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 8 Threads
RAM - 32GB DDR4 (Max 64GB)
Hard Disk - 2 x 1 TB Performance SSD
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 139.99/pm | Order Now

To know more about features and information, visit https://www.webhosting.uk.com/dedicated-servers/

About WHUK
WHUK, a web hosting company in the UK since 2001. The services come equipped with powerful features capable of serving wide range of requirements. Both, cloud and dedicated hosting packages are power packed and fully equipped with the best in-class features. With the infrastructural set-up housed at state-of-the-art Tier 4 Datacentre in the UK, you can expect the best uptime ever.

For any information with regards to festive discounts and offers, please contact our sales department by initiating a chat or by dropping an email to sales @ webhosting.uk.com or call us on 0800 862 0890 / +44-191-303-8069. ]]>
Web Hosting Offers James-A http://forums.devshed.com/web-hosting-offers-100/whuk-exquisite-offer-save-20-e3-dedicated-servers-performance-ssd-979862.html
HOSTBAZZAR.COM|SSD Shared Hosting|Just $2.90/M| CloudLinux |Instant Setup|CloudFlare| http://forums.devshed.com/web-hosting/979860-hostbazzar-com-ssd-shared-hosting-2-90-cloudlinux-instant-setup-cloudflare-new-post.html Wed, 17 Jan 2018 07:51:54 GMT HostBazzar which is accessed as Hostbazzar.com provides the great low cost hosting solutions in hosting field....you can host your site in Low Price and with the assurity that rates wont be changed in the future hence Host Bazzar is market's best hosting company..Just as your hottest host company..

You will find an unmatching high quality Reliable and Budget Hosting Solution's with Hostbazzar also features of our services will meet with your requirement and will help you to succeed on the Internet, so try our refund policy protected Hosting solutions and make hostbazzar.com as your affordable web hosting provider today..Hurry up!

For more info please visit us at 301 Moved Permanently

What's Included :

~ Easy Billing Cycles
~ No Hidden Costs
~ Unlimited Sub Domains
~ Unlimited MySQL Databases
~ Unlimited Mail Boxes
~ Unlimited Parked Domains
~ Unlimited FTP Accounts
~ Server Side Includes
~ HTML Editor
~ Dream weaver compatible
~ Secure IMAP & POP3
~ Override .htaccess Support
~ Unlimited Auto responders
~ Unlimited Forwarders
~ Squirrelmail Webmail
~ Horde Webmail
~ Free Migration Service
~ Spamhaus & SpamCop Checks
~ Catch-All Email Addresses
~ Ports 26 and 587 Outgoing
~ ImageMagick, NetPBM, GD
~ Curl, DomXML, mod_rewrite
~ Zend Optimizer
~ ionCube PHP Loader
~ DDoS Attack Response
~ Brute Force Detection
~ Nightly Security Updates

We appreciate the opportunity and look forward for quick orders.

301 Moved Permanently >> Order Now.

-----------

Thank you. ]]>
Web Hosting markcooper http://forums.devshed.com/web-hosting-12/hostbazzar-com-ssd-shared-hosting-2-90-cloudlinux-instant-setup-cloudflare-979860.html
<![CDATA[[MilesWeb] 50% OFF on Shared Hosting Starts @ $7.75/yr | Free SSL | END50 | Buy Now]]> http://forums.devshed.com/web-hosting-offers/979859-milesweb-50-shared-hosting-starts-7-75-yr-free-ssl-end50-buy-new-post.html Wed, 17 Jan 2018 06:42:46 GMT *MilesWeb* (https://www.milesweb.com) is a world-class hosting provider that provides web hosting solutions of all types. Our captivating web hosting platforms are fully capable of supporting you for managing your websites in a way that will save your time and money. We believe in offering nothing but the best when it comes to service and server performance. Get web hosting solutions that are... MilesWeb is a world-class hosting provider that provides web hosting solutions of all types. Our captivating web hosting platforms are fully capable of supporting you for managing your websites in a way that will save your time and money. We believe in offering nothing but the best when it comes to service and server performance. Get web hosting solutions that are simple, powerful and reliable.

Quote:

Save 50% OFF on your first invoice. Enter promo code END50 during checkout.
Below is the list of Cheap Web Hosting plans:

Lite Plan

  • Host 1 Website
  • 1GB SSD Space
  • 10 GB Bandwidth
  • Free SSL Certificate
  • cPanel + Softaculous
  • 1 SQL DB's
  • 2 Email Accounts

Discounted Price: $7.75/yr | Buy Now

Deluxe Plan

  • Host 3 Websites
  • 5 GB SSD Space
  • 50 GB Bandwidth
  • Free SSL Certificate
  • cPanel + Softaculous
  • 5 SQL DB's
  • 10 Email Accounts

Discounted Price: $30.75/yr | Buy Now

Ultimate Plan

  • Host 5 Websites
  • 10 GB SSD Space
  • 100 GB Bandwidth
  • Free SSL Certificate
  • cPanel + Softaculous
  • 10 SQL DB's
  • 20 Email Accounts

Discounted Price: $46.25/yr | Buy Now

Below is the list of Unlimited SSD Hosting plans:

Economy Plan

  • Host 1 Domain
  • 1GB SSD Space
  • Unlimited Bandwidth
  • Free SSL Certificate
  • cPanel + Softaculous
  • 3 SQL DB's
  • 10 Email Accounts
  • Discounted Price: $1.67/mo

Buy Now

Value Plan

  • Host 1 Domain
  • Free .COM/.IN domain
  • Unlimited SSD Space
  • Unlimited Bandwidth
  • Free SSL Certificate
  • cPanel + Softaculous
  • Unlimited SQL DB's
  • Spam Experts
  • Unlimited Email Accounts
  • Discounted Price: $2.8/mo

[20% OFF] : Discount Code :: VNEW | Buy Now

Unlimited Plan

  • Host Unlimited Domains
  • Free .COM/.IN domain
  • Unlimited SSD Space
  • Unlimited Bandwidth
  • Free SSL Certificate
  • cPanel + Softaculous
  • Unlimited SQL DB's
  • Spam Experts
  • Unlimited Email Accounts
  • Discounted Price: $4.2/mo

[30% OFF] : Discount Code :: UNEW | Buy Now

Quote:

The domain will be FREE till the time your web hosting account remains active.
For more details on Unlimited Web Hosting plans visit : https://www.milesweb.com/hosting/web-hosting

For more details on Cheap Web Hosting plans visit : https://www.milesweb.com/shared-hosting.php

Below is the list of Add-ons provided with plans:

SSL Certificate

  • Comodo Domain SSL - Monthly $1.65
  • Let's Encrypt SSL - Free

Daily Automated Backup : Annually $15

  • We maintain last 7 days backup of your website, email and database.

Dedicated IP Address : Monthly $2

  • Recommended for SEO,SSL and Email

Boost website speed with CDN : Monthly $10

HackAlert Monitoring : Annually $15

  • HackAlert is a monitoring service that checks your website daily and immediately notifies you if your website has been hacked or injected with malicious code.

Sitelock Basic : Annually $25

  • Get Total Website Security, protect your website with monthly malware scans and guard against hacker attacks, identity theft and other threats. Trust Seals and Daily Security Scanning of upto 25 pages. Exclusive registration price!

Datacenter Location:

  • India
  • UK
  • USA
  • Romania


Quote:

SpamExperts:The Best Solution Against Spam And Viruses For Your Organization! Protect unlimited mailboxes from spam emails for just
$3/mo

For Immediate Assistance, Contact Us : sales@milesweb.com or visit our website to initiate live chat. ]]>
Web Hosting Offers MilesWeb http://forums.devshed.com/web-hosting-offers-100/milesweb-50-shared-hosting-starts-7-75-yr-free-ssl-end50-buy-979859.html
Footer Headach http://forums.devshed.com/css-help/979858-footer-headach-new-post.html Wed, 17 Jan 2018 06:38:14 GMT
]]>
I would like to build a footer structure something like this:
Code:

<footer class="footer">
    <div class="A"></div>
    <div class=B"></div>
    <div class="C"></div>
    <div class="D"></div>
    <div class="E"></div>
</footer>

Where:

A) The footer expands to the full viewport whatever that may be (and contracts as well)
B) DIV A spans the full width as well (or can if what's in it is that wide)
C) DIV's B, C, and D are lined up in a row
D) DIV E is like DIV A
E) For "responsiveness", at a certain minimum width, I would use @media queries to reduce it all to a nice easy stack.

But it's the wide layout that has me perplexed. I can get three div's to line up, but the outer footer tag has to expand with them because it has the background.

Do I need another DIV to wrap around A though E for the overall background? Whatever holds the background has to get taller or shorter as content in B, C, and D expands and contracts.

I'm not sure where to go. It's making my head hurt.

See a sketch here => demo.png
Attached Images
]]>
CSS Help Arty Zifferelli http://forums.devshed.com/css-help-116/footer-headach-979858.html