| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> http://us2.php.net/manual/en/features.file-upload.php <1> thanks. Looks like I've got some reading to do. I hope I can get this working <0> no problem <1> This isn't exactly PHP, but if anyone could help me you could... 1024 bytes in a kilo byte? (KB vs KiB) correct? <2> how do i see what's going on when i plug in a cam on linux <2> where's it go, how do i know if it has resources and such <0> imac1701, http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005-36,GGLG:en&q=how+many+bytes+in+a+kilobyte <1> heh, thanks :P <0> :) <0> hey babble <2> sup man <0> http://www.kushrecords.com/ <1> right now I am so out of it because of sleepyness <0> almost done <1> so please excuse my braindeadness. thanks :) <1> crap crap crap. it didn't work.
<1> I used this: <1> if ($_FILES[img1] != "") { <1> @copy($_FILES[img1][tmp_name],"/web/scott/".$_FILES[img1][name]) or die("Error copying the file - The operation died."); <1> } <1> and tried to upload a file.. and got the error <1> the directory it is copying to requires a username and p***word, could that be why it is failing? <0> what's img1 ? <0> $_FILES["img1"] <0> ["tmp_name"] <1> thats what the file name is called (not the actual filename) <0> you are missing the quotes <1> from the upload.html: <input TYPE="file" NAME="img1" SIZE="30"> <1> the quotes? The book doesn't have me using quotes.. <0> use quotes <1> okie :) <0> and throw the book away <0> get a better one <1> awww <1> yeah, there was a huge typo I caught earlier <1> ipload_max_filesize might throw a few people off :P <0> I don't have a php book <0> php.net is all you need <1> I like books, they make me look smarter <0> if you say so <1> not that any girls actually make it into my house :/ <0> I like books too. but it's much easier to search for a function name via php.net then to get the book, go to the back and look it up <1> wait a minute <1> if ($_FILES[img1] != "") { shouldn't that be if ($_FILES[img1][name] != "") { <0> if ( isset($_FILES["img1"]) ) <1> (note the [name] added. <1> uh isset right.. er I will just try adding quotes everywehre <0> and of course <0> if ( isset($_FILES["img1"]) && is_uploaded_file( $_FILES["img1"]["tmp_name"]) ) { ... } <1> wow, what does that do.. <0> 1 makes sure the file field is set. 2 makes sure the flie has uploade <0> d <0> if you skip the isset() and go straigh to, if ( is_uploaded_file( $_FILES["img1"]["tmp_name"] ) ) and the file field isn't set, you get an error <1> define:set <0> makes sure the variable exists <1> ah. okay... but that is what the first part does <0> no <1> it makes sure $_FILES[img1] isn't empty <0> well, I guess linux gives you an empty string for unset variables <0> but it's bad practice to check for the existance of a var like that <1> yearge. Error copying the file - The operation died. <0> well <0> get rid of the die <0> and remove the @ <0> and you will see the real error <1> Parse error: syntax error, unexpected '}' in /web/scott/do_upload.php on line 5 <3> Why wont the value of $member_description output in a textarea?? The following code only works when I use it in a textbox... value="<? echo isset($_SESSION['new_description'])?$_SESSION['new_description']:$member_description; ?>" > <1> Wait create_vibe <1> <1> Warning: copy(/web/scott/UPLOADTEST.txt) [function.copy]: failed to open stream: Permission denied in /web/scott/do_upload.php on line 4 <1> The file upload was a success. <1> File information: <1> Filename: Size: 0 KBMime Type: text/plain <0> Etobicoke27m <1> <0> <?= (isset($var) ? $var : ?>
<0> <?= (isset($var) ? $var : ""?> <1> wait, ignore the file upload was a sucess because we never killed it off when it died. <1> permission denied? <0> make sure php has write permissions to the folder <3> create_vibe: What are you pointing out there? I dont see it... <1> create_vibe in order to see anything in this directory you have to supply a username and p***word <1> using a <Directory > thing in the Apache setup <1> *Apache configuration <3> create_vibe: are you saying I'm missing double quotes after the colon ? <1> How do I see if PHP has write permissions in certain folders? <1> omg it worked when I put it in my plain /web/ directory! So for some reason it just can't write to /web/scott/ - How do I check to see if it can write it to this directory (and set it so it CAN write in this directory?) <1> Wait - I just did chmod ugo+rw scott... *holds breath*.. IT WORKS. <1> Thanks create_vibe for all your help. <1> :> <1> Next on my list: A PHP file manager.. Uhoh, somebody shoot me <0> Etobicoke27m, <?= is like saying <? echo <0> the only thing I can say is that textarea doesn't have value <0> you put the value in between the tags <0> <textarea>value</textarea> <0> no problem, imac1701. glad you got it working <2> hey i dind't know about the <?= <0> you didn't ? <1> yeap. now I am trying to find more $FILES[] things.. I dunno what to call them.. what other variables in the $FILES superglobal <2> nope <2> that's hot <0> $_FILES <0> imac1701, how do you mean? <1> Well there is $FILES["img1"]["name"], $FILES["img1"]["size"], $_FILES["img1"]["type"].... what else? <0> var_dump($_FILES); <0> *yawn* <0> I'm sick of my office <0> I never leave it <0> I think I'm going to take and watch a movie or somethin <0> be back later <1> ah crap now I killed it. <1> cya create_vibe <0> the var_dump() will show you the breakdown for the object <0> cya <1> create_vibe - thats if I can fix it :P <1> have fun <4> I regret to inform everyone that trollboy p***ed away today <4> a drunk driver at 12pm claimed his life <4> AlexandraFri, 11:14 am Tired of being overweight? We can help! <1> aww that ****s <1> trollboy had helped me numerous times embedding hidden php <1> that really ****s <1> ;_; <4> it's okay, he dies every episode <5> funny yhing is that every time i enter this place, poutine says that <1> wait a minute, you don't mean the actual IRC user? <1> explain \ give me the episode <5> !seen trollboy <6> I found 2 matches to your query (sorted): Matt__ trollboy. Matt__ (~Matt@ip72-193-162-16.lv.lv.cox.net) was last seen quitting from #php 22 hours, 25 minutes ago stating (Ping timeout). <5> @confess <7> [217412] I have the growing impression that my girlfriend is only with me to satisfy her insecurities. This and we just moved into a great place together. <1> Numb3rs is on, I think its time to stop php stuff <1> @confess ? <4> is that a crappy TV show? <5> it's not crappy <1> Eh, I like Numb3rs.. its like a Math CSI <4> yes it is <5> check the l33t speak! <4> it's ****ing homo***ual <1> lol yes, that annoyies me :P <4> when you watch it, it makes you want to **** **** <1> poutine, you watch what you wanna watch it <1> and i'll watch what I want to watch. <1> Hell, I watch Star Trek.. soo... <4> ok, but you're watching gay porn <4> STAR TREK IS ABSOLUTE **** <5> numb3rs makes people want to **** ****? <4> ITS NOW OBVIOUS YOU'RE A ****ING IDIOT <4> It's fun to meet these simpletons who are entertained by technobabble
Return to
#php or Go to some related
logs:
#chat-world #chat-world #india Ubuntu\bin\sh can't access tty #kl #india #chat-world Timbits sour cream #india #allnitecafe
|
|