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, 18 Jun 2018 12:53:08 GMT vBulletin 60 http://forums.devshed.com/images/misc/rss.png Dev Shed Forums http://forums.devshed.com/ Powerful Dedicated Servers €59.95/mo. 10TB o/1GBps, 5 ded. IP, pure SSD, 100% Uptime http://forums.devshed.com/web-hosting-offers/980765-powerful-dedicated-servers-59-95-mo-10tb-1gbps-5-ded-ip-pure-ssd-100-uptime-new-post.html Mon, 18 Jun 2018 10:44:11 GMT Image: https://www.euro-space.net/images/euro-space-net-logo-w-txt.png **Celebrating 10 Years of Web Hosting Excellence!** We at EURO-SPACE serve people since 2007 and we know how to deliver Powerful, Fast and Reliable Dedicated Servers with the Superior Support. Check *_Trustpilot (http://www.trustpilot.co.uk/review/www.euro-space.net)_* to find out what our customers...



Celebrating 10 Years of Web Hosting Excellence!


We at EURO-SPACE serve people since 2007 and we know how to deliver Powerful, Fast and Reliable Dedicated Servers with the Superior Support.

Check Trustpilot to find out what our customers say about us.



Our servers are powered with multiple Hexa-Core Intel processors and gigabytes of ECC RAM will be completely dedicated to your account. It can be used for a wide variety of purposes, including gaming, virtual (i.e., shared) hosting, hosting of traffic-intensive Web sites and running your own online business.


All prices are final, no setup or hidden fees, no minimum term contracts, month-to-month subscription payments, anytime cancellation!


100% Satisfaction Guaranteed!



EURO-SPACE Dedicated Server Features:

✦ ISO accredited datacenter in Maidenhead, UK
✦ High Quality Supermicro servers
✦ 100% Network uptime SLA guarantee
✦ 24x7 Technical support
✦ FREE dedicated IP addresses
✦ Pure SSD drives with RAID
✦ Root/Admin Access
✦ 10TB premium bandwith
✦ FREE Enom domain reseller account
✦ WHM/Cpanel VPS control panel (addon)
✦ Choice of OS: CentOS, Debian, Fedora, SUSE, Ubuntu, Scientific Linux, Slackware
✦ Firewalls available
✦ KVM Access for the remote management



Dedicated Server Hosting Plans

⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁
✅ EURO Server X1 - €59.95 / mo.
⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁


  • Intel Xeon E3-1230 CPU
  • 4 Cores, 8M Cache, 3.2GHZ
  • 2 X 240GB SSD Drive
  • RAID Controller
  • 32 GB ECC RAM
  • 10 TB Monthly Bandwidth
  • 5 Dedicated IP Addresses
  • 100% Network Uptime
  • 24x7 Superior Support
  • See Plans and Signup



⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁
EURO Server X2 - €95.99 / mo.
⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁


  • Intel Xeon E5-2430 CPU
  • 6 Cores, 15M Cache, 2.2 GHZ
  • 4 X 240GB SSD Drive
  • RAID Controller
  • 32 GB ECC RAM
  • 10 TB Monthly Bandwidth
  • 5 Dedicated IP Addresses
  • 100% Network Uptime
  • 24x7 Superior Support
  • See Plans And Signup



⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁
EURO Server X3 - €139.95 / mo.
⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁


  • Intel Xeon E3-1270v6 CPU
  • 4 Cores, 8M Cache, 3.8GHZ
  • 4 X 240GB SSD Drive
  • RAID Controller
  • 64 GB ECC RAM
  • 10 TB Monthly Bandwidth
  • 5 Dedicated IP Addresses
  • 100% Network Uptime
  • 24x7 Superior Support
  • See Plans And Signup



⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁
EURO Server X4 - €159.95 / mo.
⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁


  • Intel Xeon Dual E5-2430 CPU
  • 12 Cores, 15M Cache, 2.2GHZ
  • 4 X 240GB SSD Drive
  • RAID Controller
  • 64 GB ECC RAM
  • 10 TB Monthly Bandwidth
  • 5 Dedicated IP Addresses
  • 100% Network Uptime
  • 24x7 Superior Support
  • See Plans And Signup





VPS Addons available:

+ (€3.99) additional IP address
+ (€25.99) WHM/cPanel control panel official licence
+ Other addons available on the website



FAQ:

✱ Do you allow adult content?
YES, we allow legal adult content


✱ Do you allow Torrents, IRC's, VPN's, and Proxies?
Yes, for now, but this may change if we begin to see abuse.


✱ What locations are available?
Our datacenters are located in the UK, Maidenhead datacenter. We are happy to accommodate any location but do not advertise them as available, they may not be without delays for new equipment. Depending on demand we tend to stock various areas faster than others.


✱ I am currently with a reseller provider and want to offer reseller accounts. Can I create reseller accounts with a dedicated server?
Yes you can. You will get root access and adding software such as cPanel/WHM makes those tasks much simplier. With cPanel you can create WHM reseller accounts and easily manage them.


✱ Do you offer an uptime guarantee?
Yes we offer a 100% uptime SLA guarantee on the network. As long as you can reach the network and the server, we have done our part. What goes inside your server is up to you.


WHY EURO-SPACE?

We have been in this industry since 2007 and we know how is best to run successful business together with our customers. We put the client first in everything we do from tightly controlled and monitored machines to overall network performance. We manage our fastest SuperMicro servers in our ISO accredited UK datacenter designed to be the best in speed and reliability. With us, you never have to worry about your online presence, as we take care of it for you.


HOW DO WE CARE?

Our key factor is a quality. We are fully concentrated to provide the best quality products and services on the competitive market. We're always looking for things we can improve, upgrade and add, to provide you the best and above the expectation.
By being our customer, you have the opportunity to launch your online business without hassle, as we take care on hardware, software and other server technical aspects, as well as provide you the professional 24x7 customer support.

We don't want price to stand in the way of your new online venture and so, we can always provide the best custom solutions, which fits your budget and business needs.

Our in-house support team is available anytime you need a help. By phone, by chat or by support form, our web hosting experts are here to help you every step of the way.

WHAT OUR CUSTOMERS SAY?

We do not have the millions-strong customer base, but here are hundreds of them already trusting us, as we do our best to deliver a cost-effective hosting solutions oriented on the quality. This includes fast & professional customer support, serious business attitude to our clients and industry leading technologies delivering best solutions for your business.


⬤ HOW TO TEST AND START?

Check Trustpilot to find out what our customers say about us and to evaluate our services. Visit our website at www.euro-space.net to signup or receive additional information, you'll have up to 15 days to use our hosting services and if not satisfied, you can request your money back, without questions asked!



Sign up now @ https://www.euro-space.net/


-- ]]>
Web Hosting Offers euro-space http://forums.devshed.com/web-hosting-offers-100/powerful-dedicated-servers-59-95-mo-10tb-1gbps-5-ded-ip-pure-ssd-100-uptime-980765.html
Euro VPS only €7.99, VPN, root access, 24x7 Support, 15-Day Money Back • EURO-SPACE http://forums.devshed.com/web-hosting-offers/980764-euro-vps-7-99-vpn-root-access-24x7-support-15-day-money-euro-space-new-post.html Mon, 18 Jun 2018 10:40:07 GMT Image: https://www.euro-space.net/images/euro-space-net-logo-w-txt.png **Celebrating 10 Years of Web Hosting Excellence!** We at EURO-SPACE serve people since 2007 and we know how to deliver Powerful, Fast and Reliable Dedicated Servers with the Superior Support. Check *_Trustpilot (http://www.trustpilot.co.uk/review/www.euro-space.net)_* to find out what our customers...



Celebrating 10 Years of Web Hosting Excellence!


We at EURO-SPACE serve people since 2007 and we know how to deliver Powerful, Fast and Reliable Dedicated Servers with the Superior Support.

Check Trustpilot to find out what our customers say about us.


Our Low-Cost VPS Hosting plans come with up to 100% uptime SLA and 15-Day Full Money Back Guarantee.


Our VPS powered with multiple Hexa-Core Intel processors and gigabytes of ECC RAM will be completely dedicated to your account. It can be used for a wide variety of purposes, including gaming, virtual (i.e., shared) hosting, hosting of traffic-intensive Web sites and running your own web hosting business.


All prices are final, no setup or hidden fees, no minimum term contracts, month-to-month subscription payments, anytime cancellation!

100% Satisfaction Guaranteed or Money Back!



EURO-SPACE VPS Hosting Features:

✦ Industry Top datacenter in Maidenhead, UK
✦ High Quality Supermicro servers
✦ 15-day full money back guarantee
✦ 100% Network Uptime SLA Guarantee
✦ 24x7 Technical Support
✦ FREE dedicated IP address
✦ Fully redundant RAID drive arrays for faster I/O
✦ Root/Admin Access
✦ Unmetered Premium Bandwith
✦ FREE Enom Domain Reseller account
✦ WHM/Cpanel VPS control panel (addon)
✦ Choice of OS: CentOS, Debian, Fedora, SUSE, Ubuntu, Scientific Linux, Slackware
✦ FREE OVZ Web Panel for multiple VPS management



VPS Hosting Plans

⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁
✅ EURO VPS 1 - €7.99 / mo.
⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁

• 1 Core CPU
• 1 GB RAM
• 2 GB Burst RAM
• 12 GB Disk Space
• VPN Enabled
• Unmetered Premium Bandwith
• Daily Backups Available
• FREE Dedicated IP Address
• FREE domain / SSL reseller account
• Click Here to Sign-up


⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁
✅ EURO VPS 2 - €15.95 / mo.
⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁

• 2 Core CPU
• 4 GB RAM
• 6 GB Burst RAM
• 45 GB Disk Space
• VPN Enabled
• Unmetered Premium Bandwith
• Daily Backups Available
• FREE Dedicated IP Address
• FREE domain / SSL reseller account
• Click Here to Sign-up


⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁
✅ EURO VPS 3 - €29.95 / mo.
⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁

• 4 Core CPU
• 8 GB RAM
• 12 GB Burst RAM
• 85 GB Disk Space
• VPN Enabled
• Unmetered Premium Bandwith
• Daily Backups Available
• FREE Dedicated IP Address
• FREE domain / SSL reseller account
• Click Here to Sign-up


⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁
✅ EURO VPS 4 - €49.99 / mo.
⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁⦁

• 8 Core CPU
• 16 GB RAM
• 32 GB Burst RAM
• 200 GB Disk Space
• VPN Enabled
• Unmetered Premium Bandwith
• Daily Backups Available
• FREE Dedicated IP Address
• FREE domain / SSL reseller account
• Click Here to Sign-up




VPS Addons available:

+ (€3.99) additional IP Address
+ (€15.99) WHM/cPanel VPS GUI Control Panel




FAQ:

✱ Do you allow adult content?
YES, we allow legal adult content


✱ Do you allow Torrents, IRC's, VPN's, and Proxies?
Yes, for now, but this may change if we begin to see abuse.


✱ What locations are available?
Our datacenters are located in the UK, Maidenhead datacenter. We are happy to accommodate any location but do not advertise them as available, they may not be without delays for new equipment. Depending on demand we tend to stock various areas faster than others.


✱ I am currently with a reseller provider and want to offer reseller accounts. Can I create reseller accounts with a dedicated server?
Yes you can. You will get root access and adding software such as cPanel/WHM makes those tasks much simplier. With cPanel you can create WHM reseller accounts and easily manage them.


✱ Do you offer an uptime guarantee?
Yes we offer a 100% uptime SLA guarantee on the network. As long as you can reach the network and the server, we have done our part. What goes inside your server is up to you.


WHY EURO-SPACE?

We have been in this industry since 2007 and we know how is best to run successful business together with our customers. We put the client first in everything we do from tightly controlled and monitored machines to overall network performance. We manage our fastest SuperMicro servers in our ISO accredited UK datacenter designed to be the best in speed and reliability. With us, you never have to worry about your online presence, as we take care of it for you.


HOW DO WE CARE?

Our key factor is a quality. We are fully concentrated to provide the best quality products and services on the competitive market. We're always looking for things we can improve, upgrade and add, to provide you the best and above the expectation.
By being our customer, you have the opportunity to launch your online business without hassle, as we take care on hardware, software and other server technical aspects, as well as provide you the professional 24x7 customer support.

We don't want price to stand in the way of your new online venture and so, we can always provide the best custom solutions, which fits your budget and business needs.

Our in-house support team is available anytime you need a help. By phone, by chat or by support form, our web hosting experts are here to help you every step of the way.

WHAT OUR CUSTOMERS SAY?

We do not have the millions-strong customer base, but here are hundreds of them already trusting us, as we do our best to deliver a cost-effective hosting solutions oriented on the quality. This includes fast & professional customer support, serious business attitude to our clients and industry leading technologies delivering best solutions for your business.


⬤ HOW TO TEST AND START?

Check Trustpilot to find out what our customers say about us and to evaluate our services. Visit our website at www.euro-space.net to signup or receive additional information, you'll have up to 15 days to use our hosting services and if not satisfied, you can request your money back, without questions asked!



Sign up now @ https://www.euro-space.net/


-- ]]>
Web Hosting Offers euro-space http://forums.devshed.com/web-hosting-offers-100/euro-vps-7-99-vpn-root-access-24x7-support-15-day-money-euro-space-980764.html
<![CDATA[RELIABLE VPS. USA/Netherlands/Ukraine. SSD VPS. WINDOWS VPS. [Extra IPv4, rent IP]]]> http://forums.devshed.com/web-hosting-offers/980763-reliable-vps-usa-netherlands-ukraine-ssd-vps-windows-vps-extra-ipv4-rent-ip-new-post.html Mon, 18 Jun 2018 08:55:37 GMT Our tariffs for SSD VPS in the best data centers of Ukraine, Europe and USA are available:

Linux & FreeBSD only/ 1x Xeon 64bit/ 1 GB RAM/ 25 GB SSD 1 Gbit/s share / 2 TB - $8
VPS-2/ 1x Xeon 64bit/ 2 GB RAM/ 50 GB SSD/ 1 Gbit/s shared/ 2 TB - $12
VPS-3/ 1x Xeon 64bit/ 3 GB RAM/ 75 GB SSD/ 1 Gbit/s shared/ 2 TB - $16
VPS-4/ 1x Xeon 64bit/ 4 GB RAM/ 100 GB SSD/ 1 Gbit/s shared/2 TB - $21
VPS-6/ 2x Xeon 64bit/ 6 GB RAM/ 125 GB SSD/ 1 Gbit/s shared/ 2 TB - $29
VPS-8/ 2x Xeon 64bit/ 8 GB RAM/ 150 GB SSD/ 1 Gbit/s shared/ 2 TB - $37

You can also order HDD VPS in Ukraine or Netherlands:

STORAGE VPS 100GB/ 1x Xeon 64bit/ 1GB RAM/ 100 GB HDD/1 Gbit/s shared/ 2 TB - $10
STORAGE VPS 200GB/ 1x Xeon 64bit/ 2GB RAM/ 200 GB HDD/1 Gbit/s shared/ 2 TB - $15
STORAGE VPS 300GB/ 1x Xeon 64bit/ 3GB RAM/ 300 GB HDD/1 Gbit/s shared/ 2 TB - $20
STORAGE VPS 400GB/ 1x Xeon 64bit/ 4GB RAM/ 400 GB HDD/1 Gbit/s shared/ 2 TB - $25
STORAGE VPS 600GB/ 2x Xeon 64bit/ 6GB RAM/ 600 GB HDD/1 Gbit/s shared/ 2 TB - $35

Extra IPv4 are also available for 1 $!

Order VPS at our web-site: 301 Moved Permanently ]]>
Web Hosting Offers Deltahost http://forums.devshed.com/web-hosting-offers-100/reliable-vps-usa-netherlands-ukraine-ssd-vps-windows-vps-extra-ipv4-rent-ip-980763.html
.ONLINE Domain For Only $1/Year - Hostripples! http://forums.devshed.com/web-hosting-offers/980762-online-domain-1-hostripples-new-post.html Mon, 18 Jun 2018 05:14:37 GMT *.ONLINE Domain For Only $1/Year - Hostripples! * Kick Your *.ONLINE Domain name* in your Goal Post ! *@ just $1/Year* Limited Period Offer. Hurry UP! *PROMOCODE : FIFA2018* Registration Link: https://hostripples.com/
.ONLINE Domain For Only $1/Year - Hostripples!



Kick Your .ONLINE Domain name in your Goal Post ! @ just $1/Year Limited Period Offer. Hurry UP!

PROMOCODE : FIFA2018

Registration Link: https://hostripples.com/

Hostripples - Affordable web hosting
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/online-domain-1-hostripples-980762.html
Cheap Dedicated Server UK - Hostripples! http://forums.devshed.com/web-hosting-offers/980761-cheap-dedicated-server-uk-hostripples-new-post.html Sat, 16 Jun 2018 06:22:57 GMT *Cheap 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...
Cheap 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
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:- 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/cheap-dedicated-server-uk-hostripples-980761.html
Is this what a cronjob is for? http://forums.devshed.com/php-development/980760-cronjob-new-post.html Sat, 16 Jun 2018 05:30:37 GMT Hello Is it a good idea to use a cronjob in order to take some pressure off the API endpoint? In other words, would it be a good idea to replace *script A *with *script B* below and every minute run a cron job to clean the database and apply that logic? Script A PHP: Hello

Is it a good idea to use a cronjob in order to take some pressure off the API endpoint?

In other words, would it be a good idea to replace script A with script B below and every minute run a cron job to clean the database and apply that logic?

Script A

PHP Code:

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

class 
Data_receiver extends CI_Controller {

    public function 
__construct()
        {
            
parent::__construct();
        }

    public function 
index() 
        {
            
//$this->output->enable_profiler(TRUE);
            
$this->db->trans_start();
            
$sql "SELECT * FROM campaign_owners INNER JOIN campaign_campaignes 
            ON campaign_campaignes.user_id = campaign_owners.id 
                AND campaign_campaignes.id = ?
            WHERE campaign_owners.id = ?"
;
            
$query $this->db->query($sql, array($_POST['campaign_id'], $_POST['user_id']));
            if(
$query->num_rows()!=1)
                {
                    echo 
"Invalid Request";exit();
                }
            else
                {
                    
$results $query->result_array()[0];    
                    if(
$results['status']!='active' || $results['secret_key']!=$_POST['secret_key'])
                        {
                            echo 
"Inactive Account Or Invalid Secret";exit();
                        }
                    else 
                        {
                            
//Get campaign timezone:
                            
$timezone $this->custom_functions->get_timezone_by_campaign_id($_POST['campaign_id']);
                            
$this->custom_functions->set_timezone($timezone);
                            
//Validate Launch
                            
$sql "SELECT * FROM campaign_campaignes WHERE id = ? AND campaign_type = ?";
                            
$query $this->db->query($sql, array($_POST['campaign_id'], 'evergreen'));
                            if(
$query->num_rows()==1)
                                {
                                    
//Does Prospect exist under this user?
                                    
$sql "SELECT * FROM campaign_prospects WHERE email = ? AND owner_id = ?";
                                    
$query $this->db->query($sql, array($_POST['prospect_email'], $_POST['user_id']));
                                    if(
$query->num_rows()==1)
                                        {
                                            
$prospect_id $query->result_array()[0]['id'];
                                        }
                                    else 
                                        {
                                            
$data = array(
                                                
'email' => $_POST['prospect_email'],
                                                
'owner_id' => $_POST['user_id'],
                                            );
                                            
$this->db->insert('campaign_prospects'$data);
                                            
$prospect_id $this->db->insert_id();
                                        }
                                    
//Delete prospect from this campaign if already exist in the seqeunce
                                    
$this->db->delete('campaign_campaign_prospect', array('campaign_id' => $_POST['campaign_id'], 'prospect_id'=>$prospect_id)); 
                                    
//Add Prospect To Launch
                                    
$data = array(
                                                
'campaign_id' => $_POST['campaign_id'],
                                                
'prospect_id' => $prospect_id,
                                                
'time_added' => date('H:i'),
                                                
'date_added' => date('Y-m-d'),
                                                
'source' => (isset($_POST['source']) ? $_POST['source'] : '')
                                        );
                                    
$this->db->insert('campaign_campaign_prospect'$data);
                                    
$last $this->db->insert_id();
                                    
//Insert the same into stats table
                                    
$data = array(
                                                
'campaign_id' => $_POST['campaign_id'],
                                                
'prospect_id' => $prospect_id,
                                                
'time_added' => date('H:i'),
                                                
'date_added' => date('Y-m-d'),
                                                
'source' => (isset($_POST['source']) ? $_POST['source'] : '')
                                        );
                                    
$this->db->insert('campaign_campaign_prospect_history'$data);
                                    
                                    echo 
"Added Successfully";
                                }
                            else 
                                {
                                    echo 
"Invalid campaign";exit();
                                }    
                        }    
                }    
        
$this->output->enable_profiler(TRUE);
        
$this->db->trans_complete();        

        }
}


Script B
PHP Code:



//Just check if total number of records is not over 100k then

$data = array(
            
'campaign_id' => $_POST['campaign_id'],
            
'prospect_id' => $prospect_id,
            
'time_added' => date('H:i'),
            
'date_added' => date('Y-m-d'),
            
'source' => (isset($_POST['source']) ? $_POST['source'] : '')
    );
$this->db->insert('campaign_campaign_prospect'$data); 

]]>
PHP Development English Breakfast Tea http://forums.devshed.com/php-development-5/cronjob-980760.html
<![CDATA[A design question. What if the customer don't upgrade? How can I limit the service?]]> http://forums.devshed.com/dev-shed-lounge/980759-design-question-customer-dont-upgrade-limit-service-new-post.html Sat, 16 Jun 2018 03:23:18 GMT Hi;

It's a monthly payment system. The client can buy 3 account types:

1 - Basic, 2 - Pro, 3 - Consultant

Basic allows them to have 10000 emails in their account.
Pro allows them to have 100000 emails in their account.
Consultant allows them to have 200000 emails in their account.

They can add prospects emails to their account using my API endpoint.

Scenario:

If they buy a Basic account and at some point the number of the emails in their account increase over the limit:

1 - How can I give them X days to upgrade and what if they don't upgrade?
2 - How can I calculate the number of days they've been over the limit (without making things complicated and shet in the code)

I want to give them maybe X days notice. After that 2 things could happen:

1 - They upgrade
2 - They don't upgrade

What if they stay on the same account type? I can't cancel their account because they still paying.

Tanx ]]>
Dev Shed Lounge English Breakfast Tea http://forums.devshed.com/dev-shed-lounge-26/design-question-customer-dont-upgrade-limit-service-980759.html
How to get the number of active prospects in the account http://forums.devshed.com/mysql-help/980758-active-prospects-account-new-post.html Sat, 16 Jun 2018 02:26:30 GMT Hi; Is this the right way to get the number of prospects in an active account? Explain returns 4000 rows. Not sure if its supposed to be that way or not Code: --------- SELECT COUNT(*) AS active_prospects Hi;

Is this the right way to get the number of prospects in an active account?

Explain returns 4000 rows. Not sure if its supposed to be that way or not

Code:

SELECT COUNT(*) AS active_prospects
FROM  launch_launch_prospect
      INNER JOIN launch_launches
              ON launch_launch_prospect.launch_id = launch_launches.id
                  AND launch_launches.launch_status = 'active'
      INNER JOIN launch_owners
              ON launch_launches.user_id = launch_owners.id
                  AND launch_owners.id = 1

Explained

Code:

CREATE TABLE `launch_owners` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `account_type` varchar(255) NOT NULL,
 `secret_key` varchar(255) NOT NULL,
 `email` varchar(255) NOT NULL,
 `password` varchar(255) NOT NULL,
 `date_added` date NOT NULL,
 `status` varchar(255) NOT NULL,
 `timezone` varchar(255) NOT NULL,
 `temp_password` int(11) DEFAULT NULL,
 `password_update_request` int(11) DEFAULT NULL,
 PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8

Code:

CREATE TABLE `launch_launch_prospect` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `launch_id` int(11) NOT NULL,
 `prospect_id` int(11) NOT NULL,
 `time_added` varchar(255) NOT NULL,
 `date_added` date NOT NULL,
 `source` varchar(255) NOT NULL,
 `timer_loads` int(11) DEFAULT '0',
 PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4232 DEFAULT CHARSET=utf8

Code:

CREATE TABLE `launch_launches` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `demo` int(11) NOT NULL DEFAULT '0',
 `launch_timezone` varchar(255) NOT NULL,
 `css_file` varchar(50) NOT NULL DEFAULT '1.css',
 `when_expires` varchar(255) NOT NULL DEFAULT 'do_nothing',
 `timer_digit_bg` varchar(255) NOT NULL DEFAULT '#000000',
 `timer_backdrop` varchar(255) NOT NULL DEFAULT 'transparent',
 `timer_digit_color` varchar(255) NOT NULL DEFAULT '#ffffff',
 `timer_width` varchar(55) NOT NULL DEFAULT 'smaller',
 `timer_font_family` varchar(255) NOT NULL DEFAULT 'Anton',
 `timer_opacity` varchar(255) NOT NULL DEFAULT '1',
 `timer_border_radius` varchar(255) NOT NULL DEFAULT '0',
 `timer_position` varchar(255) DEFAULT NULL,
 `launch_status` int(11) NOT NULL DEFAULT '1',
 `launch_timer_style` int(11) NOT NULL DEFAULT '1',
 `launch_timer_style_email` varchar(255) NOT NULL DEFAULT 'white',
 `launch_timer_email_font` varchar(255) NOT NULL DEFAULT 'arial',
 `title` varchar(255) NOT NULL,
 `launch_type` varchar(255) NOT NULL,
 `user_id` int(11) NOT NULL,
 `product_id` int(11) NOT NULL,
 `open_offer_x_days_or_hours_or_minutes_after_last_plc` int(11) NOT NULL DEFAULT '6',
 `evergreen_launch_days_hours_minutes` varchar(255) NOT NULL DEFAULT 'days',
 `offer_open_date` varchar(255) NOT NULL,
 `offer_open_time` varchar(255) NOT NULL,
 `offer_close_date` varchar(255) NOT NULL,
 `offer_close_time` varchar(255) NOT NULL,
 `sales_page` varchar(500) NOT NULL,
 `offer_closed_page` varchar(255) NOT NULL,
 `how_many_days_or_hours_or_minutes_keep_sales_page_open` varchar(255) NOT NULL DEFAULT '4',
 `keep_sales_page_open_days_or_hours_or_minutes` varchar(255) NOT NULL DEFAULT 'days',
 `report_mode` varchar(255) NOT NULL DEFAULT 'off',
 `timer_loads` int(11) NOT NULL DEFAULT '0',
 `thumbnail` varchar(255) NOT NULL,
 `delete_column` datetime NOT NULL,
 PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=120 DEFAULT CHARSET=utf8

]]>
MySQL Help English Breakfast Tea http://forums.devshed.com/mysql-help-4/active-prospects-account-980758.html
Is this a good solution? Or are there better ways to build this system? http://forums.devshed.com/php-development/980757-solution-build-system-new-post.html Sat, 16 Jun 2018 01:31:15 GMT Hi; Requirements: When a visitor hits the page, load a countdown timer that shows X days, hours and minutes before expiring. When the visitor returns, the timer should be set from the time visitor first visited the page. My solution: Give a piece of Javascript code to the client to embed in the page. Each time that code gets loaded, I create a record with IP address of the visitor in... Hi;

Requirements:

When a visitor hits the page, load a countdown timer that shows X days, hours and minutes before expiring. When the visitor returns, the timer should be set from the time visitor first visited the page.

My solution:

Give a piece of Javascript code to the client to embed in the page. Each time that code gets loaded, I create a record with IP address of the visitor in the database.

When that page gets reloaded, I query the database, if the IP exists, instead of creating the record, I load the countdown timer associated with that id, calculate the time since created, and load the countdown accordingly.

Ideas? ]]>
PHP Development English Breakfast Tea http://forums.devshed.com/php-development-5/solution-build-system-980757.html
Best Windows Plesk Shared Web 10% OFF - Hostripples! http://forums.devshed.com/web-hosting-offers/980756-windows-plesk-shared-web-10-hostripples-new-post.html Fri, 15 Jun 2018 06:39:13 GMT *Best Windows Plesk Shared Web 10% OFF - 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 - $2/Month* Unlimited Web Space Unlimited Monthly Bandwidth Host 1 Website 5 Sub...
Best Windows Plesk Shared Web 10% OFF - 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 - $2/Month
Unlimited Web Space
Unlimited Monthly Bandwidth
Host 1 Website
5 Sub Domains
5 Domain Aliases
10 Mailing List
24 x 7 Live Support

Buy Now!

BUSINESS - $7/Month
Unlimited Web Space
Unlimited Monthly Bandwidth
Host 10 Website
30 Sub Domains
30 Domain Aliases
25 Mailing List
24 x 7 Live Support

Buy Now!

ENTERPRISE - $12/Month
Unlimited Web Space
Unlimited Monthly Bandwidth
Host Unlimited Website
Unlimited Sub Domains
Unlimited Domain Aliases
Unlimited Mailing List
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:- .

Coupon Code: WINSH10OFF

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/windows-plesk-shared-web-10-hostripples-980756.html
Iframe height issue http://forums.devshed.com/css-help/980755-iframe-height-issue-new-post.html Fri, 15 Jun 2018 03:18:58 GMT Hi; The question is about the timer sticking to the bottom of this page https://webmoosh.com/demo How can I set the iframe height so it still works well cross-browser and this annoying few pixel gap goes away? Thanks Hi;

The question is about the timer sticking to the bottom of this page https://webmoosh.com/demo

How can I set the iframe height so it still works well cross-browser and this annoying few pixel gap goes away?

Thanks ]]>
CSS Help English Breakfast Tea http://forums.devshed.com/css-help-116/iframe-height-issue-980755.html
websockets when client offline http://forums.devshed.com/javascript-development/980754-websockets-client-offline-new-post.html Thu, 14 Jun 2018 19:15:53 GMT Can someobody help me understand websockets? When a client goes offline and then back online. Will it receive messages that being sent when the client was offline? Thanks, M Can someobody help me understand websockets?
When a client goes offline and then back online.
Will it receive messages that being sent when the client was offline?


Thanks,
M ]]>
JavaScript Development AVWater http://forums.devshed.com/javascript-development-115/websockets-client-offline-980754.html
cPanel Hosting €2.99/m. 99.99% Uptime, Daily Backup, 24x7 Support, 15-Day Money Back! http://forums.devshed.com/web-hosting-offers/980753-cpanel-hosting-2-99-99-99-uptime-daily-backup-24x7-support-15-day-money-new-post.html Thu, 14 Jun 2018 10:44:51 GMT   




Fully Managed Hosting - 100% Satisfaction Guaranteed or Money Back!



We at EURO-SPACE serve people since 2007 and we know how to deliver Powerful, Fast and Reliable Web Hosting with the Superior Customer Support.

Check Trustpilot to find out what our customers say about us.

Our Supermicro servers are housed in Maidenhead, UK Datacenter, with gigabits of connection speed and Cisco hardware firewalls.

Fully managed and monitored around the clock, our servers run on Linux operating systems with lots of ECC-RAM memory cards, Hardware RAID SSD drives and multiple powerful CPU's, utilizing power of the Cloud Services.

Our Web Hosting plans come with up to 99.99% network uptime and 15-Day Full Money Back Guarantee.


All prices are final, no setup or hidden fees, no minimum term contracts, month-to-month subscription payments, anytime cancellation!


***************************************
EURO Standard • €2.99/month
***************************************
✦ 3.5 GB SSD Diskspace
✦ 400 GB Premium Bandwidth
✦ Unlimited Parked Domains & Sub Domains
✦ FREE WordPress, Joomla, Drupal & Over €500 of FREE extras & Site Building Tools
✦ FREE email & FTP accounts, MySQL databases
✦ PHP 5.5, 5.6, 7, MySQL 5.6, Ruby, Python, etc.
✦ FREE Website Statistics
✦ FFMpeg, Live Video/Audio Support
✦ FREE Daily, Weekly and Monthly Backups
✦ FREE Website Migration
✦ 99.99% Uptime Guarantee
✦ 15-Day Full Money Back Guarantee!
Click Here to Sign-up


***************************************
EURO Business • €5.95/month
***************************************
✦ 7 GB SSD Diskspace
✦ Unlimited Premium Bandwidth
✦ Unlimited Addon, Parked Domains & Sub Domains
✦ FREE WordPress, Joomla, Drupal & Over €500 of FREE extras & Site Building Tools
✦ FREE email & FTP accounts, MySQL databases
✦ PHP 5.5, 5.6, 7, MySQL 5.6, Ruby, Python, etc.
✦ FREE Website Statistics
✦ FFMpeg, Live Video/Audio Support
✦ FREE Daily, Weekly and Monthly Backups
✦ FREE Website Migration
✦ FREE SSL Certificate
✦ 99.99% Uptime Guarantee
✦ 15-Day Full Money Back Guarantee!
Click Here to Sign-up


***************************************
EURO Ultimate • €8.99/month
***************************************
✦ 15 GB SSD Diskspace
✦ Unlimited Premium Bandwidth
✦ Unlimited Addon, Parked Domains & Sub Domains
✦ FREE WordPress, Joomla, Drupal & Over €500 of FREE extras & Site Building Tools
✦ FREE email & FTP accounts, MySQL databases
✦ PHP 5.5, 5.6, 7, MySQL 5.6, Ruby, Python, etc.
✦ FREE Website Statistics
✦ FFMpeg, Live Video/Audio Support
✦ FREE Daily, Weekly and Monthly Backups
✦ FREE Website Migration
✦ FREE SSL Certificate
✦ FREE Dedicated IP Included
✦ 99.99% Uptime Guarantee
✦ 15-Day Full Money Back Guarantee!
Click Here to Sign-up



• Extra Dedicated IP with Reverse DNS (rDNS / PTR) is available for €3.99 /month.


WHY EURO-SPACE?

We have been in this industry since 2007 and we know how is best to run successful business together with our customers. We put the client first in everything we do from tightly controlled and monitored machines to overall network performance. We manage our fastest SuperMicro servers in our ISO accredited UK datacenter designed to be the best in speed and reliability. With us, you never have to worry about your online presence, as we take care of it for you.


HOW DO WE CARE?

Our key factor is a quality. We are fully concentrated to provide the best quality products and services on the competitive market. We're always looking for things we can improve, upgrade and add, to provide you the best and above the expectation.
By being our customer, you have the opportunity to launch your online business without hassle, as we take care on hardware, software and other server technical aspects, as well as provide you the professional 24x7 customer support.

We don't want price to stand in the way of your new online venture and so, we can always provide the best custom solutions, which fits your budget and business needs.

Our in-house support team is available anytime you need a help. By phone, by chat or by support form, our web hosting experts are here to help you every step of the way.

WHAT OUR CUSTOMERS SAY?

We do not have the millions-strong customer base, but here are hundreds of them already trusting us, as we do our best to deliver a cost-effective hosting solutions oriented on the quality. This includes fast & professional customer support, serious business attitude to our clients and industry leading technologies delivering best solutions for your business.


⬤ HOW TO TEST AND START?

Check Trustpilot to find out what our customers say about us and to evaluate our services. Visit our website at www.euro-space.net to signup or receive additional information, you'll have up to 15 days to use our hosting services and if not satisfied, you can request your money back, without questions asked!



Sign up now @ https://www.euro-space.net/


-- ]]>
Web Hosting Offers euro-space http://forums.devshed.com/web-hosting-offers-100/cpanel-hosting-2-99-99-99-uptime-daily-backup-24x7-support-15-day-money-980753.html
Best France Linux VPS Cloud RAM - Hostripples! http://forums.devshed.com/web-hosting-offers/980752-france-linux-vps-cloud-ram-hostripples-new-post.html Thu, 14 Jun 2018 05:58:29 GMT *Best France Linux 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. *France Linux VPS Cloud RAM PLAN 1 - $40/Month* Guaranteed RAM : 6 GB HDD : 25 GB Bandwidth : 100 Mbps...
Best France Linux 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.

France Linux VPS Cloud RAM PLAN 1 - $40/Month
Guaranteed RAM : 6 GB
HDD : 25 GB
Bandwidth : 100 Mbps Unlimited
CPU Cores : 1 vCore
Root Access : YES
IPv4 : 1 IP
IPv6 : 1 IP

Buy Now!

France Linux VPS Cloud RAM PLAN 2 - $75/Month
Guaranteed RAM : 12 GB
HDD : 50 GB
Bandwidth : 100 Mbps Unlimited
CPU Cores : 2 vCore
Root Access : YES
IPv4 : 1 IP
IPv6 : 1 IP

Buy Now!

France Linux VPS Cloud RAM PLAN 1 - $40/Month
Guaranteed RAM : 6 GB
HDD : 25 GB
Bandwidth : 100 Mbps Unlimited
CPU Cores : 1 vCore
Root 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:- France Linux 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/france-linux-vps-cloud-ram-hostripples-980752.html
Why Wrong Conditions Get Triggered ? http://forums.devshed.com/php-development/980751-wrong-conditions-triggered-new-post.html Wed, 13 Jun 2018 23:49:20 GMT Folks,

The script is supposed to check if a folder exists or not. If not then create it.
Since the folder does not exists then I expect the following code's line 76-80 to build one under the $user. But it is not getting built.
Why is that ?

Lines 76-80:
PHP Code:

if(!is_dir("$directory_path.  "$user")) 
            { 
                
$mode "0777"
                
mkdir("$directory_path"$user"$modeTRUE); 
            } 

Full Code
PHP Code:

<?php 

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

?> 
    
    <!DOCTYPE html> 
    <html> 
    <head> 
    <title>member Identity Video Verification Page</title> 
        <meta charset="utf-8"> 
    </head> 
    <body> 
    <body background="background.png"> 
    <p align="center"><h2>Member Identitiy Video verificarion Page</h2> </p> 
    <p align="left"> 
    <?php 
    
//Welcome User by name. Display Log-out Link. 
    
echo 'Welcome '; echo "$first_name "; echo "$middle_name "; echo "surname "?> 
    <br> 
    <?php 
    
//Prompt user to video confirm their account by reading their account details in front of a video camera. 
    
echo 'To verify your account, heed the following instructions.'?> <br> 
    <br> 
    <br> 
    <?php echo '1. Stand in front of your video camera and read-out the following text you see in bold text.'?> <br> 
    <?php echo '2. Make sure the video is no longer than 3 minutes.'?> <br> 
    <?php echo '3. Attach the video on the form below to submit it to us.'?> <br> 
    <?php echo "4. Click the \"<b>Submit</b>\" button and submit the form."?> <br> 
    <br> 
    <br> 
    <?php //TypeCasted the INT to STRING on the 1st parameter of sha1 as it needs to be a STRING. 
    
$account_video_verification_code sha1( (string) mt_rand(099999999)); 
    echo 
"<b>My $social_network_name Id is: $id"?></b> <br> 
    <?php echo "<b>My $social_network_name Username is: $username"?></b> <br> 
    <?php echo "<b>My Domain is: $primary_website_domain"?></b> <br> 
    <?php echo "<b>My Primary Website Email is: $primary_website_email"?></b> <br> 
    <?php echo "<b>My Name is: $first_name $middle_name $surname"?></b> <br> 
    <?php echo "<b>My Gender is: $gender"?></b> <br> 
    <?php echo "<b>My Age Range is: $age_range"?> </b> <br> 
    <?php echo "<b>My Religion is: $religion"?></b> <br> 
    <?php echo "<b>My $social_network_name account_video_verification_code is: $account_video_verification_code"?></b> <br> 

    <?php 
    
if (isset($_POST["id_verification_video_file_submit"])) 
    { 
        
$id_verification_video_file trim($_POST["id_verification_video_file_submit"]); 
        if(
strlen($id_verification_video_file)<1//WHY IS NOT THIS GIVING ALERT IF FILE NAME IS ZERO DUE TO USER FAILING TO SELECT & UPLOAD A FILE ? 
        

            echo 
"You must upload your video file that you just created!"
            exit(); 
        }         
    } 
    
    
//Check whether the form was submitted or not. 
    
if($_SERVER["REQUEST_METHOD"] == "POST"
    { 
        
//Check whether the file was uploaded or not without any errors. 
        
if(!isset($_FILES["id_verification_video_file"]) && $_FILES["is_verification_video_file"]["Error"] == 0
        { 
            
$Errors = Array(); 
            
$Errors[] = "Error: " $_FILES["id_verification_video_file"]["ERROR"];         
            
print_r($_FILES); ?> <br> <?php 
            print_r
($_ERRORS); 
            exit(); 
        } 
        else 
        { 
            
//Feed Id Video Verification File Upload Directory Path. 
            
$directory_path "uploads/videos/id_verifications/"
            
//Make Directory under $user in 'uploads/videos/id_verifications' Folder. 

            
if(!is_dir("$directory_path.  "$user")) 
            { 
                
$mode "0777"
                
mkdir("$directory_path"$user"$modeTRUE); 
            } 
            
//Grab File details. 
            
$Errors = Array(); 
            
$file_name $_FILES["id_verification_video_file"]["name"]; 
            
$file_tmp $_FILES["id_verification_video_file"]["tmp_name"]; 
            
$file_type $_FILES["id_verification_video_file"]["type"]; 
            
$file_size $_FILES["id_verification_video_file"]["size"]; 
            
//Grab File Extension details. 
            
$file_extension pathinfo($file_namePATHINFO_EXTENSION); 
            if(
file_exists("$directory_path"$user/" "$file_name")) 
            { 
                echo 
"<b><font size ='5' font color ='red'>File $file_name already exists! It has been uploaded before!</b></color></size>";   
                exit(); 
            } 
            else 
            { 
                
//Feed allowed File Extension(s). 
                
$allowed_file_extensions = array("mp4" => "video/mp4","wmv" => "video/wmv"); 
                
//Feed allowed file size. 
                
$max_file_size_allowed_in_bytes 1024*1024*100//Allowed limit: 100MB. 
                
$max_file_size_allowed_in_kilobytes 1024*100
                
$max_file_size_allowed_in_megabytes 100
                
//Verify File Extension. 
                
if(!array_key_exists($file_extension,$allowed_file_extensions)) die("Error: Select a valid video file format. Select an MP4 or WAV file."); 
                
//verify MIME Type of the file. 
                
elseif(!in_array($file_type,$allowed_file_extensions)) 
                { 
                    
$Errors[] = "Error:<font size ='5' font color ='red'><b>There was a problem uploading your video file $file_name! Make sure your file is an MP4 or a WAV file. You may try again now.</b></color></size>"
                } 
                
//Verify File Size. Allowed Max Limit: 100MB. 
                
elseif($file_size>$max_file_size_allowed) die("Error: Your Video File Size is larger than the allowed limit of: $max_file_size_allowed_in_megabytes."); 
                
//Move uploaded File to newly created directory on the server. 
                
move_uploaded_file("file_tmp","$directory_path"$user/" "$file_name"); 
                
//Notify user their File was uploaded successfully. 
                
echo "<font size ='5' font color ='red'><b>Your Video File \"$file_name\" has been uploaded successfully! You will get notified once your Id has been verified successfully.</b></color></size>"
                
//Grab User's Sponsor details to notify the Sponsor to Verify User'd ID by watching user's uploaded Video. 
                
$query "SELECT id,account_activation_status,id_video_verification_status,primary_website_domain,primary_website_email,username,first_name,middle_name,surname FROM users WHERE username = ?"
                
$stmt mysqli_prepare($conn,$query); 
                
mysqli_stmt_bind_param($stmt,'s',$db_sponsorusername); 
                
mysqli_stmt_execute($stmt); 
                
$result mysqli_stmt_bind_result($stmt,$db_sponsor_id,$db_sponsor_account_activation_status,$db_sponsor_id_video_verification_status,$db_sponsor_primary_website_domain,$db_sponsor_primary_website_email,$db_sponsor_username,$db_sponsor_first_name,$db_sponsor_middle_name,$db_sponsor_surname);  
                
mysqli_stmt_fetch($stmt); 
                
mysqli_stmt_close($stmt); 
                
                
//Notify User's Sponsor to Verify User's Id. 
                
$recipient_username $sponsor_username
                
$sender_username "admin"
                
$message "Dear $user, <br> 
                <br> 
                One of your referrals have confirmed their Id by uploading a video with their personal details. <br> 
                We need you to watch their video and verify their personal details to the best of your knowledge. <br> 
                You may find their video by <a href=\"uploads\\videos\\id_verifications\\
$user\\$file_name\">clicking here</a>. <br> 
                <br> 
                <br> 
                Your recruit should be reading-out the following script in (<font color=\"blue\"><b>bold BLUE</color> text</b> below) word for word and line for line in-front of their camera. <br> 
                1. If the details about your recruit are accurate in the script; And <br> 
                2. If they manage to read-out every line in the script accurately word for word and line for line; And <br> 
                3. Providing the video is no longer than 5 minutes; <br> 
                then: <br> 
                <a href=\"verify_id.php?verifying_action=verify&verifying_user=
$user\">Click to verify $user</a>. <br> 
                <br> 
                Else, <a href=\"verify_id.php?verifying_action=unverify&verifying_user=
$user\">Click to Unverify $user</a>. <br> 
                <br> 
                <font color = \"red\"><b>WARNING: Do not verify this recruit if their details are not correct in the script or if they fail to read-out their correct details on the video. <br> 
                Doing so, will result in you bearing all the liabilities of the damages they cause anywhere in the world using their falsely verified account.</b></color> <br> 
                <br> 
                Regards <br> 
                <br> 
                Admin <br> 
                <br> 
                <font size =\"4\">SCRIPT START</font size> <br> 
                <font color =\"blue\">My Social_network_name Id is: 
$id; <br> 
                My 
$social_network_name Username is: $username; <br> 
                My 
$social_network_name Primary Website Domain is: $primary_website_domain; <br> 
                My 
$social_network_name Primary Website Email is: $primary_website_email; <br> 
                My Name is: 
$title $first_name $middle_name $surname; <br> 
                My Gender is: 
$gender; <br> 
                My Age-Range is: 
$age_range; <br> 
                My Religion is: 
$religion; <br> 
                My 
$social_network_name account_video_verification_code is: $account_video_verification_code; <br> 
                </color> 
                </size> 
                <b><font size=\"4\">SCRIPT END</font size></b> <br> 
                <br> 
                "

                
                
$stmt mysqli_prepare($conn,"INSERT INTO notices(recipient_username,sender_username,message) VALUES (?,?,?)"); 
                
mysqli_stmt_bind_param($stmt,'sss',$recipient_username,$sender_username,$message); 
                
mysqli_stmt_execute($stmt); 
                
                
//Check if user's Video Verification File upload NOTIFICATION was successfully submitted to Mysql Database or not. 
                
if(!$stmt
                { 
                    echo 
"<b><font size ='5' font color ='red'>Sorry! our system is currently experiencing a problem in NOTIFYING the appropriate person to verify your Id. You may experience a delay in getting your Id verified.</b>"
                    exit(); 
                } 
                else 
                { 
                    
//Email User's Sponsor to verify user's Id. 
                    
$to $db_sponsor_primary_website_email
                    
$subject "Your ".$site_name." Verify Your Referral's Id!"
                    
$body nlbr(
                    ===============================\r\n 
                    "
.$site_name." \r\n 
                    ===============================\r\n 
                    From: "
.$site_admin_email." \r\n 
                    To: "
.$db_sponsor_primary_website_email." \r\n 
                    Subject: Yours "
.$subject." \r\n 
                    
                    Message: "
.$db_sponsor_first_name." ".$db_sponsor_middle_name." ".$db_sponsor_surname." \r\n 
                    One of your referrals have confirmed their Id by uploading a video with their personal details. \r\n 
                    We need you to watch their video and verify their personal details to the best of your knowledge. \r\n 
                    You may find their video listed in your "
.$site_name." account's \"Verify Id\" section. \r\n 
                    
$site_domain/home.php. \r\n"); 
                    
$headers "From: " $site_admin_email ."\r\n";                     
                    if(!
mail($to,$subject,$body,$headers)) 
                    { 
                        echo 
"Sorry! our system is currently experiencing a problem in EMAILING the appropriate person to verify your Id. You may experience a delay in getting your Id verified."
                        exit(); 
                    } 
                    else 
                    { 
                        echo 
"Our system has managed to EMAIL the appropriate person to verify your Id. Hopefully, your Id will be verified soon (providing you gave your accurate details)."
                        exit(); 
                    } 
                } 
            } 
        } 
    } 
?> 
    
    <form enctype="multipart/form-data" ACTION="" METHOD="POST"> 
    <fieldset> 
    <p align="left"><h3><?php $site_name?>ID Verification Form</h3> </p> 
    <div class="form-group"> 
        <p align="left"><label>Video File:<label> 
        <input type="file" name="id_verification_video_file" id="id_verification_video_file" value="Uploaded 'Id verifcation Video File.'"> </p> 
    </div> 
</fieldset> 
    <p align="left"><button type="submit" class="btn btn-default" name="id_verification_file_submit">Submit! </button> </p> 
</form> 

</body> 
</html> 

<?php 

include 'footer.php'

?>

Q2.
Lines 48-56 checks if the user has attached a video file or not.
If there is no file attached then the user should get an alert to attach a video file.
But, guess what ? The alert does not come. Strange!
PHP Code:

if (isset($_POST["id_verification_video_file_submit"])) 
    { 
        
$id_verification_video_file trim($_POST["id_verification_video_file_submit"]); 
        if(
strlen($id_verification_video_file)<1//WHY IS NOT THIS GIVING ALERT IF FILE NAME IS ZERO DUE TO USER FAILING TO SELECT & UPLOAD A FILE ? 
        

            echo 
"You must upload your video file that you just created!"
            exit(); 
        }         
    } 

Instead, the following gets triggered saying the file already exists (file already uploaded in the past) when in reality it has not.
PHP Code:

if(file_exists("$directory_path"$user/" "$file_name")) 
            { 
                echo 
"<b><font size ='5' font color ='red'>File $file_name already exists! It has been uploaded before!</b></color></size>";   
                exit(); 
            } 

Weird! What is going on here ? This script worked more than 4wks ago.
But, when I tested it tonight, it has gone hay-wire. ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/wrong-conditions-triggered-980751.html