You said that you put your script in /var/www/html
So the link might be
localhost/html/test.php
Also check the error log file for PHP error.
# cat /var/log/apache2/error.log
EDIT: Change your quote, ” are for Word document and not programming 😉
<html> <head> <title>PHP Test</title> </head> <body> <p>This is an HTML line</p> <?php echo "This is a PHP line"; phpinfo(); ?> </body> </html>
Related Posts:
- count(): Parameter must be an array or an object that implements Countable error in php
- count(): Parameter must be an array or an object that implements Countable error in php
- Parse error: Syntax error, unexpected end of file in my PHP code
- Parse error: Syntax error, unexpected end of file in my PHP code
- Parse error: Syntax error, unexpected end of file in my PHP code
- Double click and run the Php script on mac
- What are .tpl files? PHP, web design
- How to solve PHP error ‘Notice: Array to string conversion in…’
- How to call a PHP function on the click of a button
- How to call a PHP function on the click of a button
- How to read if a checkbox is checked in PHP?
- Document Root PHP
- How to use PHP inside css file
- PHP Include Nav-bar For Every Page Techniques?
- How to create a text box in PHP to output data
- HTML vs SHTML vs PHTML
- How to make a monopoly board using css grid?
- Redirect from an HTML page
- How to create an HTML button that acts like a link
- What is the main difference of
and - Why does z-index not work?
- Is it possible to write data to file using only JavaScript?
- Image is not showing in browser?
- xajax expanding list query
- Adding attribute in jQuery
- Is element block level or inline level?
- How to create uppercase in pure HTML
- How to change text transparency in HTML/CSS?
- How to put text over images in html?
- How to display PDF file in HTML?
- Add Favicon to Website [duplicate]
- What does the shrink-to-fit viewport meta attribute do?
- What formats can be displayed with type=”application/x-shockwave-flash”
- Placing border inside of div and not on its edge
- Why php tag is not working in html file?
- How to apply CSS to iframe?
- HTML5 required attribute seems not working
- How to play a mp3 using Javascript? [duplicate]
- How to outline text in HTML / CSS
- Play videos with iframe in html
- How to call a REST web service API from JavaScript?
- HTML iframe – disable scroll
- How to make HTML table cell editable?
- Basic CSS – how to overlay a DIV with semi-transparent DIV on top
- difference between width auto and width 100 percent
- Is there a command for formatting HTML in the Atom editor?
- How to show text on image when hovering?
- Is it still valid to use IE=edge,chrome=1?
- CSS content property: is it possible to insert HTML instead of Text?
- How to increase height of textarea using bootstrap rows and columns
- Indent List in HTML and CSS
- What’s the difference between using NAV and DIV around Bootstrap 3 navbars?
- Absolute position is not working
- Position absolute but relative to parent
- How do you specify table padding in CSS? ( table, not cell padding )
- Two Divs next to each other, that then stack with responsive change
- link not working
- HTML5 Canvas Rotate Image
- How do I use Shortcodes inside of HTML tags?
- Get entire page content (generated HTML in browser)
- Can I force WordPress to use instead of ?
- WordPress Shortcode and Dynamic CSS
- How do I edit the php/html for a particular post?
- Custom post type permalink returns bad url
- HTML tags in bloginfo description
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Using the echo command adds unwanted br tags to source
- Commenting out unwated CSS/scripts in HTML with PHP
- Attribute Quote Style in WordPress HTML
- Path for php file for inserting data through html form
- Widget back end radio button issue
- Add shortcode in my div
- Why can’t I edit HTML in WordPress even with the administrator role?
- Adding HTML to posts with certain tags?
- Adding to the WYSIWYG
- How to remove auto generated markup? [closed]
- Is there a common structure for a wordpress formular?
- Is it possible to isolate and use WordPress functions outside of wordpress
- Search bar for wp menu
- Executing php on button press
- creates an unnecessary space in content?
- How to translate to spanish wordpress hardcoded content/files?
- Mysterious letters appearing at the top of a few pages
- Current WordPress Page Title as Search Parameter into A Tag
- If user has clicked link add class and store using PHP/WordPress
- How To Toggle User_Meta in frontend in a form using PHP
- sessionStorage saves input value in browser but it is not loaded in the form field
- Changable favicon
- Use PHP to inject HTML into before page renders?
- How do you change the tag font size in the repeater-template.php [closed]
- PHP tag in post content makes wordpress go crazy
- How to only fetch certain Tag ID’s
- RegExp to EXCLUDE strip HTML (FOR SOMME) comments
- Pagination for div’s
- Echo outside HTML
- Add html plugin into wordpress
- WBR tag breaking hyperlinks
- allow html characters on eshop data entry boxes
- WordPress HTML editor panel is not showing HTML elements
- How to modify default tags in wp_head()