Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PHP Tree Script Not Working

Posted on 2008-11-03
6
Medium Priority
?
288 Views
Last Modified: 2011-10-19
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
Comment
Question by:hankknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:MortenSlotKristensen
ID: 22866500
Could I possibly see your code in which your make use of the downloaded software?
0
 
LVL 6

Expert Comment

by:den4b
ID: 22866513
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
 
LVL 6

Expert Comment

by:den4b
ID: 22866547
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 16

Author Comment

by:hankknight
ID: 22866739
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
 
LVL 6

Accepted Solution

by:
den4b earned 2000 total points
ID: 22866914
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
 
LVL 16

Author Comment

by:hankknight
ID: 22867355
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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question