Find Jobs
Hire Freelancers

timer php function

$30-100 USD

Dibatalkan
Dibuat sekitar 17 tahun yang lalu

$30-100 USD

Dibayar ketika dikirim
One of my php scripts tends to run a long time because it processes several jobs in a while loop. (It pulls records from a database and processes them.) Potentially, some of these records go on for a very long time or hang, which basically kills the whole process since the next record in the loop is never loaded. So I want to implement a timer in the loop which will prevent any single processing event from executing more than xx seconds. Here's a pseudo-code snippet that illustrates what I'm talking about: while ($record=mysql_fetch_array($result)){ //ideally a timer would go here, to make sure we don't stay in this record in the loop more than xx seconds //this is where the code is executed //sometimes, processing 'stalls' because of network issues within this while loop, which hangs the script because the next record in the array is never 'loaded' } Basically, I want something so if the timer comes back with a 'time is up' message, it aborts the current record, returns an error, and the loop can move on to process the next record. Please feel free to ask me any questions you might have.
ID Proyek: 134167

Tentang proyek

11 proposal
Proyek remot
Aktif 17 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
11 freelancer menawar dengan rata-rata $58 USD untuk pekerjaan ini
Avatar Pengguna
Can be done exactly with your 100% satisfaction. Though my bid is a little bit higher, I'm requesting you to have a look at my reviews. Thanks, Tonmay
$100 USD dalam 2 hari
4,8 (129 ulasan)
7,6
7,6
Avatar Pengguna
Let's do it! Please, check PMB.
$30 USD dalam 0 hari
5,0 (27 ulasan)
5,6
5,6
Avatar Pengguna
give me code, i will return perfect. Regards
$100 USD dalam 1 hari
5,0 (5 ulasan)
4,6
4,6
Avatar Pengguna
Hope the rest of the guys know what they are talking about :). Alex
$50 USD dalam 3 hari
5,0 (21 ulasan)
4,2
4,2
Avatar Pengguna
Hi there, please check pmb
$35 USD dalam 1 hari
5,0 (13 ulasan)
4,1
4,1
Avatar Pengguna
We can surely have the corrections made for you and break the inner loop if it doesn't find the proper condition and have it move on the next condition according to the project requirement. Looking forward for your reply. Best Regards Webworkzone
$60 USD dalam 2 hari
5,0 (9 ulasan)
3,9
3,9
Avatar Pengguna
I have a experience in script speed optimization. Maybe your script need to be rebuild to run faster. The timer you want maybe implemented too
$50 USD dalam 1 hari
5,0 (3 ulasan)
3,8
3,8
Avatar Pengguna
I will drop you a PM.
$30 USD dalam 1 hari
5,0 (2 ulasan)
2,6
2,6
Avatar Pengguna
I'll fix it.
$30 USD dalam 2 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
Im new at this site, but a bunch of experience in the area, more than 15
$100 USD dalam 2 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
Hi, Got you, I can fix this thing.
$50 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
Derby, United States
5,0
24
Memverifikasi Metode pembayaran
Anggota sejak Mei 27, 2004

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.