Formatting PHP page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yasmine
    New Member
    • Feb 2008
    • 64

    Formatting PHP page

    Hi friends,
    Is there any way to format a webpage by only PHP?
    What i'm asking is can we format a php page such as (bold, center alignment,etc.) without using html???


    Thanx n regards.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    In the browser there is no PHP page. PHP is just a server-side script language that constructs HTML pages and sends them to the client. So if you want to make-up your browser page, you do it with HTML (or CSS) attributes.

    Ronald

    Comment

    • harshmaul
      Recognized Expert Contributor
      • Jul 2007
      • 490

      #3
      Hi Yasmine,
      The short answer is no. but read on....
      PHP is a server side language that sends out html to the browser to display to the user.

      The client Requests a page, the server recieves this request and sends out a response (html, xml or anything else). The PHP we write controls what the server sends out. So if a user is requesting a page to display in a browser, the PHP whould respond in HTML using PHP to print out anything that needs to be bespoke to thier request.

      if you don't understand, google request response.




      But again, No php can't directly control presentation... .

      It can appear to control presentation by printing out the html, but it is still presentation by HTML.

      Comment

      • yasmine
        New Member
        • Feb 2008
        • 64

        #4
        I understood.
        Thanx n Regards,
        yasmine.

        Comment

        Working...