Question about The PHP Group PHP

3 Answers

PHP Tags I started learning PHP, I'm teaching myself and I want to make sure that I'm in the right direction can you pls post here what are the common PHP Tags? Are there any other important tags I should know? Thanks a lot.

Posted by on

3 Answers

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Habit-Forming:

    Visited the website for 3 consecutive days.

    Hot-Shot:

    An expert who has answered 20 questions.

  • Expert
  • 52 Answers

Important tag in PHP
<?php
// PHP code goes here
?>

the best website to learn php language is w3schools .

Posted on Dec 02, 2015

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 2 Answers

1) Most important PHP tag which work in all the conditions <?php an ?>

2) There are some others tag also present such as <? ?>, it is called short tags for using this you need to set short_open_tag =On in php.ini file.

3) You can also use ASP tags for writing PHP code for this you need to set asp_tags=On in php.ini file

Posted on Oct 04, 2014

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Problem Solver:

    An expert who has answered 5 questions.

  • Expert
  • 53 Answers

Hi,
if you want to be experienced with php programming language i think you should learn HTML and CSS and have some basic understanding about JAVASCRIPT , then you can start learning php.
the best website to learn php language is w3schools .

Good luck,

please don't forget to rate this post

Posted on Sep 07, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Want to Learn how to create web pages?


It would be really good if you could what problem are you facing.
However at first go, My suggestion would be you go to w3schools.com and learn HTML5,jquery,bootstrap this will help you design the way you want in very intuitive way. Once You are through on that then only go for PHP+Mysql

Mar 21, 2015 | The PHP Group Compilers & Programming...

1 Answer

Php assigning value to variables and posting result, how can i assign a value to variable that will add the score evertytime the answer in my trivia page is correct, how can i make a formula for total...


You can use a session variable.
First use session_start().
Then you can crate a session variable by simply setting the appropriate member of the $_SESSION or $HTTP_SESSION_VARS (PHP < 4.1.0) array
Example.

session_start();

$_SESSION["number"] = 10 ;

echo $_SESSION["number"];

You can call it whenerver you want.
remmember to start session on all the pages where you use the variable.

Mar 17, 2009 | The PHP Group PHP

1 Answer

PHP issues with ''''... Please help!!!


Hello.

If you want PHP to use quotation marks you have to seperate them from the ones that start the expression by a backslash(\).

Here are two examples:
WRONG: echo "A "QUOTE" AND SOME TEXT";
RIGHT: echo "A \"QUOTE\" AND SOME TEXT";

or

WRONG: echo 'A 'QUOTE' AND SOME TEXT';
RIGHT: echo 'A \'QUOTE\' AND SOME TEXT';

I hope this helps.

Kind Regards,
Wilhelm@X-ex.info

Feb 26, 2009 | The PHP Group PHP

2 Answers

Logout script with session management in php5


just create a logout.php script with the following

<?php
session_start();
session_destroy();

header("Location: index.php");
?>

Have your logout button/link/whatever just open that page which connects to the session with session_start. Session destroy does exactly what it sounds like... it unsets all session data and tells the server to end the session. The header request then just re-directs the user to whatever page you want after (just change out index.php)

Dec 30, 2008 | The PHP Group PHP

1 Answer

Php cookie problems


can u give me the error that is shown when you try to use cookies ? or it just doesn't work ?

Sep 08, 2008 | The PHP Group PHP

1 Answer

PHP Error 500


Internal Server Error 500 is usually caused by either a malformed cgi script or an invalid directive in an .htaccess file located either in the same directory as the page throwing an error, or in any directory above it.

Have you recently uploaded or editted an .htaccess file that includes mod_php related directives such as php_value ..., php_flag ...?

If you did start your search there.

Aug 26, 2008 | The PHP Group PHP

1 Answer

PHP Troubleshooting


Most often the problem is caused by loops in your PHP. One common mistake is to forget to actually ++ add to the counter at the end of a loop, so your loop will continue to run forever. Another common mistake is that, you do add to the counter, but then accidently overwrite it again at the start of the next loop, so you never gain any ground.
Depending on what your loops is doing, this can cause your script to continue to output the same information over and over again (continuing to make the page longer and longer and longer) or it can keep processing the same information over and over without outputting anything giving it the appearance of a page that is trying to load but is lagging.

One way to help you spot this is to echo () the current counter number (or other useful information) at the beginning of each cycle. This way you might get a better idea of where the loop is tripping up.

If you're not using loops, you may want to double check that any HTML or JAVA you are using on your page isn't causing the problem, and that any included pages are without error.

Aug 05, 2008 | The PHP Group PHP

Not finding what you are looking for?
The PHP Group PHP Logo

Related Topics:

540 people viewed this question

Ask a Question

Usually answered in minutes!

Top The PHP Group Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Mike

Level 3 Expert

4331 Answers

Mishan Kasiparsad

Level 2 Expert

142 Answers

Are you a The PHP Group Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...