php - show ebay feedback on my website -
well, have web host , code shows ebay feedback, need not code related website, mean want own code. found code can me still need help, here's code , works well:
<link rel="stylesheet" type="text/css" href="http://gamila-secret.comyr.com/styles/feedback.css" /> <script type="text/javascript" src="http://www.pc-homecare.co.uk/ebay/feedback.php?id=[userid]&site=[siteid]&seller=[seller]"></script>
as said need own code, did getting style file , rebuild it, still need javascript file, went page "http://www.pc-homecare.co.uk/ebay/feedback.php?id=[userid]&site=[siteid]&seller=[seller]
" got code, , copied source(its codes), made new file in server code unfortunately did not worked. ideas how can functions codes work on own server?
you can use get_file_contents
in php contents of url (see php.net/manual/en/function.file-get-contents.php).
<?php $page = file_get_contents('http://www.example.com/'); ?>
or,
<?php $section = file_get_contents('http://example.com', null, null, 20, 14); var_dump($section); ?>
, section of it. of course can parse contents of url first example using php regex (see http://php.net/manual/en/function.preg-match.php).
echoing html simple matter in php (see php.net/manual/en/function.echo.php).
<?php $src = 'http://example.com/script.js': echo '<script src="' . $src . '"></script>'; ?>
, using concatenation (see php.net/manual/en/language.operators.string.php).
i hope helps.
Comments
Post a Comment