B-runner
06-17-2013, 10:04 PM
I am trying to find a way to call content.php with a query string from another php script. Without a query string, a stripped down version of the script, that works, would be:
<?php
include("content.php");
die();
?>
but the include does not allow a query string. So I've been trying various forms of using $_GET, $_SERVER, $_SESSION and by using curl as others recommend (elsewhere), but I'm not finding the right way. Curl might work but I'm getting a "Request Entity Too Large" error. :(
So this reads as to what I'm after:
<?php
include("content.php?###");
die();
?>
Where ### is a predefined constant- but again, it's not supported.
I was also wondering if there is a way to do it within VB, if you look into content.php, you'll see:
define('VB_PRODUCT', 'vbcms');
define('VB_ENTRY', 1);
define('VB_ROUTER_SEGMENT', 'content');
define('GET_EDIT_TEMPLATES', 'picture');
define('CMS_SCRIPT', true);
define('THIS_SCRIPT', 'vbcms');
define('FRIENDLY_URL_LINK', 'vbcms');
// Bootstrapping
require_once('vb/bootstrap.php');
Is it possible to define the page number ID before calling the bootstrap.php (or content.php)? Where does the query string get parsed anyway?
I'm just starting to work with VB & php, so thank you for any help!
<?php
include("content.php");
die();
?>
but the include does not allow a query string. So I've been trying various forms of using $_GET, $_SERVER, $_SESSION and by using curl as others recommend (elsewhere), but I'm not finding the right way. Curl might work but I'm getting a "Request Entity Too Large" error. :(
So this reads as to what I'm after:
<?php
include("content.php?###");
die();
?>
Where ### is a predefined constant- but again, it's not supported.
I was also wondering if there is a way to do it within VB, if you look into content.php, you'll see:
define('VB_PRODUCT', 'vbcms');
define('VB_ENTRY', 1);
define('VB_ROUTER_SEGMENT', 'content');
define('GET_EDIT_TEMPLATES', 'picture');
define('CMS_SCRIPT', true);
define('THIS_SCRIPT', 'vbcms');
define('FRIENDLY_URL_LINK', 'vbcms');
// Bootstrapping
require_once('vb/bootstrap.php');
Is it possible to define the page number ID before calling the bootstrap.php (or content.php)? Where does the query string get parsed anyway?
I'm just starting to work with VB & php, so thank you for any help!