Author Topic: PHP Include  (Read 1034 times)

0 Members and 1 Guest are viewing this topic.

Offline AussieinCanada

  • New Users
  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
PHP Include
« on: August 31, 2014, 09:15:25 AM »
Shared / VPS / Dedicated server:  Dedicated

Script Version: Shared / VPS / Dedicated server:

Script Version: TubeX version 1.0.0-BETA
PHP Version: 5.4
MySQL Version:

Have you tried the server test script:
If yes, results (all passed, some issues (if so what?)):

Have you modified any code yourself:
If yes, briefly describe changes: Lots

Link to site:

Description of issue: I am trying to include a page in the :watch video template. I have tried all sorts of combinations but no luck. Sometimes the code will result in a blank page, other variations result in the php include showing in the source - but not executing. (the include script is for a schema markup star rating script - The script does work, I use it on other non-tubex sites)

The code I am trying to include is
<?php
$_REQUEST['id'] = {$video.video_id};
$r['name'] = "{$video.title}";
require_once('ratings.php');
?>

I have tried:

{nocache}
{phpcode}
$_REQUEST['id'] = {$video.video_id};
$r['name'] = "{$video.title}";
require_once('ratings.php');
{/phpcode}
{/nocache}

-----------------------------

{phpcode}
$_REQUEST['id'] = {$video.video_id};
$r['name'] = "{$video.title}";
require_once('ratings.php');
{/phpcode}
---------------------------

{nocache}
$_REQUEST['id'] = {$video.video_id};
$r['name'] = "{$video.title}";
require_once('ratings.php');
{/nocache}
----------------------------------
{nocache}
{php}
$_REQUEST['id'] = {$video.video_id};
$r['name'] = "{$video.title}";
require_once('ratings.php');
{/php}
{/nocache}
-----------------------------

{php}
$_REQUEST['id'] = {$video.video_id};
$r['name'] = "{$video.title}";
require_once('ratings.php');
{/php}

---------------------------
As well as full path from root in all those combinations.

Any Ideas? Thanks, Ian.

Unofficial JMB Support Forums

PHP Include
« on: August 31, 2014, 09:15:25 AM »


Tags:
 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1288 Views
Last post November 03, 2013, 10:00:57 PM
by Huge
0 Replies
699 Views
Last post May 14, 2014, 09:39:29 AM
by GFED

anything