addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [php-49] Absolute vs Relative Paths

From: Joel S.
Sent on: Monday, November 5, 2012 3:55 PM
I'm with you Kris, must be missing something.

are we talking about the difference between:

 src="/images/myimage.png"    vs    src="http://www.company.com/images/myimage.png"

If so, I think would be handled identically.  Both would end up fully resolved as "http://www.company.com/images/myimage.png" before being requested from the server.

Thanks,
Joel

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joel Simpson | [address removed] 
cell:[masked]





On Mon, Nov 5, 2012 at 3:42 PM, Tim Piele <[address removed]> wrote:
No they have yo resolve on the server or else they won't make it to the browser.



Sent from my iPhone

On Nov 5, 2012, at 3:38 PM, Kris Craig <[address removed]> wrote:

Hmm I always thought resolution of relative paths happened at the browser level.  Or am I missing some context here?

--Kris


On Mon, Nov 5, 2012 at 3:02 PM, Jd Daniel <[address removed]> wrote:

Sounds legit

On Nov 5,[masked]:46 PM, "Eric Harris" <[address removed]> wrote:
Tim, that is half my job... don't know what I would do if I was not hotlinking every image I could get my hands on. ;)

I did not realize that absolute paths would require a new apache thread, but when I stop to think about that, it does make sense. So by using absolute paths on everything, images/page links/js includes, you are actually working your apache harder. Did I understand that correctly?

-- Eric

On Mon, Nov 5, 2012 at 2:37 PM, Tim Piele <[address removed]> wrote:
Quit hotlinking google images and that will fix it.




On Mon, Nov 5, 2012 at 2:35 PM, Garth Henson <[address removed]> wrote:
It is possible that this will make a difference, but it's generally negligible. Keep in mind that absolute links require an additional Apache process to resolve the domain name, etc. Relative links are handled in the same Apache process. So, if you have a TON of absolute URLs on your page, this could add up to a noticeable difference in latency to your page, but not to individual load times once the request has been made.

-GH


On Mon, Nov 5, 2012 at 2:20 PM, Eric Harris <[address removed]> wrote:
Hey Guys,

I am working on dealing with some slow loading images. I was suddenly struck with the thought of "Does absolute or relative paths, make a difference in load times?"

I did do some looking around, there are plenty of articles explaining the differences and such, but I could not find anything talking about load times, higher level pros/cons, or performance issues.

Anyone have an opinion on this topic?

Thanks,

-- Eric




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Eric Harris ([address removed]) from The Seattle PHP Meetup Group.
To learn more about Eric Harris, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Garth Henson ([address removed]) from The Seattle PHP Meetup Group.
To learn more about Garth Henson, visit his/her member profile





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Tim Piele ([address removed]) from The Seattle PHP Meetup Group.
To learn more about Tim Piele, visit his/her member profile





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Eric Harris ([address removed]) from The Seattle PHP Meetup Group.
To learn more about Eric Harris, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Jd Daniel ([address removed]) from The Seattle PHP Meetup Group.
To learn more about Jd Daniel, visit his/her member profile





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Kris Craig ([address removed]) from The Seattle PHP Meetup Group.
To learn more about Kris Craig, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Tim Piele ([address removed]) from The Seattle PHP Meetup Group.
To learn more about Tim Piele, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

  • PluralSight

    PluralSight subscriptions for developer training

  • O'Reilly

    Disc Code: PCBW is good for 40% off print and 50% off ebooks and videos

  • JetBrains PhpStorm

    Occasional free licenses to raffle off at meetups

  • DynaTrace

    Find yourself, promote yourself, stay true to yourself.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy