Forum Moderators: coopster
Parse error: parse error, unexpected T_STRING, expecting ']' in c:\inetpub\wwwroot\signup.php on line 3
=\ heres the first part of the php code for that file:
<?php
$DOCUMENT_ROOT = $_SERVER["c:\Inetpub\wwwroot\"];
include($DOCUMENT_ROOT . "helbreath-params.php");
include($DOCUMENT_ROOT . "account-params.php");
include($DOCUMENT_ROOT . "account-lib.php");
$accounts = get_accounts();
if(count($accounts) >= MAX_ACCOUNTS)
$error_message .= "The Account Creation Limit has been reached.<br>";
Its driving me crazy.. If anyone needs all the php files, i'm willing to e-mail them...
Thanks,
Zac
$DOCUMENT_ROOT = $_SERVER["c:\Inetpub\wwwroot\\"];
Looks to me like that forward slash by itself is escaping the ending quote, which is causing a mess.
WBF
<edit> You probably need to escape all the forward slashes. it is late and I am coded out
$DOCUMENT_ROOT = $_SERVER["c:\Inetpub\wwwroot"];
That got me further than I was before! :-) It displays the form at the bottom, but now its popped up with a few more errors with other parts of the script, but i'll check it out first, and let ya know my progress! Thanks again! =)
Zac
<snip>
im going to go crazy!
the function of it is, to create a certain user file on my server...
Take Care,
Zac
[edited by: jatar_k at 2:10 pm (utc) on July 11, 2003]
[edit reason] sorry no personal urls [/edit]
It also looks like it is set up to run on a Windows machine
Try replacing the forward slashes with back slashes and see what happens. As it is you are escaping things (see my first reply) that you don't want to escape.
Try entering the paths in their entire form. Instead of
include($DOCUMENT_ROOT . "helbreath-params.php");
try
include("c:\\Inetpub\\wwwroot\\helbreath-params.php");
etc.
Or, try moving the files in question to the same directory and simply use
include("helbreath-params.php");
etc.
I am pretty sure that this is the source of the problem, assuming you have installed everything in the proper places and your paths are correct.
WBF
Are you hosting it on your local machine or on a windows server? Either way, something isn't right with those paths.
I would first try willybfriendly's suggestion of
Or, try moving the files in question to the same directory and simply useinclude("helbreath-params.php");
at least then you can if the script actually works and find out if it is only the include oath that is giving you trouble.
The php files are in
d:\HBServerFinal\
And the account folder is at
d:\HBServerFinalized\Server\Account
I'll try the new suggestions =) (I'm no expert on php, but I like the challenge of trying to get something to work, a friend wanted me to try it out... I still have to change the error messages, and some text from spanish to english =) but other than that, Its been interesting)
Thanks again for your time, i'll get back to ya =)
(PS, Sorry about posting that link, didn't know I couldnt post my url =) if anyone wants to look at the code, i'll just E-Mail it at your request If thats allowed =) heh)