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: 
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.
Both are the same. The difference is just the relative or absolute path.