vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Use <?php, not <? (https://vborg.vbsupport.ru/showthread.php?t=55143)

filburt1 07-08-2003 10:00 PM

Use <?php, not <?
 
I was reading through the PHP5 readme (which is basically the same as PHP4's), and there's a comment stating that you should always use <?php instead of <? when opening a PHP block. The reason is that the shorthand <? can be disabled; although it isn't by default, you should always develop your code with that in mind.

(of course I have to, now, also :p)

Dean C 07-09-2003 02:39 PM

Also <? is ASP but it is acceptable ;)

- miSt

N!ck 07-09-2003 03:45 PM

Can't you even use <% in PHP? I've never tried, but I think I've read that somewhere...

assassingod 07-09-2003 03:51 PM

Quote:

Today at 05:45 PM N!ck said this in Post #3
Can't you even use <% in PHP? I've never tried, but I think I've read that somewhere...
Not to my knowledge. The only tags I know for PHP are;
<?php, <? and <script language="php">

Dean C 07-09-2003 04:03 PM

On no i got confused again. <% is asp but can work in php but its not recommended as its not supported by all coding environments. I need to read my book again. I'll be back with info :)

- miSt

filburt1 07-09-2003 04:12 PM

Quote:

Today at 12:45 PM N!ck said this in Post #3
Can't you even use <% in PHP? I've never tried, but I think I've read that somewhere...
You can if you enable it in php.ini. I don't know why you'd want to, though; it's harder to type <% than <? (in the latter the two keys are right next to each other).

Gavin B. 07-09-2003 06:37 PM

Yeo you can use <% but the ? sign is so much easier ;)

N!ck 07-10-2003 04:32 PM

See? I was right, Steve... :D I don't use <% and haven't seen it used, but I just knew I'd read that somewhere...

Dean C 07-11-2003 10:47 AM

Yep you definately can use <% :)

- miSt


All times are GMT. The time now is 06:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01326 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete