• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved [PHP] Server error code 500

Tarek

Premium User
Premium User
Joined
Jun 9, 2012
Messages
3,593
Solutions
4
Reaction score
1,183
Location
Sweden
GitHub
Taarek
Hello i tried to put this in index.php like i did before

I'm using GeisorAAC 2012 rev 3703+
PHP:
<iframe frameborder='0' border='0' width='0' height='0' src='https://youtu.be/EkpKGHDVlZ4?rel=0&autoplay=1' name='iframe' scrolling='no' style='position:absolute;' allowtransparency='true'></iframe>

But on google chrome i get Server error code 500 if i do that.
 
I used to add it like this.
PHP:
<iframe frameborder='0' border='0' width='0' height='0' src='https://youtu.be/EkpKGHDVlZ4?rel=0&autoplay=1' name='iframe' scrolling='no' style='position:absolute;' allowtransparency='true'></iframe>
<?php
// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);

// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', false);

define('INITIALIZED', true);

// if not defined before, set 'false' to load all normal
if(!defined('ONLY_PAGE'))
    define('ONLY_PAGE', false);
   
// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');

// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');

// DATABASE
include_once('./system/load.database.php');
if(DEBUG_DATABASE)
    Website::getDBHandle()->setPrintQueries(true);
// DATABASE END

// LOGIN
if(!ONLY_PAGE)
    include_once('./system/load.login.php');
// LOGIN END

// COMPAT
// some parts in that file can be blocked because of ONLY_PAGE constant
include_once('./system/load.compat.php');
// COMPAT END

// LOAD PAGE
include_once('./system/load.page.php');
// LOAD PAGE END

// LAYOUT
// with ONLY_PAGE we return only page text, not layout
if(!ONLY_PAGE)
    include_once('./system/load.layout.php');
else
    echo $main_content;
// LAYOUT END
 
I used to add it like this.
PHP:
<iframe frameborder='0' border='0' width='0' height='0' src='https://youtu.be/EkpKGHDVlZ4?rel=0&autoplay=1' name='iframe' scrolling='no' style='position:absolute;' allowtransparency='true'></iframe>
<?php
// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);

// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', false);

define('INITIALIZED', true);

// if not defined before, set 'false' to load all normal
if(!defined('ONLY_PAGE'))
    define('ONLY_PAGE', false);
 
// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');

// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');

// DATABASE
include_once('./system/load.database.php');
if(DEBUG_DATABASE)
    Website::getDBHandle()->setPrintQueries(true);
// DATABASE END

// LOGIN
if(!ONLY_PAGE)
    include_once('./system/load.login.php');
// LOGIN END

// COMPAT
// some parts in that file can be blocked because of ONLY_PAGE constant
include_once('./system/load.compat.php');
// COMPAT END

// LOAD PAGE
include_once('./system/load.page.php');
// LOAD PAGE END

// LAYOUT
// with ONLY_PAGE we return only page text, not layout
if(!ONLY_PAGE)
    include_once('./system/load.layout.php');
else
    echo $main_content;
// LAYOUT END

What are you trying to do? Seems odd to include it in index.php like that. Just include it in layout.php if you want it on every page

Edit: I see now, you trying to play music on every page. And yeah, include it in layout.php just before </body> or something
 
What are you trying to do? Seems odd to include it in index.php like that. Just include it in layout.php if you want it on every page

Edit: I see now, you trying to play music on every page. And yeah, include it in layout.php just before </body> or something

I recieve this error now.
Code:
Refused to display 'https://www.youtube.com/watch?v=EkpKGHDVlZ4&feature=youtu.be&rel=0&autoplay=1' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

I added it like this: http://pastebin.com/2j8iRtqZ
 
Back
Top