Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Index.php stops being read when php code appears

I'm working now with AWS and I've set up Apache, PHP, MySQL and Phpmyadmin.

Problem here is that now when all the files are loaded it stops reading the index.php in certain point.

For example, I've this in the Index.php:

<body>
<div class="nav">
    <div class="nav_content">
       <a href="#"><div class="logo_h"><img src="public/images/logo-h.png"></div></a>
   <div class="online"><p><b><b><?php echo $user->GetOns(); ?> <-- stops to work here

Right on that line of PHP, the file is stop being read. Also, the page takes AGES to load, I'm not joking about it... takes AGES!

Help please.

Comments