Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End check height

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #170107
    Jamie
    Participant

    Is there a way to get the height of content using php? I need any content. I know there is a function for images but I can’t find anything to just check the height of the given content.

    #170112
    __
    Participant

    No.

    PHP runs first, on the server. It generates HTML markup and sends it to the browser. PHP has no clue that things like css or the DOM even exist.

    Later, the browser uses HTML, CSS, and javascript to build/manipulate the DOM, which is (more-or-less) what a “webpage” is. The browser has no clue that PHP even exists.

    If you want to know about/ change things in the browser, you need to use javascript. PHP is long gone by that point.

    #170113
    Jamie
    Participant

    Thanks

    #170137
    __
    Participant

    no problem.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Back End’ is closed to new topics and replies.