[support] Write a text into a page like a node

Davide Michel 'ZioBudda' Morelli michel at ziobudda.net
Wed Jan 9 00:46:24 UTC 2008


Hi all and sorry for this stupid question (any RTFM is wellcome).

I want to create a page (say foo.php) inside a bar/ directory that when 
call display me (via browser) some info stored in a variable ($foo).
So I have $foo, I have my themes, I have my bar/foo.php url, but how can 
I do an all in one ?

This is my simple code for bar/foo.php:

<?

require_once '../includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

$page = "io sono la pagina";
echo theme('page',$page);

?>

And the php-error is :

PHP Fatal error:  require_once() [<a 
href='function.require'>function.require</a>]: Failed opening required 
'./includes/cache.inc' (include_path='/opt/www/newzb/:.:..') in 
/opt/www/newzb/includes/bootstrap.inc on line 895

If I move foo.php from bar/ to / and changhe ../includes in ./includes 
all works.

Where is my error ?

M.

-- 
Michel 'ZioBudda' Morelli                       michel at ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ajaxblog.it        			MSN: michel at ziobuddalabs.it                   
						JABBER: michel at gmail.com



More information about the support mailing list