473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Not sure how to write main(common.inc) or main(table_names.inc)

Hello all,
You may wish to skip to the "-------" part

I apologize for being so new to this community as to not have updated my user profile. I intend on posting IT jobs soon, becoming a regular contributor where possible, and to giving back whatever I can.

Background of scenario: I have recently taken up programming as a hobby and have been utilizing my intuition and a lot of time to learn how to enhance my company's website (which I just built...first try!!).>>>
-------------------------------
I am trying to add employee login functionality /timekeeping capability to enhance our website. I have been testing my ability to add this module on my personal site and have not yet been successful. Upon loading the index.html for the timesheet module - located: christophercargile.com/webserver3/index.html - an "main(table_names.inc) not found" error and "main(common.inc) not found" error are returned.

I tried defining these "vars?" but do not know what they should be. Please help if possible or advise..Any comments, feedback, suggestions would be helpful and much appreciated.

Thank you VERY much,
Chris

Note: please visit my site to download, view the code.
http://christophercargile.com/Download.html
Aug 30 '07 #1
3 1336
pbmods
5,821 Expert 4TB
Heya, Chris. Welcome to TSDN!

Have a look at this page for more information on what might be going wrong.
Aug 30 '07 #2
My apologies...you can download the files here:

http://76.163.116.68/Download.html
Sep 6 '07 #3
pbmods
5,821 Expert 4TB
Heya, Chris.

You may want to expand your include_path:
Expand|Select|Wrap|Line Numbers
  1. ini_set('include_path', ini_get('include_path') . ":{$_SERVER['DOCUMENT_ROOT']}/path/to/includes/dir");
  2.  
It seems like the problem is that you're calling require(), but PHP doesn't know where the files you're trying to require() are.
Sep 6 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Phester | last post by:
If a file has a .inc extension, or if it has a .inc.php extension, is it treated differently by the php interpreter? Or is it just a convention? I've been calling my included files filename.php...
5
by: vishal | last post by:
hello vishal here. i have seen some scripts which includes file like include('time.inc') so can anyone tell me what this file contain. and what is extension
14
by: rogerclive | last post by:
Perhaps, there is no bigger sleazy company in the entire Maple Republic ( Canada ) than Matrox Graphics Inc. I paid $100+ through my nose circa 1999 for Matrox Millenium II and Mystique. It...
5
by: Mike Barnard | last post by:
Hi. I suppose this is really a HTML question, but I'm sure that someone can help. Having got a working set of menu's on the left of a test page, I note that I have got several copies of it,...
5
by: SAI | last post by:
In old asp, we like to write some "inc" file for including some common shared functions between pages. How to do it in asp.net? should I use .cs file to do it? Besides, should I compile these .cs...
20
by: _mario.lat | last post by:
hallo, I use PHP and I'd like to not write in hardcoded way password and login to access to mysql. how to not write password in code for access to mysql? How can I do? I'd like that who see my...
0
by: musosmiffy | last post by:
Hi, I have been trying to get the following working for days - I wonder if anyone could help me? I am trying to list a set of database entries as a newspaper column. I am using classic ASP (not...
10
by: jpollack | last post by:
I don't know JavaScript but have been tasked to write a script that will change the value of a Boolean variable to the word "Yes" on a table row. I have been trying to achieve this based on my...
4
by: CES | last post by:
All, How do you write out a variable in a ASPX .inc?? I've used the following in my code and it worked until I changed the date & MyWebSite, to a server side write... is there any way of getting...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.