php class html-dom dosen’t return all the html

I want to retrieve all .gif links from www.gifgif.ir the all of gif links have /product in their link. My code is: <?php /** * Created by PhpStorm. * User: saleh * Date: 10/16/17 * Time: 9:58 PM */ set_time_limit(-1); header(‘Content-Type: text/html; charset=utf-8’); // example of how to use basic selector to retrieve HTML contents … Continue reading “php class html-dom dosen’t return all the html”

Solutions for finding website visitor’s geolocation

I am aware that there are many services which provide geolocation tools for working out where users are visiting from. The website I’m working on is an e-commerce site which runs in multi-territories. When a visitor hits the website it should work out where they are from and show the relevant currency/language for the user. … Continue reading “Solutions for finding website visitor’s geolocation”

Using Laravel with Visual Studio 2017

I’m starting a new project in the company where I work, for this new project we will use Laravel, the problem is that the boss as decided that we must use Visual Studio 2017(I don’t know why and I can’t do nothing about it)… So I installed PHP Tools, but when I start the debug … Continue reading “Using Laravel with Visual Studio 2017”

error in the program … php is not working

please help me find the error in the program ..php is not working … html part is fine .. the values are not getting saved in mysql database..in php it is not showing any error in the php script ….in javascript functions are not working propely …please help ..this is for a school project.. I … Continue reading “error in the program … php is not working”

How to run command from bundle in app controller in Symfony3?

INTRODUCTION In my personal project I am using: Symfony v3.2.7 PHP v7.1.1 CravlerMaxMindGeoIpBundle How to Call a Command from a Controller On Windows 10 Pro dev machine TARGET I would like to run CravlerMaxMindGeoIpBundle’s command php bin/console cravler:maxmind:geoip-update from controller successfully. PROBLEM At the moment I have set up CravlerMaxMindGeoIpBundle bundle and command php bin/console … Continue reading “How to run command from bundle in app controller in Symfony3?”

How to get redirected to correct page with silex?

When I go to http://www.example.com/new/index.php/login/ (please note /index.php/ as part of the url.) After successful login, I get redirects to http://www.example.com/new/welcome/ and that’s correct. but the login screen url should not have /index.php/ as this is Silex restapi. But when I try login without /index.php/ that would be http://www.example.com/new/login/ after login this time, I get … Continue reading “How to get redirected to correct page with silex?”

Use wordpress function in PHP file

I have a WordPress Child Theme and I use a php file as the template for a particular page. I am trying to implement an API for a plugin called GeoIP Detection. Please see the PHP file I am using on my site below. The API I am trying to apply is “Redirect depending on … Continue reading “Use wordpress function in PHP file”

How to force abstract JSON data only from an API response?

Description I’m trying to make a request to an API via PHP cURL $access_token = $tokens[‘access_token’]; $headers = array( “Authorization: Bearer ” . $access_token ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,env(‘USER_INFO’)); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “GET”); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT_MS, 1000); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_VERBOSE, TRUE); curl_setopt($ch, CURLOPT_ENCODING , “gzip”); curl_setopt($ch, CURLOPT_USERAGENT,’php’); curl_setopt($ch, CURLOPT_HTTPHEADER,$headers); $info = … Continue reading “How to force abstract JSON data only from an API response?”

PHP finding a requesting url

I’m writing an API. I just want certain url addresses to access this API. How do I find the url addresses that try to use the API?. I want to know the url addresses that try to access the api server address with file_get_contents yada-like methods. Thanks 🙂 For more info please click herehttps://stackoverflow.com/q/47141575

App Engine PHP – cant find curl.so

Run dev_appserver.py and now get an error relating to curl.so: PHP Warning: PHP Startup: Unable to load dynamic library ‘C:devgoogle-cloud-sdkplatformgoogle_appenginephpphp-5.5-Win32-VC11-x86curl.so’ – The specified module could not be found. This file does appear to be missing from the directory specified but haven’t touched anything and have not had this error before. How do I resolve? For … Continue reading “App Engine PHP – cant find curl.so”

Page 1 of 7212345678910...203040...Last »

Have a question or need a custom quote?
info@smartinfocare.com