Page 2 of 4
Posted: Wed Feb 18, 2004 11:04 pm
by monkeyj
I'm on a "shared IP" as well
Posted: Wed Feb 18, 2004 11:04 pm
by monkeyj
If the shared IP is a bad thing... I can always dedicate it..
Posted: Wed Feb 18, 2004 11:06 pm
by John Cartwright
I see no harm in it........ why dont u try changing the directory to your root directory... see if that works
Posted: Wed Feb 18, 2004 11:07 pm
by monkeyj
Say again?
Be more specific.. I really do hate to delete/move things when they set them up.. o.o
cause
in the same "home directory"
theres
MonkeyBlast.com
and StickToons.com
both the sites i have on the server..
Posted: Wed Feb 18, 2004 11:15 pm
by John Cartwright
the root directory refers to
monkeyblastj.com/
and in most cases monkeyblastj.com/public_html
Posted: Wed Feb 18, 2004 11:18 pm
by monkeyj
so... You wan't me to add public_html to the monkeyblast.com folder??
Posted: Wed Feb 18, 2004 11:20 pm
by John Cartwright
if its not there dont worry.. there are usually public_html/ private/ etc but its there not there its fine..
Posted: Wed Feb 18, 2004 11:21 pm
by monkeyj
Ok, I know what you mean...But..
theres not..
Not with a shared IP...
So, How's the PHP script looking?
Posted: Wed Feb 18, 2004 11:23 pm
by John Cartwright
im making my own gimme a few min..[/pg_man]
Posted: Wed Feb 18, 2004 11:27 pm
by monkeyj
take your time
thx btw

Posted: Wed Feb 18, 2004 11:27 pm
by John Cartwright
ill give u a better script that fits ur needs tommorow i cant keep my eyes open sorry... night'
Posted: Wed Feb 18, 2004 11:29 pm
by monkeyj
hey, If you get on tomorrow
Try and reach me on AIM or something..
s/n = monkeyj123
I'll try and find my way back here though lol
Night man
Posted: Thu Feb 19, 2004 11:27 pm
by Illusionist
try setting your folder to copt to to something like:
Code: Select all
$dir = $_SERVER['DOCUMENT_ROOT'] . "/home/hsphere/local/home/monkeyj/monkeyblast.com/anims/upload";
and edit the path:
/home/hsphere/local/home/monkeyj/monkeyblast.com/anims/upload
to whatever it should be.
am i reading u correctly?
Posted: Fri Feb 20, 2004 12:28 am
by monkeyj
So my PHP code should then look like...?
Code: Select all
<?php
if (is_uploaded_file($_FILESї'userfile']ї'tmp_name'])) {
copy($_FILESї'userfile']ї'tmp_name'], "$dir = $_SERVERї'DOCUMENT_ROOT'] . "/home/hsphere/local/home/monkeyj/monkeyblast.com/anims/upload"; ");
} else {
echo "Possible file upload attack. Filename: " . $_FILESї'userfile']ї'name'];
}
/* ...or... */
move_uploaded_file($_FILESї'userfile']ї'tmp_name'], "$dir = $_SERVERї'DOCUMENT_ROOT'] . "/home/hsphere/local/home/monkeyj/monkeyblast.com/anims/upload"; ");
?>
After setting that.. I get a parse error
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/hsphere/local/home/monkeyj/monkeyblast.com/submit.php on line 3
?>
Posted: Fri Feb 20, 2004 12:34 am
by monkeyj
somehow I think I've officially confused myself..
I never work with $_files o.o lol