web files not opening

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

web files not opening

Postby pleacher46 » 09. August 2009 14:27

Hi
Not sure whether this is the correct place for this question, so apologies if wrong. I need to check some new coding on our website so I've downloaded the site to run on a local host. I could access the files but they kept opening via the web browser on our main server rather than the local one, although today I'm getting error 404 object not found. Xampp appears to be installed correctly as I get the home page via the local host. Any suggestions would be very welcome. I must add that I'm very new to this, our web developers have gone bust leaving some of the functionality of the site unfinished/missing despite receiving full payment... has left a nasty taste & burnt pocket. Thanks in advance.
pleacher46
 
Posts: 5
Joined: 09. August 2009 12:48

Re: web files not opening

Postby caltuna » 09. August 2009 22:42

Where did you put your files and what URL are you putting into your browser?

Files should go in htdocs folder, perhaps in a subfolder and you enter: http://localhost/[subfolder]

Make sure all the files are readable (use GetInfo for that.)

Before you do that, create at file called test1.php and put this in it and save it in htdocs
<?php
phpinfo();
?>

Then enter http://localhost/test1.php

We will at least make sure you can parse php files from your htdocs folder.
caltuna
 
Posts: 111
Joined: 05. May 2009 16:35

Re: web files not opening

Postby pleacher46 » 10. August 2009 00:18

Thanks for reply

I have put the files into the htdocs folder and am using the http://localhost path. All files are readable, but the test file is not opening "object not found" "Error 404" message is displayed with this on the bottom:

localhost
Mon Aug 10 00:14:26 2009
Apache/2.2.11 (Unix) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.7l PHP/5.2.9 mod_perl/2.0.4 Perl/v5.10.0

I am still able to open the XAMPP test page though, does that not mean that the files are parsing?
pleacher46
 
Posts: 5
Joined: 09. August 2009 12:48

Re: web files not opening

Postby pleacher46 » 10. August 2009 15:40

HI
Have managed to get the test page up and can now see the website but this is still going to the main server on-line and not to the files on the local host. On having a browse around on other sites I'm wondering do I need to change some code somewhere... is it really that involved or am I missing a simple trick?

Cheers
pleacher46
 
Posts: 5
Joined: 09. August 2009 12:48

Re: web files not opening

Postby caltuna » 11. August 2009 00:56

Maybe you have a re-direct in your code. Why not show us the index.php or html page you are trying to bring up in localhost.
caltuna
 
Posts: 111
Joined: 05. May 2009 16:35

Re: web files not opening

Postby pleacher46 » 11. August 2009 19:23

I can now run from the files on local host as long as I do not use any of the links to other pages on the site. e.g. if I type in the path to another gallery directly into the browser the page is displayed via the local host. However if I click on the gallery/page link from the home (or any other page) the page defaults to the main web server. This obviously impacts on the testing of new and altered elements of the site. As kindly suggested I have added the home.php file for your comments... thanks in advance.


<?php
/*
$Id: login.php 1739 2007-12-20 00:52:16Z hpdl $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

require('includes/application_top.php');

// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started)
if ($session_started == false) {
tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));
}

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN);

$error = false;
if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {
$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
$password = tep_db_prepare_input($HTTP_POST_VARS['password']);

// Check if email exists
$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");
if (!tep_db_num_rows($check_customer_query)) {
$error = true;
} else {
$check_customer = tep_db_fetch_array($check_customer_query);
// Check that password is good
if (!tep_validate_password($password, $check_customer['customers_password'])) {
$error = true;
} else {
if (SESSION_RECREATE == 'True') {
tep_session_recreate();
}

$check_country_query = tep_db_query("select entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$check_customer['customers_id'] . "' and address_book_id = '" . (int)$check_customer['customers_default_address_id'] . "'");
$check_country = tep_db_fetch_array($check_country_query);

$customer_id = $check_customer['customers_id'];
$customer_default_address_id = $check_customer['customers_default_address_id'];
$customer_first_name = $check_customer['customers_firstname'];
$customer_country_id = $check_country['entry_country_id'];
$customer_zone_id = $check_country['entry_zone_id'];
tep_session_register('customer_id');
tep_session_register('customer_default_address_id');
tep_session_register('customer_first_name');
tep_session_register('customer_country_id');
tep_session_register('customer_zone_id');

tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'");

// restore cart contents
$cart->restore_contents();

if (sizeof($navigation->snapshot) > 0) {
$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
$navigation->clear_snapshot();
tep_redirect($origin_href);
} else {
tep_redirect(tep_href_link(FILENAME_DEFAULT));
}
}
}
}

if ($error == true) {
$messageStack->add('login', TEXT_LOGIN_ERROR);
}

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LOGIN, '', 'SSL'));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<meta name="verify-v1" content="l5DMRLC2CPc8TC3Vp5pMwdCBImbTJIkdnb5EY7lxdKI=" >
<meta name="verify-v1" content="yyixeBRXJZ9TChUfYDWFJabQZMkCdrMTR0Osjj8CRMs=" >
<title>The Big Empty Wall | Contemporary Fine Art Giclee Prints, Posters & Canvases For Sale. </title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link href="../main2.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript"><!--
function session_win() {
window.open("<?php echo tep_href_link(FILENAME_INFO_SHOPPING_CART); ?>","info_shopping_cart","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();
}
//--></script>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>

<!-- the following div is positioned to be outside the screen for seo purposes. -->
<div id="seo">

<h1>We specialise in Giclee fine art reproductions and Giclee fine art photography printing, images are printed as a fine art cotton canvas print , or as a fine art etch (watercolour style), or as a photographic-style satin fine art poster. Our Giclee printing service uses Epson ultrachrome pigmented inks with a life expetancy of 75+ years under normal conditions, Canvas prints and wraps have two coats of varnish applied for added protection. All of our Giclee fine art is for sale online, just click on an image from one of our fine art galleries or provide your own image, then select a fine art print type, picture size, and frame type and add it to your shopping cart. We will send your Giclee prints to you securely and safely wrapped for maximum protection.</h1>


<h1>Our fine art artists are based mainly in Cambridge, Cambridgeshire, Essex, Norfolk and Suffolk. Our fine art prints can be viewed at our fine art gallery in Ickleton, Cambridgeshire - our online fine art gallery can also be viewed on this website. We have fine art print customers in Cambridgeshire, Essex, Bedfordshire, Suffolk, Norfolk, Hertfordshire, Avon, Berkshire, Borders, Buckinghamshire, Central, Cheshire, Cleveland, Clwyd, Cornwall, County Antrim, County Armagh, County Down, County Fermanagh, County Londonderry, County Tyrone, Cumbria, Derbyshire, Devon, Dorset, Dumfries and Galloway, Durham, Dyfed, East Sussex, Fife, Gloucestershire, Grampian, Greater Manchester, Gwent, Gwynedd County, Hampshire, Herefordshire, Highlands and Islands, Humberside, Isle of Wight, Kent, Lancashire, Leicestershire, Lincolnshire, Lothian, Merseyside, Mid Glamorgan, North Yorkshire, Northamptonshire, Northumberland, Nottinghamshire, Oxfordshire, Powys, Rutland, Shropshire, Somerset, South Glamorgan, South Yorkshire, Staffordshire, Strathclyde, Surrey, Tayside, Tyne and Wear, Warwickshire, West Glamorgan, West Midlands, West Sussex, West Yorkshire, Wiltshire, and Worcestershire.</h1>

<h1>The Big Empty Wall Fine Art Giclee Gallery</h1>
<!-- end seo -->
</div>
<div id="wrapper">
<div id="main_frame">

<div id="top_menu">
<ul>
<li><a href="/">Home</a></li>
<li><a href="../catalog/about.php">About Us</a></li>
<li><a href="../catalog/product_info_general.php">Product Information</a></li>
<li><a href="../catalog/info_for_artists.php">Info For Artists</a></li>
<li><a href="../catalog/terms_conditions.php">Terms & Conditions</a></li>
<li><a href="http://www.photoartgb.com">Photoartgb.com</a></li>
<li><a href="http://bigemptywall.blogspot.com/">Blog</a></li>
<li><a href="../catalog/contact.php">Contact Us</a></li>
</ul>
<!-- end top menu -->
</div>

<div id="top_flash">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1100','height','225','src','../flash/banner2','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../flash/banner2','toJSONString','' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1100" height="225">
<param name="movie" value="../flash/banner2.swf" />
<param name="quality" value="high" />
<embed src="../flash/banner2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1100" height="225"></embed>
</object>
</noscript><!-- end top flash -->
</div>
<div id="search_and_shopping2">
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><?php //require(DIR_WS_BOXES . 'search.php'); ?></td>
</tr>
</table>

</div>

<div id="content_frame2">

<div id="right_col2">
<div id="rightcol_full_width_containers2">
<!-- end rightcol_full_width_containers -->

<div id="welcome_text">
<!-- body //-->
<!-- body_eof //-->

</p>
<table width="100%" border="0" cellpadding="3" cellspacing="3" bgcolor="#FFFFFF" >
<tr>
<td width="250px" valign="top"><table border="0" width="250px" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left_home.php'); ?>
<!-- left_navigation_eof //-->

</table></td>
<!-- body_text //-->
<td width="100%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0" style="padding-right: 20px;">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>

<div id="flash_slideshow" style="float:right">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','430','height','245','src','gallery_gal','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','gallery_gal' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="430" height="245">
<param name="movie" value="gallery_gal.swf" />
<param name="quality" value="high" />
<embed src="gallery_gal.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="430" height="245"></embed>
</object>
</noscript><!-- end flash_slideshow -->
</div>
<div style="width: 350px;">
<h1>Welcome to the Big Empty Wall Gallery</h1>
<p>Whether you are looking to brighten up your walls at home, in the office or you are a corporate buyer of art, we have contemporary fine art prints, posters & canvases to suit all walls. </p>
<p>We like to let our images do the talking for us, but if you need more information on our products and
services you can find most answers on the <a href="http://www.bigemptywall.co.uk/catalog/product_info_general.php">Product Information</a> and <a href="http://www.bigemptywall.co.uk/catalog/about.php">About Us</a> pages. If you need any further information, or have some feedback on our site please Contact Us. If you are looking to have your own images printed on to our &quot;WrapIt!&quot; canvas wraps, as an Acrylic Sandwich Print or as greetings cards please use the &quot;Your Images&quot; link in our Galleries section below. Read the latest news from us on our blog by clicking <a href="http://bigemptywall.blogspot.com/">here</a>.</p>
<p>Have a look through our artists fine art galleries and see what catches your eye...</p>
</div>
<hr style="clear:both; visibility:hidden;" />

<h1>This way to see the whole picture.....</h1>

<div id='pictures'>

<?php
// -------------------------------------
// added 08/07/09 by Neil Solomon
// -------------------------------------
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
while ($categories = tep_db_fetch_array($categories_query)) {

//print "id: ".$categories['categories_id'].", name: ".$categories['categories_name'].", image: ".$categories['categories_image']."<br>";

$cID = $categories['categories_id'];
$cName = $categories['categories_name'];
$cImg = $categories['categories_image'];
?>
<div id="individual_gallery">
<a href="index.php?cPath=<?php print $cID; ?>"><img src="images/<?php print $cImg; ?>" title="<?php print $cName; ?>" width="170" height="170" border="0" /></a>
<p><a href="index.php?cPath=<?php print $cID; ?>"><?php print $cName; ?></a></p>
</div>
<?php
}
// -------------------------------------
// end
// -------------------------------------
?>

</div>

<!-- end rightcol_full_width_containers -->
</div>



</td>
</tr>
</table></td>
</tr>
</table>
</td>
<!-- body_text_eof //-->
</tr>
</table>
<p><br/>
</p>
</div>
</div>



<!-- end right_col -->
</div>



<!-- end content_frame -->
</div>


<div id="footer">
<ul>
<li><a href="/">Home</a></li>
<li><a href="../catalog/about.php">About Us</a></li>
<li><a href="../catalog/product_info_general.php">Product Information</a></li>
<li><a href="../catalog/info_for_artists.php">Info For Artists</a></li>
<li><a href="../catalog/terms_conditions.php">Terms & Conditions</a></li>
<li><a href="http://www.photoartgb.com">Photoartgb.com</a></li>
<li><a href="http://bigemptywall.blogspot.com/">Blog</a></li>
<li><a href="../catalog/contact.php">Contact Us</a></li>
</ul>

<p>&copy; Copyright 2009 PhotoArt GB Ltd. All Rights Reserved.</p>
<!-- end footer -->
</div>

<!-- end main frame -->
</div>

<!-- end wrapper -->
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3846566-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
pleacher46
 
Posts: 5
Joined: 09. August 2009 12:48

Re: web files not opening

Postby caltuna » 12. August 2009 05:51

Code: Select all
<li><a href="/">Home</a></li>
<li><a href="../catalog/about.php">About Us</a></li>
<li><a href="../catalog/product_info_general.php">Product Information</a></li>
<li><a href="../catalog/info_for_artists.php">Info For Artists</a></li>
<li><a href="../catalog/terms_conditions.php">Terms & Conditions</a></li>
<li><a href="http://www.photoartgb.com">Photoartgb.com</a></li>
<li><a href="http://bigemptywall.blogspot.com/">Blog</a></li>
<li><a href="../catalog/contact.php">Contact Us</a></li>


You've got some hard-coded links in the html above. Which one is he gallery? Anyway, this is NOT an XMAPP issue, it is an issue with how you coded the web page.

Al
caltuna
 
Posts: 111
Joined: 05. May 2009 16:35

Re: web files not opening

Postby pleacher46 » 12. August 2009 14:37

Thanks for that, it's as I feared the site has not been done to our specification. I refer back to my original post: the web designers/developers have gone bust, hence me trying to add the required functionality. However not anyone's problem but my own... hard lesson learnt on folk involved with web design!
Thanks for your interest & comments.

Bob.
pleacher46
 
Posts: 5
Joined: 09. August 2009 12:48


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 4 guests