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



Comments:

<0> It's hard? Heh
<1> BaMM: Perhaps using a loop with foreach could reduce the error risk?
<2> are most of these people also stupid ?
<3> Ah probably
<3> thanks
<0> Every modern *nix flavor comes with a sane package manager.
<4> if i was to install apache and php in a different prefix.. what would be necessary to switch between the two?
<1> BaMM: Try to make your code more readable using those constructs. foreach($posts as $key=>$post) often tells the reader more
<5> could someone tell me the simplest way to get all my website "info" users ect... and reloadit to a freash php install. I Have read to many post,tut. ect.. for php,MySql,Apache,PhPMyAdmin brain on information overload
<3> Alright.
<0> voidy: Apache and PHP don't depend on each other
<6> if I want to check some stream_socket_enable_crypto implementation details, which mailing list I should use
<4> kuja, but mod_php will need reinstalling because it's not apxs enabled..
<4> apache isn't apxs enabled i mean
<0> You compiled PHP or what?
<4> i've compiled it yes..



<0> You've got no apxs tool?
<7> as far as i understand it i can do : myCon = newConnection() or { several statements }
<4> yeah, it seems to not exist in the redhat stock rpm..
<6> i am interested in two things. how to get error message without messing with error handler and how to make sure that it checks server's certificate
<7> i only mean the braces { seve.. }
<0> kuja@shugotenshi:~$ apt-cache search apxs
<0> apache-dev - development kit for the Apache webserver
<3> Any way to get how many lines in a file?
<0> voidy ^
<0> Not sure about RedHat's repos
<0> BaMM: $lines = count( file( 'somefile' ) );
<4> true true. well the repos are out of the question unfortunately, due to the weird setup at the hosting company..
<6> voidy: httpd-devel rpm
<3> thanks kuja
<8> kuja, does that suffer fron the dereferenced pointer problem though?
<8> shouldn't it be count($temp=file('somefile'));
<0> Why so?
<0> What dereferenced pointer problem?
<8> if count takes a reference to a file handle returned by file() then it'll be referencing a variable which doesn't exist
<0> count() takes an array.
<0> file() returns an array
<8> does it take an array, or a reference to an array?
<0> Hm hold on
<0> kuja@shugotenshi:~$ php -r 'echo count( array( 1, 2 ) ), "\n";'
<0> 2
<0> kestas ^
<8> fair enough :)
<8> I wish there was an easier way to tell though
<0> kestas: It's confusing, cause the manual says it takes a var
<0> So I had to stop and think and test
<8> if there was some list of functions which are affected by the derefenced doohickey you could make a sed script to quickly edit all your functions to blah( blah2()) to blah($temp=blah2())
<0> Nevermind, `var' is just a pseudo variable, not a PHP variable.
<8> but afaik no **** list exists
<8> such
<9> a **** list, eh?
<0> I do foo( bar( baz( qux() ) ) ) all the time
<10> http://www.google.com/jobs/studentsg.html hmmm, maybe i should try apply... ill be an undergrad this year heheh
<8> kuja, I did too, but now I have to think carefully about it every time I do
<9> kestas: you want to **** me?
<8> err no thanks
<8> sorry to disappoint you
<8> but enough of that
<9> kestas: you sick man
<11> How do i check if a variable is an integer?
<8> if($var === (int) $var)
<0> Or just is_int()
<8> yup that too :)
<8> too many functions for my feeble brain to remember
<8> so if($var === (int) $var)
<11> so its not possible to p*** any kind of string that will byp*** is_int() ?
<0> ctype_digit() if you are checking to integer strings
<0> s/to/for/
<12> maybe is_numeric can also be used for this?
<8> xnor, do you want to allow strings which just contain integers, or do they have to be integer type?
<0> is_numeric() matches: 1, "1", "2.7", 3.09, etc
<0> s/matches/returns true on/
<8> if($var === (int) $var) will make sure it's integer type, the other's just check that the variable contains just an int
<8> /just//
<6> kestas: your call is too complex. is_int($var) or is_numeric($var) is shorter
<11> Okey ill get it now, thanks for the help!



<0> Once again, is_numeric() is different from is_int() -_-
<8> dzekas, depends what you're doing I guess, but use whatever you like
<6> if you want to test for integer or number value, then use function that is designed for that purpose
<0> And === isn't?
<13> Short php/mysql question: Is there a way to automatically retrieve the value of the primary key field when doing an insert query ?
<0> ^CodeX^: Short MySQL question -> #mysql
<14> mysql_insert_id
<13> ok, thanks. Both. :)
<0> Unless you meant that -_-;
<0> SELECT INSERT_ID() or some bizaar crap lik that, if that's what it does
<0> LAST_INSERT_ID()? Bah stupid functions
<14> yes, that too, though there are some differences
<13> I just need to know the ID value of the data I just entered. .. but I'll read up on mysql_insert_id now
<8> and then you have to watch out that others aren't inserting before you do that SELECT, and then you start having to do transactions/locking, bleah
<3> http://pastebin.com/528766 <-- How would I have that so the bottom of the file (newest) would display first instead of last
<3> array_reverse() nvm
<3> err i lied, help again :P
<15> how can i open the content of a file in the web? fopen dont work for me.
<3> file_get_contents()
<15> thanks
<3> Anyone know how I would display bottom of file first using foreach?
<13> kestas: Using a technique from http://no2.php.net/mysql_insert_id, example 1 should be pretty safe, even on a busy db? Or should I rather try to code the operation as an atomic ...thing?
<13> excuse my limited English vocabulary.. :p
<16> i have this hosted site that is refusing to let me create a file. fopen doesn't work (either a permission problem or a read-only file system) and shell exec doesn't work either (used "cat asd > file" and touch). any ideas?
<0> deadroot: Check the permissions on the directory.
<16> 777
<0> deadroot: From your script, is_writable( 'yourdir' ); returns true?
<16> the file doesn't exists yet
<2> can anyone help me, I already know all about programming and have a project I am doing, its a CMS - what php function should I use to create an enterprise CMS ?
<3> http://pastebin.com/528766 <-- How would I have that so the bottom of the file (newest) would display first instead of last
<16> will that work?
<14> ^CodeX^: each connection has its own last insert id
<8> ^CodeX^, I'm not sure, I -- yeah waht deltab said
<8> ^CodeX^, I'd TIAS for peace of mind though
<13> deltab: Thanks :) kestas: Uh, what does TIAS mean? :p
<14> ^CodeX^: so just make sure you read it after the query
<8> try it and see
<13> deltab: I intend to :) kestas: Thanks :)
<14> http://dev.mysql.com/doc/refman/4.1/en/information-functions.html#id2696808
<6> deadroot: check file or directory owners and safe mode settings
<16> is_writable returned false
<16> i used is_writable(getcwd())
<16> safe mode is off
<6> fedora or rhel4 ?
<16> i'll check
<16> dzekas: does FC2smp makes any sense?
<6> fedora core 2. too old. selinux is not enabled there
<17> hi people... somebody can help pe?
<18> this an english speaking room ?
<16> calmchessplayer: yes
<18> could some body post a link to a website which has a really good tutorial on form processing using register_global
<1> BobSponja: State a question. Then the folks here can help you. (And welcome. And, read the guidelines of the channel. I did. Makes this place friendler.)
<18> i use linux /mysql/php
<16> calmchessplayer: iianm, register_global is deprecated
<18> i begginer and can't get a form to add data to data base
<17> wel.. how i cant make a whois in php, to know that domain is available for me??
<18> where do i find info on the best way to process form then:?
<19> ah! whats is the url? www.pastebin.?
<16> pastebin.com
<18> oh
<17> wel.. how i can make a whois in php, to know that domain is available for me??_
<3> Is there a way to set the pointer for append at top of file?
<1> calmchessplayer: Perhaps this might help you. http://securephp.damonkohler.com/index.php/Main_Page
<17> how can i make a whois in php, to now what domain is available for me??
<19> great, http://pastebin.com/528784 i don't see what !array_key_exists alwas returns true
<16> dzekas, kuja?
<19> in my array ii get lots of [2003] as an eample
<1> BobSponja: Here is the documentation for Network functions. Dig the function list. http://dk.php.net/network
<6> permissions of directory returned in getcwd()?
<20> no
<6> deadroot: and owner:group info
<16> dzekas: kay, brb
<18> thankyou for the information olleollelle
<18> bye


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#bind
piecewise-function (mathematics)
#openzaurus
#kde
c101008a mt.exe
The server must be started under the locale
#ai
ndsiwrapper for ubuntu
#qemu
libtag fedora



Home  |  disclaimer  |  contact  |  submit quotes