Jump to content

readfile echo file_get_contents does not load content


Recommended Posts


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



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

 

But the tooltip with ajax content html page with image does not show if I access the page with the



<?php readfile("http://www.domain.com/content.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 from my remote site.


Edited by smile
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.