Forums Gallery Movies File Hosting Classifieds Jokes Free Hosting Free Blogs

Go Back   BizHat Forums > Computer Forum > PHP Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2009, 03:35 PM
Junior Member
BizHat Newbie
 
Join Date: Feb 2009
Posts: 7
Default HTML files saved with a PHP extention

Would one be considered to be an idiot, or possibly even insane, if he/she has files that have no PHP coding in them whatsoever, and contunued to save and upload them as .php extentions, anyway?

__________________
Wholesale USB Flash Drives online photography classes
Reply With Quote
  #2 (permalink)  
Old 02-20-2009, 03:38 PM
Junior Member
BizHat Newbie
 
Join Date: Feb 2009
Posts: 1
Default

Not necessarily. The file will function just the same with a PHP extension as it would with a regular HTML extension. One thing I like about automatically creating all files with PHP extensions is that if later you want to add something in PHP to the file, you don't have to save the file again with the new extension or worry about changing any Apache settings.
Reply With Quote
  #3 (permalink)  
Old 04-27-2009, 10:00 AM
Junior Member
BizHat Newbie
 
Join Date: Apr 2009
Posts: 5
Smile Welcome

in saved as dialog box change the extension of the file
Reply With Quote
  #4 (permalink)  
Old 06-18-2009, 10:09 AM
Junior Member
BizHat Newbie
 
Join Date: Jun 2009
Location: UK
Posts: 16
Default

well one should not make it practice if there is no php code but if someone do it by mistake even then there is no harm
Reply With Quote
  #5 (permalink)  
Old 08-02-2009, 12:22 PM
Junior Member
BizHat Newbie
 
Join Date: Aug 2009
Posts: 6
Default

Quote:
Originally Posted by belablasko View Post
well one should not make it practice if there is no php code but if someone do it by mistake even then there is no harm
If there's no harm in it, isn't it better to save it as .php sometimes, like sasakakee said?
Reply With Quote
  #6 (permalink)  
Old 08-03-2009, 07:29 PM
Administrator
Site Admin
 
Join Date: Sep 2003
Posts: 2,686
Default count in forloop

One simple optimization that most people miss is not using count($var) as a condition of for loops.


PHP Code:
// Wrong
for ($i 0$i count($Results); $i++)
{
// Do Something


PHP Code:
// Correct
$ResultCount count($Results);
for (
$i 0$i $ResultCount$i++)
{
// Do Something

It’s very simple, and now you’re not counting the size of the stack every time you process the loop.
__________________
BizHat Games BizHat Video
Reply With Quote
  #7 (permalink)  
Old 09-12-2009, 06:59 PM
Junior Member
BizHat Newbie
 
Join Date: Sep 2009
Posts: 4
Default

I dont think so...It depents how it comfortable for you
Reply With Quote
  #8 (permalink)  
Old 10-13-2009, 05:57 PM
Banned
Spamer/Banned
 
Join Date: Oct 2009
Posts: 5
Default

i dont knoww
Reply With Quote
  #9 (permalink)  
Old 10-28-2009, 11:00 AM
Junior Member
BizHat Newbie
 
Join Date: Oct 2009
Posts: 5
Default

Looking out what that ball out
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0