Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Warning


neuron

Recommended Posts

Posted

Hi all, i am a beginner in this project, and i have an issue below :

 

PHP Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in C:\Documents and Settings\Neuron\My Documents\My Web Sites\public_html\shop\index.php on line 13 PHP Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.;C:\php5\pear') in

 

C:\Documents and Settings\Neuron\My Documents\My Web Sites\public_html\shop\index.php on line 13

 

Why does this always comes out when i try to preview my index.php file in web browser. What do i need to do ?

 

Your help is gladly appreciated.

Posted
Hi all, i am a beginner in this project, and i have an issue below :

 

PHP Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in C:\Documents and Settings\Neuron\My Documents\My Web Sites\public_html\shop\index.php on line 13 PHP Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.;C:\php5\pear') in

 

C:\Documents and Settings\Neuron\My Documents\My Web Sites\public_html\shop\index.php on line 13

 

Why does this always comes out when i try to preview my index.php file in web browser. What do i need to do ?

 

Your help is gladly appreciated.

 

 

check your configure.php file and set it accordingly. then it will work.

When I was born, I was cryed and everyone around me was smiling.

Live our life so at the end,

I am the one who is smiling and everyone around me is crying.

Posted

Is it the one that is placed --> /www/shop/includes/configure.php ? mine is set to 0644. Is it correct?

Posted
Is it the one that is placed --> /www/shop/includes/configure.php ? mine is set to 0644. Is it correct?

 

 

That's ok. You need to set path properly. can you post your configure.php file??

When I was born, I was cryed and everyone around me was smiling.

Live our life so at the end,

I am the one who is smiling and everyone around me is crying.

Posted

<?php

define('HTTP_SERVER', 'http://phaseinteriors.com');

define('HTTPS_SERVER', 'https://phaseinteriors.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'phaseinteriors.com');

define('HTTPS_COOKIE_DOMAIN', 'phaseinteriors.com');

define('HTTP_COOKIE_PATH', '/shop/');

define('HTTPS_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/shop/');

define('DIR_WS_HTTPS_CATALOG', '/shop/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/phasent/public_html/shop/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'phasent_osc1');

define('DB_SERVER_PASSWORD', 'xxx');

define('DB_DATABASE', 'phasent_osc1');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Posted

i just did set the configue.php to 0777, and there is a message on my web :

 

Warning Warning: I am able to write to the configuration file: /home/phasent/public_html/shop/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

What do i do if this happen ?

Posted
Is it the one that is placed --> /www/shop/includes/configure.php ? mine is set to 0644. Is it correct?

file is ok on web, but you need to fix your permissions.

 

With the error, are you trying to view the file on your hard disk?

Posted
<?php

define('HTTP_SERVER', 'http://phaseinteriors.com');

define('HTTPS_SERVER', 'https://phaseinteriors.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'phaseinteriors.com');

define('HTTPS_COOKIE_DOMAIN', 'phaseinteriors.com');

define('HTTP_COOKIE_PATH', '/shop/');

define('HTTPS_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/shop/');

define('DIR_WS_HTTPS_CATALOG', '/shop/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/phasent/public_html/shop/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'phasent_osc1');

define('DB_SERVER_PASSWORD', 'xxx');

define('DB_DATABASE', 'phasent_osc1');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

 

your path is correct I show your website it is working fine. where you got this error???

When I was born, I was cryed and everyone around me was smiling.

Live our life so at the end,

I am the one who is smiling and everyone around me is crying.

Posted

You have lot of work to be done.

 

 

Warning: I am able to write to the configuration file: /home/phasent/public_html/shop/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

 

set chmod 644 to configure.php file on server.

When I was born, I was cryed and everyone around me was smiling.

Live our life so at the end,

I am the one who is smiling and everyone around me is crying.

Posted

its on the top page of the inline frame i made.

 

www.phaseinteriors.com --> ..online store --> on link log in, my account, etc

Posted
You have lot of work to be done.

Warning: I am able to write to the configuration file: /home/phasent/public_html/shop/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

set chmod 644 to configure.php file on server.

 

yupe.. i have alot of work to get done :blink: i do not know anythin in .php.. but still tryin to get my page on line =)

Posted

thanks.. i did set configure.php back to 0644, and there is no more warning message anymore.

 

what do i do next.. ?

Posted
thanks.. i did set configure.php back to 0644, and there is no more warning message anymore.

 

what do i do next.. ?

 

It depends on you! whats your priority??

Are you still facing problem or not?

When I was born, I was cryed and everyone around me was smiling.

Live our life so at the end,

I am the one who is smiling and everyone around me is crying.

Posted

So far, i am not having problem anymore.. it just that i am totally blind with php programmin. Is there any suggestion what program i need to use to work with .php file. I have downloaded xampp and rapid php editor 2007. Are you familiar with these programs ? Thanks so much. =)

Posted
So far, i am not having problem anymore.. it just that i am totally blind with php programmin. Is there any suggestion what program i need to use to work with .php file. I have downloaded xampp and rapid php editor 2007. Are you familiar with these programs ? Thanks so much. =)

 

I am using XAMPP for windows and LAMP for linux last two years. You may download from net. it is free.

and crimson editor (it is also free) or Macromedia dreamweaver but it is not free..

When I was born, I was cryed and everyone around me was smiling.

Live our life so at the end,

I am the one who is smiling and everyone around me is crying.

Posted

Cool.. i'll try these programs.. =) before tryin.. is the program macromedia dreamweaver is able to view the .php files with images on it. So i can modify it visually rather than thru code. Thanks =)

Posted
Cool.. i'll try these programs.. =) before tryin.. is the program macromedia dreamweaver is able to view the .php files with images on it. So i can modify it visually rather than thru code. Thanks =)

Macromedia dreamweaver Provides you three type

like

1.Coding view (here you can see only code)

2. Split view (here you can see ur code as well as design)

3. Design View (design only)

 

try it.

it is free for 30 days.

When I was born, I was cryed and everyone around me was smiling.

Live our life so at the end,

I am the one who is smiling and everyone around me is crying.

Posted
Macromedia dreamweaver Provides you three type

like

1.Coding view (here you can see only code)

2. Split view (here you can see ur code as well as design)

3. Design View (design only)

 

try it.

it is free for 30 days.

Dreamweaver is a waste of money for what you want (imho)

Posted

really? hmmm.. so what kind of program do i need to use ? is there a good program around ?

Posted
really? hmmm.. so what kind of program do i need to use ? is there a good program around ?

You said you have wamp, so use a text editor and view your changes by looking via loacl host.

 

If it still worked, I would be using wordstar, however

 

PHP Designer 2007 - Personal for editing

Winmerge for merging

are just two of the many options available.

 

Others will recommend other programs, it depends on what you get used to using.

I use ultraedit for my text edits, but it is not free.

I do use dreamweaver, but only for html files.

Posted
You said you have wamp, so use a text editor and view your changes by looking via loacl host.

 

If it still worked, I would be using wordstar, however

 

PHP Designer 2007 - Personal for editing

Winmerge for merging

are just two of the many options available.

 

Others will recommend other programs, it depends on what you get used to using.

I use ultraedit for my text edits, but it is not free.

I do use dreamweaver, but only for html files.

 

Thanks Coopco!

Actualy I am using vi editor or in windows crimson editor

But it does not show the design so sometimes i uses dreamweaver!

When I was born, I was cryed and everyone around me was smiling.

Live our life so at the end,

I am the one who is smiling and everyone around me is crying.

Posted

:D finally i got my site workin now, thanks a bunch for the help.. :)

Archived

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

×
×
  • Create New...