@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32



Comments:

<0> [size] => 51664
<1> xahlee: for fun, since you seem to know you have rights to /tmp, how about you copy it there and see if it worked
<2> xahlee nod, your ftp program will let you do a remote chmod command. what the end result you're looking for is: user/group/other read,write,execute permission
<1> also, do note that your paste was inappropriate
<2> xahlee - nod, so your /tmp file is there..you probably can't access it with your ftp program ( most probably you're jailed to your home directory login with ftp ). To access it, use your php scripts like your doing
<1> sure removing the newlines would have technically made it appropriate, but whatever... :)
<3> is anyone available to help me?
<4> Koncept: You don't really want to use eval.
<0> /tmp has drwxrwxrwt
<3> you might know who im talking about but k4st told me to use it
<2> xahlee - nod, don't worry about /tmp ..you couldn't access it from your website anycase...what would you do to add an image from there? <img src=..? .. the only thing you can do is move that file from /tmp to somewhere your website can access it
<3> a while back but ive never been able to do it cause i just dont understand the documentation for it on php.net
<4> Koncept: As a general rule, when somebody wants to use eval, they would be much better off with a different approach.
<1> xahlee: my point stands, try it
<1> famous quote: If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PH
<1> P



<3> all im trying to do is have a way i can make some type of loop in my template files
<0> philip: now both /tmp and and the dest dir are rwx all, and i can move files between them or create files in them, but still no go
<1> xahlee: you are saying that you cannot move_uploaded_file from and into /tmp?
<0> philip: move_uploaded_file($_FILES['item_photo']['tmp_name'], $img_full_path) fails.
<3> philip why wouldnt i use eval()?
<0> i couldn't figure out at this point.
<4> Koncept: The quesiton should be, why would you?
<1> xahlee: img_full_path is what? i want it to go to /tmp
<3> so i can loop trough vars in my template engine
<3> now im not sure how i would do but k4st a respected coder in my eyes told me that it was the best way to go
<4> Koncept: If he told you that, then I automatically have to question just how respected he really is.
<0> philip: move is successful when i set the dest to /tmp
<0> philip: getting somewhere! thanks.
<4> Or how respected he should be.. :)
<3> mattmcc: well he did code http://k4bb.org all by himself
<4> A PHP forum app. I'm speechless.
<3> mattmcc youve done better?
<5> There are dozens - nay, hundreds - of PHP-based forum scripts out there.
<3> yes but this is one of the top 5
<3> there are if you look around on google
<1> look at how smarty does it
<3> vB/IPB/PHPBB/SMF/then k4bb
<5> Admittedly, k4bb seems better than most, but that's judging purely from the marketing bullet points :P
<6> is there a way to background the execution of a function?
<5> Shadowhand: Unix CLI scripts can pcntl_fork, but other than that, your best option might be to proc_open or similar.
<5> In any case, there's no userland multithreading supported
<0> philip: although i moved the file to /tmp with the func successfully, but there's no file in /tmp
<0> philip: heh, what ****. :) taking a break now
<5> xahlee: Make sure you're not in a chroot jail or similar.
<6> Charbal, i want to backgroud the execution of a function to have a "processing login" type thing
<7> Shadowhand: It is possible to execute a subprocess which will run the a CLI PHP process in the background, for example using the shell & in unix. This is platform specific and you need to know where PHP is (if not in the path)
<0> Charbal: i think i am
<6> Charbal, i can't just write a php script to do it...
<0> Charbal: yeah, i think that is my prob... with the server setup
<7> Is it really going to take that long to process the login?
<6> no
<5> xahlee: Ah, then the /tmp you see from is probably /some/prefix/tmp
<6> it's a generic database wait thing
<8> LOL http://sourceforge.net/projects/linux-xp/
<0> Charbal: got it! i guess my job now is to find the prefix to my http root so i can use that as my img dir...
<6> i have a setup that checks a session variable to see if processing has been done, but i need a way to process in the background
<4> Jymmm: Wow. The screenshot is of KDE 2.
<8> "What OS are you running?" "Linux XP" "Um, ok so which is it? Linux or XP?" "It's Linux XP" OP sets mode+b
<7> Shadowhand: It sounds like this is a really bad idea, I think you should not try to do that
<6> MarkR, well then what do you suggest?
<7> I think you should do these operations synchronously
<8> mattmcc There are others, but I think it's just skins.
<5> "Registered 2001-11-05 15:45", "This project has not released any files."
<6> i don't want the user to have no idea why they are loading a page for 5+ seconds
<8> mattmcc even has the green start button.
<4> Charbal: Typical SF project.
<5> Way too many Sourceforge projects are like that
<4> Back in the day, something like 60% of registered projects were empty.
<7> Shadowhand: In which case, you may want to consider using some client-side stuff to give the user some feedback
<4> Because, well, they wanted free hosting.
<9> I am using XHConn and it keeps telling me that fnDone is not a function -- it exists in XHConn.js... I didn't edit that file at all
<8> mattmcc http://www.tuxmachines.org/gallery/linuxxp/desktop
<10> Hi.
<6> MarkR, how am i supposed to forward the user then?
<6> if it's all client side?



<7> No, you just display something client-side to let the user know it's doing something
<7> like an animation or something
<6> and then?
<6> what?
<7> Still load the page synchronously, when you finish the task and the PHP outputs something, the browser will load the page
<6> i understand that part of it, but there has to be some kind of forwarding after the processing is done...
<10> If I have a line like "if($match[2] == $this->_owner)", how do I make it so that it returns true if $this->_owner (an array) contains the string of $match[2]?
<11> does php allow local (within functions) function definitions?
<5> sparr: No, all functions in PHP are in the global scope.
<6> MarkR, basically you mean using ob_start and ob_flush right?
<5> Cl*** methods are, obviously, an exception.
<12> Hiho: Problem installing PHP4 (freebsd6 using ports). I get my installation working nicely with all the stuff I want, but when I go edit php.ini's setting for upload_max_filesize and restart apache, apache dies. Even if I undo the edit, apache keeps dying and I have to remove PHP totally from the system and start again. Any ideas?
<7> Shadowhand: No, just don't output anything until you've finished whatever task it is. Browsers typically don't wipe the contents of the previous page until they've read at least some of the new page
<11> Charbal: i know they exist in the global scope... do they have to be defined as such?
<13> swissmade: what does your apache logs say?
<5> sparr: I believe so.
<5> \alive: php.net/in_array
<10> swissmade: If you have installed the recode.so module, make sure it's loaded before mysql[i] in /usr/local/etc/php/extensions.ini
<6> MarkR, OH you mean i should leave the processing on the orginal page, then start the loading of the new page after the processing is done?
<10> Charbal: Thanks!
<13> sparr: function declarations are global, there isn't a local scope for them
<12> zircu: It gives me a load of lines like this: PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429-debug/bcmath.so' - Cannot open &quot;/usr/local/lib/php/20020429-debug/bcmath.so&quot; in Unknown on line 0
<13> sparr: cept for cl*** declarations but that is a different story
<12> \alive: No MySQL here (using postgresql)
<10> swissmade: Delete the line bcmath.so in /usr/local/etc/php/extensions.ini
<7> Shadowhand: Nope. If you have a form post, for example, the browser won't remove the previous page contents from the browser until the new page starts loading HTML, which will only happen once your PHP app outputs something. So simply don't output anything until you've finished the processing.
<5> swissmade: That shouldn't be enough to kill Apache. Is there anything else there?
<11> function foo() { function bar() { } }
<11> ^^ apparently illegal
<7> Shadowhand: You can then have some Javascript in your form onsubmit which displays a m***ive animated gif or something showing the user that something's happening (and disable the submit button so they can't press it again)
<6> MarkR, maybe i'm stupid, but i don't get it...
<6> ahhhhh
<6> there we go
<10> swissmade: There are, afaik, a few other faulty modules (When running under FreeBSD) that need to be loaded after recode.so
<6> i would like to avoid javascript...
<7> The browser won't normally wipe the previous page until the new one is at least partially loaded
<12> Full errors here: http://rafb.net/paste/results/iojwOp87.html
<7> This technique will still work without Javascript, but they won't get the funky effect
<6> MarkR, i suppose i could do that... i wanted to avoid it, but oh well i guess
<13> sparr: http://pastebin.com/625996
<12> \alive: I don't seem to have recode.so in my /usr/local/etc/php/extensions.ini
<7> Shadowhand, it is much nicer than trying to use server-push, or some sort of polling system. THat would be incredibly icky, as it'd have to keep checking whether the task was done or not
<6> MarkR, yah i had a system set up to check every two seconds
<6> using a meta-refresh
<12> Do I need recode.so??
<14> is there a PHP equivalent to perl's next/last calls in foreach?
<12> (I need this to get moodle running.)
<10> swissmade: Absolutely not.
<13> SimGuy2k: continue/break;
<6> it worked fine, except the actual processing wasn't backgrounded, which made it useless
<15> Uh-oh.... What does it mean if i get "unexpected $" for the line number after my very last line?
<14> zircu: continue pushes to the next item, I ***ume?
<10> swissmade: The paths in the log confuse me. Did you do some special installation?
<6> MarkR, thanks :)
<13> SimGuy2k: yes
<14> zircu: thanks!
<12> \alive: Nope.. just using ports.
<11> zircu: interesting... my first encounter resulted in broken code when i tried that. must be an idiosyncracy of the code elsewhere
<10> swissmade: I'm puzzled...
<13> sparr: well this was on 5.1.x so perhaps 4.x doesn't support it
<12> \alive: So am I. I used to compile php from source manually on Solaris 8. Now got a shiny freebsd box and thought I give ports a try.
<13> swissmade: editing the php.ini file shouldn't be the cause of that error
<13> swissmade: if you can do it by source I would probably suggest it, I dont rely on ports for critical applications
<15> Parse error: parse error, unexpected $ in /home/dotphp/public_html/projects/dotFramework/framework.Parser.php on line 484
<12> Ok.. there's another hint. When I edit php.ini as root in vi, I need to force the write (:w!).
<15> I only have 483 lines...
<13> swissmade: but it still doesn't explain your error
<16> howdy all... is there a xul channel?
<17> Xen0n: You missed a closing mark of some kind, such as }, ', or ;
<10> swissmade: Have you run portsnap?
<15> TML, hmmm, thanks, now i know what to look for :D
<17> diclophis: On irc.mozilla.org it's pretty much on topic everywhere, I think.
<12> \alive: Nope. What's that?
<15> TML, ^_^ I had a { instead of a } closing a function >.<


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#perl
#physics
how-to gconf-editor this key has no schema
domain whoises
#css
#php
sox system notifications kde
#php
ubuntu fatx
xchat tab complete colon comma



Home  |  disclaimer  |  contact  |  submit quotes