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



Comments:

<0> In fact this would allow to get Javascript code in mysql, so if I ever forget to use htmlspecialchars or htmlentities, that would be a security hole in my app
<1> what can i do if i want to create an array of the items matching my pattern that i've found in preg_split() instead of an array of the items between my matched pattern?
<0> is there a way to deny javascript to enter mysql?
<0> maybe some kind of regex?
<2> danf_1979: I have no idea what you mean by e107.
<0> e107 is a CMS
<0> from time to time I study CMS's code to get some ideas
<0> what was that about?
<0> Elazar, ?
<2> danf_1979: If I or the docs haven't answered your question by now, I'm not sure anyone else is going to be able to answer it, either.
<3> where can i get php code for validating a mac address ?
<0> I'm talking about the private msg
<0> Completely out of place
<2> (9:34:12 PM) danf_1979: e107 is a CMS
<4> why this doesn't works _("current number is: %d", $number); php claims there is a Wrong parameter count
<0> yup, so? I'm with a big "?" in my face



<2> stone_head: There's a function called _ ?
<2> danf_1979: You asked a question earlier, I answered it. If you have a specific question about e107, that's what that msg from the bot was for.
<0> No no, the fact that I named the CMS is irrelevant
<4> Elazar, yes, alias for gettext()
<0> I was asking about htmlspecialchars
<2> danf_1979: And I answered you.
<0> I read a lot opensource software...
<0> Yes I know, just the bot annoyed me with the message, thats all
<3> is there a way i can make a php execute an ssh script to loging to a remote site. i am trying to use ssh keys but not sure how to do it from php
<0> I didn't understand
<0> but dont worry
<0> :)
<2> dos000_: exec("./path/to/script");
<3> Elazar, how do you use ssh keys with that ? hmm this is not su much a php question tho
<3> Elazar, is it possible to do an scp from php itself ?
<5> What's the function to flip an array again? I forgot.
<5> So if I have 10 elements, I want them in reverse order
<4> found it
<5> array_reverse()
<6> is there a function to take an array, find all elements with the same value, and return the sum of those counts in an array? or anything I could use to do that?
<2> dos000_: Not that I'm aware of.
<2> TheoCode: array_count_values()
<2> TheoCode: Is it really so difficult to read the docs? *rae*
<6> okie, thanks, I'll give it a go
<0> Ah, Elazar, you know how it works :) nobody reads the manual until they realize they must read it... :)
<0> it takes time
<6> I read it all the time :)
<2> TheoCode: Apparently not, if you couldn't take the time to go to the Array functions section of the manual and find that function yourself.
<2> Between the docs and the user comments, PHP is one of the best-documented languages I've seen.
<7> Elazar: agreed -- I'm actually going to try and take the PHP doc model and apply it to Asterisk documentation
<2> nubbrage: What's Asterisk?
<7> Elazar: *gasp*!!!!
<7> www.asterisk.org
<8> Elazar: an open source PBX
<7> and open source PBX system
<8> sponsored by digium
<7> created by and owned by :)
<7> but, yah
<2> nubbrage: Um... K. What's a PBX?
<8> a computer based phone router basically
<2> Oh-kay.
<7> Public Branch eXchange -- a PBX is a system that you can connect to multiple phones to and connect to the phone network -- its usually the big gray box at medium to large companies
<2> Gotcha.
<9> $variables in a while statement... is it private?
<2> bashusr: I don't believe so.
<9> while($var=mysql_fetch_***oc($query)) {}... The $var should still be available after the while statement... shouldn't it?
<2> bashusr: I think so.
<9> dissapears for me :-/
<9> if i put $test=$row['id'] within the while {}, $test=1
<9> when i take it outside of the {}, $test=""
<9> OH WAIT
<9> i get it
<9> $row=false after the while statement...
<9> nvm
<10> is it possible for me to open a sql connection in one page and have it carry over to the next page without opening a new connection
<11> I have a var $cat = '../news/article/2342.txt' I'm trying to trim to $newcat = '2342.txt' but the /in the path makes php think its a comment
<12> how could I quickly remove all empty values from an array?
<13> omnipresence: http://us2.php.net/function.mysql-pconnect
<13> BrutusUnix, paste your code please
<0> Maybe is another way, but:
<10> thanks trevis



<0> foreach ($array as $value) { if (!empty($value)) ret[] = $value) }
<14> are carriage returns always \r ?
<13> \r == cariage return, \n == newline
<12> no other way than looping?
<13> its a fact
<0> and array $ret would have the none empty arrays
<11> Heres my code-->http://pastebin.com/632039
<13> danf, try this: $newArray = array_diff($yourArry, array(""));
<13> that *might* work
<14> when entering data into <textarea>'s are carriage returns usually sent as \r\n ?
<13> cyphor, not sure exactly
<14> k
<0> vhuren was looking for that answer...
<13> oh, my mistake
<13> vhuren then :p
<0> :)
<11> I Want the value to just be the file name reference--->http://pastebin.com/632039
<14> probably depends on wrap, forgot about that.. I have my textarea set to wrap=virtual, and the only way I can remove carriage returns is to do a str_replace("\r\n", "", $string)...
<10> does php support 4 dimensional arrays
<13> k, well BrutusUnix, i gotta run for a few, gotta help bring in groceries, if you are sitll having trouble when i get back, let me know
<14> it supports as dimensional as you'll need =)
<11> ok thanks
<11> Can anyone else help me?
<15> Hello, I am trying to use CURL functions in Win32.
<14> omnipresence: trying to remind yourself you're not alone? hehe =)
<15> First it does not work.
<15> So I downloaded the libeay32.dl and ssleay32.dll to my windows\system32 directory,
<16> anyone got a min to help me figure out a config issue?
<15> then it says some error, it told me to get vsinit.dll
<15> I downloaded it and got the following error:
<15> The ordinal 110 could not be located in the dynamic link library SSLEAY32.dll
<17> iotashan: what kind of issue?
<15> How to I fix it?
<16> I can't seem to get php to talk to mysql
<18> iotashan: is MySQL loaded in phpinfo() ?
<17> iotashan: you mean can not connect ?
<16> ah-hah
<16> I found a useful error
<16> Call to undefined function: mysql_connect()
<15> I am going to use FSock instead
<15> Warning: fsockopen(): no SSL support in this build in D:\web2\MSNBot\c.php on line 4
<15> There is no SSL support in this build, how do I fix it?
<16> anyone got a link handy that explains what I need to do to get it working on a defaut RHEL4 install?
<17> iotashan: iotashan: can you check your phpinfo , is there "--with-mysql" show on phpinfo
<16> dann: yes
<16> http://trouble.iotashan.com/phpBB2/test.php
<16> with-mysql=shared
<18> iotashan: You are NOT loading the mysql module
<19> iotashan: check your apache error log
<18> change your php.ini to show startup errors, and restart apache, you will see
<14> --with-mysql=/path/to/mysql
<16> cyphor: mysql isn't on the server
<20> I hav a function file that has existing open connections to mysql, but throughout the script, when i try to perform queries and connect to another db/server, the rest of teh script stops functioning (i believe its cause the other previous connection closed out or somethign)
<16> mysql is on another machine
<20> what can fix this? cause i tried specifying "1" and "true" on the mysql_connect() function, and still nothing
<19> uideqzero: is it giving you an error message?
<17> iotashan: if it's in different IP , maybe you should consider about firewall issue
<19> iotashan: you still need the client libraries to be able to connect.
<16> CryWolf: ah-hah... lemme see what I have here
<20> no its not giving an error msg cause it connects successfully
<20> but the rest of the script jsut stops...
<19> uideqzero: turn on error reporting, and see what the error is when it just stops.
<14> yea, just won't need anything like --with-mysql-sock=/path/to/socket etc.. but like CryWolf said you'll still need the --with-mysql=/path/to/mysql-client-libraries
<14> or so I believe =)
<19> or even just --with-mysql if your libs are in a standard location. I think ./configure will tell you if it finds it or not.
<14> true
<13> back
<16> oh crapola... hello redhat RPM hell >:(
<16> thanks for pointing me down the right path!
<15> When I am trying to connect to ssl server, it says there is no SSL support in this build, how do I fix it?
<14> How many stinking variations of carriage returns and line feeds to we need?!?!
<14> get a build that has ssl support
<21> if I edit an object in a foreach loop, how do I make it take effect outside the loop
<21> so..:


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#osdev
#perl
#physics
#php
isgenerator type python
#web
#kde
www;thebeers.com
undefined symbol pango_x_get_context gentoo
$_GET or $ REMOTE_ADDR uk2



Home  |  disclaimer  |  contact  |  submit quotes