php tag

What is it's purpose?

Page 1 of 1

7 Replies - 1713 Views - Last Post: 20 May 2001 - 11:04 AM Rate Topic: -----

#1 Rich  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 12-March 01

php tag

Posted 19 April 2001 - 04:59 PM

What is the function with this as the last line in a .php page?

<?php } ?>

Is This A Good Question/Topic? 0
  • +

Replies To: php tag

#2 Paradox  Icon User is offline

  • D.I.C Regular

Reputation: 0
  • View blog
  • Posts: 432
  • Joined: 03-March 01

Re: php tag

Posted 19 April 2001 - 05:03 PM

That could be used to close off an if statement, such as in the following example:

<?php
if(statement){
?> //escape to html
//html
<?php } ?>

Was This Post Helpful? 0
  • +
  • -

#3 Rich  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 12-March 01

Re: php tag

Posted 19 April 2001 - 11:50 PM

OK, thanks. At least I'm pointed in the right direction :)
Was This Post Helpful? 0
  • +
  • -

#4 Paradox  Icon User is offline

  • D.I.C Regular

Reputation: 0
  • View blog
  • Posts: 432
  • Joined: 03-March 01

Re: php tag

Posted 20 April 2001 - 04:34 AM

Here's a little more information:

In a php document, not all of the coding has to be php.  You can mix it in with the html.  You use <? or <?php to tell the document that you are inserting some php.  You use ?> to tell the document that you are finished with php, and are just going to type some html for now.  Does my example make sense now?

Was This Post Helpful? 0
  • +
  • -

#5 Quik  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2
  • View blog
  • Posts: 3,750
  • Joined: 06-March 01

Re: php tag

Posted 20 April 2001 - 05:39 AM

Same as asp except its <%  for asp
Was This Post Helpful? 0
  • +
  • -

#6 redbarron  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 03-March 01

Re: php tag

Posted 20 May 2001 - 09:54 AM

Paradox,
Great information! It helped me with a previous post you made in another forum.  BTW, is there a way to get a brief description of what PHP is and how one can go about learning it? I can read a book, but what about a website? I'm running Dreamweaver as a developer, can I do PHP right in DW and/or is there an extension available to import, etc.?

Thanks is advance!

Was This Post Helpful? 0
  • +
  • -

#7 Paradox  Icon User is offline

  • D.I.C Regular

Reputation: 0
  • View blog
  • Posts: 432
  • Joined: 03-March 01

Re: php tag

Posted 20 May 2001 - 10:15 AM

Dreamweaver is great, it recognizes PHP tags and deals with them appropriately.  Just go into the html view to write your code

As for a web site, http://www.php.net has great documentation, and http://www.phpbuilder.com has some resources.  http://www.hotscripts.com has PHP scripts written by others, so you can learn by example

Was This Post Helpful? 0
  • +
  • -

#8 redbarron  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 03-March 01

Re: php tag

Posted 20 May 2001 - 11:04 AM

Thanks again Paradox.  I checked out the PHP site and learned a ton already. I'm going to check to see if PHP is installed on our server (IIS). Did you get my post on the multi-recipient email form?  I'll check back later. Thanks!:)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1