Re: [PHP] Include directive..
- From: lists@xxxxxxxxx (Jim Lucas)
- Date: Tue, 09 Dec 2008 11:20:44 -0800
Thanks for the reply. What I did was to edit the includes path in my php.ini
file to specify the location to my script folders.
I did that but now am experiencing another problem. Don't know if you are
into the Zend Framework. :) But any help on tis post will be appreciated
Nope, I know nothing about ZF. Sorry.
(C) 071 673 4130 (E) dele@xxxxxxxxxxxxxxxxxxxx (S) dee454
"Start by doing what's necessary; then do what's possible; and suddenly you
are doing the impossible. "- St. Francis of Assisi.
Disclaimer: This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please notify the system
manager. This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. If you are not the intended recipient you are
notified that disclosing, copying, distributing or taking any action in
reliance on the contents of this information is strictly prohibited.
From: Jim Lucas [mailto:lists@xxxxxxxxx]
Sent: Tuesday, December 09, 2008 8:19 PM
Subject: Re: [PHP] Include directive..
I am modifying the apache config file on my domain to include the path to
the Zend Framework on a specified location outside the public folder.
So in my http.conf file i simply include the path to where the includes
is to customise the virtual host:line
# To customize this VirtualHost use an include file at the following
And then me.conf looks like this:
But then i get this error:
Failed to generate a syntactically correct Apache configuration.
Bad configuration file located at
Configuration problem detected on line 277 of file
/usr/local/apache/conf/httpd.conf.1228614930: : Syntax error on
1 of /usr/local/apache/conf/userdata/std/2/domain/mydomain.co.za/me.conf:it
Syntax error on line 1 of /home/domain/apps/Bootstrap.php:
/home/maineven/apps/Bootstrap.php:1: <?php> was not closed.[/CODE]
But i do have the <?php tag closed in my Bootstrap file. I dont know why
is saying otherwise.
Please help is needed.
Taking in what everybody else has already pointed out, I would like to add
that their is a php configuration option that will do something along the
line of what you are trying to do.
It is called the 'auto_prepend_file' option.
You could do something like this in your httpd.conf file instead of what you
are trying to do.
... All Your normal stuff ...
php_value auto_prepend_file '/path/to/file.php'
The above code will include your php file as a standard php include every
time someone visits the given VirtualHost block.
Hope this helps.
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
- Re: [PHP] Include directive..
- From: dele454
- Re: [PHP] Include directive..
- Prev by Date: Re: [PHP] echo SESSION var doesn't work if unset after echo
- Next by Date: get calling function name
- Previous by thread: Re: [PHP] Include directive..
- Next by thread: Re: [PHP] Include directive..