Welcome Guest.   Make a donation to an author on the site September 02, 2014, 06:45:52 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2010! Download 24 custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: <Script> tag for PHP?  (Read 2812 times)
jeremejazz
Supporting Member
**
Posts: 58


hey!

View Profile WWW Give some DonationCredits to this forum member
« on: October 18, 2010, 07:03:23 AM »

Hi, someone told me that the
Formatted for PHP with the GeSHI Syntax Highlighter [copy or print]
  1. <script>
tag can also be used for calling php functions... is that true?
Logged

smiley I love coding
mwb1100
Supporting Member
**
Posts: 1,296


View Profile Give some DonationCredits to this forum member
« Reply #1 on: October 18, 2010, 12:03:28 PM »

you should be able to use:

[copy or print]
<script language="php"> ... </script>

See Example #2 on http://www.php.net/manual....basic-syntax.phpmode.php
« Last Edit: October 18, 2010, 12:06:55 PM by mwb1100 » Logged
Deozaan
Charter Member
***
Posts: 6,329



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: October 18, 2010, 12:08:05 PM »

If you just want to do a short section of PHP, why wouldn't you use the normal PHP tags? It's been a long time since I've done any PHP, but isn't it something simple like <?php>?
Logged

Stoic Joker
Honorary Member
**
Posts: 5,218



View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: October 18, 2010, 12:51:12 PM »

you should be able to use:

[copy or print]
<script language="php"> ... </script>

See Example #2 on http://www.php.net/manual....basic-syntax.phpmode.php


The moral of the story (at the link you posted) seems to be yes you can do it, but it's a bad habbit/idea that will bite you in the ass down the road. <?PHP ...code...  ?> or <?=$Value?> are both universally safe in any environment/version or mixture of code.


Not to mention it looks too much like a Java Script tag of your skimming something large in a hurry (We've all done that at least once...).
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.098s | Server load: 0.03 ]