---
title: "My $646 mistake with PHP"
url: https://daily.dev/posts/my-646-mistake-with-php--clcjttsc
source_url: https://dev.to/jringeisen/my-646-mistake-with-php-4l9d
type: article
source: "DEV"
published: 2022-01-22T12:45:23.920Z
updated: 2022-01-22T12:45:23.926Z
tags: ["google", "backend", "php"]
reading_time: 3
upvotes: 31
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# My $646 mistake with PHP

**[DEV](https://daily.dev/sources/devto)** · 3 min read · 31 upvotes · 0 comments

## Summary

I pinged the Places API 17,000 times in one hour. A while loop in PHP will run until it gets a false back. I was using the $response['next_page_token'] from the initial request which will always return true. The value that I put in the while loop always returns true and therefore sends the whileloop into an infinite loop.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/jringeisen/my-646-mistake-with-php-4l9d>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#google](https://daily.dev/tags/google), [#backend](https://daily.dev/tags/backend), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/my-646-mistake-with-php--clcjttsc)
