Hi there:
I want to replace my current index.php page with a new index.php that will be having new functions. My current index.php page is working and I would like to keep that page working as usual. I just create a copy of my current index.php and rename it with index2.php . The problem is that this new index2.php is returning the results base on my root and is looking to serve the results on index.php, not on index2.php, and since the index is different it give me an error.
I was reading about the PHP server paths but its too much for me. Im afraid to touch the code since I have no clue at all of how to change the path.
I found this on my server, it looks like this is the file I will need to update.
Any help will be more than welcome.
Thank you very much. This is the site with the current index.php I want to convert to index2.php
www. adliked .com
Here is the code:
<?PHP define ("CLASSES_PATH", "classes/"); define ("CLASSES_API_PATH", CLASSES_PATH . "api/"); define ("CLASSES_PAGES_PATH", CLASSES_PATH . "pages/"); define ("CLASSES_ADMIN_PATH", CLASSES_PATH . "pages_admin/"); define ("SKIN_NAME", "default/"); define ("MODULES_PATH", "modules/"); //define ("IMAGES_PATH", "propimages/"); define ("USER_IMAGES", "images/"); define ("TEMPLATE_PATH", "templates/"); define ("TEMPLATE_ADMIN_PATH", "templates_admin/"); define ("SERVER", "http://" . $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"]); define ("SERVER_PATH", substr(SERVER, 0, strrpos(SERVER, "/")) . "/"); define ("ADMIN_EMAIL", "[email protected]"); define ("IMAGE_PATH", SERVER_PATH."templates/default/images/"); define ("IMAGE_TEMPLATE", SERVER_PATH."images/template/"); include ("config.php"); include ("functions.php"); # API CLASSES include (CLASSES_API_PATH . "data_holder_class.php" ); include (CLASSES_API_PATH . "templates_class.php" ); include (CLASSES_API_PATH . "mysql_class.php" ); include (CLASSES_API_PATH . "tools_class.php" ); include (CLASSES_API_PATH . "upload_class.php" ); include (CLASSES_API_PATH . "page_calc_class.php" ); include (CLASSES_API_PATH . "booking_class.php" ); include (CLASSES_API_PATH . "clsParseXML.php" ); # MODULES CLASSES include (MODULES_PATH . "FCKeditor/fckeditor.php"); include (MODULES_PATH . "phpmailer/class.phpmailer.php"); # BASE CLASSES include (CLASSES_PATH . "admin_menu_class.php"); include (CLASSES_PATH . "wrapper_class.php"); //include (CLASSES_PATH . "upload_class.php" ); # ADMIN PAGE CLASSES if ($handle = opendir(CLASSES_ADMIN_PATH)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && substr($file, strlen(basename($file, ".php")), 4) == ".php") { include (CLASSES_ADMIN_PATH . $file); } } closedir($handle); } ?>