Skip to content

PHP Installation fails in sapi/cli/php

Whenever running make, I’m receiving this error. Tried “brew install php”, tried compiling and installing from source. Any suggestions? Answer Had a similar issue, using make clean before make solved this error.

Web scraping in PHP

I’m looking for a way to make a small preview of another page from a URL given by the user in PHP. I’d like to retrieve only the title of the page, an image (like the logo of the website) and a bit of text or a description if it’s available. Is there any simple way to do this without

Call a REST API in PHP

Our client had given me a REST API to which I need to make a PHP call. But as a matter of fact, the documentation given with the API is very limited, so I don’t really know how to call the service. I’ve tried to Google it, but the only thing that came up was an already expired Yahoo! tutorial

How to get JavaScript variable value in PHP

I want the value of JavaScript variable which i could access using PHP. I am using the code below but it doesn’t return value of that variable in PHP. // set global variable in javascript …

OpenCart Theme Editing

I have downloaded and installed OpenCart v1.5.2.1. Now I’m using the default template in there. I want to add some extra elements like side menu bar to that template. How can I achieve this? How can I add new elements to my current template according to my requirements? Answer you should check this link…

Parse JSON To Create SQL Insert Statements in PHP

I’m a newbie programmer trying to find my way in the world. I’ve got my hands on JSON data that I’m trying to parse out into SQL statements to populate multiple database tables. I would like to loop through each dimension of the array and pull out specific parts of it to create an INSERT sta…