473,396 Members | 1,726 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.

Whats the problem

Zor
Hi I have a script for a shopsystem on a Linux. There it works fine.
But when I try to run it on my Windows machine, PHP says things like

Notice: Use of undefined constant dbname - assumed 'dbname' in
c:\apache\htdocs\aposhop\testshop\classes\xxx.clas s.php on line 77

Notice: Use of undefined constant user - assumed 'user' in
c:\apache\htdocs\aposhop\testshop\classes\xxx.clas s.php on line 78

Notice: Use of undefined constant pass - assumed 'pass' in
c:\apache\htdocs\aposhop\testshop\classes\xxx.clas s.php on line 79

Notice: Use of undefined constant css - assumed 'css' in
c:\apache\htdocs\aposhop\testshop\classes\xxx.clas s.php on line 80

On Windows I run PHP 4.3.2
On Linux runs PHP 4.3.1

Does anybody know how to fix it? Please help...
Jul 16 '05 #1
1 3270
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Whilst lounging around on 18 Jul 2003 03:13:16 -0700,
se***************@t-online.de (Zor) amazingly managed to produce the
following with their Etch-A-Sketch:
Hi I have a script for a shopsystem on a Linux. There it works
fine. But when I try to run it on my Windows machine, PHP says
things like

Notice: Use of undefined constant dbname - assumed 'dbname' in
c:\apache\htdocs\aposhop\testshop\classes\xxx.clas s.php on line 77

Notice: Use of undefined constant user - assumed 'user' in
c:\apache\htdocs\aposhop\testshop\classes\xxx.clas s.php on line 78

Notice: Use of undefined constant pass - assumed 'pass' in
c:\apache\htdocs\aposhop\testshop\classes\xxx.clas s.php on line 79

Notice: Use of undefined constant css - assumed 'css' in
c:\apache\htdocs\aposhop\testshop\classes\xxx.clas s.php on line 80

On Windows I run PHP 4.3.2
On Linux runs PHP 4.3.1

Does anybody know how to fix it? Please help...

I have an idea.. yes.. thanks =)

Oh.. you wanted the answer... the answer is as obvious as your code
is.

Why not show some of your code so that others can see it and possibly
assist?

For now.. look for your missing $(s).

Regards,

Ian

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPxfKGmfqtj251CDhEQI7BQCgxZcs2sNQjaay7rCUGy3Byh UlAf8An1wu
pke8ZoDwRgwAvFT7N9ab5dpZ
=MYJ7
-----END PGP SIGNATURE-----

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.
Jul 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: asdf | last post by:
Hello! Can someone tell me whats wrong with this piece of code: Option Compare Database Option Explicit Sub retrieve() Dim rst As ADODB.Recordset Dim i As Integer
4
by: David Lozzi | last post by:
OK simple question. Whats the default value for an string() array? sub LoadStuff(byval one as integer, byval two as string, optional byval three() as string = ??) Its driving me nuts! ...
8
by: buc | last post by:
I have a simple combox on the screen that is bound via a datareader to a stored proc in sql that returns a simple string. The code is 'load stored proc then dReader =...
3
by: Vaidas Gudas | last post by:
I has web project on virtual pc, maked with framework 2.0. there I was used the method role.roleexists("admin") and everything was worked good. but when i replace this project on my local machine,...
4
by: sophie | last post by:
Whats going on here: Read in a number as a string: scanf("%s", &number); number = 12345, for arguements sake Print it like this its fine:
7
by: Mike Barnard | last post by:
It's a simple test... VERY SIMPLE. But... In an external stlyesheet some attributes don't show. With the same styles cut and pasted to the test internally it works as expected. Anyone tell...
4
by: LoneHunter01 | last post by:
Basically, I just need a general direction on where to go for this. Yes, this is for a school project, though it's strictly an optional one (and I have tried many solutions, one in-depth). We've...
7
by: Paulo | last post by:
Hi, what is diference between: File -New Web Site and File -New Project -VB/C# -Web Application ?????? VS 2005
1
by: x40 | last post by:
I try to learn python thru solving some interisting problem, found google trasure hunt, write first program ( but cant find whats wrong). # Unzip the archive, then process the resulting files to...
26
by: Muzammil | last post by:
whats the beauty of "malloc" over "new" why its helpful for programmer.for its own memory area.??
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...

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.