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 Sun, 20 May 2018 17:38:07 GMT vBulletin 60 http://forums.devshed.com/images/misc/rss.png Dev Shed Forums http://forums.devshed.com/ Accordion Sections without Submitting Forms http://forums.devshed.com/php-development/980646-accordion-sections-submitting-forms-new-post.html Sun, 20 May 2018 13:23:19 GMT Hi:

I am trying to create an "accordion" section on an input form to show and hide various portions of the page according to what the user needs to see.

I have been using the following as a guide:
https://www.w3schools.com/howto/tryi...w_js_accordion

The problem I am having is that the accordion buttons submit the form in order to refresh the display. However, at the time the user might want to show/hide sections, the form is not complete and submitting it prematurely causes problems.

Can anyone suggest a correction that will dynamically show/hide page sections without submitting the page?

Thanks ]]>
PHP Development SeanF http://forums.devshed.com/php-development-5/accordion-sections-submitting-forms-980646.html
Foreach Looping Levels - I got it right or wrong ? http://forums.devshed.com/php-development/980645-foreach-looping-levels-wrong-new-post.html Sun, 20 May 2018 11:29:37 GMT Php Buddies,

What I am trying to do is learn to build a simple web crawler.
So at first, I will feed it a url to start with.
It will then fetch that page and extract all the links into a single array.
Then it will fetch each of those links pages and extract all their links into a single array likewise. It will do this until it reaches it's max link deep level.
Here is how I coded it:

PHP Code:

<?php 

include('simple_html_dom.php'); 

$current_link_crawling_level 0
$link_crawling_level_max 2

if($current_link_crawling_level == $link_crawling_level_max)
{
    exit(); 
}
else
{
    
$url 'https://www.yahoo.com'
    
$curl curl_init($url); 
    
curl_setopt($curlCURLOPT_RETURNTRANSFER1); 
    
curl_setopt($curlCURLOPT_FOLLOWLOCATION1); 
    
curl_setopt($curlCURLOPT_SSL_VERIFYPEER0); 
    
curl_setopt($curlCURLOPT_SSL_VERIFYHOST0); 
    
$html curl_exec($curl); 
    
    
$current_link_crawling_level++;    

    
//to fetch all hyperlinks from the webpage 
    
$links = array(); 
    foreach(
$html->find('a') as $a
    { 
        
$links[] = $a->href
        echo 
"Value: $value<br />\n"
        
print_r($links); 
        
        
$url '$value'
        
$curl curl_init($value); 
        
curl_setopt($curlCURLOPT_RETURNTRANSFER1); 
        
curl_setopt($curlCURLOPT_FOLLOWLOCATION1); 
        
curl_setopt($curlCURLOPT_SSL_VERIFYPEER0); 
        
curl_setopt($curlCURLOPT_SSL_VERIFYHOST0); 
        
$html curl_exec($curl); 

        
//to fetch all hyperlinks from the webpage 
        
$links = array(); 
        foreach(
$html->find('a') as $a
        { 
            
$links[] = $a->href
            echo 
"Value: $value<br />\n";
            
print_r($links); 
            
$current_link_crawling_level++;
        } 
    echo 
"Value: $value<br />\n";
    
print_r($links);  
}

?>

I have a feeling I got confused and messed it up in the foreach loops. Nestled too much. Is that the case ? Hint where I went wrong.

Unable to test the script as I have to first sort out this error:
Fatal error: Uncaught Error: Call to a member function find() on string in C:\xampp\h

After that, I will be able to test it. Anyway, just looking at the script, you think I got it right or what ?

Thanks ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/foreach-looping-levels-wrong-980645.html
Fatal error: Uncaught Error: Call to a member function find() on string in C:\xampp\h http://forums.devshed.com/php-development/980644-fatal-error-uncaught-error-call-function-string-xampp-new-post.html Sun, 20 May 2018 10:10:33 GMT Php Folks, My following 3 codes work. The final two are the same except the latter one suppresses the WARNINGS. Now, the difference between the first one and the second one is that the first one uses file_get_html() function while the second one uses cURL (aswell as the third one). Anyway, trying to combine the two codes for some reasons which I will get into once this problem is solved.... Php Folks,

My following 3 codes work.
The final two are the same except the latter one suppresses the WARNINGS.
Now, the difference between the first one and the second one is that the first one uses file_get_html() function while the second one uses cURL (aswell as the third one).

Anyway, trying to combine the two codes for some reasons which I will get into once this problem is solved.
I get error:
Fatal error: Uncaught Error: Call to a member function find() on string in C:\xampp\htdocs\cURL\crawler.php:24 Stack trace: #0 {main} thrown in C:\xampp\htdocs\cURL\crawler.php on line 24


WORKING CODE 1
PHP Code:

FINDING HTML ELEMENTS BASED ON THEIR TAG NAMES

Suppose you wanted to find each 
and every image on a webpage or sayeach and every hyperlink
We will be using “find” function to extract this information from the objectHere’s how to do it using Simple HTML DOM Parser :
*/

include(
'simple_html_dom.php');

$html file_get_html('http://google.com');

//to fetch all hyperlinks from a webpage
$links = array();
foreach(
$html->find('a') as $a) {
 
$links[] = $a->href;
}
print_r($links);
echo 
"<br />";
 
//to fetch all images from a webpage
$images = array();
foreach(
$html->find('img') as $img) {
 
$images[] = $img->src;
}
print_r($images);
echo 
"<br />";
 
//to find h1 headers from a webpage
$headlines = array();
foreach(
$html->find('h1') as $header) {
 
$headlines[] = $header->plaintext;
}
print_r($headlines);
echo 
"<br />";

?> 


WORKING CODE 2
PHP Code:

<?php

/*
2a. Scrape Urls & Anchors And Echo Them By NOT Suppressing Warnings.

Using PHP's DOM functions to
fetch hyperlinks and their anchor text
*/

$url 'https://google.com';
$curl curl_init($url);
curl_setopt($curlCURLOPT_RETURNTRANSFER1);
curl_setopt($curlCURLOPT_FOLLOWLOCATION1);
curl_setopt($curlCURLOPT_SSL_VERIFYPEER0);
curl_setopt($curlCURLOPT_SSL_VERIFYHOST0);
$data curl_exec($curl);

// DO NOT Hide HTML warnings
libxml_use_internal_errors(true);
$dom = new DOMDocument;
    
// echo Links and their anchor text
    
echo '<pre>';
    echo 
"Link\tAnchor\n";
    foreach(
$dom->getElementsByTagName('a') as $link) {
        
$href $link->getAttribute('href');
        
$anchor $link->nodeValue;
        echo 
$href,"\t",$anchor,"\n";
    }
    echo 
'</pre>';

?>


WORKING CODE 3
PHP Code:

<?php

/*
2b. Scrape Urls & Anchors And Echo Them By Suppressing Warnings.

Using PHP's DOM functions to
fetch hyperlinks and their anchor text
*/

$url 'https://google.com';
$curl curl_init($url);
curl_setopt($curlCURLOPT_RETURNTRANSFER1);
curl_setopt($curlCURLOPT_FOLLOWLOCATION1);
curl_setopt($curlCURLOPT_SSL_VERIFYPEER0);
curl_setopt($curlCURLOPT_SSL_VERIFYHOST0);
$data curl_exec($curl);

// Hide HTML warnings
libxml_use_internal_errors(true);
$dom = new DOMDocument;
if(
$dom->loadHTML($dataLIBXML_NOWARNING)){
    
// echo Links and their anchor text
    
echo '<pre>';
    echo 
"Link\tAnchor\n";
    foreach(
$dom->getElementsByTagName('a') as $link) {
        
$href $link->getAttribute('href');
        
$anchor $link->nodeValue;
        echo 
$href,"\t",$anchor,"\n";
    }
    echo 
'</pre>';
}else{
    echo 
"Failed to load html.";

}
?>


Here is the code I am getting the error:
PHP Code:

<?php 

/* FROM dom_crawler_NOTES.php file.

2.
FINDING HTML ELEMENTS BASED ON THEIR TAG NAMES

Suppose you wanted to find each and every link on a webpage. 
We will be using “find” function to extract this information from the object. Here’s how to do it using Simple HTML DOM Parser :
*/

include('simple_html_dom.php');

$url 'https://www.yahoo.com';
$curl curl_init($url);
curl_setopt($curlCURLOPT_RETURNTRANSFER1);
curl_setopt($curlCURLOPT_FOLLOWLOCATION1);
curl_setopt($curlCURLOPT_SSL_VERIFYPEER0);
curl_setopt($curlCURLOPT_SSL_VERIFYHOST0);
$html curl_exec($curl);

//to fetch all hyperlinks from a webpage
$links = array();
foreach(
$html->find('a') as $a) {
 
$links[] = $a->href;
}
print_r($links);
echo 
"<br />";

?>

Fatal error: Uncaught Error: Call to a member function find() on string in C:\xampp\htdocs\cURL\crawler.php:24 Stack trace: #0 {main} thrown in C:\xampp\htdocs\cURL\crawler.php on line 24


Why error in this line ? ....
PHP Code:

foreach($html->find('a') as $a) { 

Why script failing to acknowledge the "find" when it exists in the file:
include('simple_html_dom.php');

The simple_html_dom.php file can be downloaded from here:
https://sourceforge.net/projects/simplehtmldom/files/

Look at the first 3 scripts in this post. The first script uses this "simple_html_dom.php" and it had no problem using the "find".
Since on my latter script's code I referenced it to this "simple_html_dom.php" and it is residing in the same directory on my xamp then I should not be getting this silly error:
Fatal error: Uncaught Error: Call to a member function find() on string in C:\xampp\htdocs\cURL\crawler.php:24 Stack trace: #0 {main} thrown in C:\xampp\htdocs\cURL\crawler.php on line 24


Now should I ? :confused: ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/fatal-error-uncaught-error-call-function-string-xampp-980644.html
<![CDATA[◄◄HOSTPERL►► CHEAP DEDICATED SERVER IN TEXAS | Fully DDOS Protected]]> http://forums.devshed.com/web-hosting-offers/980643-hostperl-cheap-dedicated-server-texas-ddos-protected-new-post.html Sat, 19 May 2018 12:36:48 GMT Choosing the right host can be difficult. And for sure, you want the combination of fast servers, a reliable network, an excellent customer service and at affordable price.

And that's exactly what Hostperl can offer.

Hostperl is a leading web hosting provider, providing security and scalable solutions for customers of all sizes and services. We provide all the servers, software, bandwidth and management tools needed to run almost any web-hosted application.

Why HOSTPERL.COM?

- 24x7x365 internal customer service
- Price Lock Guarantee
- 30 days of guarantee of satisfaction Sin inconvenientes


Hostperl comes with great features:

Multiple Domains
In a dedicated server hosting environment, you can host multiple domain names on a single physical Web server. It is very beneficial and profitable for companies that work with goals and offices.


Unique IP Address
A web hosting platform dedicated to a web site and your unique IP hosting account, which is not shared with anyone else on the same physical server. Thus, if you need direct access to your website even if your DNS registrations proliferated, an IP address for hosting allows you to have direct access.


Better Control
A server hosting allows you to control whether you need your business. It can handle everything for you, so you can focus on what you do best and grow your business successfully.


Root Access
A server comes with full administrative and root access. This gives you complete freedom to configure your web server as needed by 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-cheap-dedicated-server-texas-ddos-protected-980643.html
Best Dedicated Server UK - Hostripples! http://forums.devshed.com/web-hosting-offers/980642-dedicated-server-uk-hostripples-new-post.html Sat, 19 May 2018 05:34:13 GMT *Best Dedicated Server UK - Hostripples! * Get an high performance cheap UK dedicated server,. Even though these are our cheap UK dedicated server, we offers you a very high level of performance and security compared to THE competitors offers at a similar price level. You can host multiple projects or websites on cheap UK dedicated server you control and manage with total autonomy. *UK...
Best Dedicated Server UK - Hostripples!


Get an high performance cheap UK dedicated server,. Even though these are our cheap UK dedicated server, we offers you a very high level of performance and security compared to THE competitors offers at a similar price level. You can host multiple projects or websites on cheap UK dedicated server you control and manage with total autonomy.

UK DEDI A - $288/Month
Intel Xeon E3-1245v5 - 4c/8t - 3.5 GHz/3.9 GHz
32GB DDR4 ECC RAM
2 x 2 TB SATA HDD
250 Mbps Port Speed
Unlimited Bandwidth
1 Free IP

Buy Now!

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


Visit:- UK Dedicated Server

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/dedicated-server-uk-hostripples-980642.html
OpenStack KVM Windows VPS Pure SSD up to 4 vCore(s) 24 GB RAM SLA 99.99% http://forums.devshed.com/web-hosting-offers/980641-openstack-kvm-windows-vps-pure-ssd-4-vcore-24-gb-ram-sla-99-99-a-new-post.html Fri, 18 May 2018 14:39:40 GMT GPDHost is a premium US based web hosting company. It provides website building, cloud, domain name registration and other services. It has vast expertise in Linux and now that we offer Windows hosting you will have even more options. Fast provisioning is complimented by a 24/7 customer support which is technically equipped to handle complaints and resolve issues at a short notice. *Windows... GPDHost is a premium US based web hosting company. It provides website building, cloud, domain name registration and other services. It has vast expertise in Linux and now that we offer Windows hosting you will have even more options. Fast provisioning is complimented by a 24/7 customer support which is technically equipped to handle complaints and resolve issues at a short notice.

Windows for business
Plesk control
SQL database
Superfast speed
Fully managed
Mind-blowingly fast provisioning
Highly secure
Buckle down with back up
Ensured scalability


If you want to know where to buy VPS Server for Windows, your answer lies with us. Buy Windows VPS at amazing prices from GPD Host, one of the leading windows virtual server hosting companiesto boost your business. Our services are unique because we provide:

• Super easy management with Plesk control.
• 99.99% up-time to give you maximum value of your dollars
• Multiple plans to choose from as per your business needs
• 24/7 technical support in USA


VPS CLOUD 1

OpenStack KVM
SLA 99.99%
1 vCore(s)
3.1 GHz
2 GB RAM
25 GB
High Availability (Ceph)

Order now $ 26.49 /mo

VPS CLOUD 2

OpenStack KVM
SLA 99.99%
2 vCore(s)
3.1 GHz
4 GB RAM
50 GB
High Availability (Ceph)

Order now $ 46.49 /mo

VPS CLOUD 3

OpenStack KVM
SLA 99.99%
4 vCore(s)
3.1 GHz
8 GB RAM
100 GB
High Availability (Ceph)

Order now $ 86.99 /mo

VPS CLOUD RAM 1

OpenStack KVM
SLA 99.99%
1 vCore(s)
2.4 GHz
6 GB RAM
25 GB
High Availability (Ceph)

Order now $ 36.49 /mo

VPS CLOUD RAM 2

OpenStack KVM
SLA 99.99%
2 vCore(s)
2.4 GHz
12 GB RAM
50 GB
High Availability (Ceph)

Order now $ 76.49 /mo

VPS CLOUD RAM 3

OpenStack KVM
SLA 99.99%
4 vCore(s)
2.4 GHz
24 GB RAM
100 GB
High Availability (Ceph)

Order now $ 119.99 /mo



All VPS hosting by GPDHost utilizes OpenStack KVM hypervisor for a glitch-free and smooth experience and is perfectly suited for Windows as well as Linux based operating systems.


Friendly 24-hour service.
Live chat support.
Email support.
+1 718 975 7576 phone support
Website address: gpdhost.com
Country: USA
Address: 375 Pearl St 6th floor, New York, NY 10038
E-mail:cpgpdhost@gmail.com
Payment methods: Visa, MasterCard, Discovery, American Express, PayPal, Bitcoin, Yandex money

IMPORTANT NOTE :

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

Otherwise we are not able to process with your request.
Check out other offers
For more information visit GPDHost
]]>
Web Hosting Offers GPDHost http://forums.devshed.com/web-hosting-offers-100/openstack-kvm-windows-vps-pure-ssd-4-vcore-24-gb-ram-sla-99-99-a-980641.html
Strange query issue http://forums.devshed.com/mysql-help/980640-strange-query-issue-new-post.html Fri, 18 May 2018 07:00:06 GMT this (http://prntscr.com/jje3zr) <==== happening? This is NOT the results! Thanks]]> Hi;

How is ====> this <==== happening?

This is NOT the results!

Thanks ]]>
MySQL Help English Breakfast Tea http://forums.devshed.com/mysql-help-4/strange-query-issue-980640.html
Best JSP / Tomcat Web Hosting - Hostripples! http://forums.devshed.com/web-hosting-offers/980639-jsp-tomcat-web-hosting-hostripples-new-post.html Fri, 18 May 2018 06:13:47 GMT *Best JSP / Tomcat Web Hosting - Hostripples! * Hostripples Windows Web Hosting offers the power and flexibility of Parallels Plesk Panel, IIS (Internet Information Services), Microsoft SQL Server 2008 R2, and a wide variety of other hosting features such as ASP and ASP.Net for a low price. *SMART - $3/Month* Web Space : Unlimited Monthly Bandwidth : Unlimited Websites You Can Host : 1...
Best JSP / Tomcat Web Hosting - Hostripples!


Hostripples Windows Web Hosting offers the power and flexibility of Parallels Plesk Panel, IIS (Internet Information Services), Microsoft SQL Server 2008 R2, and a wide variety of other hosting features such as ASP and ASP.Net for a low price.

SMART - $3/Month
Web Space : Unlimited
Monthly Bandwidth : Unlimited
Websites You Can Host : 1
Java Applications (WAR) Can Host : 2
Sub Domains : 5
MySQL / Ms Database Size : 200 MB
Mailing List : 10
24 x 7 Live Support

Buy Now!

BUSINESS - $8/Month
Web Space : Unlimited
Monthly Bandwidth : Unlimited
Websites You Can Host : 10
Java Applications (WAR) Can Host : 4
Sub Domains : 30
MySQL / Ms Database Size : 900 MB
Mailing List : 25
24 x 7 Live Support

Buy Now!

ENTERPRISE - $8/Month
Web Space : Unlimited
Monthly Bandwidth : Unlimited
Websites You Can Host : Unlimited
Java Applications (WAR) Can Host : 8
Sub Domains : Unlimited
MySQL / Ms Database Size : Unlimited
Mailing List : 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:- JSP / Tomcat Web Hosting

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/jsp-tomcat-web-hosting-hostripples-980639.html
From Javascript to html element http://forums.devshed.com/javascript-development/980638-javascript-html-element-new-post.html Fri, 18 May 2018 00:14:46 GMT Hello; I want some help with a piece of Javascript. I use https://momentjs.com/ library (really nice by the way), to view countdown timer on screen. It works sweet. Here is my code: Code: Hello;

I want some help with a piece of Javascript.

I use https://momentjs.com/ library (really nice by the way), to view countdown timer on screen.

It works sweet. Here is my code:

Code:

var timezone = "Australia/Sydney";
var $clock = $('#clock');
$clock.on('update.countdown', function(event) {
$(this).html(event.strftime('%-D days %-H Hours %-M Minutes & %S Seconds'));

function updateCountdown()
      {
        var date = moment.tz("2019-05-25 00:15", "YYYY-MM-DD HH:mm", timezone);
        $clock.countdown(date.toDate());
      }
  updateCountdown();

It shows the correct countdown timer 371 days 18 Hours 23 Minutes & 57 Seconds inside this div:

Code:

<div id="clock"></div>
What I need to do and totally suck at, is to show the days, hours, minutes and seconds in html like this:

Code:

<span class="days">6</span>
<span class="hours">18</span>
<span class="minutes">23</span>
<span class="seconds">57</span>

Thanks ]]>
JavaScript Development English Breakfast Tea http://forums.devshed.com/javascript-development-115/javascript-html-element-980638.html
DOM Parser Stuffs http://forums.devshed.com/php-development/980637-dom-parser-stuffs-new-post.html Thu, 17 May 2018 16:30:24 GMT Php Folks,

If you find or know of any DOM Parser tutorial links that will be good for newbies then let us all know here.
When you paste the links, mention whether it's for php beginners, intermediates or advanced programmers.
Anyway, I just came across this one and reading it.
Just thought I might aswell open a thread and mention the link just incase it becomes handy for others.

Top 10 Best Usage Examples of PHP Simple HTML DOM Parser ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/dom-parser-stuffs-980637.html
Why does win7 lose administrator privileges when running the application ? http://forums.devshed.com/windows-help/980636-win7-lose-administrator-privileges-running-application-new-post.html Thu, 17 May 2018 08:49:34 GMT The computer new setup win7 ultimate 64 bit and add a network drive and create a shortcut for the desktop (create shortcut), each time you run the application right click on the shortcut and select Run as administrator new application run if double click directly If the shortcut of the application icon does not run, if you right click on the shortcut select Properties tab select "Compatibility" features running "Run this program in compatibility mode for" and "Run this program as administrator" blurred (grayed out), how to do ? For these features are not blurred ? ]]> Windows Help dongtrien http://forums.devshed.com/windows-help-34/win7-lose-administrator-privileges-running-application-980636.html Win7 does not remember the password when connecting SQL Server to another computer ? http://forums.devshed.com/windows-help/980635-win7-remember-password-connecting-sql-server-computer-new-post.html Thu, 17 May 2018 07:29:10 GMT I do not post here to send here. When using a shared network drive, win7 does not remember any other computer passwords and when running applications with SQL Server connections win7 does not remember SQL Server's user / pass, SQL Server connection type is ODBC, you know how to fix this error ? ]]> Windows Help dongtrien http://forums.devshed.com/windows-help-34/win7-remember-password-connecting-sql-server-computer-980635.html <![CDATA[Best Business & Corporate Web Hosting50% OFF - Hostripples!]]> http://forums.devshed.com/web-hosting-offers/980634-business-corporate-web-hosting50-hostripples-new-post.html Thu, 17 May 2018 05:57:36 GMT
Best Business & Corporate Web Hosting50% OFF - Hostripples!


Your corporate site is often the first and primary interaction that your customers — and the world — have with your product, service, and brand. Maintaining availability and performance is critical to your brand integrity.At HostRipples our aim has always been to constantly enhance our services by offering the latest technical strategies to stay ahead of our competitors, thereby becoming a leader in Business Web Hosting. To continue this trend we have introduced Business Web Hosting with a 99.9% Uptime SLA. A 99.9% Uptime SLA should often be viewed sceptically. Many web hosting companies claim to offer such an SLA without the technology to truly achieve it. They basically rely on luck and minimal SLA claims in order to offer it. At HostRipples we can honestly, and confidently, say that out 99.9% Uptime SLA is backed by the technology to achieve it. Because we are so confident in our platform, we will compensate customers with 1 months free hosting if they have even a minute of downtime in any calendar month.

100% Secured Business Hosting Plans.
• Free Dedicated IP with Each Plan .
• Free SSL on Annually Pay.
• Free Domain name on Annually Pay.
• CageFs and Softaculous installed

PLAN 1- $9/Month
Unlimited WebSpace
Unlimited Monthly Bandwidth
15 Sub Domains
5 Parked Domains
Unlimited FTP Acccounts
Unlimited Email Accounts
10 Mailing Lists

Buy Now!

PLAN 2- $20/Month
Unlimited WebSpace
Unlimited Monthly Bandwidth
50 Sub Domains
25 Parked Domains
Unlimited FTP Acccounts
Unlimited Email Accounts
25 Mailing Lists

Buy Now!

PLAN 3- $35/Month
Unlimited WebSpace
Unlimited Monthly Bandwidth
Unlimited Sub Domains
Unlimited Parked Domains
Unlimited FTP Acccounts
Unlimited Email Accounts
Unlimited Mailing Lists

Buy Now!

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


Visit:- Best Business Corporate Web Hosting

Coupon Code: BUSS50OFF

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/business-corporate-web-hosting50-hostripples-980634.html
Validate date and time. Taking science to the next level http://forums.devshed.com/php-development/980633-validate-date-time-taking-science-level-new-post.html Thu, 17 May 2018 03:24:37 GMT Hi; Does it have to be this long? Or can it be done with a magic wand? PHP: --------- public function is_valid_date($date=null) { if($date==null) Hi;

Does it have to be this long? Or can it be done with a magic wand?

PHP Code:

public function is_valid_date($date=null)
  {
    if(
$date==null)
      {
        return 
false;
      }
    
$d explode("-"$date);  
    if(
is_array($d) && count($d)==3)
      {
        if(!
checkdate($d[1],$d[2],$d[0]))
          {
            return 
false;
          }
        else 
          {
            return 
true;
          }
      }    
    else 
      {
        return 
false;
      }    
  }
public function 
is_valid_time($time=null)
  {
    if(
$time==null)
      {
        return 
false;
      }
    if(
strtotime($time))
      {
        return 
true;
      }          
    else 
      {
        return 
false;
      }  
  } 

PHP Code:

public function is_plc_available_from_valid($plc_id)
{
   
$CI =& get_instance();
   if(
$CI->launch_library->launch_type_by_plc_id($plc_id)=='evergreen')
    {
      return 
true;
    }
   if(!isset(
$_POST['broadcast_access_date']) || !isset($_POST['broadcast_access_time']) )
      {
        return 
5;
      }
     if(!
$CI->custom_functions->is_valid_date($_POST['broadcast_access_date']))
      {
        return 
4;
      }
    if(!
$CI->custom_functions->is_valid_time($_POST['broadcast_access_time']))
      {
        return 
3;
      }  
    
    if(
$CI->plc_library->launch_offer_open_date_time_by_plc_id($plc_id) < strtotime($_POST['broadcast_access_date']." ".$_POST['broadcast_access_time']))
      {
        return 
2;
      }
    else 
      {
        return 
1;
      }  


]]>
PHP Development English Breakfast Tea http://forums.devshed.com/php-development-5/validate-date-time-taking-science-level-980633.html
Is there a simple way to find all places printing user entered data? http://forums.devshed.com/php-development/980632-simple-printing-user-entered-data-new-post.html Thu, 17 May 2018 02:02:01 GMT Hi hello;

I wanna clean some code but it's a bit big.

Is there a simple way to find all places the app prints user entered data to make sure html_escpae is applied?

Thanks ]]>
PHP Development English Breakfast Tea http://forums.devshed.com/php-development-5/simple-printing-user-entered-data-980632.html