How to code into .php?

SpaceshipSpaceship
Watch

MissFlora

*Epitome.Of.Pulchritude*VIP Member
Impact
41
Is it from .psd or...? I don't know how to create .php pages. Anyone can help? What software should I use? Difference between .html and .php?

Thanks,
Flora. :)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
some people just change the ext. from .html to .php for no reason, sometimes you need to change it to .php if you are running a php script on the page, dreamweaver mx allows you to open/create php files.
 
0
•••
Thanks pal. So there is no difference between .html and .php.

Flora.
 
0
•••
.php files will be parsed for PHP code. .html pages won't (by default).

For more info: http://www.php.net
 
0
•••
MissFlora said:
Thanks pal. So there is no difference between .html and .php.

Flora.

Actually there's a HUGE difference between the two.

php are dynamically created pages for the most part but as one of the other NP'ers said people do put up php pages that don't have any dynamic content which is not technically wrong but it's a bit of a waste and redundant.

To try to answer your original question in a thread like this is impossible as php is a big subject and people spend a great deal of timing learning how to program. Like anything you can pick up the basics quite quickly and be doing productive things but to become a real guru takes a lot of time, dedication and studying.

Hope that helps.

Lux
 
0
•••
php was designed at the start to be a preprocessor for html files. The effect of this is that an html file feed through php comes back out as that html file. All this gives you though is a slower server. Php lets you add programming logic that is executed on the server ever time the page is server, combine this with cookies for some state information a database for persitence and you can make things like this forum for example.
 
0
•••
PHP is just way better then HTML.. short and correct description. Use google and just search around if you wanna learn PHP.. :)
 
0
•••
phpfreaks.com is a good place to learn php if your interested :)
 
0
•••
PHP is a drug!

It's also a server side scripting engine that allows you to run scripts (programs) on the server side of an HTTP transaction.

The '.php' extension tells a php language parser on the web server to parse and process instructions in this file. The parsed file then gets kicked back to the web server which, if all goes right, gets thrown back to the requesting client -a browser usually.

HTML, on the other hand, gets parsed in your browser. The .html file just sits on the web server and waits for someone to request it. Nothing special happens as it sits there all alone waiting for some far off, or even local, web browser on a client requesting machine to invite it over. Once it walks over to your browser it starts to become happy and talks to your browsers HTML parser.

In short, .html files gets parsed by your browser while .php files get parsed by a PHP friendly machine.

What are you trying to accomplsh?
 
0
•••
ok here you go:

put this in .htaccess:

PHP:
AddType application/x-httpd-php .html .htm .shtml .missflora .miss .flora

.html, .htm, .shtml, .missflora, .miss, .flora can not execute php.
 
0
•••
you start and end php in <? and ?>

and you can also add php into HTML files by just putting <? ... ?> into it

i always use php
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back