PDA

View Full Version : PHP Help... T_STRING



Akka4kz
November 20th, 2005, 08:35
Ive got a script of imageuploading.....
the domain is www.imagefx.be
wen i try to upload image this eror comes
Parse error: parse error, unexpected T_STRING in /home/ammar/public_html/ihs/config.php on line 50


These are the settings

(50)$db_server = "localhost";
(51)$db_name = "ammar_imagehosting";
(52)$db_user = "ammar";
(54)$db_password = "******";

themoose
November 20th, 2005, 09:45
is the script including any other file(s)?

Akka4kz
November 20th, 2005, 10:09
ive sorted that out but now theres another eror!!!


Warning: imagecreatefromjpeg(/home/ammar/public_html/home/ammar/public_html/imagesHxB99200.jpg): failed to open stream: No such file or directory in /home/ammar/public_html/ihs/uploader.php on line 90

Warning: imagesx(): supplied argument is not a valid Image resource in /home/ammar/public_html/ihs/uploader.php on line 97

Warning: imagesy(): supplied argument is not a valid Image resource in /home/ammar/public_html/ihs/uploader.php on line 98

Warning: copy(/home/ammar/public_html/home/ammar/public_html/imagesHxB99200.jpg): failed to open stream: No such file or directory in /home/ammar/public_html/ihs/uploader.php on line 123

Canuckkev
November 20th, 2005, 12:29
Well...you sure that "imagesHxB99200.jpg" is the file you are trying to open? Perhaps "/home/ammar/public_html/home/ammar/public_html/images/HxB99200.jpg"?

themoose
November 20th, 2005, 13:28
you entered a value twice by accident

find in your script

/home/ammar/public_html/home/ammar/public_html/ (images/?)

and replace it with

/home/ammar/public_html/ (images/?)

Akka4kz
November 20th, 2005, 13:57
you entered a value twice by accident

find in your script

/home/ammar/public_html/home/ammar/public_html/ (images/?)

and replace it with

/home/ammar/public_html/ (images/?)

Thanks moose ive done it
I did this:
$server_root = "/home/ammar/public_html";
$server_directory = "/home/ammar/public_html";

themoose
November 20th, 2005, 14:10
:) glad to help ;)

Canuckkev
November 22nd, 2005, 21:27
Haha...even after copying and pasting, I didn't notice that...and it wasn't even that late.

Man, my brain is ----ed these last few weeks of school.

robert allen
November 23rd, 2005, 12:23
Also, remember to CHMOD images/ to 777, otherwise you will get another error.