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



Comments:

<0> ah
<1> ?
<0> umask was screwing me.
<2> CaT[tm]: Did you like it?
<2> I'm sorry, I'm bored :[
<0> no 8(
<3> is there a prebuilt function that searches and removes an element of an array whos value = 'foo' ?
<4> !+arrays
<5> [ARRAYS] Please read http://php.net/manual/en/language.types.array.php for a basic understanding of how arrays work in PHP, as well as http://php.net/array for functions to manipulate arrays. Be sure to read 'user comments' as well.
<3> would I use array_filter with my own callback function?
<6> move_uploaded_file($_FILES['file']['tmp_name'],'uploaded'.$_FILES['file']['name']); -> where am i going wrong?
<7> anybody who remembers the between syntax with select?
<8> stedios: pastebin ur code
<6> nvm
<9> Psycho-MaN: not happy with the #mysql response?



<6> needed 'uploaded/'
<6> bah
<6> thanks tho AfroTurf :0
<8> ha lol
<9> Psycho-MaN: select * from tbl where a between 1 and 3;
<10> Psycho-MaN: 'select foo, bar from bat where bar between bank and home;
<7> thnx
<7> mtocker : not happy at all...the link hadn't the between syntax....
<11> i wonder how hard the link http://dev.mysql.com/doc/mysql/en/SELECT.html was to go to
<12> hmm, php doesen't seam to be working on a particular file, in that apache spits out the php as html
<12> any idea why that would happen
<10> Zyclops: which apache?
<12> the file is named .php
<12> 2.055
<12> but it's working on another file
<8> check tags
<8> <?
<12> yeah <?php at the top of the page
<12> i've checked and put them again
<12> same directory
<12> file with <? phpinfo(); ?> works
<4> lig
<4> liggy wiggy
<13> hey darlin Jymmm
<12> i don't even know if pastebin is worht it, i can't see anything wrong
<4> lig you get my pervert msg?
<10> Zyclops: i had a file named phpinfo.php in the webroot, and apache wouldn't run it. i moved it to it's own directory, and called it index.php, and all's well
<13> LOL - one of my old high school teachers used to vcall me liggy
<14> anyone here good at gdimage?
<14> have a job for you if you are
<4> lig that be the pervert msg
<12> rename it to index.php.. still doesen't wrok
<12> work
<13> LOL
<10> computersolution: i've played with GD
<12> move it to the webroot still doesen't work
<14> dad, this is pretty advanced
<4> lig completely ignore all except the bottom-left : http://static.flickr.com/42/105518882_6bcf2a1eb1.jpg
<13> how's life Jymmm?
<14> needing a really good gd programmer
<4> lig: If you're still interested, could engrave that on the back side, then you could hang it on the wall like an art piece.
<12> create a new file and stick php in it and it works
<15> computersolution, if you have a specific question about gd, ask it
<4> lig actually, I'm thinking three symbols
<13> What does it say Jymmm ?
<4> lig look at it
<4> lig SEE THE ENGLISH WORD???
<14> specific question is, is anyone interested in some work that is very proficient in gd programming
<16> espanol?
<15> !tell computersolution about jobs
<4> lig BINGO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<14> k
<7> is this syntax correct ? $result=mysql_query("select * from Account where charge<='$field1' and charge <='field2'");
<12> and now it works... wtf, i thought apache was supposed to just work
<4> lig: can you understnad what I'm thinking here?
<4> lig : 'Faith, Hope, Love'
<6> http://pastebin.com/576149 -> 'else' not working..
<13> If you could add Joy to it - that would be awesome
<14> mfonda, how to you get a wordwrap to work with gdimage?



<4> lig: ROTF.... then whorehouse in the otherside!!!!
<7> anybody?
<17> Psycho-MaN: you're missing a quote and paren before the last semi colon
<4> lig it's gonna get small with four I believe
<17> Psycho-MaN: nm, think i'm wrong.
<13> Ok - three then
<4> lig which three?
<7> GTPilot so you find it correct?
<17> looks ok,, you might want to isolate the vars like this
<18> Psycho-MaN: you also seem to be missing a '$' in front of 'field2'
<4> lig I'm thinking 'this whore house'
<7> ops i forgot a $ :-(
<17> $result = mysql_query("select * from Account where charge <= '" . $field1 . "' and charge <= '" . $field2 . "'");
<3> how do I call a function (i.e. an function which takes a long time) and allow the rest of the page after the function call to continue (i.e. perhaps sending the function to a seperate background process) ?
<19> spiral_shell: you cannot
<19> spiral_shell: PHP isn't made to do that. try creating a table in a databse for all processes
<11> uh oh
<19> then add processes to that table
<19> run a cron and loop through the processes
<15> computersolution, not sure, ive never done much with gd before, but my guess is youd have to write your own function, determine about how many pixels wide a character is, and wrap lines accordingly (however there may be a wordwrap function, I really dont know)
<19> there are of course better alternatives, but those require that you mingle with other languages
<3> ^Artnez can I run another php script in the background? (perhaps I can p*** all the needed params to the file via get?)
<15> computersolution, maybe check out http://pear.php.net/package/Image_Text
<19> spiral_shell: no, because PHP parses a document and then sends it back to the client
<19> PHP is stateless
<19> spiral_shell: you can, however, achieve this with remote scriptinog after the page itself has loaded
<19> but that wouldn't a background process per-se
<17> php is stateless?
<19> sorry, the web is stateless :)
<20> k, now i have a good question:
<3> the OS is windows, so I cant use a bash script..
<20> I'm making an interpreted language of sorts
<20> the code that gets eval'ed is
<20> $mol1 = round_significant($_POST["A2"]*(50/55), 3);
<17> spiral_shell: what type of thing do you need to execute?
<20> what should that be in an easier way?
<15> eval() (although its evil)
<20> i know
<7> GTPilot thnx ...you are right man..
<20> but I need an easier way to say that
<20> something like:
<19> mfonda: if used carefully it can be pretty useful
<20> mol1 = sig(3)[{A2}*(50/55)]
<17> Psycho-MaN: that query worked?
<20> you know? a new language
<3> GTPilot - I have to send an sms to a list of mobile nos, and the gsm modem seems to need 5 seconds for each sms (So I have to use sleep(5) in my php script for each sms)
<19> spiral_shell: this would be the equivalent of a m*** emailer
<10> computersolution: with fixed width fonts, that would be easy - each letter is a certain number of px wide - and the solution is strictly math
<20> or maybe mol1 = sigfig(3)[{A2}*(50/55)]
<19> spiral_shell: i'm sure windows has something equivalent to cron, task schedular or something
<3> ^Artnez for internal intranet useage only, not for spam... the most it will send out is 5 or 6 at a time
<19> spiral_shell: i'm not judging you, just stating that sending m*** SMS and sending m*** email is similiar in application
<17> spiral_shell: do you need any response from the process back to your php control panel?
<17> spiral_shell: back to your originating php script i mean.
<3> GTPilot I don't think so... unless there is a modem failure..
<11> iirc windows has at
<18> well do you need to wait the whole 5sec to find out if there was a modem failure?
<3> GTPilot is there any way I could fork the procedure... i.e. using exec())
<15> Slee, if you're language is strictly math like that, nothing too complicated, it shouldnt be too hard to write a parser in flex/bison and then a c cgi so you can use it on the web
<18> make a .bat that calls it? exec("ble.bat") -> ble.bat: "call whatever.exe" ? ;)
<15> Slee, maybe simpler to write a parser in php though, although that would be slower
<20> what do you mean?
<20> lol, i'm not so good with parsing
<15> Slee, however, if the sole reason for doing this is to save typing a few characters, I think you're going in the wrong direction
<8> if i have <input type="checkbox" name="stuff[]" /> i want to be able to recheck automatically if form validation fails. this is what i have so far
<20> see, I need to let users do basic math
<8> http://pastebin.com/576159
<20> oh no, mfonda...
<20> this is supposed to take a user input
<20> and then does math with it
<20> and slaps back an output for ya
<15> Slee, okay, why cant you do that in php
<15> ?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

can't open exclusively pvcreate
#css
#web
#linux
#kernel
#python
#gentoo
#lisp
#css
#fedora



Home  |  disclaimer  |  contact  |  submit quotes