Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOtherTutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old December 4th, 2003, 09:06 AM
cateyes cateyes is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cyprus
Posts: 68 cateyes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Processing XML tutorial mistake?

I am running the script from the tutorial Processing XML with PHP by Timothy Boronczyk

http://codewalkers.com/tutorials.php?show=50&page=1

I keep getting this error:

Notice: Use of undefined constant type - assumed 'type' on line 14

And the output does not match the author's output. This is my output:

The following compiled languages were found... 1. 2. 3. C 4. 5. 6. Fortan 7. 8. 9. Pascal 10. 11. The following interpreted languages were found... 1. 2. 3. PHP 4. 5. 6. Python 7. 8. 9. Ruby 10. 11.

Line 14 is this line:

$flag = $attributes[type];

Can someone please tell me what I have done wrong?

thanks

Reply With Quote
  #2  
Old December 20th, 2003, 05:07 AM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Processing XML tutorial mistake?

Sorry... it appears there's an error with the tutorial.

Line 14 should read:
$flag = $attributes["type"];

PHP is assuming type has been set as a constant. Quotes are needed for it to be correctly interpreted as a string.

I'll alert Matt and have him correct the error.

-Tim

Reply With Quote
  #3  
Old December 23rd, 2003, 02:52 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Processing XML tutorial mistake?

fixed

Reply With Quote
  #4  
Old December 23rd, 2003, 07:55 AM
cateyes cateyes is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cyprus
Posts: 68 cateyes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Processing XML tutorial mistake?

thanks!!!

Reply With Quote
  #5  
Old June 22nd, 2005, 11:53 PM
microShaft microShaft is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 microShaft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Processing XML tutorial mistake?

HI,

can some one help im using tim's tutorial, but my end results are a lot different. Im not sure what i have done wrong. i just copied and pasted the script direct

The following compiled languages were found...
1.
2.
3. C
4.
5.
6. Fortan
7.
8.
9. Pascal
10.
11.

The following interpreted languages were found...
1.
2.
3. PHP
4.
5.
6. Python
7.
8.
9. Ruby
10.
11.

Thanks in advance

Reply With Quote
Reply

Viewing: Codewalkers ForumsOtherTutorials > Processing XML tutorial mistake?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway