Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A Newbie looking for help, plz plz plz help me


noob3000

Recommended Posts

Since my ISP is now allowed to upload .htaccess file to their server and i can't get a free upload-script program, so i was told by someone to make an index.php in my catalog directory in order to redirect to default.php and everything was fine untill i made my subdomain to my catalog directory it came out some errors that i don't understand, can some nice people take a look at it and help me to fix it?

 

my subdomain is http://shop.digitcentury.com pointing to http://www.digitcentury.com/catalog

 

the errors are

 

Warning: ChDir: No such file or directory (errno 2) in /catalog/index.php on line 2



Warning: Cannot send session cookie - headers already sent by (output started at /catalog/index.php:2) in /catalog/includes/functions/sessions.php on line 67



Warning: Cannot send session cache limiter - headers already sent (output started at /catalog/index.php:2) in /catalog/includes/functions/sessions.php on line 67

 

and my index.php look like this

 

<?php 

chdir('catalog'); 

include 'default.php'; 

?>

 

Thank you very much

Link to comment
Share on other sites

I have no clue:

 

perhaps not even a index.php at all.

 

why not just a index.html with this.

 

 

 

<HTML> 

<HEAD> 

<META HTTP-EQUIV="refresh" content="1;URL=http://www.yoursite.com/newpage.php"> 

<TITLE>Page has moved</TITLE> 

</HEAD> 

<BODY> 

</BODY> 

</HTML>

 

 

open up notepad copy that to it and save as index.html

 

 

who knows

 

unless you really are bent on php

 

 

then maybe

 

 

 

 

 

 

 

<?php



<HTML> 

<HEAD> 

<META HTTP-EQUIV="refresh" content="2;URL=http://www.yoursite.com/newpage.htm"> 

<TITLE>Page has moved</TITLE> 

</HEAD> 

<BODY> 

whatever you want to write 

</BODY> 

</HTML> 



?>

 

 

but as allways i am just guessing :roll:

:!: first rule: Allways make a backup of a file before you change it. & All code is CASE Sensitive

:!: second rule: Never copy and paist code unless you know it works.

:!: third rule: If you do not know ask.

:!: final rule: Have patience.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...