I'm trying to create pages in x-Cart "static pages" menu.
application: pages.php?level=E&pageid=
the pages are created in this folder with permissons 777:
public_html/skin1/pages/US/
if i use file name 'page_006.html", then it works,
but if I put "page_006.php" then it gives the error "Cannot save file: please check the write permissions."
The error is returned when this line is executed in pages.php:
$fd = @func_fopen($pages_dir.$filename, "w", true)
For some reason it works with any file name except .php or .exe.
I'm wondering if this is "func_fopen" restriction or some server settings.
|