Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

PHP Tree Script Not Working

I downloaded a script from DHTML Goodies and made no modifications
http://www.dhtmlgoodies.com/index.html?whichScript=folder_tree

But it gives me an error that I can't solve!
Parse error: syntax error, unexpected $end in dhtmlgoodies_tree.class.php on line 257

tree.zip
0
hankknight
Asked:
hankknight
  • 3
  • 2
1 Solution
 
MortenSlotKristensenCommented:
Could I possibly see your code in which your make use of the downloaded software?
0
 
den4bCommented:
I just tried it on PHP 5.2.6, with sample files that are included in the original download - it works fine.

The only thing I did is renamed example file "dhtmlgoodies-tree.html" to "dhtmlgoodies-tree.php" (only because my php is configured to parse only *.php files) and opened it up through localhost...
0
 
den4bCommented:
Also, line 257 in "dhtmlgoodies_tree.class.php" is actually the end of the file, with only "?>" closing tag on that line (from the original download). So you must have done some modifications which broke it...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
hankknightAuthor Commented:
I just did a fresh download and it still gives me an error!  This is the code that I am using:
http://fds2432.googlepages.com/DHTMLtree.zip

If the code works on your server could you please upload a working version?
Thanks!
0
 
den4bCommented:
I don't really understand what you want me to upload, because the stuff from your last link just works, no errors of any kind... All I did is unpacked it to the local server...

Try setting up a new/clean web server, for example: WAMP (http://www.wampserver.com/en).
0
 
hankknightAuthor Commented:
Thanks for the help!

The problem was that the script uses short tags in a few places:
<? ?>

My server requires full tags:
<?php ?>
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now