@# 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



Comments:

<0> david3: I rarely need to care
<0> Jax: ok... so you need the set-group-id bit
<1> yeah that's in there.
<1> 2 -> set group id
<0> is it 3? ah
<1> 1 -> sticky (not really needed)
<0> try w/ just 2
<1> as if i hadn't done that after 3 hours ;)
<0> Jax: never know...
<1> actually.. i think it's imspossible for apache to make a file with apache:myGroup permissions eventhough apache is in myGroup
<2> I feel like I'm missing something here, can this all be specified from the php side?
<1> somebody just confirm that, and i'm happy.
<1> (even with group-id-set on the upload dir)
<3> hey all
<1> ...
<0> Jax: got it?



<1> got what? i have no solution.
<2> Jax: I just did a test run
<3> http://pastebin.com/725741 - why it doesn't do else?
<3> if the access matches ok it goes to admin.php
<2> Jax: I was able to get apache to write a file with group "david"
<3> but if not - he comes back to login.php
<3> where is the problem?
<1> and apache is running as user apache ?
<1> david3 give me exact setup and what you did please.
<4> SNow: be more specific, please...
<1> and spefically.. what users are in what group.
<3> stormchaser have you seen the code ?
<5> http://php-es.pastebin.com/725679 <-- this only returns me the first 2 querys, any idea why?
<5> (hi everyone)
<4> SNow: Yes I did, that why I asked
<6> i have ssh2.so in this path but php is not picking it up
<6> whats the deal
<0> seems to work just fine for me Jax
<3> you see, there is some redirection, the user goes to login.php if his (flags in mysql) is abcdefghijklmnopqrstu he should be redirected to admin, and all other ones like z should be to user.php, why it isn't?
<4> batphone: Have you enabled it in php.ini?
<2> First I added the user "www-data" to the group "david". Then I created a directory /var/www/zzz and chgrp david zzz; And I have a little php file that just does a simple fopen fwrite fclose.
<6> yes
<6> extension=ssh2.so
<0> Jax: I create a directory, I chown+chgrp, then chmod +st
<4> batphone: AND restarted apache?
<6> yes
<3> when I login with those flags, I go to admin.php and when with z or without anyone I kept stayin' in login.php
<0> Jax: a touch shows that Apache is the group
<6> several times...
<1> you're stlil reversed kog ;)
<6> iv tried moving the file around, triple checking the extension_dir path
<2> Jax: oh yes, and I restarted apache... I don't know if that step matters.
<0> Jax: that's because I chown'd it Apache because my permissions don't support what you're doing
<0> and I don't feel like creating groups to do it
<0> the point is... my group is wheel... not Apache
<6> how do i debug this?
<1> ah wait
<1> i think i got it
<3> any ideas , anyone?
<1> ah rox, chgrp worked
<1> from php.
<1> i.e apache is allowed to chgrp to any group apache is in.
<1> so now file is apache:myGroup
<1> which is perfect
<6> ok
<4> !+enter
<7> Don't use the enter key as puncuation. Think in complete thoughts, then type.
<6> .. there seem to be two different versions of this libssh2 thing
<1> !kick Jax
<6> one from PECL and another from sourceforge
<6> that produce different binary sizes
<5> http://php-es.pastebin.com/725679 <-- this only returns me the first 2 querys, any idea why? (sorry im asking again)
<1> ts anyway, enough information ;)
<3> stormchaser?
<3> not ideas?
<6> strings on both of them reveal the functions listed at php.net/ssh2
<6> but those functions are not available
<6> is there some kind of include i have to make in my index.php??
<3> who is willing to help me?
<8> batphone: There aren't two different versions, there are two different PIECES
<8> batphone: libssh2 (sourceforge) is the generic C library that implements the functionality. PECL/ssh2 (pecl.php.net) is the glue that connects libssh2 to PHP



<8> You need to build them both, just as the manual says to
<9> is there a shorter way to write this? $foo = f_returns_false_on_error(); if ( $foo === false ) { $error = 'error'; throw $error;}
<10> Please _Ace_ ... tell me you are not in a hole?
<11> hi all
<11> php -q file.php >> /dev/nul & ??
<2> I'm having a file permissions problem. in a directory that belongs to group www-data, apache/php can modify a file, but cannot create a new file. Any ideas why?
<11> to run in background ?
<10> david3: what type of errors are being thrown?
<10> TheBest: wouldn't it be more like: php -q file.php & 1>/dev/null 2>/dev/null
<2> JAJMaster: I'll look into that...
<11> JAJMaster tnx
<12> i was wondering if there was a way to create thumbnails on the fly from a directory of pictures so that i didnt have to store both the original picture and the thumbnail
<10> sure :)
<10> syco: you "could" use GD, but it's slow and the image quality for scaling kinda ****s
<2> JAJMaster: a call to is_writable returns false
<12> JAJMaster: so that means imagemagick is out too?
<13> imagemagick works just fine
<12> HolyGoat: i thought that imagemagick used gd
<13> Syco54645: no, not that I'm aware of
<14> have nothin better to do at work guess i'll play games
<13> piera: lucky you
<12> HolyGoat: so then i can generate thumbnails on the fly with imagemagick?
<13> Syco54645: Sure, use its `convert` tool
<15> HolyGoat: same here. and i'll have to get up at 5:15
<13> et: yuk. I have to get up at 7:45
<2> JAJMaster: I think I have my problem -- is_writable returns false if the file doesn't exist.
<12> HolyGoat: every time that i look for a way to do it with imagemagick, the guides explain how to make thumbnails and save them. do you know of anything that i could read that would explain how to do what i want to do ?
<13> et: 5:15? You work in a factory or something?
<15> HolyGoat: gotta catch a plane
<13> et: Ah. Well you can sleep on the plane :)
<0> et: you pack your parachute?
<16> i have to get up at <fillblank>:45
<13> Syco54645: No, I haven't read php tutorials for a long time, but a system call to convert should suffice. Just type `man convert` on your favourite shell
<12> HolyGoat: ok thanks alot. i am excited now
<13> zircu: that's odd
<16> HolyGoat: how so?
<17> hi, anyone there?
<13> zircu: The hour being variable, while the minute isn't
<16> no one for you
<10> syco: the command line imagemagick tools will create thumbnail files. I don't think there is a way to make them stream output to STDOUT or anything, and you would need to write it to a file so the remote client could HREF it anyway
<12> JAJMaster: yeah, that is what i am trying to avoid. i just want to create them when they are needed and not store them
<16> JAJMaster: there are pipes, but i think your right
<10> david3: if you try to make a file in that directory, does it work, throw an error, ?
<13> Syco54645: Oh, you don't want to store the thumbnail? Heh.
<14> lalalalala
<10> syco: not storing the thumbnails is a major waste of CPU resources, and totally will not scale.
<12> HolyGoat: exactly. my webserver only has 275 megs of total free space
<13> Syco54645: Well you could store them temporarily, and run a cleanup script as a cron job or something.
<16> Syco54645: hmm.. i hope that isn't the drive space but instead your quota
<17> do you know if i have to use java if i want to change the <select>-options by chosing in an other <select>-object?
<12> zircu: well yeah quota
<13> Syco54645: Or you could settle with a different host, e.g. site5 offers you gigs of storage.
<16> Syco54645: /tmp shouldn't include your quota
<10> syco: and running GD on a potload of files will be quite...s...l...o...w
<13> Sarah-17-sucht-m: This is ##php.
<12> HolyGoat: i believe that we are signed up for another year
<16> note *shouldn't*
<17> HolyGoat: well, i know, but i think this problem hits everybody who designs with php
<12> zircu: so then what you are saying is store them there and make a symbolic link?
<13> Sarah-17-sucht-m: No, it hasn't hit me.
<10> sarah: you can do just about anything you want with select boxes using javascript
<18> hi. i've maintaining a server on which a user is trying to get a php script which allows people to upload a file to work (and which he says works on other systems) yet it does not work on this system. i havn't noticed anything in the logs to indicated what the problem is and i was wondering if there were some sort of php or apache setings whih commonly cause this sort of problem
<16> Syco54645: no not really, if that is the case you are generating them at the wrong step
<12> HolyGoat: plus we finally got the host to allow us to install any pear module. and they fixed the speed issues
<10> michal_: let me count the ways...
<17> JAJMaster: u know the name of the command in javascript (i can not search in tutorials without a name)
<13> Syco54645: Even then, site5 is probably much better :)
<12> zircu: well we have 240 megs used up
<10> syco: what are your hosting costs...$1, $2 a month?
<12> HolyGoat: i will check them out
<12> JAJMaster: they are $50 a year i think
<12> the host is in the nl
<16> Syco54645: so you say your are generating an image then providing a link to it?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

pvd2006
#gentoo
#css
#fluxbox
#physics
gentoo gnome-core mask
sektor1952
etisalat ping solution
#gentoo
ubuntu resize reiserfs



Home  |  disclaimer  |  contact  |  submit quotes