Jump to content

[SOLVED] whats safest to do in terms of security and sensibility


SirChick

Recommended Posts

are you saying these

 

index.html

<html>
<body>
some text
<?php incldue("phpstuff.php");?>
</body>
</html>

vs

index.php

<?php
incldue("somehtml.html");
?>

 

It doesn't matter, but the .html can't read php unless your server is told to (its not a default setting)  or am i way off what you saying?

Link to comment
Share on other sites

if your serious about organizing your programming structure think about this

 

include is php so it should fall in the php script and  for one reason if your working in a team like me you will have a separate job like a designer and developer now the designer dont know about scripting all that he know is lay out (some maybe know but not all) if ever he tries to edit the template you dont have to worry that the script will be affected

 

 

hmm does it make sense

Link to comment
Share on other sites

Ok but say i had these options, which is best idea when working in a team:

 

<?

<html>

Number of Casino's Owned: [ echo "$casinototal"; ]<br>

</html>

?>

 

OR

 

<html>

<?

Number of Casino's Owned: [ echo "$casinototal"; ]<br>

?>

</html>

 

OR

 

 

<html>

Number of Casino's Owned: [ <? echo "$casinototal"; ?>]<br>

</html>

OR

 

<html>

Number of Casino's Owned: [ <? includeblahblah ?>]<br>

</html>

 

 

Which one of thoese is best to avoid designers messing it up cos to me i would say the last one but would that work ?

 

Link to comment
Share on other sites

Well the first two are invalid, for starters, and sorry, I didn't read the last two properly.

 

The safest (least php) way to give designers a clean template is to use...

 

<html>
Number of Casino's Owned: [ <?= $varname ?>]
</html>

 

IMO.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.