Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I started learning PHP today and I've been trying to make a "Hello World" program, but when I type the code into the editor it does not appear in the browser, it's commented. What might be the issue ? I have XAMPP installed, and enabled Apache.
Code: http://i.imgur.com/khOPvSD.png
Browser: http://i.imgur.com/uQd25Qb.png
You are having
<?echo
Change to <?php
Every code that is PHP must be within the <?php ?> tags.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
Can some of you tell me please why when I echo "<?", the <? is not displayed?
I'm sorry, maybe it's very stupid question, but I need to dig this language more deeper.
If you view the source it will be there. Its because the browser thinks its a tag.
Fix it by using htmlentities().
echo htmlentities("<?");
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
<?
php wp_title('|', true, 'right');
?>
but syntax error :/,
Without knowing what the coding exactly should do, given that it should be PHP, I would have expected that it should read
<?php wp_title('|', true, 'right');?>
At least, this would be valid PHP code...
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I try to make my files as small as possible and wonder why the following php code works in my Wordpress Installation
<?php
$mark_count = get_post_meta($post->ID, '_wpb_post_mark_count', true);
?>
and the following (same) php code not
<?php $mark_count = get_post_meta($post->ID, '_wpb_post_mark_count', true); ?>
When i put the code in one row, my site gets blank. No Error or else in the firebug console. It is a new WP Installation and there is no conflict between plugins. The installation is on a Apache Server and runs the latest PHP 7 version. Any idea how to fix this problem or why this happens?
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I'm wondering why I cannot display the simple "hello world" using php language.
This is how my code looks like:
<?
echo "Hello world";
?>
and this is how the output come out in the browser, nothing display:
You need to make sure following things for executing php file.
Php tag should be properly open and close <?php ... ?>
You xampp server is properly running.
You are accessing file by putting correct path.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have a webpage weblup(dot)net/templates/template3 (replace (dot) with a '.') and it just crashes when I run it. It was working fine not long ago but I have no clue why it's crashing all of a sudden. The biggest change before this happened was that I changed a picture.
Your Website have error in logo.png and it's to big to load in website. (16620 x 9333 pixels).
Solution: Change Your Image and resolution Image