Uname: Linux server.thebazaar99.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Software: Apache
PHP version: 8.3.32 [ PHP INFO ] PHP os: Linux
Server Ip: 163.227.92.254
Your Ip: 216.73.217.24
User: gutlooks (1003) | Group: gutlooks (1005)
Safe Mode: OFF
Disable Function:
exec,passthru,shell_exec,system

name : FopenHttpAdapter.php
<?php

/*
 * This file is part of the Ivory Http Adapter package.
 *
 * (c) Eric GELOEN <geloen.eric@gmail.com>
 *
 * For the full copyright and license information, please read the LICENSE
 * file that was distributed with this source code.
 */

namespace Ivory\HttpAdapter;

/**
 * Fopen http adapter.
 *
 * @author GeLo <geloen.eric@gmail.com>
 */
class FopenHttpAdapter extends AbstractStreamHttpAdapter
{
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'fopen';
    }

    /**
     * {@inheritdoc}
     */
    protected function process($uri, $context)
    {
        $http_response_header = array();
        $resource = @fopen($uri, 'rb', false, $context);

        if (is_resource($resource)) {
            $copy = @fopen('php://memory', 'rb+');
            stream_copy_to_stream($resource, $copy);
            fclose($resource);
        } else {
            $copy = $resource;
        }

        return array($copy, $http_response_header);
    }
}
© 2026 GrazzMean