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



Comments:

<0> Stormch[a]ser: what type of modelling do you use for mapping the links between tables in database?
<0> dancingmonkey: seems pretty obvious doesn't it? permission denied... change the permissions on the folder
<1> it's 766 or such
<0> 766?
<0> or such?
<2> To "move" a file, you have to have: read permissions on the file itself; both write and excute permissions on the directory that contains the "source" file; and both write and execute permissions on the "target" directory
<3> Hi. I am interested in writing a program which both reads and writes RSS as part of its operation. I am not even sure if PHP is the right language to do this in, but either way I am looking at PHP solutions.
<3> There seem to be a very large number of RSS libraries for PHP. Is there one which is "official" or best?
<0> check PECL, then PEAR
<3> thank you
<2> Ah, of course
<1> I went from 755 -> 777 and it worked. Har har. Very funny webserver.
<2> Jymmm: Please don't set +r
<2> Jymmm: Unless it's for a short period, then remember to remove it when it's done.
<2> dancingmonkey: 777 is almost always wrong.
<2> dancingmonkey: 755, on the other hand, has no write permissions.



<1> 775 failed.
<1> 757 failed.
<2> dancingmonkey: You should probably chown the files to the webserver user and set them back to 755
<2> !quit
<4> n
<4> err ignore
<1> TML, the problem is, php is editing files in the directory as nobody, and nobody doesn't have no permission to be editing in that directory.
<2> dancingmonkey: Right. As I said, you need to *chown* the files to the webserver user. In your case, 'nobody'.
<5> hello all
<5> im have netbsd on my server
<5> and want use mysql
<5> phpmyadmin
<5> but the mod mysql.so isnt recognized
<5> http://astolfohttp.no-ip.org/~leleobhz/teste.php << if someone want see
<6> how do i get the document root?
<6> ?
<2> theconartist: Check phpinfo()
<2> leleobhz: Where di you get mysql.so?
<2> s/di/did/
<6> i thought there was a var
<6> liike $_SERVER[document_root]
<7> CLEAR USERS is very scary :)
<5> TML: see this
<5> client.so.14&quot; not found in Unknown on line 0
<5> PHP Warning: Unknown(): Unable to load dynamic library '/usr/pkg/lib/php/20020429/mysql.so' - Shared object &quot;libmysqlclient.so.14&quot; not found in Unknown on line 0
<0> what's a good way to RAD an insert form for a mysql db?
<8> RAD ?
<0> GwaiLo: rapid application development
<0> in that contect, rapidly develop ... arg ROR is tempting me
<7> aidan: haha ****er :)
<9> man that force auth is great, makes the channel much sleeker
<10> kuja: go me
<7> mazzanet: Go on top of you and hump your leg?
<10> i made it to the hospital emergency ward twice yesterday
<10> for surgery
<7> Funny
<7> My girlfriend is going to the hospital soon.
<10> apparently having 4 1 hour long blood noses isn't healthy
<7> Ouch
<11> no it isnt mazz
<12> hi, fairly easy question
<12> I'm trying to write a function "append_log($string)"
<12> so all calls would append a string to a big one $LOG
<12> and then in the html, I want to retrieve the value of $LOG
<12> how can I do that?
<12> don't mind, keyword global done it .P
<13> Liggggggggggggggggggy Liggy liggy, liggy liggy, liggy liggy
<14> hey Jymmm!
<13> lig: Rent 'Hustle & Flow' sometime... pretty good
<15> blarg
<16> heh
<13> lig : http://www.imdb.com/title/tt0410097/
<16> how can I get the current user that apache's running under?
<17> hi
<14> will keep it mind for next time Jymmm
<13> naked yet?
<14> na - already dressed for the day
<18> If I overload a function in an extended cl*** can I still call the original one from it?



<18> Now that I think about it, that's silly.
<19> Ha! I figured out where you got your bot from!
<19> AzMoo: $super.foo()
<20> if i make a database query by calling query($myquery); is there anyway for query to get the __LINE__ that the query was executed on, or would i have to go query($mysquery, __LINE__); I'm trying to write some debugging cl*** for mysql.
<21> given a string containing a function name, how can i invoke that function and p*** it arguments?
<18> freeone3000, what?
<15> interferon: http://php.net/exec
<15> interferon: you'd use something along the lines of exec($stringContainingFunctionWithArgs);
<21> Gimp_, i just found call_user_func
<22> exec doesn't have anything to do with functions.. it runs a system command
<18> You could also do $funcStr($arg1, $arg2);
<15> niraj: uhh, no, you can use exec to run php inside a string...
<15> or wait
<15> thats not exec is it
<22> Gimp_: i think you mean eval
<18> no, you're talking about eval, and eval is evil.
<15> yah
<13> !+eval
<23> If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP
<15> that one.
<15> haha
<17> can someone give me a tip for my problem. I have functions like getName() getSurname() etc. A+If I pool only one user from DB is all ok, beacuse I set name with setName() function and there is only one result. But problem is if I fetch more than one user from DB. And want to loop throught it in smarty and still use function getName() for each field. But when I fetch data from DB I always get witg getName() last result from DB. How I should do that
<17> variables would not overwrite each other. I hope you understand what I mean
<21> i think that quote predates rasmus
<24> So, I gotta question. If I'm posting several arrays of multiple selects to a form, and the array names are ws3, ws4, ws5 how do I cycle through the names in a loop? (the array names are dynamic, the numbers represent user ids)
<24> any takers?
<24> If I'm posting several arrays of multiple selects to a form, and the array names are ws3, ws4, ws5 how do I cycle through the names in a loop? (the array names are dynamic, the numbers represent user ids)
<24> :(
<19> The names?
<19> foreach($array as $line->$value) { }
<19> !nickometer blootbot
<23> freeone3000: nickometer is disabled because of abuse
<19> That ****s.
<17> lol
<15> whats nickometer?
<24> freeone: me?
<19> thill2708: The loop yes, the nickometer no.
<19> Gimp_: Blootbot feature.
<18> thill2708, You'll need to loop through the $_POST array.
<19> Gimp_: Mainly doing it to see what type of bot that was.
<15> freeone3000: ah ok
<24> the entire POST array?
<24> how is it supposed to know when it gets to one of the arrays I want?
<15> thill2708: http://php.net/foreach
<24> I saw something like this on php.net, but I can't get it to work:
<24> $WSAPOST = "_POST['ws***igned{$u_ids[$i]}']";
<24> $ws***igned = ${$WSAPOST};
<24> but I can't cycle through that $ws***igned array
<18> thill2708, well, you could use array_map to search for all the keys starting with 'ws'
<24> so I could use array_map to search for the array named "ws***igned3" or something? hm, that might work. And then ***ign that to a variable and cycle throught hat
<24> that
<18> thill2708, http://www.php.net/array_map
<24> I need a specific one each time, since I have several multiple selects posted
<22> why not use POST arrays? ws[1] ws[2] instead of ws1 and ws2?
<18> niraj, that's a better idea.
<17> anybody have any advice for me ?
<22> that should make your life easier
<24> so name each array ws[<?echo $user->u_id?>]?
<22> yup, that would work
<24> right on
<22> then you'll have an array called $_POST['ws']
<18> which you can easily loop through.
<24> so I would reference those arrays like this:
<24> $ws***igned = $_POST['ws[{$i}]']
<22> no
<24> :(
<22> $_POST['ws'][$i]
<24> yar
<22> :)
<22> php is smart so it knows to make an array out of ws[something]
<11> i wish i could say that was clever
<22> hehe
<24> arg. No worky.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

libxine1c2 libxine1
curses.h ubuntu
#linux
mime_decode-1 FAILED: Exceeded storage quota
msttfcorefonts rpm
disable shift backspace xgl
#linux
XORG_DRIVER_CHECK_EXT xf86-video-intel
#css
satan-linux



Home  |  disclaimer  |  contact  |  submit quotes