By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,965 Members | 1,702 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,965 IT Pros & Developers. It's quick & easy.

Formatting PHP page

P: 65
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.
Feb 15 '08 #1
Share this Question
Share on Google+
3 Replies

Expert 2.5K+
P: 4,258
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.

Feb 15 '08 #2

Expert 100+
P: 490
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.
Feb 15 '08 #3

P: 65
I understood.
Thanx n Regards,
Feb 18 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.