Ler arquivo grande (80gb) em php

Preciso ler um arquivo de 80 giga utilizando PHP para incluir em um banco de dados postgres. O arquivo é um txt com um layout de colunas.

A IDEIA SERIA NÃO DIVIDI-LO, POIS O PROCESSO FICARIA INVIÁVEL, por tanto, preciso ler o arquivo de uma só vez nem que isso demore várias horas.

O problema aqui acredito que seja a memória.

Qual a melhor forma, se é que é possivel, de ler este arquivo sem precisar aumentar a memoria? é possivel ler o arquivo em partes para que nao haja o estouro da memória? qual seria a função para isso?

MegaZoneHosting – 80GB Master Reseller for $12/year, 2GB SSD VPS $16.95/year & more in Chicago & New York!

Brad from MegaZoneHosting is back with some exclusive deals for the community! They are offering master resellers starting at $ 12/yr, and OpenVZ VPS from $ 16.95/year! Master Resellers are available in their New York location, while VPS’s can be deployed in either Chicago or New York (your choice). MegaZoneHosting has been featured on LowEndBox in the past and we look forward to hearing your feedback about these deals below!

Their WHOIS is public and you can find their ToS/Legal Docs here. They accept PayPal, Cryptocurrency and Credit Cards as payment methods.

Here’s what they had to say:

“MegaZoneHosting is a web hosting provider that goes beyond just hosting. We will not only help you achieve your overall website hosting goals, but also assure you with the confidence that you are partnered with a reliable and competent hosting provider.

All of our servers are powered by RAID-10 SSD drives, this means that you will be able to achieve maximum performance and redundancy by choosing to host on our platform. We do not use any sort of spinning or traditional drives within our production servers, and we keep all of our servers modern and up to date. We are confident that you will be very pleased with the service and speeds we have to offer you!

Please see below and enjoy our exclusive LowEndBox specials on Master Resellers & VPS!”

Here’s the offers:

# Master Reseller Offers (Available in New York Datacenter):

80GB Master Reseller

  • 80GB SSD Storage
  • 2TB Bandwidth
  • Unlimited Shared/Sub-Accounts
  • Unlimited Reseller Accounts
  • Shared IP Address
  • Softaculous/Free SSL
  • cPanel/WHM/WHMReseller
  • LiteSpeed
  • 10Gbps DDoS Protection
  • Free Migration
  • $ 12/yr
  • [ORDER]

200GB Master Reseller (Dedicated IP)

  • 200GB SSD Storage
  • 5TB Bandwidth
  • Unlimited Shared/Sub-Accounts
  • Unlimited Reseller Accounts
  • Dedicated IP Address
  • Softaculous/Free SSL
  • cPanel/WHM/WHMReseller
  • LiteSpeed
  • 10Gbps DDoS Protection
  • Free Migration
  • $ 21/yr
  • [ORDER]

# VPS Offers (Available in New York & Chicago Datacenters):

SSD VPS 2GB

  • 2 CPU Cores
  • 2GB RAM
  • 20GB SSD Storage
  • 3TB Bandwidth
  • 1 x IPv4
  • 1Gbps
  • OpenVZ/SolusVM
  • TUN/TAP/PPP Supported
  • $ 16.95/yr
  • [ORDER]

SSD VPS 4GB

  • 4 CPU Cores
  • 4GB RAM
  • 40GB SSD Storage
  • 6TB Bandwidth
  • 1 x IPv4
  • 1Gbps
  • OpenVZ/SolusVM
  • TUN/TAP/PPP Supported
  • $ 25/yr
  • [ORDER]

NETWORK/HARDWARE INFO:

Buffalo, New York, USA
Test IPv4: 192.3.180.103
Test file: http://192.3.180.103/1000MB.test

Chicago, Illinois, USA
Test IPv4: 66.225.198.198
Test file: http://66.225.198.198/1000MB.test


– Intel Xeon E3-1240v2 or greater
– 32GB RAM or greater
– 4x 1TB Samsung 860 Pro SSD’s
– LSI MegaRAID Hardware RAID10
– Dual 1Gbps uplinks

Please let us know if you have any questions/comments and enjoy!

The post MegaZoneHosting – 80GB Master Reseller for $ 12/year, 2GB SSD VPS $ 16.95/year & more in Chicago & New York! appeared first on Low End Box.

[SPRING BLACK FRDAY] HostedSimply – 6GB RAM w/ 80GB SSD for $39/yr in Los Angeles & New York!

Peter from HostedSimply sent in a great Spring Black Friday weekend sale on some SSD and SSD Cached VPS offers in Los Angeles and New York. They are now offering a Pure SSD VPS equipped with 6GB RAM, 80GB SSD storage, 10TB bandwidth for just $ 39/year. For the same price, you can also opt for a SSD Cached version which includes 160GB of SSD cached storage. Looking for less power? They are offering a 4GB plan for $ 25/year as well!

Their WHOIS is public, and they were featured on LEB before and received a moderate amount of positive feedback. As always, we encourage our readers to share their thoughts below in the comments section. You can find their ToS/Legal Docs here. They accept PayPal, Credit Cards, Bitcoin and Alipay as payment methods. As always, if you do decide to buy one, we’d love to hear about your experience below in the comments section!

Here’s what they had to say:

“At HostedSimply, we bring together a variety of hosting solutions to make sure our customers are never short of the flexibility they would need for their businesses. Our pricing is geared towards being market competitive offering an edge through extra features and prompt support.

We are pleased to present the following Pure SSD VPS and SSD Cached VPS offers, exclusive for the LowEndBox community! These are available for deployment in either our Los Angeles or New York data center locations. This is our best deal yet!”

Here’s the offers:

Pure SSD – 6GB VPS

  • 80GB RAID10 Pure SSD
  • 6144MB RAM
  • 6144MB vSwap
  • 4 CPU Cores
  • 10TB Bandwidth
  • 100Mbps Uplink
  • Upgrade to 1Gbps for just + $ 1.50/yr!
  • OpenVZ/SolusVM
  • Los Angeles or New York
  • $ 39/yr
  • [ORDER]

SSD Cached – 6GB VPS

  • 160GB RAID10 SSD Cached
  • 6144MB RAM
  • 6144MB vSwap
  • 4 CPU Cores
  • 10TB Bandwidth
  • 100Mbps Uplink
  • Upgrade to 1Gbps for just + $ 1.50/yr!
  • OpenVZ/SolusVM
  • Los Angeles or New York
  • $ 39/yr
  • [ORDER]

Pure SSD – 4GB VPS

  • 60GB RAID10 Pure SSD
  • 4096MB RAM
  • 4096MB vSwap
  • 4 CPU Cores
  • 5TB Bandwidth
  • 100Mbps Uplink
  • Upgrade to 1Gbps for just + $ 1.50/yr!
  • OpenVZ/SolusVM
  • Los Angeles or New York
  • $ 25/yr
  • [ORDER]

SSD Cached – 4GB VPS

  • 120GB RAID10 SSD Cached
  • 4096MB RAM
  • 4096MB vSwap
  • 4 CPU Cores
  • 5TB Bandwidth
  • 100Mbps Uplink
  • Upgrade to 1Gbps for just + $ 1.50/yr!
  • OpenVZ/SolusVM
  • Los Angeles or New York
  • $ 25/yr
  • [ORDER]

NETWORK INFO:

Los Angeles, California, USA (Redundant Network Blend of GTT and Zayo)
Test IPv4: 198.46.138.196
Test file:†http://198.46.138.196/100MB.test

Buffalo, New York, USA (Redundant Network Blend of TeliaSonera, XO, Hibernia, and Zayo)
Test IPv4: 192.3.180.103
Test file:†http://192.3.180.103/100MB.test


Host Node Specifications:

Pure SSD Nodes:
– Intel Xeon E3-1240v3
– 32GB RAM
– 4x 1TB Samsung 860 Enterprise SSDís
– Hardware RAID10
– Dual 1Gbps uplinks

SSD Cached Nodes:
– Intel Xeon E3-1240v3
– 32GB RAM
– 4x 2TB HDDs
– Hardware RAID10 with LSI CacheCade Pro Technology
– Dual 1Gbps uplinks

Please let us know if you have any questions/comments and enjoy!

[BLACK FRIDAY] ChicagoVPS – 4GB Windows VPS w/ 80GB SSD for $9.99/mo, 5GB Linux OpenVZ for $5/mo, 40% off sale and much more!

ChicagoVPSNick, the ChicagoVPS brand manager, has sent in their largest sale of the year for our Black Friday celebration!

If you don’t see what you need they also have a site wide sale running, just use coupon code “BFLEB2018” for 40% off anything on their site except for some Windows/Linux VPS plans, dedicated servers, domains, addons, licenses and other exclusions. Nick has advised that there is a limited stock available so be quick to purchase if you are in the market — once they are gone they are gone and will not be restocked at this price.

4GB KVM Windows VPS

  • 4GB Dedicated RAM
  • 2x vCPU
  • 80GB SSD Disk Space
  • 5TB Bandwidth
  • 1Gbps
  • 1x IPv4
  • Windows Server 2008, 2012 or 2016
  • KVM
  • $ 9.99/mo (normally $ 34.95/mo)
  • [Order Now]
5GB OpenVZ Linux VPS

  • 5GB RAM
  • 4x vCPU
  • 100GB Disk Space
  • 2TB Bandwidth
  • 1Gbps
  • 1x IPv4
  • Linux Templates
  • OpenVZ
  • $ 5/mo (normally $ 24.95/mo)
  • [Order Now]
2GB KVM Windows VPS

  • 2GB Dedicated RAM
  • 1x vCPU
  • 50GB SSD Disk Space
  • 3TB Bandwidth
  • 1Gbps
  • 1x IPv4
  • Windows Server 2008, 2012 or 2016
  • KVM
  • $ 6.99/mo (normally $ 9.95/mo)
  • [Order Now]
1GB KVM Linux VPS

  • 1GB RAM
  • 1x vCPU
  • 30GB Disk Space
  • 2TB Bandwidth
  • 1Gbps
  • 1x IPv4
  • Linux Templates
  • OpenVZ
  • $ 3/mo (normally $ 4.95/mo)
  • [Order Now]

Network information is available after the break!

ChicagoVPS has a long history in the Low End Box market serving customers for many years and has been featured a bunch of times, having first been posted on Low End Box on October 16, 2010!  The ChicagoVPS brand manager, Nick, is also an administrator, and an active user, on Low End Talk. ChicagoVPS, desipite their name, actually offers service in Chicago, Dallas, Buffalo, and Los Angeles. Backups are available for an extra cost, just submit a ticket in their customer Portal. ChicagoVPS is owned and operated by Velocity Servers Inc., a NY based cloud and IT management company founded in 2006 which also owns Low End Box and Low End Talk.

Network information

Chicago, IL, USA – ColoCrossing
Test IP: 66.225.198.198
Looking Glass: http://lg.chi.colocrossing.com

Buffalo, NY, USA – ColoCrossing
Test IP: 192.3.180.103
Looking Glass: http://lg.buf.colocrossing.com

Los Angeles, CA, USA – ColoCrossing
Test IP: 107.175.180.6
Looking Glass: http://lg.la.colocrossing.com

Dallas, TX, USA – ColoCrossing
Test IP: 192.3.237.150
Looking Glass: http://lg.dal.colocrossing.com

Atlanta, GA, USA – ColoCrossing
Test IPv4: 192.3.16.134
Looking Glass: http://lg.atl.colocrossing.com

BF2018” for 40% off anything on the ChicagoVPS site except for some Windows/Linux VPS plans, dedicated servers, domains, addons and licenses