| | |
php code within <html> not showing
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 227
Reputation:
Solved Threads: 0
i don't know why my php code within the <html> doesn't work at all.
basically i tried just <?php echo "hi" ?> and it wouldn't work too. it gotta be something missing i guess.
thanks
PHP Syntax (Toggle Plain Text)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="xsoldier2006" content="xsoldier2006, 2006, xsoldier, henry li, veteran 2006" /> <link rel="stylesheet" type="text/css" href="css/text.css"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Xsoldier_Home</title> </head> <body bgcolor="#333333"> <?php $count = $_COOKIE[ 'visits' ]; if( $count == "") { $count = 1; } else { $count++; } setcookie("visits", $count); echo "you are visitor number $count"; ?> </body> </html>
basically i tried just <?php echo "hi" ?> and it wouldn't work too. it gotta be something missing i guess.
thanks
•
•
Join Date: Nov 2007
Posts: 227
Reputation:
Solved Threads: 0
yes, i saved it as index.php...this is weird. i just save a text doc with code below index.php
and it wouldn't work... i had done more php than this ,, i can't figure it out what happened.
PHP Syntax (Toggle Plain Text)
<?php echo "hi"; ?>
![]() |
Similar Threads
- Email code check only showing on second page refresh! Can't figure this (PHP)
- Detect User Details? (PHP)
- Input box not showing (HTML and CSS)
- Having prolems with a guestbook (HTML and CSS)
- Image Rollover code (JavaScript / DHTML / AJAX)
- Expandable html? (JavaScript / DHTML / AJAX)
- PHP E-mail setting ??? (PHP)
- PHP Form mailing troubles (PHP)
- Tut : Make Your-Self a IP Showing Siggy & hit counter (PHP)
- Showing results of a form in new window (HTML and CSS)
Other Threads in the PHP Forum
- Previous Thread: session
- Next Thread: PHP Friends request system!
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions simple sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube






