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



Comments:

<0> Charbal: well, I am using an array; to build the foreach right; but later I need to use the variables
<0> in an html document
<1> vhuren: Not really. Shouldn't be hard to make your own. Do you know for certain that the two arrays have the same keys in them?
<2> charbal: yes for sure
<2> charbal: dunno how to make this
<3> Charbal: it doesn't say the path at all... it just says the ./configure parameters.
<0> oh wait you cant have even have a variable with a numeric first character
<1> function array_mashup($array1, $array2) {$retval = array(); foreach ($array1 as $key => $value) {$retval[$key] = array($value, $array2[$key]);} return $retval;}
<4> paddedwall, there are several php ide/editors capable of inline debugging
<1> DogWater: Well, you can, but not through normal means.
<2> thanx charbal :)
<1> ${} syntax would have to be used to set and access it
<5> jbpros, any good one opensource?
<0> charbal yeah thats what I was going to do just use ${var} = $num
<6> got it never mind
<1> DogWater: Consider using an array like I suggested. $arr['7day'] will probably work just as well as ${'7day'} for you.



<4> danf_1979, I'm using eclipse with a php plugin.. let me check
<5> Linux?
<0> Charbal: I have to use a foreach to run the mysql query to figure out what it is first and then i need to do some other stuff and then set the value
<4> danf_1979, yep
<5> ok, I'll look it up
<4> danf_1979, you need one for windows?
<1> DogWater: It sounds like you're reimplementing extract() in large part.
<5> No...
<0> Charbal: basically all i'm doing is figuring out how many things appear in this table for 7,14,30,60,90,180,360 days
<0> Charbal in as few lines as possible
<1> DogWater: That seems like data that would be a good fit for an ***ociative array.
<1> DogWater: $count['7day'], $count['14day'], etc...
<0> Charbal: I was just going to have mysql run 7 simple date queries and count the results and set 7 vars
<7> if I want to create an rss feed from an index page is there some module/function to help in this process?
<1> DogWater: Setting 7 array indexes is better than 7 variables, especially when your proposed names are technically not legal identifiers
<8> no reason to set 7 vars
<4> danf_1979, http://www.phpeclipse.de/
<8> you can reference the array indexes for anything you want to do
<5> Ok, thanks
<0> so that'd be what $count[".$var."day] = $num ?
<9> how would i go about counting the number of occurences on each on http://www.cgtutorials.com/mag.php
<1> DogWater: $count[$var . 'day'] = $num;
<5> jbpros, it looks good. I'll give it try. Maybe I'll left behind my dear gedit
<10> is it something wrong with this? :
<10> $sql = "UPDATE eneric SET status = '$waiting' WHERE username = {$_POST['username']} ";
<5> use: username='".mysql_real_escape_string($_POST["username"])."'
<5> and do the same with $waiting, if it somes from user input
<5> *comes
<3> Do I need to "load module GD" in my httpd.conf?
<5> I think that dependes on the distro
<11> Hi there
<5> but check on modules.conf
<5> if you got one
<12> hello
<13> Hi all. How would I go about downgrading from PHP 5.1.2 to 4.x?
<12> okay, I hae this problem: I want to add ellipsis to the end of a too long string... but there's a catch
<12> the string is html
<12> so something like this: ellipsis("<a href="someurl">this</a> <b>is</b> some text", 9) should end up being something like: '<a href="someurl">this</a> <b>i</b>...'
<12> how hard would that be :S is there a module that already does this?
<14> $check = explode("\n", $Bestand);
<14> $lines = count($check);
<14> foreach count => check {
<14> echo $lines;
<14> }
<14> how should i make the foreach here so that he displays every line ?
<11> Could someone help me solve the double line issue: http://pastebin.com/634972 the result is: http://help.kdfs.net/temp/test_hierarchies/mulquery.php .. I think you can immediately see what it should -not- be :)
<11> thanks up front!
<15> what's the best way to improve google ranking?
<13> tek_: Have a good site.
<11> Use meta description wisely, have the keywords you have chosen witihn your description also be on your page, and perhaps evne your page title and use keywords that do not list TOO many hits :)
<16> tek_: constant stream of new links from different sites to your site
<17> tek_: Create a GOOD site.
<17> That is useful, and informative.
<18> anyone know a way to send SMSs in PHP? ;)
<19> yes. Talk to your provider first.
<20> I'm having some issues with the date("w", ) index..
<20> sunday starts at 0..
<21> hi guys this script i'm trying to work right keeps giving me this error
<21> XML error; Invalid character at line
<20> and the week start in sundays in some foreign contries.. but its monday in mine..
<21> but when i select something else it's all good?



<21> http://evon.be/news.php
<20> how do I go around this problem?
<21> it's just when i click pulse 24
<22> babi: that is the way it has been done.
<21> $insideitem = false;
<21> thats line 22 where it keeps erroring
<22> babi: 'N'
<20> but isnt that php 5?
<22> saksase: Parse error: syntax error, unexpected T_VARIABLE in /usr/home/users/40/evon/www/www.evon.be/news.php on line 23
<22> babi: yes.
<23> anyone here familiar with vsignup?
<20> than I cant do it on my server..
<20> but how can I change the values around, so that monday is 0?
<20> put it in a array?
<22> babi: ummmm... getting it to do what you want is matter of about 5 lines of code.
<22> babi: use a simple if.
<20> yes, I was doing some if's with minus 1 etc..
<20> but when I checked the output today it just went silly
<24> okay this is really weird... I can't get into mysql _with_ a p***word...
<24> if I go in from command line, I can get in if I use no p***word (leaving out the -p option)
<24> but I can't get a connect using mysqli
<25> What's this about ##php being removed from freenode??
<5> hey jbpros, how to I use the plugin? :S ... I've already got them in the dirs, but I can't see the option in the program
<4> danf_1979, well.. I'm currently upgrading my installation. what distrib do you use?
<4> (I mean linux distrib of course)
<5> the installation is in /usr/share/eclipse/
<5> ubuntu
<4> danf_1979, did you check if phpeclipse is not available in synaptic?
<4> danf_1979, I was actually using an old version of phpeclipse as gentoo did not provide recent eclipse packages (required by latest phpeclipse versions)
<5> php eclipse is not in the repos
<24> can't ask questions!?
<2> how could I take 2 arrays and return an array that of array1 - array2 based on the keys?
<5> Ok, I'll test it another time...
<4> danf_1979, I'm focusing on it right now. will give you feedback in a few minutes if you're still in here
<24> vhuren: just to understand... something like [ ... [element_3] ... ] = [ ... [element_1- element_2] ... ]?
<26> http://www.engadget.com/media/2006/04/flower_power.jpg
<26> and conversation dies...
<5> Yes i will be jbpros...
<4> danf_1979, still downloading latest eclipse sdk :D
<26> thats precisely why i dont like eclipse
<4> itrebal, it's size?
<4> its*
<26> jbpros: its size, its way to bulky/clunky feeling, and its written in java, which again, is huge
<0> if you're trying to make a total of everything in a table in a database; say like you have 1000 rows in a database and you're trying to figure out which things in that table have element 17 in a particular column, right.. how would you count that?
<4> itrebal, sure I have to agree with you. but it's the only one which suits me quite well
<26> DogWater: like select count(thatcolumn) from table where thatcolumn = 17; ?
<26> jbpros: i love emacs with the php-mode
<0> itrebal: No i mean, I need to count how many of something I need in order for something to be true
<4> itrebal, I should try to make the big jump ^^ -- anyway we were talking about phpeclipse because of its debugger
<0> itrebal: take for example you had an ordering system (this is the best way I can describe it really) and the manager wanted to know how many of a certain product he needed to order in order to be able to ship everything he needed to ship; so he'd want to see EVERY item that he had in his ordered_items table for orders that werent already shipped
<22> DogWater: i do things of that kind with appropriate where clausule in mysql query.
<0> really, so you dont need to make a list of any kind in order to display data in any sort of fashion, thats interesting
<26> DogWater: i see what you mean
<26> jbpros: after you learn emacs, its amazing IMO
<0> itrebal: like he'd want to know that he needs 75 of item 44, 27 of item 66; but say order 17 ordered 12 of item 44, and order 15 ordered 9 of item 44
<26> holy **** this is amazing! 3,000kb/s!!!
<0> so i'd need a foreach loop to spin down that bad boy and add those to an array
<0> or i'd need to use a mysql query and do a SUM and then break that out
<0> but i'm just looking for the best way to do it really
<4> itrebal, something I like in phpeclipse is the cl*** outlines.
<2> lets say I have a string like 2004-02-01 how do I set 3 variables eg $year, $month, $day like is there a way to split that ?
<26> jbpros: what are those?
<22> vhuren: use explode()
<26> vhuren: i think you can mix list() in there, too
<2> thanx
<2> thats what I needed
<4> itrebal, you've got a list of cl***es, their functions, members, etc. and you can browse your code by clicking on those items
<26> jbpros: sounds nice
<4> itrebal, quite useful in big OO projects
<26> i'd imagine
<26> how does it handle cl*** extensions?
<4> itrebal, what do you mean? inheritance?
<26> like cl*** a{} cl*** b extends a{}


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#sed
#ubuntu
drupal pagetree
#perl
ERROR: invalid byte sequence for encoding UNICODE php
#linux
fglrx fifo timed out
#perl
#php
#lisp



Home  |  disclaimer  |  contact  |  submit quotes