dnewcombe Posted January 15, 2011 Share Posted January 15, 2011 Use the echo Statement to display the information listed below: My name is I am taking this course because … I have (or do not have) programming experience Tried it myself few times didn't get it... Link to comment https://forums.phpfreaks.com/topic/224552-need-help/ Share on other sites More sharing options...
atrum Posted January 15, 2011 Share Posted January 15, 2011 Please show us the code you tried to use. Link to comment https://forums.phpfreaks.com/topic/224552-need-help/#findComment-1159916 Share on other sites More sharing options...
dnewcombe Posted January 15, 2011 Author Share Posted January 15, 2011 <?php echo "My name is Daniel Newcombe"; echo "I am taking this course because its required by my major"; echo "I do not have programming experience"; ?> Link to comment https://forums.phpfreaks.com/topic/224552-need-help/#findComment-1159917 Share on other sites More sharing options...
atrum Posted January 15, 2011 Share Posted January 15, 2011 What actually happens when you run that? Do you get any errors? Blank Screen? Link to comment https://forums.phpfreaks.com/topic/224552-need-help/#findComment-1159919 Share on other sites More sharing options...
dnewcombe Posted January 15, 2011 Author Share Posted January 15, 2011 Blank screen Link to comment https://forums.phpfreaks.com/topic/224552-need-help/#findComment-1159920 Share on other sites More sharing options...
atrum Posted January 15, 2011 Share Posted January 15, 2011 Can you confirm that php is installed on the server/computer you're trying to run it on? Link to comment https://forums.phpfreaks.com/topic/224552-need-help/#findComment-1159921 Share on other sites More sharing options...
WSparrow Posted January 15, 2011 Share Posted January 15, 2011 If you're using html on this page you could also use something like: <h1>Hello my name is <?php echo $_SESSION['user_name'];?></h1> etc. etc. Link to comment https://forums.phpfreaks.com/topic/224552-need-help/#findComment-1159922 Share on other sites More sharing options...
dnewcombe Posted January 15, 2011 Author Share Posted January 15, 2011 Can you confirm that php is installed on the server/computer you're trying to run it on? Nope. Link to comment https://forums.phpfreaks.com/topic/224552-need-help/#findComment-1159927 Share on other sites More sharing options...
dnewcombe Posted January 15, 2011 Author Share Posted January 15, 2011 Is it actually a right code? Link to comment https://forums.phpfreaks.com/topic/224552-need-help/#findComment-1159929 Share on other sites More sharing options...
Pikachu2000 Posted January 15, 2011 Share Posted January 15, 2011 Can you confirm that php is installed on the server/computer you're trying to run it on? Nope. No it isn't installed, or no you can't confirm it? Link to comment https://forums.phpfreaks.com/topic/224552-need-help/#findComment-1159937 Share on other sites More sharing options...
ignace Posted January 15, 2011 Share Posted January 15, 2011 Clearly PHP isn't installed due to the < and > it's not rendered by the browser. Make sure you started with <?php and not <? (try running it again). If you are running this on your computer, then install WampServer or XAMPP otherwise ask your tutor for guidelines on where you need to put these files and which extension they should have (.php; .php5; .php4; .php3; .phtml; ..). Link to comment https://forums.phpfreaks.com/topic/224552-need-help/#findComment-1159944 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.