i using this code to get an atom feed

$uri = 'http://mysite/?cat=26&feed=atom';
$response = file_get_contents($uri);
echo $response;

and the output is this:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="es-MX" xml:base="https://www.pasala.com.mx/wp-atom.php">
    <title type="text"></title>
    <subtitle type="text"></subtitle>
    <link rel="alternate" type="text/html" href="https://www.pasala.com.mx" />
    <link rel="self" type="application/atom+xml" />
    <generator uri="https://wordpress.org/" version="4.9.9">WordPress</generator>
        <title type="html"></title>
        <link rel="alternate" type="text/html" href="/CATEGORY/TITLE" />
        <category scheme="https://www.pasala.com.mx" term="Famosos" />
        <category scheme="https://www.pasala.com.mx" term="Derrame" />
        <category scheme="https://www.pasala.com.mx" term="Guapa" />
        <category scheme="https://www.pasala.com.mx" term="Imagen Televisión" />
        <category scheme="https://www.pasala.com.mx" term="MUERTE CEREBRAL" />
        <category scheme="https://www.pasala.com.mx" term="Paulina Mercado" />
        <category scheme="https://www.pasala.com.mx" term="Sale el sol" />
        <summary type="html"></summary>
        <content type="html" xml:base="/CATEGORY/TITLE"></content>

but i need absolute url where i put /CATEGORY/TITLE

so is there some parameter that i can use in $uri? or some way to get absolute url?

could you please help me?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.