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



Comments:

<0> cisse: yes, and will no longer be an array
<1> niraj: now we're getting somewhere
<2> hello
<2> had someone installed a php icalendar?
<3> Hyjak: well php isn't loading the mysql extension then.. check php.ini
<1> niraj: fatal error is gone
<3> Hyjak: oh.. works now? :)
<0> Blackhold: i'm sure someone has, but it won't be supported here
<1> niraj: yea, typoed, just noticed, meant is now working
<2> b1n0ry, there's no channel that supports it :(
<4> b1n0ry: thx
<1> but why does it want to download some pages, and not others ...
<1> maybe i need global cariables on
<1> variables **'
<5> hy ,how can 1 make this valid?
<5> $d_browser="Opera/8.51 (X11; Linux i686; U; en)<:1/>";



<0> Blackhold: then that would be a problem with the developers
<6> DjDarkPingvin: 'valid'?
<3> Hyjak: might have something to do with the webserver if the files you're being asked to download have a different extension from the others
<6> DjDarkPingvin: If you're referring to HTML validity, you just need to entity-fy the angle brackets. See http://php.net/htmlspecialchars
<5> yes mattmcc i cant store that data in that string that way
<1> no, for example login.php coems up fine, but when i throw a ?page= in there, it tries to download it
<6> DjDarkPingvin: You can, there's nothing wrong with string.
<6> DjDarkPingvin: However, if you were to echo it back out to a browser, it may trip over the <:1/>.
<3> Hyjak: never seen that before..
<1> yea, thats not the problem, since my index page works fine
<5> no mattmcc i don`t have problem with that
<1> niraj: (whole site was programmed like that, so i know its worked)
<3> hmm
<7> hey guys, I'm trying to create a dynamic lookup function, so you feed in the table, field and criteria, so instead of doing mysql_query("select * from table where field="value"), you can do: function lookup("table", "field", "info");
<3> Hyjak: well i don't know what would cause that
<1> ill try to figure it out
<7> How can I make a query use a certain word, i.e.: $field = "id". mysql_query("select.... where $field = "1");
<8> is there a function to remove an entry from an array based on its value? i.e. $ar=array('a','b'); array_remove($ar, 'a'); -> $ar=array('b');
<7> so instead of searching "$field" it searches the value within it
<1> niraj: thanks for the help
<6> Pyramide: http://php.net/array_search
<3> Hyjak: np :)
<9> how does one easiest filter out double from an array?
<1> hmm, only the first $page in the script tries the download it, the rest done
<1> dont
<8> mattmcc: not exactly what I wanted but that also avoids the loop, thanks
<9> array_unique! thanks..
<10> gary: WHERE foo = $bar
<10> gary: I'm not sure why that was so hard for you...
<3> Hyjak: sounds more like a browser cache problem.. :P
<7> mmmm
<7> Well TML what if $variable = "foo"
<7> and I want to do : Where $variable = "some value"
<10> gary: I don't understand what you're asking me.
<7> so $variable can be whatever, and it will substitute it for the correct field
<7> ok, normal query: "... WHERE field_id = 1"
<10> Right
<7> dynamic query: $variable = "field_id"; "... WHERE $variable = 1"
<7> so all I have to do is change $variable rather than the whole query
<10> gary: What's the question
<7> how can I get the query to use the value within the vairable, rather than literally trying to search a field called "$variable"
<7> so the query will see $variable, and will substitute it for the field name within it
<10> gary: The query won't see $variable unless you do something silly
<7> oh right
<7> silly me
<10> gary: PHP does string interpolation before p***ing the query to the DB
<7> I didn't think it would be as simple
<7> inter..pol.ation?
<7> lol
<1> niraj: the warning i get is because the table doesnt exist. gotta come up with somethign else to create it because it tries to dl the page.
<1> niraj: heh, stupid cache... cleared it and it came out fine.
<11> <7> It's like you're speaking some kind of language... I just know it....
<12> hey guys
<5> $d_browser="Opera/8.51 (X11; Linux i686; U; en)<:1/>";
<5> why isn`t this correct?
<12> when I use this code: http://pastebin.com/547183 it will not insert the the infor into the the db why?
<13> can anyone help me out with a backtrace? I am attaching gdb to a fastcgi php process and when i do that, my script stop responding on the web site
<14> can anyne tellme why this: http://pastebin.com/547190 doesn't work and coughs tstring errors?



<5> someone please chek this out ,it`s not long http://pastebin.com/547189
<5> never mind i see the problem now
<15> http://rafb.net/paste/results/uLPlDr44.html <-- text on blank transparent png images, produces a black image when i try it, the code should work because it's from another script i've made which works using a regular png image, this one is transparent
<16> nocturnal: which browser are you using?
<15> opera but i tried in firefox to
<15> i'm afraid i don't have ie available
<6> There are worse things in life to not have.
<15> i was just about to give up and try a transparent gif or a regular png
<15> thought i'd ask one more time
<0> mattmcc: i can think of one
<0> nobody has suggestions for a php-based accounting software?
<17> jonnay: you there still?
<12> what does this mean: Column count doesn't match value count at row 1
<17> for some reason i can't load php pages from apache 1.3.33 can anyone help...?
<18> good afternoon everyone
<12> junix|work - do you have php installed?
<18> !tell junix|work about at
<12> !tell junix|work about at
<19> S^Gerbitz: Can you give us some context? I'm guessing you're talking about an SQL insert operation, and that would mean pretty much what it says. the number of columns you gave it != the number of values you gave it.
<12> dj_segfault - http://pastebin.com/547183
<12> dj_segfault - any ideas?
<19> S^Gerbitz: Missing a comma between '$time' and '1'
<12> okay thanks
<12> dj_segfault - thanks been looking at that forever..
<19> S^Gerbitz: Different eyes make all the difference. That's why pair programming is more efficient than most people think.
<12> dj_segfault - yeppers, I mean, I hate it when you forget a damn comma, or ; or '`
<12> you know
<19> S^Gerbitz: Nope. never happens to me
<20> pair programming makes it so programmers cant waste time surfing slashdot
<21> I'm trying to use imagepng to dynamiclly render iamges... I've got the image rendering working like I want, but I've run into a snag.... it outputs directly to the browser... I need it to be placed somewhere within my HTML
<19> Myconid3:pair programming makes it so programmers can waste time surfing pr0n
<21> how the hell do I do that? output control won't work, that just puts it to a string... it's still raw PNG
<20> ee99ee: <img src="script.php">
<22> or take part in pair surfing
<21> Myconid3: bingo! thanks
<20> np
<20> or.. for even more fun
<20> call your script page.php
<20> and have the image code right in it..
<21> Myconid3: what do you mean
<20> and do <img src="page.php?displayimageid=1">
<21> oh
<21> well
<21> same thing
<21> lol
<20> that would be cool.
<21> that's what I would do anyway.... index.php?task=generateImage.... that would call my business logic cl***, which would call the UI cl*** to generate the image and return it
<21> all in all, same thing :)
<18> whats that dyndns domain, ath.co.uk or something?
<17> itrebal: i saw the message you sent me, its still doesn't work.....
<18> junix|work: i couldn't help ya, sorry
<17> ok...
<17> who can?
<18> ask arround
<17> well i have been
<17> for some reason i can't load php pages from apache 1.3.33 can anyone help...?
<23> junix|work: what happens when you try?
<17> i get Forbidden on the file
<17> i am trying to setup vanilla
<23> junix|work: change your permissions so that the apache user can read them.
<17> i did
<23> junix|work: what does it say in the error log?
<17> http://channels.debian.net/paste/1779
<23> junix|work: can you display ordinary html pages?
<17> no
<18> #apache would be of help
<17> no
<17> they wouldn't help either
<23> junix|work: if you can't display ordinary pages, #apache will be of much greater help. The error message you posted has nothing to do with php.
<24> hehe, it is the re-direct efect.
<24> junix|work: Try looking at your document root..
<24> Get an ordinary HTML page to display, and then try a PHP page.
<24> If you can get an HTML page working, and PHP is still broken, come back in and we can help.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#openzaurus
unable to open hda fdisk qemu
Syntax error converting the varchar value 'kk' to a column of data type int.
#linux
#css
wmii notification area
sudoers php.ini exec
t60l198 driver
#lisp
fedora fullscreen color inverts



Home  |  disclaimer  |  contact  |  submit quotes