• 0

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /var/www/html/cnasolution/site/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/site/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/site/index.php
Line: 315
Function: require_once

I am using php and curl to get source code of a web page. So i created a curl code in php to get the source code of web page ( suppose example.com ).

But this web page sends an XHR Request That changes the source code using javascript. This XHR Request URL should look like : https://example.com/test.php

But when i use curl to get the source of web page in localhost this XHR Request URL changes to: https://localhost/test.php

And even if i upload it on a server it replaces localhost by my domain name but i want it as it is with example.com How can i do that?

Download script demo [LINK] [Origin]
Download script demo [LINK 2] [Onedrive] Download script demo [LINK 2] [Google drive]