Hello Please help me. I am installing email subscribe box via phpmynewsletter and get this error look http://www.horoscopes-love.eu/aquarius-december-horoscope.php I chmod all files to 777. I insert this to my php page: <?php //edit form.php to tweak your subscription form include("newsletter/form.php") ?> Code (markup): form.php <?php // you can include this form in any page of // your website as follow: // // in this file, provide correct values for: // $path_to_pmnl // $list_id newsletter id // then in your page (need to be a php page) // add this line : // include("path/to/this/page/form.php"); // NOTA: your page need to use UTF8 encoding // put // <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> // in your html header //path to phpMyNewsletter base directory $path_to_pmnl="newsletter/"; // newsletter id, leave this empty if you want to list available // newsletter. //$list_id = 1; $list_id = "1"; //display archive link (true or false) ? $display_archive=true; ////////////////////// DO NOT MODIFY ///////////////////// if(file_exists("./".$path_to_pmnl."include/config.php")){ include("./".$path_to_pmnl."include/config.php"); include("./".$path_to_pmnl."include/db/db_".$db_type.".inc.php"); } include("./".$path_to_pmnl."include/lib/libconfig.php"); include("./".$path_to_pmnl."include/interface.php"); include("./".$path_to_pmnl."include/lib/libnewsletter.php"); include("./".$path_to_pmnl."admin/include/function.php"); if(file_exists("./".$path_to_pmnl."include/config.php")){ print newsletter_list($list_id, true, $display_archive); } else { include "./".$path_to_pmnl."include/lang/english.php"; echo error_msg(translate("NEWSLETTER_NOT_YET")); } ?> Code (markup): Thank you very much for your help.
It looks like you have the default PHP include path "include_path='.:/usr/local/php5/lib/php". You need to do 1 of 2 things. Either put the full UNIX/Windows filepath in, OR goto your php.ini file and change the include_path to be the base folder of your site. Hope this helps Andrew
in your include function. so include("/home/myUser/public_html/index.php"); for example. But it must be the full system filepath not just the root of your shared hosting environment.
But there is information ////////////////////// DO NOT MODIFY ///////////////////// So I need to fix it another way