if (!isset($mainfile)) { include("mainfile.php"); }
$index = 0;
include("header.php");
opentable();
include ($form);
closetable();
include("footer.php");
?>
-------------
but when i click on the link in the navigation i got these errors:
Warning: main() [function.main]: open_basedir restriction in effect. File(../html) is not within the allowed path(s): (/www/htdocs/--------/) in /www/htdocs/-------/uml.php on line 10
Warning: main(html) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/--------------/uml.php on line 10
Warning: main() [function.main]: Failed opening 'html' for inclusion (include_path='.:..') in /www/htdocs/--------/uml.php on line 10
line 10 is how you can see
include($form);
whats wrong with this??
thx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
that is something you will need to figure out on your own since I have never used it with php nuke or any other program. You should try it as is first before trying to integrate it with other code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the other thing is, i look in the code from the formular(i mean formular1.htm) and after action is the the path not right, there stay in second line:
action='process.php'
but thats not right and i change it to:
action='http://www.URL/phpform/forms/process.php'
thats it, now its working(also in php-nuke)
i dont know, why the path in the formular making wrong, may be i unzipp wrong or the download has a bug
thx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
i install "php form generator" on my php nuke portal
i create with it one formular
i make a link to my navigation like this:
http://www.myurl/uml.php?form=/phpform/forms/form1.html
---------------
uml.php is in the root und contain this :
<?php
if (!isset($mainfile)) { include("mainfile.php"); }
$index = 0;
include("header.php");
opentable();
include ($form);
closetable();
include("footer.php");
?>
-------------
but when i click on the link in the navigation i got these errors:
Warning: main() [function.main]: open_basedir restriction in effect. File(../html) is not within the allowed path(s): (/www/htdocs/--------/) in /www/htdocs/-------/uml.php on line 10
Warning: main(html) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/--------------/uml.php on line 10
Warning: main() [function.main]: Failed opening 'html' for inclusion (include_path='.:..') in /www/htdocs/--------/uml.php on line 10
line 10 is how you can see
include($form);
whats wrong with this??
thx
that is something you will need to figure out on your own since I have never used it with php nuke or any other program. You should try it as is first before trying to integrate it with other code.
hi, i find out why iget the errors:
first the link in the navigation was false, there is one slash after (form=), thats wrong, it must be like this:
http://www.myurl/uml.php?form=phpform/forms/form1.html
the other thing is, i look in the code from the formular(i mean formular1.htm) and after action is the the path not right, there stay in second line:
action='process.php'
but thats not right and i change it to:
action='http://www.URL/phpform/forms/process.php'
thats it, now its working(also in php-nuke)
i dont know, why the path in the formular making wrong, may be i unzipp wrong or the download has a bug
thx