473,320 Members | 2,048 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,320 software developers and data experts.

$txt line

http://hashphp.org/pastebin.php?format=plain&pid=8181 the $txt line
here is giving me problems along with the two if lines below

complaint from log:
[client 207.71.33.86] PHP Notice: Use of undefined constant depend -
assumed 'depend' in /var/www/html/billingticket/sliputils.php3 on line
203
[client 207.71.33.86] PHP Notice: Use of undefined constant problem -
assumed 'problem' in /var/www/html/billingticket/sliputils.php3 on line
199
[client 207.71.33.86] PHP Notice: Use of undefined constant problem -
assumed 'problem' in /var/www/html/billingticket/sliputils.php3 on line
200
[client 207.71.33.86] PHP Notice: Use of undefined constant sid -
assumed 'sid' in /var/www/html/billingticket/sliputils.php3 on line 203

this is php3 app now on php 4.3.9
its pissed

Aug 18 '06 #1
2 1919
Rik
gavino wrote:
http://hashphp.org/pastebin.php?format=plain&pid=8181 the $txt line
here is giving me problems along with the two if lines below

complaint from log:
[client 207.71.33.86] PHP Notice: Use of undefined constant depend -
assumed 'depend' in /var/www/html/billingticket/sliputils.php3 on line
203
[client 207.71.33.86] PHP Notice: Use of undefined constant problem -
assumed 'problem' in /var/www/html/billingticket/sliputils.php3 on
line 199
[client 207.71.33.86] PHP Notice: Use of undefined constant problem -
assumed 'problem' in /var/www/html/billingticket/sliputils.php3 on
line 200
[client 207.71.33.86] PHP Notice: Use of undefined constant sid -
assumed 'sid' in /var/www/html/billingticket/sliputils.php3 on line
203

this is php3 app now on php 4.3.9
its pissed
Well, the complaining about sid I understand:
Use :
echo "<option value=\"{$row['sid']}\" $sel{$row['sid']} - $txt\n";
Instead of:
echo "<option value=\"$row[sid]\" $sel$row[sid] - $txt\n";

http://nl2.php.net/manual/en/languag....array.foo-bar

The rest is not clear to me, unless your not pasting your actual code.

Grtz,
--
Rik Wasmus
Aug 18 '06 #2
*** gavino escribió/wrote (17 Aug 2006 21:42:26 -0700):
[client 207.71.33.86] PHP Notice: Use of undefined constant depend -
assumed 'depend' in /var/www/html/billingticket/sliputils.php3 on line
203
In PHP you can create constants:

define('foo', 'I am a constant');
echo foo; // Prints: I am a constant

When you use a constant you haven't defined, PHP makes an educated guess:

echo bar; // Prints: bar

PHP guesses that when you say bar you really meant 'bar'.

this is php3 app now on php 4.3.9
You just have different settings after upgrading. Formerly, you instructed
PHP not to inform about notice messages. The fact, now and then, is that
your code is missing several quotes ;-)
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Aug 18 '06 #3

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

Similar topics

3
by: m|sf|t | last post by:
All, Is it possible to use PHP to open/read a TXT file (i.e. IP.TXT) that contains ip addresses (1 per line), remove any duplicates found, and re-write the file back out to IP_NEW.TXT ? The...
2
by: Techie Guy | last post by:
I'm trying to process a tab delimited file where each line in the file has around 12 tab delimited elements. My problem is the elements are surrounded by "quotes" and I need the script to remove...
6
by: Ninad | last post by:
Hi all, I have some music songs in .txt format. The file names are 1.txt, 2.txt, 3.txt, etc. The fortmat of the .txt files are as follows: ------------Format starts------------ % \startsong...
13
by: mloichate | last post by:
I must read a very heavy-weight text plain file (usually .txt extension) )and replace a given character with another given character in all text inside the file. My application was working pretty...
3
by: zbenta | last post by:
Hi you guys. I need some help with a program I've written. I can not seam to find the reason for the error that ocurrs. But let me explain. I have a txt file that works as a database to store...
2
by: sani8888 | last post by:
Hi everybody I am a beginner with C++ programming. And I need some help. How can I start with this program *********** The program is using a text file of information as the source of the...
2
by: Dreadful | last post by:
I've got multiple Text Boxes and when I click a Button the TextBoxes.Text writes inside of a .txt file. It works fine, exactly how I want it to look: FileOpen(1, "C:\Blah\Blah\Blah\Test01.txt",...
0
by: programming | last post by:
hi all, here is the php code! i am trying to use to 'edit' hyperlink to edit txt in member.txt. Problem is that it reads the values ok into an array, however when i attempt and update new...
2
by: programming | last post by:
Hey all i am trying to write data that i have stored in a session back to a member.txt, but i am unable to work out why it wont write. It displays the data i have stored in the session ok, but it...
4
by: lilyumestar | last post by:
I have project I have to do for class. We have to write 4 different .java files. Project2.java HouseGUI.java House.java HouseSorting.java I already finish House.java and I need to work on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.