PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am using linux+apache+php+mysql solution now(I've never used it before).
the problems are:
(1) If I use <?php .......?> style, it works.
But if I use <? ...... ?>, apache cannot interpret the codes, and only render all the codes directly into my browser.
(2) I've set the value of DocumentRoot in httpd.conf, but when I use the following codes to display the value of $DOCUMENTROOT, I can see nothing:
<?php print $DOCUMENTROOT; ?>
so the following codes don't work either:
<?php include ($DOCUMENTROOT."/files/header.inc"); ?>
I've tried a long time, anyone who can help me, I will appreciate it very much.
but if you can't edit the script, which i dont see why you can't, the script wont work anyways. Your variable isn't $DOCUMENT_ROOT, which it should be, its $DOCUMENTROOT and that wont work, at least i highly doubt that it will. And if the script is on your server then why can't u edit it??