readfile echo file_get_contents does not load content properly

Hello, I use tooltip plugin https://github.com/object505/tipso
I use ajax tooltip.
I created content.php and in it I use full URL format like http://www.domain.com in the ajaxContentUrl

[php]//Ajax
jQuery(’.ajax1’).tipso({
background: ‘#666666’,
useTitle: ‘’,
ajaxContentUrl : ‘http://www.domain.com/ajax.html
ajaxContentBuffer : 5000[/php]

But the tooltip with ajax content html page with image does not show if I access the page with the
[php]<?php readfile("http://www.domain.com/content.php"); ?>[/php]
I get no error in the network tab in dev inspector, but the image file is never loaded and shown. If i load same page direct in browser everything works fine. Only the readfile method does not work.
I need a way to load the tipso tooltip from my remote site.

If anyone willing to help I can PM you the proof of concept zip file. If there is better way to load the tooltip remotely then readfile or file_get_contents I’m all ears.

u can send meh.

Sponsor our Newsletter | Privacy Policy | Terms of Service