use of <? and <?= in PEAR packages
| From: | Hartmut Holzgraefe | Date: | Wed, 16 Mar 2005 16:51:48 +0000 |
| Subject: | use of <? and <?= in PEAR packages | ||
| Groups: | php.pear.qa | ||
| Request: | Send a blank email to pear-qa+get-2607@lists.php.net to get a copy of this message | ||
Looking for <? and filtering out the legal <?php <?xml and <?doc
tags the folloing list showed up using
find . -name "*.php" | xargs fgrep '<?' 2>/dev/null | fgrep -vi '<?php' | fgrep -v '<?xml' | fgrep -v '<?doc'
./HTML_QuickForm/docs/renderers/FlexyStatic_example.php:<?
./Net_URL/docs/example.php:Protocol...: <?=$url->protocol?>
./Net_URL/docs/example.php:Username...: <?=$url->user?>
./Net_URL/docs/example.php:Password...: <?=$url->pass?>
./Net_URL/docs/example.php:Server.....: <?=$url->host?>
./Net_URL/docs/example.php:Port.......: <?=$url->port?>
./Net_URL/docs/example.php:File/path..: <?=$url->path?>
./Net_URL/docs/example.php:Querystring: <?print_r($url->querystring)?>
./Net_URL/docs/example.php:Anchor.....: <?=$url->anchor?>
./Net_URL/docs/example.php:Full URL...: <?=$url->getUrl()?>
./PHPDoc/prepend.php: <? include ("./front-end.php");
./PHPDoc/prepend.php: The generated XML and HTML files can be found in <strong><?= $_REQUEST['PHPDOC_targetdir']; ?></strong><br>
./PHPDoc/delete_files.php:<?
./PHPDoc/front-end.php: <p>Application Name:<br><input type="text" name="PHPDOC_appname" size="20" value="<?= $PHPDOC_appname; ?>"> ./PHPDoc/front-end.php: Directory to scan (Document root is pre-pended to this)<br><input type="text" name="PHPDOC_sourcedir" size="20" value="<?= $PHPDOC_sourcedir; ?>"> ./PHPDoc/front-end.php: Directory to store generated documentation (Document root is pre-pended to this)<br><input type="text" name="PHPDOC_targetdir" size="20" value="<?=$PHPDOC_targetdir; ?>"> ./PHPDoc/front-end.php:<? ./Pager/example.php: Displaying [<?=$from?> - <?=$to?>] of <?=$pager->_totalItems?> <br /> ./Pager/example.php: <?=$links['pages']?> ./Pager/example.php: <td><nobr><?=$links['back']?></nobr></td> ./Pager/example.php: <td align="right"><nobr><?=$links['next']?></nobr></td> ./Pager/example.php: <pre><?print_r($data)?></pre> ./Pager/example.php:getCurrentPageID()...: <?=$pager->getCurrentPageID()?> ./Pager/example.php:getNextPageID()......: <?var_dump($pager->getNextPageID())?> ./Pager/example.php:getPreviousPageID()..: <?var_dump($pager->getPreviousPageID())?> ./Pager/example.php:numItems()...........: <?var_dump($pager->numItems())?> ./Pager/example.php:numPages()...........: <?var_dump($pager->numPages())?> ./Pager/example.php:isFirstPage()........: <?var_dump($pager->isFirstPage())?> ./Pager/example.php:isLastPage().........: <?var_dump($pager->isLastPage())?> ./Pager/example.php:isLastPageComplete().: <?var_dump($pager->isLastPageComplete())?> ./Inline_C/test.php:<? ./DB_ldap2/docs/ldap2-connect.php:<? ./DB_ldap2/docs/ldap3-connect.php:<? ./DB_ldap2/docs/search-assoc.php:<? ./DB_ldap2/docs/search-ordered.php:<? ./MDB/tests/driver_test.php: && ($prepared_query=MetabasePrepareQuery($database,"UPDATE users SET user_password=? WHERE user_id<?")))
./HTML_Template_Flexy/Flexy/Tokenizer.php: /* <? php start.. */
./HTML_Template_Flexy/Flexy/Tokenizer.php: /* <? php start.. */
./HTML_Template_Flexy/Flexy/Compiler/Regex/Math.php: "'<?=\\1($'.str_replace('.','->','\\2').')\\3?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/Php.php: $input = str_replace("<?","__{<__?}__",$input);
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {i.xyz} maps to <?=htmlspecialchars($i->xyz)?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {i.xyz:h} maps to <?=$i->xyz?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {i.xyz:u} maps to <?=urlencode($i->xyz)?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {i.xyz:ru} maps to <?=rawurlencode($i->xyz)?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {i.xyz:r} maps to <PRE><?=print_r($i->xyz)?></PRE>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {i.xyz:n} maps to <?=nl2br(htmlspecialchars($i->xyz))?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=htmlspecialchars(".$this->error."$'.str_replace('.','->','\\1').')?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=".$this->error."$'.str_replace('.','->','\\1').'?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=urlencode(".$this->error."$'.str_replace('.','->','\\1').')?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=rawurlencode(".$this->error."$'.str_replace('.','->','\\1').')?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<PRE><?=print_r($'.str_replace('.','->','\\1').')?></PRE>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=nl2br(htmlspecialchars(".$this->error."$'.str_replace('.','->','\\1').'))?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * %??i.xyz%?? maps to <?=htmlspecialchars($i->xyz)?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * %??i.xyz:h%?? maps to <?=$i->xyz?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * %??i.xyz:u%?? maps to <?=urlencode($i->xyz)?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * %??i.xyz:ru%?? maps to <?=urlencode($i->xyz)?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * %??i.xyz:uu%?? maps to <?=urlencode(urlencode($i->xyz))?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=htmlspecialchars(".$this->error."$'.str_replace('.','->','\\1').')?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=".$this->error."$'.str_replace('.','->','\\1').'?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=urlencode(".$this->error."$'.str_replace('.','->','\\1').')?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=urlencode(urlencode(".$this->error."$'.str_replace('.','->','\\1').'))?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {t.xxxx_xxxx()} maps to <?=htmlspecialchars($t->xxxx_xxxx())?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {t.xxxx_xxxx():h} maps to <?=$t->xxxx_xxxx()?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {t.xxxx_xxxx(sssss.dddd)} maps to <?=htmlspecialchars($t->xxxx_xxxx($ssss->dddd))?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {t.xxxx_xxxx(sssss.dddd):h} maps to <?=$t->xxxx_xxxx($ssss->dddd)?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {t.xxxx_xxxx(#XXXXX#)} maps to <?=htmlspecialchars($t->xxxx_xxxx('XXXXXX'))?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {t.xxxx_xxxx(#XXXXX#):h} maps to <?=$t->xxxx_xxxx('XXXXXX')?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {t.xxxx_xxxx(sss.ddd,sss.ddd)} maps to <?=htmlspecialchars($t->xxxx_xxxx($sss->ddd,$sss->ddd))?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {t.xxxx_xxxx(#aaaa#,sss.ddd)} maps to <?=htmlspecialchars($t->xxxx_xxxx("aaaa",$sss->ddd))?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: * {t.xxxx_xxxx(sss.ddd,#aaaa#)} maps to <?=htmlspecialchars($t->xxxx_xxxx($sss->ddd,"aaaa"))?>
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=htmlspecialchars(".$this->error."$'.str_replace('.','->','\\1').'())?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=".$this->error."$'.str_replace('.','->','\\1').'()?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=htmlspecialchars(".$this->error."$'.str_replace('.','->','\\1').'($' . str_replace('.','->','\\2') .
'))?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=".$this->error."$'.str_replace('.','->','\\1').'($' . str_replace('.','->','\\2') . ')?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=htmlspecialchars(".$this->error."$'.str_replace('.','->','\\1').'($' . str_replace('.','->','\\2') .
',$' . str_replace('.','->','\\3') . '))?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=htmlspecialchars(".$this->error."$'.str_replace('.','->','\\1').'(\''. str_replace(\"'\",\"\\\'\",'\\2')
. '\',$' . str_replace('.','->','\\3') . '))?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=htmlspecialchars(".$this->error."$'.str_replace('.','->','\\1').'($' . str_replace('.','->','\\2') .
',\''. str_replace(\"'\",\"\\\'\",'\\3') . '\'))?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=htmlspecialchars(\$'.str_replace('.','->','\\1') . '(\''. str_replace(\"'\",\"\\\'\",'\\2') . '\'))?>'",
./HTML_Template_Flexy/Flexy/Compiler/Regex/SimpleTags.php: "'<?=".$this->error."$'.str_replace('.','->','\\1').'(\"' . str_replace(\"'\",\"\\\'\",'\\2') . '\")?>'",
./HTML_Template_Flexy/tests/results2/raw_php.html.en.php:<? for($i=0;$i<10;$i++) { ?>
./HTML_TreeMenu/docs/example.php:<?$treeMenu->printMenu()?>
./HTML_TreeMenu/docs/example.php:<?$listBox->printMenu()?>
./HTML_TreeMenu/docs/map_fs.php:<?$menu->printMenu()?>
./HTML_BBCodeParser/BBCodeParser/example/parser.php:<?
./HTML_BBCodeParser/BBCodeParser/example/parser.php:<textarea cols='45' rows='10' name='string'><?=@$_GET['string']?></textarea><br>
./HTML_BBCodeParser/BBCodeParser/example/parser.php:<textarea cols='45' rows='10'><?=htmlentities($parsed, ENT_QUOTES)?></textarea><br>
./HTML_BBCodeParser/BBCodeParser/example/parser.php:<?=$parsed?>
./HTML_Select_Common/Select/examples/Country.php: <?=$c->toHTML('country', 'gb')?>
./HTML_Select_Common/Select/examples/UKCounty.php: <?=$c->toHTML('county')?>
./HTML_Select_Common/Select/examples/USState.php: <?=$c->toHTML('state', 'colorado')?>
./HTML_Select_Common/Select/Common/examples/Country.php: <?=$c->toHTML('country', 'gb')?>
./HTML_Select_Common/Select/Common/examples/FRDepartements.php: <?=$c->toHTML('state', 'utah')?>
./HTML_Select_Common/Select/Common/examples/UKCounty.php: <?=$c->toHTML('county')?>
./HTML_Select_Common/Select/Common/examples/USState.php: <?=$c->toHTML('state', 'colorado')?>
./HTML_Template_Xipe/Xipe/Filter/Basic.php: '[a-zA-Z0-9_]*->[a-zA-Z0-9_]*\(.*)\}/',"<?=\$$1 ?>",$input);
./HTML_Template_Xipe/Xipe/Filter/Basic.php: return preg_replace( '/(<\?php=|<\?=)\$(.*)\?>/sU' , '<? echo htmlentities($$2)?>' , $input ); //"
./HTML_Template_Xipe/Xipe/Filter/TagLib.php: '<?=htmlentities($$1)?>' ,
./HTML_Template_Xipe/Xipe/Filter/Translate.php: * so that {$T_foo} will finally become '<? php echo translateMe($foo) ? >'
./Net_SmartIRC/examples/example2.php: <B>On our IRC Channel #debian.de are <? echo $count; ?> Users</B>
./Net_SmartIRC/examples/example2.php: <?
./Net_SmartIRC/examples/example2.php: <?
./Net_IMAP/docs/test_IMAP.php:<?
./Net_IMAP/docs/test_IMAPProtocol.php:<?
./Net_IMAP/pear/Net_IMAP/docs/test_IMAP.php:<?
./Net_IMAP/pear/Net_IMAP/docs/test_IMAPProtocol.php:<?
./PHP_Parser/Parser/Core.php:?><?
./Services_Weather/examples/weather.com-extensive.php: <td width="310" colspan="2" style="border-bottom: 2px solid #abada2"><spanclass="bold"><?=$location["name"]?></span></td>
./Services_Weather/examples/weather.com-extensive.php: <td width="190" style="border-bottom: 2px solid #abada2"><span class="bold">Local time:</span><?=$location["time"]?> (GMT<?=(($location["timezone"] < 0) ? "" : "+").$location["timezone"]?>)</td>
./Services_Weather/examples/weather.com-extensive.php: <td><span class="bold">Sunrise:</span> <img width="28" height="13" style="vertical-align: baseline" alt="Sunrise"src="images/sunrise.gif"> <?=$location["sunrise"]?></td>
./Services_Weather/examples/weather.com-extensive.php: <td colspan="2"><span class="bold">Sunset:</span> <img width="30" height="15" style="vertical-align: baseline"alt="Sunset" src="images/sunset.gif"> <?=$location["sunset"]?></td>
./Services_Weather/examples/weather.com-extensive.php: <td><a href="<?=$links["promo"][$i]["link"]?>"><?=$links["promo"][$i]["title"]?></a></td> ./Services_Weather/examples/weather.com-extensive.php: <td><span class="bold">Temperature:</span> <?=round($weather["temperature"], 1)?>°<?=$units["temp"]?></td> ./Services_Weather/examples/weather.com-extensive.php: <td><span class="bold">Dew point:</span> <?=round($weather["dewPoint"], 1)?>°<?=$units["temp"]?></td> ./Services_Weather/examples/weather.com-extensive.php: <td><span class="bold">Felt temperature:</span> <?=round($weather["feltTemperature"],1)?>°<?=$units["temp"]?></td>
./Services_Weather/examples/weather.com-extensive.php: <td colspan="2"><span class="bold">Pressure:</span> <?=round($weather["pressure"], 1)?> <?=$units["pres"]?> and<?=$weather["pressureTrend"]?></td>
./Services_Weather/examples/weather.com-extensive.php: <td><span class="bold">Humidity:</span> <?=$weather["humidity"]?>%</td> ./Services_Weather/examples/weather.com-extensive.php: <td colspan="2"><span class="bold">Wind:</span> <?=strtolower($weather["windDirection"]) == "calm" ? "Calm" :"From the ".$weather["windDirection"]." (".$weather["windDegrees"]."°) at ".round($weather["wind"], 1)." ".$units["wind"]?></td>
./Services_Weather/examples/weather.com-extensive.php: <td><span class="bold">Visibility:</span> <?=round($weather["visibility"], 1)?> <?=$units["vis"]?></td> ./Services_Weather/examples/weather.com-extensive.php: <td><span class="bold">Current condition:</span><br><?=$weather["condition"]?></td> ./Services_Weather/examples/weather.com-extensive.php: <td><img height="32" width="32" alt="<?=$weather["condition"]?>"src="images/32x32/<?=$weather["conditionIcon"]?>.png"></td>
./Services_Weather/examples/weather.com-extensive.php: <td valign="top"><span class="bold">UV-Index:</span> <?=$weather["uvIndex"]?> (<?=$weather["uvText"]?>)</td> ./Services_Weather/examples/weather.com-extensive.php: <td align="center" style="border-bottom: 2px solid #abada2" colspan="<?=(1 + $forecastDays)?>"><spanclass="bold"><?=$forecastDays?>-day forecast</span></td>
./Services_Weather/examples/weather.com-extensive.php: <td width="<?=(90 / $forecastDays)?>%"> ./Services_Weather/examples/weather.com-extensive.php: <table width="100%"<?=($day % 2) ? ' class="bggrey"' : ""?>> ./Services_Weather/examples/weather.com-extensive.php: <td align="center" colspan="2" style="height:15px"><span class="bold"><?=$dayname?></span></td> ./Services_Weather/examples/weather.com-extensive.php: <td align="center" colspan="2" style="height:45px"><?=$afternoon ? "" : '<spanclass="redbold">'.round($forecast["days"][$day]["temperatureHigh"], 0).'°'.$units["temp"].'</span> / '?><span class="bluebold"><?=round($forecast["days"][$day]["temperatureLow"], 0)?>°<?=$units["temp"]?></span></td>
./Services_Weather/examples/weather.com-extensive.php: <td align="center" width="50%" style="height:15px"><?=$afternoon ? " " : '<spanclass="bold">Day</span>'?></td>
./Services_Weather/examples/weather.com-extensive.php: <?=$afternoon ? " " : '<img height="32" width="32" align="top"alt="'.$forecast["days"][$day]["day"]["condition"].'" src="images/32x32/'.$forecast["days"][$day]["day"]["conditionIcon"].'.png">'?><br>
./Services_Weather/examples/weather.com-extensive.php: <?=$afternoon ? " " : $forecast["days"][$day]["day"]["condition"]?> ./Services_Weather/examples/weather.com-extensive.php: <img height="32" width="32" align="top" alt="<?=$forecast["days"][$day]["night"]["condition"]?>"src="images/32x32/<?=$forecast["days"][$day]["night"]["conditionIcon"]?>.png"><br>
./Services_Weather/examples/weather.com-extensive.php: <?=$forecast["days"][$day]["night"]["condition"]?> ./Services_Weather/examples/weather.com-extensive.php: <td align="center" style="height:45px"><?=$afternoon ? " " :$forecast["days"][$day]["day"]["precipitation"]."%"?></td>
./Services_Weather/examples/weather.com-extensive.php: <td align="center" style="height:45px"><?=$forecast["days"][$day]["night"]["precipitation"]?>%</td> ./Services_Weather/examples/weather.com-extensive.php: <td align="center" style="height:45px"><?=$afternoon ? " " :round($forecast["days"][$day]["day"]["wind"], 0)." ".$units["wind"]." from ".$forecast["days"][0]["day"]["windDirection"]?></td>
./Services_Weather/examples/weather.com-extensive.php: <td align="center" style="height:45px"><?=round($forecast["days"][$day]["night"]["wind"],0)?> <?=$units["wind"]?> from <?=$forecast["days"][0]["day"]["windDirection"]?></td>
./Services_Weather/examples/weather.com-extensive.php: <td align="center" style="height:15px"><?=$afternoon ? "" :$forecast["days"][$day]["day"]["humidity"]."%"?></td>
./Services_Weather/examples/weather.com-extensive.php: <td align="center" style="height:15px"><?=$forecast["days"][$day]["night"]["humidity"]?>%</td> ./Services_Weather/examples/weather.com-extensive.php: <td style="border-top: 2px solid #abada2">Updated: (<?=date($timeFormat, $wupd)?> / <?=date($timeFormat,$fupd)?>)</td>
./Services_Weather/examples/weather.com-extensive.php: <td align="right" style="border-top: 2px solid #abada2" colspan="<?=($forecastDays - 1)?>">Weather data providedby <a href="http://www.weather.com/?prod=xoap&par=<?=$partnerID?>">weather.com<span class="reg">®</span></a><a href="http://www.weather.com/?prod=xoap&par=<?=$partnerID?>"><img height="32" width="43" alt="weather.com(R) logo" src="images/logos/TWClogo_32px.png"></a></td>
./XML_Beautifier/Beautifier/Renderer/Plain.php: $xml = $indent."<?".$token["target"].$this->_options["linebreak"]
./XML_Beautifier/Beautifier/Tokenizer.php: } elseif (strncmp("<?", $data, 2) == 0) {
./Numbers_Words/tests/test-numbers-words.php:<?
./Numbers_Words/tests/test-numbers-words.php: </tr><? ./Numbers_Words/tests/test-numbers-words.php: </tr><?./Numbers_Words/tests/test-numbers-words.php:<? ./Translation/translationutf8.class.php:<? ./HTML_Table_Matrix/examples/filltest.php:<? ./XML_FastCreate/FastCreate/tags/HTML_4_01_STRICT.php:<? ./XML_FastCreate/FastCreate/tags/HTML_4_01_TRANSITIONAL.php:<? -- Hartmut Holzgraefe, Senior Support Engineer . MySQL AB, www.mysql.com Don't miss the MySQL Users Conference 2005: http://www.mysqluc.com