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



Comments:

<0> AfroTurf: or at least fix it
<1> aehm can i get the information how many memory the php tasks uses at the moment?
<2> Getty: most likely no
<1> bad
<2> Getty: unless you compiled with memory limit directive
<2> which few do :)
<1> mh?
<1> i dont wantto limit it
<1> just want to analyze it
<2> trust me
<2> look it up :)
<1> can i get the info then?
<1> i could compile my development php with a unlimited memory limit
<2> memory_get_usage()
<2> look at what is required for it to be defined though



<2> AfroTurf: do you know how to write a string?
<2> $foo = 'bar' . foo() . 'bar' . $bleh . 'eh';
<3> philip: ya
<2> and do you know how to use a function, such as implode?
<4> is there a way to make php "forget" about a function that's been declared, so that it can be redeclared later on during the same execution?
<3> philip: ya
<2> ajnewbold: no, Pollita created some crazy cl***kit that allows such things with cl***es but i know nothing about it
<3> philip: just my head hurts ^^
<5> ajnewbold: eh... you can do polymorphism through cextending cl***es
<4> philip, lith, thanks :)
<4> sounds way over my head, heh
<4> I'll just try to design a better script :P
<1> philip: cool thx got it
<2> good idea :)
<2> ajnewbold: also consider include_once() if you are lazy
<1> can i test for existing of that function?
<3> philip: just figuring out how to impliment what i already have with what i have leaned ^_^
<5> ajnewbold: naw you create a cl***... it has a function, extend it ... name the function the same thing and it uses the exteded function instead of the owne from the parent cl***
<5> easy stuff
<1> to disable collection of data on non existing?
<2> Getty: function_exists() :)
<4> philip: it's for a bot, and I'm trying to come up with a way to be able to reload modules while the thing's running
<5> afroturf: just write it again... it will save you much headache
<1> yeah i mean if its not there if the memory limit is of but that would say yes ok :)
<1> thx
<4> lith: heh, you ***ume I know a single thing about OOP :P
<2> ajnewbold: a bot here uses that cl***kit i speak of
<4> (which I don't)
<4> philip: ah, so that might be the ticket then
<2> i think his name is php-bot (although it can be female too)
<3> lith: heh ok i guess ^_^
<5> ajnewbold: ;) understood... its not too difficult... you should read up on it
<2> ajnewbold: http://php.net/cl***kit but it looks like it was replaced by runkit that allows functions too
<4> sweet
<4> thanks!
<1> i didnt brought runkit to work really
<1> philip: should it work or do you dont know?
<5> afroturf: trust me... its easier and faster to start with a clean slate and recreate then it is to try to edit wacked out code ;)
<2> AfroTurf: well, if you get a parse error, it's because your use of implode() is imporper
<2> Getty: i have never used runkit, or cl***kit
<1> ok
<3> lith: cause i have one array for all options when submitted and it looks like i'd have tons of $value 's instead of just one array
<6> lith: you PMed me earlier?
<3> lith: oh nvm i see where foreach($_GET[$value] as $key => $value)
<3> lith: and then if($value == 'ON') { $optionsChecked[] = $key; $insertQuery; }
<2> your use of $insertQuery, well, it does nothing useful :)
<2> oh, psuedo code
<3> philip: well thats not the part i would need help with thats why :)
<2> i always set values for checkboxes, not sure why, but using 'ON' feels dirty
<3> philip: but ok $sql = "INSERT INTO tbl (id, vid, options) VALUES ('id', '$vid','$key')";
<2> actually
<3> philip: ya thats what took me off guard
<3> philip: i'm used to using values
<2> we are talking about checkboxes? well, then it doesnot matter the value :)
<2> only checked checkboxes are p***e
<2> so your array will have all checkboxes that were checked, not the unchecked ones
<3> ya for the $_POST data
<7> I have this extension I'm loading, it works fine from the command line, but when I try to use it via a browser, it says it can't find some functions, anyone might know why thats happening?
<2> different php's i guess
<3> ?
<2> nothing to do wit hthe browser



<7> its the same copy
<8> anyone know how to do a greater than/less than symbol in an rss feed?
<2> Super-Fly: restart apache
<7> I have, countless times
<8> since if you just uset he character that obviously messing things up a bit ;)
<2> Super-Fly: basically, i highly doubt they are the same
<2> or they use different php.ini files, or something
<7> well, I only have 1 php.ini file on my system, /etc/php.ini, and the versions match
<2> but commandline may use, for example, cgi or cli, while your other version may be an apache module
<3> now i have to work on changing the file name if the file exist
<7> lets say I have 2 different copies installed, wouldn't it still load from the same ini file?
<2> Super-Fly: make a call to phpinfo(), call it from browser, look if it reads a php.ini
<2> no
<7> it does
<2> can i see?
<7> yea hold on
<9> I am trying to take a date from a mail server. the date it gives me is "Thu, 2 Mar 2006 17:11:41 -0500" I am trying to get this into php as a functional timestamp any ideas?
<2> Super-Fly: does strtotime() understand taht format?
<2> er, Supperman
<9> doesnt seem to be. it returns this 1141337501
<7> philip: that show you what you needed to know?
<9> which returns(when I convert this to a readable date accpeted by mysql server): 05-11-41 17:11:41
<2> Supperman: that looks like a valid timestamp to me
<2> you convert it wrong
<2> Super-Fly: yeah, looks fine, perhaps the other ini files get in the way? not sure why they would.. hmm
<7> what othe rone?
<2> Super-Fly: oh, only mysql ones so it shouldn't (in /etc/php.d)
<7> yea
<7> mysql.ini and mysqli.ini
<9> it is a valid time stamp
<9> but its not the right one
<9> its deinfately not 1941
<2> Supperman: it is the right one
<2> it is a unix timestamp, the seconds since the wonderful EPOCH
<9> oh.. so im outputing it with the date function wrong?
<2> you are using date() wrong
<9> ahh ok
<9> how should I use it?
<2> read php.net/date
<7> so any other ideas philip ?
<9> i did.
<2> read it slower this time :)
<9> $updatedate = date('h-i-s G:i:s',$updatedate);
<9> updatedate is the timestamp
<2> before that, do echo $updatedate;
<9> i did
<9> it returns this 1141337501
<2> tell ne wgat h i and s stand for
<9> which is the timestamp
<2> they are not what you think :)
<3> lith: does foreach ($_POST[$value] as $key => $value) { if($value == 'ON') { $optionsChecked[] = $key; } } will that put the ones i have checked into $optionsChecked[]
<2> Super-Fly: it should work :)
<9> nog.
<2> AfroTurf: TIAS
<7> philip: thats what I've been saying for 3 days now =(
<10> is there any way in gd to get cmyk values of an image instead of rgb values?
<2> Super-Fly: so when you restart apache, no errors in log eh?
<7> nope
<2> what extension is this? or is it custom?
<7> credit card processing
<7> I've call up the company for the last 3 days, still waiting on their tech support to call me back
<7> =\
<2> Supperman: what does nog mean?
<11> eggnog?
<2> could be, but a strange time to refer to eggnog :)
<7> philip: oh, there is an error
<2> good :)
<7> PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php503_cybersource.so' - /usr/lib/php/modules/php503_cybersource.so: cannot enable executable stack as shared object requires: Permission denied in Unknown on line 0
<7> whatever that means
<2> well it's a start :)
<2> maybe php/apache requires permission to access that file
<7> 777 the entire way
<7> oh well, I'll look at it later
<2> searching google for that 'cannot enable...' line shows some results


Name:

Comments:

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






Return to #php
or
Go to some related logs:

rapydtk
db-4.2 library exists gentoo
pymatlib latex
pdaxrom c760 apm
#qemu
+tr +strip whitespace +shell
#linux
knemo y SuSE 10.2
gentoo dmraid+sx4
python XF86AudioPlay



Home  |  disclaimer  |  contact  |  submit quotes