Martn Posted April 11, 2021 Share Posted April 11, 2021 I'm trying my first PHP code : <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Contact Form</title> </head> <body> <?php echo "Hello world!"; ?> </body> </html> Result : nothing, just a blank screen ... Am I missing something ? Regards, Martin Quote Link to comment https://forums.phpfreaks.com/topic/312452-simple-testcode-not-working/ Share on other sites More sharing options...
Barand Posted April 11, 2021 Share Posted April 11, 2021 Does the file containing that code have a ".php" extension? Quote Link to comment https://forums.phpfreaks.com/topic/312452-simple-testcode-not-working/#findComment-1585717 Share on other sites More sharing options...
Martn Posted April 11, 2021 Author Share Posted April 11, 2021 Hi Barand, yes it does ... Martin Quote Link to comment https://forums.phpfreaks.com/topic/312452-simple-testcode-not-working/#findComment-1585719 Share on other sites More sharing options...
Barand Posted April 11, 2021 Share Posted April 11, 2021 What are you entering into your browser's address bar to execute it? Quote Link to comment https://forums.phpfreaks.com/topic/312452-simple-testcode-not-working/#findComment-1585720 Share on other sites More sharing options...
Martn Posted April 11, 2021 Author Share Posted April 11, 2021 Your question triggered my brain 🙂 I was testing (or trying to test...) from within DirectAdmin. When I type the full URL in a new tab of my browser it works ! Regards, Martin. Quote Link to comment https://forums.phpfreaks.com/topic/312452-simple-testcode-not-working/#findComment-1585721 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.