Skip to content

Tag: php

Request Entity Too Large PHP CURL

I have made a form to upload 2 images and send them to the SwiftDil API. I’m not sure where it all goes wrong, but at the end I get an error saying: 413 Request Entity Too Large. First I save the file on my server in an directory. Then I use CURL and curl_file_create() to send the image from

Cannot use Json data from ajax response text [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago. Improve this question I am working with javascript to fetch data from a database using ajax. The response text is …

PHP split string before and after the integer inside

I have a string like this: some address number 23 neighborhood city Now, my goal is to separate it in two parts: some address number 23 neighborhood city I am guessing this will require a combination of the split or preg_replace commands using something like this /[^0-9]/. No matter how I tried, I did not get…

Warning: Illegal offset type in isset or empty

I have two Doctrine entities: Page and Synonym. Each Page contains references to several Synonyms, and I want to make sure that no Synonym names are duplicated. So I create a symfony command that runs through the synonyms on a page, checking for duplicates: So far, so good. But when I run my command, I find t…