Just so you know in some php files from your scripts you left out the closing "?>".
I put it in and looks good thank you.
Missing php closing tag ?> in php file
-
- Posts:7
Missing php closing tag ?> in php file
Admin
Posts:805
In php files, if after the last line of code there isn't other content, like html, there is not need for the closing tag "?>".
The closing tag is necessary if there is other type of code /content after the php code.
For example, in a file called "test.php":
- This is correct:
- In the following example it is applied the closing php tag ?> because the file has other content after the php code:
The closing tag is necessary if there is other type of code /content after the php code.
For example, in a file called "test.php":
- This is correct:
Code: Select all
<?php
$vr ='some text';
echo $vr;
//here isn't necessary the ?> because there is not other content after this line of php code
Code: Select all
<?php
$vr ='some text';
?>
<h1>Title</h1>
<div>
<?php echo $vr; ?>
</div>
Similar Topics
- GET_id not working in UnLink (delete file)
PHP - MySQL First post
I searching for an hour for a solution; unlink seems not to work with GET idLast post
<?php
$id = (int) $_GET ;
echo $_GET ;
$file = fopen( '.$_GET...
Here is an answer `o god after 2 hours shame on me for this one`
<?php
$file_pointer = $_GET .'.txt';
if (!unlink($file_pointer)) {
echo (...