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 Mon, 28 May 2018 00:48:21 GMT vBulletin 60 http://forums.devshed.com/images/misc/rss.png Dev Shed Forums http://forums.devshed.com/ Which Styles Are They ? http://forums.devshed.com/php-development/980683-styles-new-post.html Sun, 27 May 2018 22:57:34 GMT " which I am not familiar with. Is it oop ? Maybe even pdo ? But wait, it mentions 'mysqli' !!! I have never come across mysqli ever using '->'. Strange! PHP: --------- Folks,

What style is this following code in ? It uses "->" which I am not familiar with.
Is it oop ? Maybe even pdo ? But wait, it mentions 'mysqli' !!!
I have never come across mysqli ever using '->'. Strange!
PHP Code:

<?php

//TUTORIAL: https://developer-blog.net/en/build-your-own-search-engine/

    
$url "http://www.developer-blog.net";
 
    
$mysqli = new mysqli("localhost""root""""crawler_index");
    
    if(
$mysqli->connect_error){
       echo 
"unable to connect to Database: ".mysqli_connect_error()."\n";
       exit();
    }
 
    
$links find_all_links($url);
    
links_to_db($links$mysqli);
 
    function 
find_all_links($url)
    {
        
$htmlData file_get_contents($url);
        if(
preg_match_all('/<a\s+href=["\']([^"\']+)["\']/i'$htmlData$linksPREG_PATTERN_ORDER))
        {
            return 
array_unique($links[1]);
        }
        return 
null;
    }
 
    function 
links_to_db($links$mysql)
    {
        
//urls to db
        
foreach($links as $link){
        
$allowed true;
 
        
//check if url exists
        
$statement "SELECT * FROM `crawler_index` WHERE internal_url = ?";
        if(
$stmt $mysql->prepare($statement)){
            
$stmt->bind_param("s"$link);
            
$stmt->execute();
            
$stmt->store_result();
            if(
$stmt->num_rows>0){
                
$allowed=false;
            }
            
$stmt->close();
        }
 
        
//insert into DB
        
if($allowed){
            
$statement "INSERT INTO `crawler_index` (internal_url) VALUES (?)";
            if(
$stmt $mysql->prepare($statement)){
                
$stmt->bind_param("s"$link);
                
$stmt->execute();
                
$stmt->close();
            }
        }
    }
}

?>

In short, I struggled to understand it at first. And so, tried converting it to the mysqli way I learn.
Look below.
Check the commented-out parts of the code. Those are the originals commented-out because I replaced them with my line of mysqli coding.
PHP Code:

<?php

    $url 
"http://www.developer-blog.net";
 
    
/*
    $mysqli = new mysqli("localhost", "root", "", "crawler_index");
        
    if($mysqli->connect_error){
       echo "unable to connect to Database: ".mysqli_connect_error()."\n";
       exit();
    }
    */


    //Connect to Mysql Database in this input format: "Server", "MySql User", "Mysql User Password", "MySql Database Name".
    
$mysqli mysqli_connect("localhost""root""""crawler_index");

    if (!
$mysqli
    {
        
//Error Message to show user in technical/development mode to see errors.
        
die("Database Error : " mysqli_error($mysqli));
    
        
//Error Message to show User in Layman's mode to see errors.
        
die("Database error.");
        exit();
    }

    
$links find_all_links($url);
    
links_to_db($links$mysqli);
 
    function 
find_all_links($url)
    {
        
$htmlData file_get_contents($url);
        if(
preg_match_all('/<a\s+href=["\']([^"\']+)["\']/i'$htmlData$linksPREG_PATTERN_ORDER))
        {
            return 
array_unique($links[1]);
        }
        return 
null;
    }
 
    
/*
    function links_to_db($links, $mysql)
    {
        //urls to db
        foreach($links as $link){
        $allowed = true;
 
        //check if url exists
        $statement = "SELECT * FROM `crawler_index` WHERE internal_url = ?";
        if($stmt = $mysql->prepare($statement)){
            $stmt->bind_param("s", $link);
            $stmt->execute();
            $stmt->store_result();
            if($stmt->num_rows>0){
                $allowed=false;
            }
            $stmt->close();
        }
    */
    
    
function links_to_db($links,$mysqli)
    { 
        
//Urls to DB. 
        
foreach($links as $link
        { 
            
$query_1 "SELECT * FROM crawler_index WHERE internal_url = ?"
            
//$query_1 = "SELECT * FROM crawler_index WHERE internal_url = ? LIMIT 1"; 
            //$query_1 = "SELECT internal_url FROM crawler_index WHERE internal_url = ?"; 
            //$query_1 = "SELECT internal_url FROM crawler_index WHERE internal_url = ? LIMIT 1"; 
            
if($stmt_1 mysqli_prepare($mysqli,$query_1))
            {
                
mysqli_stmt_bind_param($stmt_1,'s',$link); 
                
mysqli_stmt_execute($stmt_1); 
                
$result_1 mysqli_stmt_bind_result($stmt_1,$db_link); 
                
mysqli_stmt_fetch($stmt_1); 
                
mysqli_stmt_free_result($stmt_1); 
                
//if(!$stmt_1) 
                
if($link == $db_link
                {
                    
$allowed false
                }
                
mysqli_stmt_close($stmt_1); 
            }
 
        
/*
        //insert into DB
        if($allowed){
            $statement = "INSERT INTO `crawler_index` (internal_url) VALUES (?)";
            if($stmt = $mysql->prepare($statement)){
                $stmt->bind_param("s", $link);
                $stmt->execute();
                $stmt->close();
            }
        }
        */
        
        //Insert the user's inputs into Mysql database using php's sql injection prevention method "Prepared Statements".
        
$query_2 "INSERT INTO crawler_index(url,internal_url) VALUES (?,?)"
        
$stmt_2 mysqli_prepare($mysqli,$query_2);
        
mysqli_stmt_bind_param($stmt_2,'ss',$url$internal_url);
        
mysqli_stmt_execute($stmt_2);
        
//Free Result Set. 
        
mysqli_stmt_free_result($stmt_2); 
        
//Close Statement Connection. 
        
mysqli_stmt_close($stmt_2); 
        
//Close Database Connection. 
        
mysqli_close($mysqli);  
    }
}

?>

Now do tell me, what are the difference between my style and the style it was written in ? What do you call each of these 2 styles ?
Anyway, check my next post ... ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/styles-980683.html
Accessing Data With Jason http://forums.devshed.com/javascript-development/980681-accessing-data-jason-new-post.html Sun, 27 May 2018 13:25:39 GMT Hi;

When the response is an error, it doesn't alert or console.

When it's success it workes well.

What did I miss? Why isn't error working?

"upload" controller that generates Json response:
PHP Code:

<?php
defined
('BASEPATH') OR exit('No direct script access allowed');

class 
Upload extends CI_Controller {

    public function 
index()
        {
            
            
            
$config['upload_path']          = './uploads/';
            
$config['file_name']            = $_POST['plc_id'].".jpg";
            
$config['allowed_types']        = 'gif|jpg|png';
            
$config['max_size']             = 1000;
            
$config['max_width']            = 200;
            
$config['max_height']           = 200;

            
$this->load->library('upload'$config);
            if(!
$this->upload->do_upload('userfile'))
                {
                    echo 
json_encode(array("errors"=>$this->upload->display_errors()));
                }
            else
                {
                    echo 
json_encode(array("plc_id"=>$_POST['plc_id'],'file'=>$config['file_name']));
                }    
        }
}

Jquery Ajax:
Code:

$(document).ready(function (e) {

    $('.plc_upload_thumbnail').on('submit',(function(e) {
        e.preventDefault();
        var formData = new FormData(this);

        $.ajax({
            type:'POST',
            url: '<?php echo base_url('upload');?>',
            data:formData,
            cache:false,
            contentType: false,
            processData: false,
            success:function(data){
                var obj = JSON.parse(data);
                var plc_id = obj.plc_id;
                var file = obj.file;
                $("#plc_thumb_"+plc_id).attr("src","/uploads/"+file);
            },
            error: function(data){
              alert(data);
               
            }
        });
    }));

    $("#ImageBrowse").on("change", function() {
        $("#imageUploadForm").submit();
    });
});

]]>
JavaScript Development English Breakfast Tea http://forums.devshed.com/javascript-development-115/accessing-data-jason-980681.html
php Job http://forums.devshed.com/hire-programmer/980680-php-job-new-post.html Sun, 27 May 2018 10:23:14 GMT Hello;

Not sure if it's ok to post here or not. If not cool remove. Thanks.

I got some budget to hire an expert to go through a project, clean the code, fix security issues and couple other things.

This is the core. This is not all but more of it.

Site's working well.

I am fixing a few things here and there.

If interested please send me a private message.

It's done in Codeigniter 3.

Tanx ]]>
Hire A Programmer English Breakfast Tea http://forums.devshed.com/hire-programmer-57/php-job-980680.html
Hostperl.com- Cheap dedicated server in texas | Cheap dedicated server http://forums.devshed.com/web-hosting-offers/980679-hostperl-com-cheap-dedicated-server-texas-cheap-dedicated-server-new-post.html Sat, 26 May 2018 14:50:01 GMT Create your own web hosting business with less investment and avoid infrastructure management issues. We provide you with a high level experience and excellent web hosting dedicated to a good value for money. This allows you to preserve your identity through white label resale, free migration and the brand. This package also allows you to present your package at the prices you determine, while... Create your own web hosting business with less investment and avoid infrastructure management issues. We provide you with a high level experience and excellent web hosting dedicated to a good value for money. This allows you to preserve your identity through white label resale, free migration and the brand. This package also allows you to present your package at the prices you determine, while keeping your profitability flexible. Sign up and get instant access to your reseller control panel to get started.

Why choose Hostperl?

Instant configuration
Ease of use
Value for money
24x7 Customer Service
Unparalleled server performance

Additional benefits of the dedicated server

Like any solution, Dedicated Hosting has a number of advantages over other web hosting solutions.

Reliability
Although shared hosting and other solutions are very reliable, it does not share resources with other users on a dedicated server. This means that these resources work exclusively for your site to work. Of course, we support everything with our 99.9% availability commitment.

Performance
Again, you do not share resources with another user, so you get the processing power of your server on your website with optimal performance.

Free dedicated IP address
Each of our dedicated server plans includes a free IP address. Dedicated IP addresses have a number of advantages, including the ability to enable anonymous FTP.

Scalable servers
Our dedicated servers are fully scalable, allowing you to grow as your business expands. Once your server is approved, our team can quickly and easily update the solution that best fits the growing needs of your business.

For more info please visit:- https://www.hostperl.com/


Thanks
https://www.hostperl.com/

cheap dedicated server | cheap dedicated server dallas | cheap dedicated server, USA |secured web hosting | secured hosting | best secured hosting | top secured hosting | shared hosting | shared web hosting | best shared hosting | top shared hosting | secure hosting | secure web hosting | best secure hosting | top secure hosting | $1 unlimited hosting | $1 hosting | $1 web hosting | linux hosting | best linux hosting | wordpress hosting | top linux hosting | hosting service | best hosting service | dedicated server | dedicated server hosting | dedicated hosting solutions ]]>
Web Hosting Offers hostperl1 http://forums.devshed.com/web-hosting-offers-100/hostperl-com-cheap-dedicated-server-texas-cheap-dedicated-server-980679.html
Best Canada Windows VPS Cloud RAM - Hostripples! http://forums.devshed.com/web-hosting-offers/980678-canada-windows-vps-cloud-ram-hostripples-new-post.html Sat, 26 May 2018 05:50:23 GMT *Best 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 PLAN 1 - $50/Month* Guaranteed RAM : 6 GB HDD : 25 GB Bandwidth : 100...
Best 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 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 - $90/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:- Canada Windows VPS Cloud RAM

Its 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/canada-windows-vps-cloud-ram-hostripples-980678.html
Trouble with Show / Hide entry forms http://forums.devshed.com/php-development/980677-trouble-hide-entry-forms-new-post.html Sat, 26 May 2018 01:25:13 GMT Hi:

I have an order entry form where a customer can choose to order the same thing he did last time or enter a new order.

The form should, by default show what he ordered last year with a simple button that says "Yes order the same"

There is a select list which allows the user to say "No I want to order something new" which hides the default (same order) section and displays a different (new order section)

At the beginning of the page is a script that looks like this:

Code:

<script type="text/javascript" src="jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="jquery.validate.min.js"></script>
<script type="text/javascript" src="jquery.validate.creditcardtypes.js"></script>
<script>
        $(document).ready(function(){
                $("#checkout_form").validate();
        });
</script>
     
<script>
        jQuery(document).ready(function () {
                $('#emAction').live('change', function() {
        var v = $(this).attr('value');
        $('.field').hide();        // hide all fields
        $('.' + v).show();          // show only selected classes
    }).triggerHandler('change');
});
</script>

Then, later in the page, just before the entry forms is the following select field:
Code:

                        <p><strong>Would you like the same display items as last year?</strong></p>
                        <select id=\"emAction\">
                        <option value=\"\" >select one</option>
                        <option value=\"ordering\" selected>Yes, same display items, please</option>
                        <option value=\"not_ordering\">No, I would like to change my display this year.</option>
                        </select>

Then, the actual forms look like this:
Quote:

echo <<<EOT
<!-- this is for people ordering same as last year -->
<div class= "field ordering">

<form method="post" action="$_SERVER[PHP_SELF]" id="checkout_form">
<h3>Same as Last Year</h3>
<input type="hidden" name="co_id" value="$co_id">
<input type="hidden" name="company_name" value="$company_name">
<p><input type="submit" name="submit" value="Submit "></p>

</form>
</div>
<!-- this is for people NOT ordering new stuff-->
<div class="field not_ordering">
<h3>Changing order for this year</h3>
<form method="post" action="$_SERVER[PHP_SELF]" id="checkout_form">
[Lots of Form stuff here]
<input type="hidden" name="co_id" value="$co_id">
<input type="hidden" name="company_name" value="$company_name">
<p><input type="submit" name="submit" value="Submit "></p>
</form>
</div>
The issue is this: Only one form should be shown at a time. If I change selection between "yes" and "no" it works fine, one form is hidden and the other is shown. However, when the page is first accessed or it is refreshed BOTH forms are shown until the SELECT field is changed.

Can anyone suggest why this is happening? Where would I look top troubleshoot this?

Thanks ]]>
PHP Development SeanF http://forums.devshed.com/php-development-5/trouble-hide-entry-forms-980677.html
Cheap OpenVZ Linux VPS Server France - Hostripples! http://forums.devshed.com/web-hosting-offers/980676-cheap-openvz-linux-vps-server-france-hostripples-new-post.html Fri, 25 May 2018 05:30:48 GMT *Cheap OpenVZ Linux VPS Server France - Hostripples! * The VPS 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. *OPENVZ LINUX PLAN 1 - $8/Month* Guaranteed RAM : 1 GB HDD : 50 GB Raid 10 Bandwidth : Unlimited CPU...
Cheap OpenVZ Linux VPS Server France - Hostripples!


The VPS 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.

OPENVZ LINUX PLAN 1 - $8/Month
Guaranteed RAM : 1 GB
HDD : 50 GB Raid 10
Bandwidth : Unlimited
CPU Cores : 2 vCores
Free Control Panel : YES
Root Access : YES
IPv4 : 1 IP

Buy Now!

OPENVZ LINUX PLAN 2 - $13/Month
Guaranteed RAM : 1 GB
HDD : 80 GB Raid 10
Bandwidth : Unlimited
CPU Cores : 4 vCores
Free Control Panel : YES
Root Access : YES
IPv4 : 1 IP

Buy Now!

OPENVZ LINUX PLAN 3 - $25/Month
Guaranteed RAM : 4 GB
HDD : 150 GB Raid 10
Bandwidth : Unlimited
CPU Cores : 4 vCores
Free Control Panel : YES
Root Access : YES
IPv4 : 1 IP

Buy Now!

OPENVZ LINUX PLAN 4 - $35/Month
Guaranteed RAM : 6 GB
HDD : 200 GB Raid 10
Bandwidth : Unlimited
CPU Cores : 6 vCores
Free Control Panel : YES
Root Access : YES
IPv4 : 1 IP

Buy Now!

OPENVZ LINUX PLAN 5 - $45/Month
Guaranteed RAM : 8 GB
HDD : 300 GB Raid 10
Bandwidth : Unlimited
CPU Cores : 8 vCores
Free Control Panel : YES
Root Access : YES
IPv4 : 1 IP

Buy Now!

OPENVZ LINUX PLAN 6 - $85/Month
Guaranteed RAM : 16 GB
HDD : 500 GB Raid 10
Bandwidth : Unlimited
CPU Cores : 10 vCores
Free Control Panel : YES
Root Access : YES
IPv4 : 1 IP

Buy Now!

Visit:- Cheap OpenVZ Linux VPS Server France

Its 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-openvz-linux-vps-server-france-hostripples-980676.html
<![CDATA[[DevC++] Array Script not works, error found!]]> http://forums.devshed.com/programming/980675-devc-array-script-error-found-new-post.html Thu, 24 May 2018 18:33:02 GMT ]]> Hey C++ Programmers,

I try to write an script just you can call the array number (Aperatures[0], ..., Aperatures[9]) to print
his numbers... So this is my script, writted in Dev C++....

The Script:
Code:

#include <iostream>
using namespace std;

int main() {
        int Aperatures[10];
        int j;
       
        Aperatures[0] = 1;
        Aperatures[1] = 2;
        Aperatures[2] = 3;
        Aperatures[3] = 4;
        Aperatures[4] = 5;
        Aperatures[5] = 6;
        Aperatures[6] = 7;
        Aperatures[7] = 8;
        Aperatures[8] = 9;
        Aperatures[9] = 10;
       
        while (j < 9) {
                cout << "Stapel: ";
                cin >> j;
               
                for (int i = 0; i < j; i++) {
                        cout << "Aperature" << Aperatures[i] << endl;
                }       
        }
       
        return 0;
}

But if i run my script, i get an error thad sey the follows:


Error i get:
Quote:

Compiling single file...
--------
- Filename: C:\Users\Gebruiker\Desktop\arrtest.cpp
- Compiler Name: TDM-GCC 4.9.2 64-bit Release

Processing C++ source file...
--------
- C++ Compiler: C:\Program Files (x86)\Dev-Cpp\MinGW64\bin\g++.exe
- Command: g++.exe "C:\Users\Gebruiker\Desktop\arrtest.cpp" -o "C:\Users\Gebruiker\Desktop\arrtest.exe" -I"C:\Program Files (x86)\Dev-Cpp\MinGW64\include" -I"C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\include" -I"C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include" -I"C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++" -L"C:\Program Files (x86)\Dev-Cpp\MinGW64\lib" -L"C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib" -static-libgcc
C:/Program Files (x86)/Dev-Cpp/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file C:\Users\Gebruiker\Desktop\arrtest.exe: Permission denied
collect2.exe: error: ld returned 1 exit status


Compilation results...
--------
- Errors: 1
- Warnings: 0
- Output Filename: C:\Users\Gebruiker\Desktop\arrtest.exe
- Output Size: 1,83212089538574 MiB
- Compilation Time: 1,08s

I get an question for the follows: how can i understand the syntax error i get, as this error:
Quote:

error: ld returned 1 exit status
So, if i understand this, i hope i can fix this problem for the next case....
Just can anyone correct my code and learn my to understand the type error i get ?,

Thanks, Jamie. ]]>
C Programming JamieVanCadsand http://forums.devshed.com/programming-42/devc-array-script-error-found-980675.html
Save Upto 10% OFF On Poland SSD Shared Web Hosting - Hostripples! http://forums.devshed.com/web-hosting-offers/980674-save-upto-10-poland-ssd-shared-web-hosting-hostripples-new-post.html Thu, 24 May 2018 05:16:15 GMT
Save Upto 10% OFF On Poland SSD Shared Web Hosting - Hostripples!


A Perfect Web Hosting Plan To Host A Blog,or Personal Website! We offer a range of reliable, affordable hosting plans to suit any requirement or budget, all accounts are activated INSTANTLY following payment, so you'll be able to get started right away. You can now enable number of Powerfull services like Cloudflare, Attracta(SEO Tools), SiteApps Optimization Command Center for the SMB Website and many more right from your hostripples control panel.

SMART - $ 2.99/Month
Web Space : 5 GB SSD
Bandwidth : Unlimited
RAM : 2 GB
FTP Accounts : Unlimited
Email Accounts : Unlimited
24 x 7 Live Support

Buy Now!

BUSINESS - $ 5.99/Month
Web Space : 20 GB SSD
Bandwidth : Unlimited
RAM : 3 GB
FTP Accounts : Unlimited
Email Accounts : Unlimited
24 x 7 Live Support

Buy Now!

ENTERPRISE - $ 5.99/Month
Web Space : 50 GB SSD
Bandwidth : Unlimited
RAM : 5 GB
FTP Accounts : Unlimited
Email Accounts : Unlimited
24 x 7 Live Support

Buy Now!

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

Visit:- Poland SSD Shared Hosting

Coupon Code: SSD10

Its 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/save-upto-10-poland-ssd-shared-web-hosting-hostripples-980674.html
MyTrueHost.com | Linux SSD VPS Server, Anti-DDoS protection Included http://forums.devshed.com/web-hosting-offers/980673-mytruehost-com-linux-ssd-vps-server-anti-ddos-protection-included-new-post.html Thu, 24 May 2018 04:49:10 GMT *Hello All, MyTrueHost.com* very well knows the best and refined strategies to get your website online- offering everything from registering your domain to website hosting, uploading your site to the server and so on. Our $1 Web Hosting (https://www.mytruehost.com) / $1 Hosting (https://www.mytruehost.com) services are very famous and efficient to run your business professionally over the... Hello All,

MyTrueHost.com
very well knows the best and refined strategies to get your website online- offering everything from registering your domain to website
hosting, uploading your site to the server and so on. Our $1 Web Hosting / $1 Hosting services are very famous and efficient to run your business professionally over the net. Also MyTrueHost.com provides cheap ssd VPS servers in affordable price with 24*7 Livechat Support.

Home Page : https://www.mytruehost.com/
SSD VPS Page : https://www.mytruehost.com/cheap-ssd-vps-servers.php

Server Location : Gravelines (FR), London (UK), Poland (PL), Frankfurt (DE), Beauharnois (CA), Singapore (SG), Sydney (AU)

Below are SSD VPS Servers plan and features :

------------------------
MyTrueHost: VPS SSD 1


DiskSpace 10GB
RAM 2GB
Bandwidth Unlimited
CPU Cores 1 vCore
Root Access Yes
IPv4 1 IP
IPv6 1 IP
Anti-DDoS protection Included


Cost: $15.00/month ORDER NOW
------------------------

------------------------
MyTrueHost: VPS SSD 2


DiskSpace 20GB
RAM 4GB
Bandwidth Unlimited
CPU Cores 1 vCore
Root Access Yes
IPv4 1 IP
IPv6 1 IP
Anti-DDoS protection Included

Cost: $25.00/month ORDER NOW
------------------------

------------------------
MyTrueHost: VPS SSD 3


DiskSpace 40GB
RAM 8GB
Bandwidth Unlimited
CPU Cores 2 vCore
Root Access Yes
IPv4 1 IP
IPv6 1 IP
Anti-DDoS protection Included

Cost: $35.00/month ORDER NOW
------------------------
]]>
Web Hosting Offers john-mth http://forums.devshed.com/web-hosting-offers-100/mytruehost-com-linux-ssd-vps-server-anti-ddos-protection-included-980673.html
Need Php Code Explanation http://forums.devshed.com/php-development/980672-php-code-explanation-new-post.html Wed, 23 May 2018 17:52:57 GMT Php Lovers, I opened this thread to paste codes from tutorials that I do not understand so you nice folks can clear things out. Look at this code from here: Create Simple Web Crawler Using PHP And MySQL (http://talkerscode.com/webtricks/create-simple-web-crawler-using-php-and-mysql.php) PHP: --------- // Database Structure Php Lovers,

I opened this thread to paste codes from tutorials that I do not understand so you nice folks can clear things out.
Look at this code from here:
Create Simple Web Crawler Using PHP And MySQL

PHP Code:

// Database Structure 
CREATE TABLE 'webpage_details' (
 'link' text NOT NULL,
 'title' text NOT NULL,
 'description' text NOT NULL,
 'internal_link' text NOT NULL,
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1

<?php
 $main_url
="http://samplesite.com";
 
$str file_get_contents($main_url);
 
 
// Gets Webpage Title
 
if(strlen($str)>0)
 {
  
$str trim(preg_replace('/\s+/'' '$str)); // supports line breaks inside <title>
  
preg_match("/\<title\>(.*)\<\/title\>/i",$str,$title); // ignore case
  
$title=$title[1];
 }
    
 
// Gets Webpage Description
 
$b =$main_url;
 @
$url parse_url$b );
 @
$tags get_meta_tags($url['scheme'].'://'.$url['host'] );
 
$description=$tags['description'];
    
 
// Gets Webpage Internal Links
 
$doc = new DOMDocument
 @
$doc->loadHTML($str); 
 
 
$items $doc->getElementsByTagName('a'); 
 foreach(
$items as $value
 { 
  
$attrs $value->attributes
  
$sec_url[]=$attrs->getNamedItem('href')->nodeValue;
 }
 
$all_links=implode(",",$sec_url);
 
 
// Store Data In Database
 
$host="localhost";
 
$username="root";
 
$password="";
 
$databasename="sample";
 
$connect=mysql_connect($host,$username,$password);
 
$db=mysql_select_db($databasename);

 
mysql_query("insert into webpage_details values('$main_url','$title','$description','$all_links')");

?>

Now, I need to learn what these lines mean and so care to explain ?
PHP Code:

// Gets Webpage Title
 
if(strlen($str)>0)
 {
  
$str trim(preg_replace('/\s+/'' '$str)); // supports line breaks inside <title>
  
preg_match("/\<title\>(.*)\<\/title\>/i",$str,$title); // ignore case
  
$title=$title[1];
 } 

Q1. I do no understand the BOLD part. What is this array $title and the key "1" doing here ?
// Gets Webpage Title
if(strlen($str)>0)
{
$str = trim(preg_replace('/\s+/', ' ', $str)); // supports line breaks inside <title>
preg_match("/\<title\>(.*)\<\/title\>/i",$str,$title); // ignore case
$title=$title[1];
}


Q2.
PHP Code:

// Gets Webpage Internal Links
 
$doc = new DOMDocument
 @
$doc->loadHTML($str); 

Q2a. Is this line a reference like a pointer to the DOMDocument ?
$doc = new DOMDocument;

Q2b. What is this line saying ?
@$doc->loadHTML($str);
Is it saying: Load the webpage's html and extract the links. And, find the code (regex and all) to extract the links from the the DOMDocument file.
It is similar to the "include". Right ?

If I understood wrong then care to explain these 2 lines as I don't understand them.


Q3. The following line only extracts the content from the <meta description>:
PHP Code:

@$tags get_meta_tags($url['scheme'].'://'.$url['host'] ); 

What if I want to extract the content from the <meta keywords> tag aswell ? How do I change this line ? To what do I change it to ? We need to see a sample snippet from you for our learning purpose.


Thank You! :) ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/php-code-explanation-980672.html
How To Open More Than One Webpage Simultaneously In The Background With many Threads http://forums.devshed.com/php-development/980671-webpage-simultaneously-background-threads-new-post.html Wed, 23 May 2018 17:12:25 GMT Php Foks, When we used to build bots (.exe) with Ubot, we could open many threads in the background that download many pages simultaneously. Guessing our ram was enough to open 100 pages in the background. Cannot php do the same ? Open 100 threads and get cURL to load 100 pages in the background simultaneously so the user only sees one page loading on his screen while the other 99 are out... Php Foks,

When we used to build bots (.exe) with Ubot, we could open many threads in the background that download many pages simultaneously.
Guessing our ram was enough to open 100 pages in the background.
Cannot php do the same ? Open 100 threads and get cURL to load 100 pages in the background simultaneously so the user only sees one page loading on his screen while the other 99 are out of sight.
When you submit your url to my SE (searchengine), it will first crawl the link you submitted and when it finds more links on the page like 50 then I want to get it to open 50 threads in order to load all those 50 pages simultaneously in the background (to save time) and scrape their contents (like meta tags, links, etc.).
Open many pages simultaneously or visit many links simultaneously (as you would put it) for spidering purpose.

And so, do you fine folks mind showing us newbies one code snippet on how to open many threads and another snippet to show us how to load many pages in the background out of the user's sight to scrape the pages ?
And finally, the last snippet that does the 2 things mentioned above ?

Thanks! :) ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/webpage-simultaneously-background-threads-980671.html
troubleshooting 403 error http://forums.devshed.com/iis/980670-troubleshooting-403-error-new-post.html Wed, 23 May 2018 16:46:26 GMT Hello,

I just setup a website in IIS 10.0, Windows Server 2016, and I am getting a 403 error when I try to browse to the site on the server:



I've tried everything I could from setting authentication and authorization in IIS to setting the permissions on the website folder.

One thing I noticed is that if I put an index.html file in the root folder of the website, and add "hello world" to the file, it displays "hello world" when I browse to the site (again on the server). So it seems like it's not an issue with getting to the site but being able to navigate to the right file/folder within the site.

Can anyone suggest what might be going on? Thanks. ]]>
IIS gib0563569 http://forums.devshed.com/iis-97/troubleshooting-403-error-980670.html
<![CDATA[Cheap dedicated server in texas @ just $95 USD/Month [Hostperl]]]> http://forums.devshed.com/web-hosting-offers/980669-cheap-dedicated-server-texas-95-usd-month-hostperl-new-post.html Wed, 23 May 2018 11:17:51 GMT Hostperl is always ready to meet the requirements of each customer and to do the same without any problem with the diligence of our qualified staff.We offer superior web hosting solutions. Our goal is to always provide the best accommodation services with the lowest possible rates and more customer satisfactory. An exclusive feature of our company is the high level of help that is guaranteed... Hostperl is always ready to meet the requirements of each customer and to do the same without any problem with the diligence of our qualified staff.We offer superior web hosting solutions. Our goal is to always provide the best accommodation services with the lowest possible rates and more customer satisfactory. An exclusive feature of our company is the high level of help that is guaranteed with every plan we have.

Choose and Configure according to your requirements:

OPTION 1: Dedicated Server - Dual Intel Xeon 5150
Cores: 2.5GHZ
RAM: 8GB DDR2
Hard Drive: 500GB
IP ASSIGNMENTS: 5 Usable IPs
Bandwidth: 100TB on 1Gbit Port
Regular Price: $120/month
Offer Price : $95/month
Order Now


OPTION 2: Dedicated Server - Dual Intel Xeon 5420
Cores: 2.5GHz
RAM: 8GB DDR2
Hard Drive: 1TB SATA3
IP ASSIGNMENTS: 5 Usable IPs
Bandwidth: 100TB on 1Gbit Port
Regular Price : $130/month
Offer Price: $99/month
Order Now


For more info please visit:- https://www.hostperl.com/


Thanks
302 Found

cheap dedicated server | cheap dedicated server dallas | cheap dedicated server, USA |secured web hosting | secured hosting | best secured hosting | top secured hosting | shared hosting | shared web hosting | best shared hosting | top shared hosting | secure hosting | secure web hosting | best secure hosting | top secure hosting | $1 unlimited hosting | $1 hosting | $1 web hosting | linux hosting | best linux hosting | wordpress hosting | top linux hosting | hosting service | best hosting service | dedicated server | dedicated server hosting | dedicated hosting solutions ]]>
Web Hosting Offers hostperl1 http://forums.devshed.com/web-hosting-offers-100/cheap-dedicated-server-texas-95-usd-month-hostperl-980669.html
WHUK | Get 50% OFF on cPanel and Windows Hosting | Free Domain Name* http://forums.devshed.com/web-hosting-offers/980668-whuk-50-cpanel-windows-hosting-free-domain-name-new-post.html Wed, 23 May 2018 10:39:11 GMT WHUK (Webhosting UK Com Ltd.), a UK based web host since 2001 offering shared hosting services on Cloud platform. Also, there are new domain tld's up for grabs!

Quote:

Use Discount Coupon - "WHUK" to Get 50% OFF on All Shared Hosting Plans!
Quote:

Initiate a LIVE CHAT with one of our friendly sales advisor to avail exclusive benefits on these shared servers!
The cPanel Hosting plans are mentioned below:

Cloud cPanel Starter
5GB SSD Storage
Unmetered Bandwidth
Host 2 Websites
Unlimited Emails
Unlimited Databases
cPanel Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: 2.49 GBP | Order Now

Cloud cPanel Premium
10GB SSD Storage
Unmetered Bandwidth
Host 5 Websites
Unlimited Emails
Unlimited Databases
cPanel Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: 3.99 GBP | Order Now

Cloud cPanel Advanced
20GB SSD Storage
Unmetered Bandwidth
Host 15 Websites
Unlimited Emails
Unlimited Databases
cPanel Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: 5.49 GBP | Order Now

Cloud cPanel Developer
40GB SSD Storage
Unmetered Bandwidth
Host Unlimited Websites
Unlimited Emails
Unlimited Databases
cPanel Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: 6.99 GBP | Order Now

For full list of cPanel Hosting Packages, visit: https://www.webhosting.uk.com/cpanel-hosting/

The Windows Hosting plans are mentioned below:

Cloud Windows Starter
5GB SSD Storage
Unmetered Bandwidth
Host 2 Websites
Unlimited Emails
Unlimited Databases
Plesk Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: 2.49 GBP | Order Now

Cloud Windows Premium
10GB SSD Storage
Unmetered Bandwidth
Host 5 Websites
Unlimited Emails
Unlimited Databases
Plesk Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: 3.99 GBP | Order Now

Cloud Windows Advanced
20GB SSD Storage
Unmetered Bandwidth
Host 15 Websites
Unlimited Emails
Unlimited Databases
Plesk Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: 5.49 GBP | Order Now

Cloud Windows Developer
40GB SSD Storage
Unmetered Bandwidth
Host Unlimited Websites
Unlimited Emails
Unlimited Databases
Plesk Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: 6.99 GBP | Order Now

For full list of Windows Hosting Packages, visit: https://www.webhosting.uk.com/windows-hosting/

WHUK offers with uninterrupted customer support and 99.95% uptime guarantee along with ensuring the speed and smooth functioning of the website even during the high traffic times. These shared hosting packages are the best solutions for small and medium businesses. With all the features mentioned above and 24/7 pro-active monitoring, the shared hosting platform provided by WHUK is a complete value for money.

In case of any questions, you can approach our Sales Department through 24*7 Live chat, you can drop us an email at sales @ webhosting.uk.com or call us on the toll free number 0808-862-0890 / +44-191-303-8069. ]]>
Web Hosting Offers James-A http://forums.devshed.com/web-hosting-offers-100/whuk-50-cpanel-windows-hosting-free-domain-name-980668.html