shoppingcart101 Posted April 12, 2007 Posted April 12, 2007 Hello everyone. Iam having a slight issue with view any of the php files within the oscommerce file system in browser through my local server XAMPP. I want to edit in dreamweaver and view my changes locally. I downloaded the XAMPP program properly and is working fine when I type in my browser "http://localhost/" I get the page saying XAMPP is working correctly. I do have Appache and MySql turned on. The path in my browser I tried to view would be http://localhost/header.php, but I get a Warning and a Fatal erorr message saying there is "No such file or directory in C:\ProgramFiles\htdocs\whatever file I chose. I do have the the whole oscommerce folder in the "htdocs" folder. I appreciate any guidance here. Thanks for reading! BD
jasonabc Posted April 12, 2007 Posted April 12, 2007 The path in my browser I tried to view would be http://localhost/header.php Firstly the path is wrong. Header.php sits in your OSC /includes/ folder so the path should be (assuming OSC sits directly in your web root folder): http://localhost/includes/header.php Secondly - you cannot view the header.php file directly in your browser - or any other php file in the includes folder for that matter. The header.php file (along with all the others) are include files. They are called by other pages and in OSC's case require the inclusion of other include files in order to work properly. Your main OSC homepage for example (/index.php) calls several includes (header.php, footer.php, application_top.php etc etc). All these together make up the index.php page you see in your browser. You cannot view them separately. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
shoppingcart101 Posted April 12, 2007 Author Posted April 12, 2007 Firstly the path is wrong. Header.php sits in your OSC /includes/ folder so the path should be (assuming OSC sits directly in your web root folder): http://localhost/includes/header.php Secondly - you cannot view the header.php file directly in your browser - or any other php file in the includes folder for that matter. The header.php file (along with all the others) are include files. They are called by other pages and in OSC's case require the inclusion of other include files in order to work properly. Your main OSC homepage for example (/index.php) calls several includes (header.php, footer.php, application_top.php etc etc). All these together make up the index.php page you see in your browser. You cannot view them separately. Hey Jason, Thanks for taking the time to explain that for me. I understand now how this works now. I appreciate your help and experience!! BD
Recommended Posts
Archived
This topic is now archived and is closed to further replies.