Linked Questions
18 questions linked to/from Opening/closing tags & performance?
5
votes
2
answers
2k
views
Does opening and closing php tags multiple times increases page load? [duplicate]
Possible Duplicate:
Opening/closing tags & performance?
This is a newbie question, but I could not find a clear answer on the net, so please don't laugh :)
Does opening and closing php tags ( &...
3
votes
2
answers
466
views
Closing and opening the php tag [duplicate]
Possible Duplicate:
PHP: Opening/closing tags & performance?
this is probably a stupid question, but being extremely perfectionist i thought I'd ask just for curiosity:
Is there a ...
3
votes
1
answer
348
views
Having too many php tags [duplicate]
Possible Duplicate:
Opening/closing tags & performance?
I am a big performance guy, and I like to have my code run as efficiently as possible. I don't know if any of you know about liquid ...
1
vote
1
answer
53
views
Does going in and out php tags slows down overall execution process? [duplicate]
Does going in and out php tags slows down overall execution process ?
i mean writing several <?php ?> in the script, when i can write only one to embrace the whole code.
2
votes
0
answers
32
views
Opening and closing PHP tags several times in one document [duplicate]
Is there a performance issue when you open and close multiple PHP tags?
For instance this:
<tr><td><?= $value ?></td></tr>
<tr><td><?= $value ?></...
7
votes
7
answers
10k
views
if(value == null) vs if(null == value) [duplicate]
Possible Duplicate:
Why does one often see “null != variable” instead of “variable != null” in C#?
This is more a curiosity question, is there any performance difference ...
0
votes
2
answers
3k
views
Does the quantity of <?php and ?> tags affect performance? [closed]
In my php files, I wonder if the opening and closing tags have a performance impact.
ie.
<?php echo 'Hello world'; ?>
<?php echo 'Hello world'; ?>
<?php echo 'Hello world'; ?>
&...
1
vote
1
answer
2k
views
Magento template files calling <?PHP ?> for every line
First off I will say that I am new to Magento but not new to PHP. The question I have is why are there start and stop PHP calls for every line in the template files within Magento and is there a ...
1
vote
5
answers
157
views
PHP coding convention and efficiency
Consider
<a href="<?php echo $url;?>"><?php echo $name;?></a>
and compare with
<?php echo "<a href=\"{$url}\">{$name}</a>";?>
then consider hundreds of ...
-2
votes
3
answers
540
views
Php echo vs jsp style
Which is the fastest:
$content = "some html";
<div><?php echo $content?></div>
or
$content = "some html";
<div><?=$content?></div>
?
0
votes
1
answer
580
views
Static variables across all scripts/sessions php
On a php web page, in the beginning of the PHP code I declare and set a lot of variables which are not altered during the execution of the script.
Each time a user visits the page, the script is ...
1
vote
3
answers
197
views
Efficient way to check for the existence of a single MySQL record?
Need to perform some logic based on the existence of a record in db. Since this function will be called quite often, I'm wondering if the following can be made more efficient...
Also note that the ...
0
votes
2
answers
235
views
Is calling <?php multiple times inefficient? [duplicate]
Possible Duplicate:
Multiple PHP tags
Is there a difference between:
<?php echo "n" ?>
<?php echo "i" ?>
<?php echo "g" ?>
and
<?php
echo "t";
echo "i";
echo "t"...
-1
votes
1
answer
206
views
PHP foreach help
I am building an extention to my site that allows users to favourite posts, I am however having a a problem,
I am running this code in my view,
<?php if(isset($favourites)) : ?>
<?php ...
0
votes
1
answer
206
views
A lot of opening/closing of PHP tags
I've always wondered: does having a large open and close PHP (i.e. a template) hurt?
To clarify:
<html>
<?php echo $test; ?>
<body <?php echo $test2; ?>>
<...