Question: I have two php scripts in the same directory-`a.php` and `b.php` . b.php creates an images and displays it.(Example [here](http://php.net/manual/en/function.imagecreate.php)).

`a.php`

```
<html>
<body>

<img src=<?php echo "b.php";?> alt="image"/>
</body>
</html>

```

Both `<?php echo "b.php";?>` and `<?php echo "http://localhost/b.php";?>` work. But I want to know which will display the image faster? Or both will be the same?

Answer: 
They should both be the same, as your browser would make a new request for the picture anyway, however I'd suggest you to *always* use `b.php`, or another kind of relative path instead of the full (absoloute) path (UNLESS the picture is on another server, of course).
This is irrelevant. The PHP script will execute in a fraction of a second and the browser needs to process the HTML. The browser will also process this in a fraction of a second.