|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
RE: Processing XML tutorial mistake?
fixed
|
|
#4
|
|||
|
|||
|
RE: Processing XML tutorial mistake?
thanks!!!
|
|
#5
|
|||
|
|||
|
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 |
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > Processing XML tutorial mistake? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|