|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I have a webpage - simple one really.
Its supposed to take in one variable in php and print this out using xml and svg. Here is the complete code: PHP Code:
You can see it in action here: follow this link (if the code snipplet above doesn't show correctly, just view source at the URL) Now... The php code isn't even parsed, and its returning a strange error message which I do not understand... ANYONE have ANY idea as to why this is happening? The person that wrote the code says it works fine on his server, so I'm wondering what's the matter here... Are the server settings screwed up or?? HELP!!!
__________________
Torkil Johnsen Never underestimate the power of stupid people in large groups... ---------------------------(òÓ,)---- |
|
#2
|
|||
|
|||
|
Your files has a .psvg extension. PHP will only parse pages with .php or .php3 (and sometimes .php4) extensions. It's not parsing your PHP code and it's interpreting your PHP code as an XML file. Change your file name to index.php and I bet it will work. Also when you are mixing PHP and XML, you should always start a PHP block with a "<?php" instead of just a "<?" It goofs up occasionally if you do not do this.
|
|
#3
|
|||
|
|||
|
Wow...
As easy as that, huh?
Well it worked just fine here in my end, so I hope you on your side can settle for a 'thank you' ... *amazed* On a sidenote: If .psvg is interpreted as .php, like .php3, .php, and .inc, should the index.psvg-file not have worked just fine then, or?? Thanks again... |
|
#4
|
|||
|
|||
|
Of course you could also use the .psvg extension, but the server has to be configured for this. This is not the case on most servers, but if you have your own one you could easily configure this.
__________________
Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems. - Jamie Zawinski, in comp.lang.emacs |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XML expertise needed! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|