1 |
wel dus...:zquote:Here's a short explanation of the configuration directives.
short_open_tag boolean
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 ?>).
Note: This directive also affects the shorthand <?=, which is identical to <? echo. Use of this shortcut requires short_open_tag to be on.
oftewelquote:Op donderdag 10 augustus 2006 12:32 schreef mschol het volgende:
[..]
wel dus...:z
http://nl2.php.net/ini.core
en het werkt vlekkeloosquote:; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On
1 2 | short_open_tag "1" PHP_INI_PERDIR PHP_INI_ALL in PHP <= 4.0.0. |
Tip: array_rand()quote:Op zaterdag 12 augustus 2006 19:02 schreef wobbel het volgende:
De onderstaande code:
[ code verwijderd ]
geeft af en toe helemaal niks terug, dus gewoon wit beeld...hoe kan dat?![]()
beter nog...hoe los ik het op
Nou gewoon:quote:Op zaterdag 12 augustus 2006 21:29 schreef the_disheaver het volgende:
wat staat er dan in de bronode? Opera heeft er geen last van
1 2 | <form etc... |
1 2 3 4 | if ( @unset ( $_SESSION['RoG']['Code'] ) ) { ?> |
rechtstreeks van php.net:quote:Op maandag 14 augustus 2006 08:57 schreef Desdinova het volgende:
if empty($_SESSION['RoG']['Code']) moet je hebben denk ik
unset is een commando, alsin verwijder variabele
unset is geen functie, hij geeft geen successboolean terug ofzo. Daarom zal if (unset()) niet werken...quote:Op maandag 14 augustus 2006 10:26 schreef wobbel het volgende:
[..]
rechtstreeks van php.net:
Example 2. Unregistering a variable with $_SESSION and register_globals disabled.
<?php
session_start();
unset($_SESSION['count']);
?>
quote:unset() destroys the specified variables. Note that in PHP 3, unset() will always return TRUE (actually, the integer value 1). In PHP 4, however, unset() is no longer a true function: it is now a statement. As such no value is returned, and attempting to take the value of unset() results in a parse error.
http://mcrdev.guitarist.nl/menu/test/quote:RewriteEngine On
RewriteRule ^index/(.*)/$ /index.php?page=$1
RewriteRule ^menu/(.*)/$ /menu.php?page=$1
RewriteRule ^message/(.*)/$ /messages.php?page=$1
Maar hij doet het nietquote:if(isset($_GET['page']) && $_GET['page'] == "test")
{
echo "Blaaaaaaaaaar";
}
ook niet.quote:RewriteEngine On
RewriteBase /
RewriteRule ^index/(.*)/$ /index.php?page=$1
RewriteRule ^menu/(.*)$ /menu.php?page=$1
RewriteRule ^message/(.*)/$ /messages.php?page=$1
1 2 3 4 5 | RewriteBase / RewriteRule ^index/(.*)/$ index.php?page=$1 RewriteRule ^menu/(.*)/$ menu.php?page=$1 RewriteRule ^message/(.*)/$ messages.php?page=$1 |
Forum Opties | |
---|---|
Forumhop: | |
Hop naar: |