[PHP] Misschien ben ik wel heel dom.

Pagina: 1
Acties:
  • 40 views sinds 30-01-2008

  • dennis_LU
  • Registratie: September 2000
  • Laatst online: 05-08 09:34
Kan iemand mij vertellen waarom: onderstaande wel werkt maar

PHP:
1
2
3
<?php
phpinfo();
?>

deze niet?
PHP:
1
2
3
<?
phpinfo();
?>

mijn systeem draait op redhat 8.0 met apache 2.0.40-11, en php 4.2.2-8.0.7
zou iemand kunnen vertellen of ik iets fout doe of dat ik iets aan moet passen aan de php.ini of de httpd.conf? het is allemaal standaard geinstalleerd.

  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 23-08 10:39

Janoz

Moderator Devschuur®

!litemod

Je zult iets aan moeten passen in je ini files. Volgens mij staat dit in php.ini. Ff daar zoeken dus.

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


  • bitwizz
  • Registratie: Januari 2002
  • Laatst online: 17-08 15:18
dit kan je vinden op
http://www.php.net/manual/nl/configuration.directives.php
short_open_tag
Tells whether the short form (<? ?>) of PHP's open tag should be allowed. If you want to use PHP in combination with XML, you can disable this option in order to use <?xml ?> inline. Otherwise, you can print it with PHP, for example: <?php echo '<?xml version="1.0"'; ?>. Also if disabled, you must use the long form of the PHP open tag (<?php ?>).

Opmerking: This directive also affects the shorthand <?=, which is identical to <? echo. Use of this shortcut requires short_open_tag to be on.

[ Voor 78% gewijzigd door bitwizz op 17-03-2003 16:28 ]

Bestuurder van een KIA EV6 77,4kwh RWD GT-Line - Yacht Blue


  • chris
  • Registratie: September 2001
  • Laatst online: 11-03-2022
kijk dus even hier

  • Glimi
  • Registratie: Augustus 2000
  • Niet online

Glimi

Designer Drugs

(overleden)
Dom ben je niet. Niemand kan alles weten :) Wel had je even kunnen zoeken :).
Dat vereisen we hier in P&W. Dit omdat we gewoon niet zitten te wachten op vragen die letterlijk in een manual staan. Dat is voor niemand leuk om een forum daarmee vol te zien :)

Dank en succes ermee

Dit topic is gesloten.