Re: Need Help php error

Originally Posted by
bhupendra2895
And you can simply do this too
PHP Code:
<?php
include '54353.php';
?>
... if and only if the page in question resides in the root directory -- and, let's face it, if you have documents of multiple types (or multiple categories of documents) and they all appear to be in the same directory, your URLs will wind up being far from friendly.
Requiring us to hard-code our public HTML directory is an unfortunate misconfiguration decision IMHO. We were, until recently, able to use $_SERVER["DOCUMENT_ROOT"] to point to the public HTML directory for our accounts, and that is the only sane way to set up a shared server. The PHP you write should require the minimum possible amount of configuration to move from server to server, and with this move we are being forced to hardcode a path to even get to a configuration file. Not very user (or developer) friendly.
“Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
"It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)