Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: ltwally on September 13, 2008, 05:23:02 AM
-
I've tried searching the forum, but was unable to narrow down the search results. That, or the information I need isn't on the forum.
Either way: Does anyone know how to kick on php includes in the SME way? (ie. config setprop php xxx=yyy)
I would very much like one of the sites I'm coding to be able to do the following, as an example:
<?php include("http://mydomain/banner/"); ?>
Thanks!!
-
This is a php code, not apache nor php module directive!
This code go into your php scripts.
config setprop php xxx=yyy
Please, in your free time read http://wiki.contribs.org/DB_Variables_Configuration
-
This is a php code, not apache nor php module directive!
This code go into your php scripts.
Please, in your free time read http://wiki.contribs.org/DB_Variables_Configuration
Erm... I think you misunderstand.
The php include() function appears to be disabled - probably for security.
I seek to enable it.
I seek how to enable it in a SME-friendly manner (such as with config setprop).
-
Erm... I think you misunderstand.
The php include() function appears to be disabled - probably for security.
I seek to enable it.
I seek how to enable it in a SME-friendly manner (such as with config setprop).
I suppose that I have not misunderstood.
php include() function is a function specific for the php language, not for php-apache module directive.
If your read http://wiki.contribs.org/DB_Variables_Configuration#Php you will found the cause why your php include() function not work.
What think about "AllowUrlFopen"?
EDIT: Enable Error Messages as http://wiki.contribs.org/PHP to see what php error you have. When fixed, then undo the error messages settings.
-
php include() function is a function specific for the php language, not for php-apache module directive.
I do not recall saying anything about "php-apache module directive". I just want to know if it's possible to enable php-include(), and if so: how.
If your read http://wiki.contribs.org/DB_Variables_Configuration#Php you will found the cause why your php include() function not work.
What think about "AllowUrlFopen"?
I have no idea. You seem to know - so, what about "AllowUrlFopen"?
I'm sorry - I don't come here for lectures or to be told RTFM. (I already looked, and obviously hadn't found what I need to know.) I just need the solution to a simple problem, or to be told that there is no such solution. Nothing more, nothing less. PLEASE.
-
I do not recall saying anything about "php-apache module directive". I just want to know if it's possible to enable php-include(), and if so: how.
Your question doesn't make any sense. "php include()" is execution code that you put in a php file to instruct Apache what to do and it can't be enabled/disabled or configured. It isn't a php directive that can be configured in the php.ini file.
I have no idea. You seem to know - so, what about "AllowUrlFopen"?
Let's break that down. "Allow URL Fopen" and your php script is trying to open a URL. So, if you adjust the AllowUrlFopen directive in php to allow your script to open a URL then Apache should allow it and your script should work.
I'm sorry - I don't come here for lectures or to be told RTFM. (I already looked, and obviously hadn't found what I need to know.) I just need the solution to a simple problem, or to be told that there is no such solution. Nothing more, nothing less. PLEASE.
No one lectured or stated RTFM. Normando gave you the correct instructions and pointed you to EXACTLY what you needed to read and implement. Did you take into consideration that Normando's first language is not English and some of his instructions may have been lost in translation? Did you even look at the link he posted? He pointed to the page and section and gave you the directive that you need to adjust and that page gives you exact instructions on how to implement it and you come back with that remark.
Here are your instructions that you were too GD lazy too look up yourself:
db configuration setprop php AllowUrlFopen On
expand-template /etc/php.ini
/etc/init.d/httpd-e-smith restart
Now apologize to Normando and then go BLANK yourself!
Problem solved, thread closed.