PHP Classes

Error in the inside of your code

Recommend this page to a friend!

      PHP SMS Authentication  >  All threads  >  Error in the inside of your code  >  (Un) Subscribe thread alerts  
Subject:Error in the inside of your code
Summary:Sms Auth
Messages:2
Author:Paulo E Maia
Date:2018-03-19 14:39:46
 

  1. Error in the inside of your code   Reply   Report abuse  
Picture of Paulo E Maia Paulo E Maia - 2018-03-19 14:39:46
Hi,

These URLs below are failing in class.sms.Authentication.php, have u got any solution?

>$ch = curl_init('http://www.kerrupt.com/authProvider/index.php');
>Line #48

>Error: 404 Not Found / nginx/1.12.1 (Ubuntu)
>instance: when I trying to access directly via browser.

>Error in Example.php: Fatal error: Uncaught smsAuthException: [10100]: cURL response mismatch: <html> <head><title>301 Moved Permanently</title></head> <body bgcolor="white"> <center><h1>301 Moved Permanently</h1></center> <hr><center>nginx/1.12.1 (Ubuntu)</center> </body> </html>n thrown in /home/art-brazil/www/src/art-brazil/html/sms/class.smsAuthentication.php on line 56
instance: My Server

...and...

>function __construct($user = '', $pass = '',$authProvider='http://www.CHANGEME.com/authProvider/')
>Line #16
>Error: This page can’t be displayed
>instance: when I trying to access directly via browser.



  2. Re: Error in the inside of your code   Reply   Report abuse  
Picture of Lionel F. Lebeau Lionel F. Lebeau - 2018-03-24 12:36:51 - In reply to message 1 from Paulo E Maia
Hello Paulo.

First, in "http://www.CHANGEME.com/authProvider/", you have to replace this link to a valid one. This one is just an example.

Second, by testing the link "http://www.kerrupt.com/authProvider/index.php" in a browser returns the same error, meaning that this url doesn't exist anymore or the server forbid the access with a wrong answer (404 instead of 403).

So, the problem seems to come from both kerrupt and your program.