@# 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> Anyone on with PHP5.1.2?
<1> ||cw: what about something similar to Advanced PHP Debugger??
<2> dragan: try it?
<2> !tell kennebel about g1
<3> ||cw : I was just gonna try that...
<4> ||cw: i need to make sure there are no empty values at all before i pas the array to a function
<4> i'm not sure if array_map does that
<2> JaredCE: did you even read what array_map() does do?
<0> ||cw: Most of the time when i ask a quetion, no one answers. :) I'm trying to make cURL work with ftp over ssl, yet several of the constants are not defined even though the manual says they should be.
<5> there we go
<0> Examples: CURLOPT_FTPSSLAUTH, CURLFTPAUTH_SSL
<5> now it's redirecting custom to ssl pages :)
<0> Can anyone do a var_dump() on these?
<3> ||cw : php_admin_value auto_append_file "" (I tried also "none" and "false") doesn't work
<2> kennebel: was your php AND curl module both compiled with ssl support
<0> (sigh) Ask a question, and then your network connection dies.



<6> kennebel: Well ||cw answered: [15:59] <2> kennebel: was your php AND curl module both compiled with ssl support
<0> berry__: Thanks. :)
<0> ||cw: WIndows. using provided binaries. (could not for the life of me get a custom windows php5ts.dll to compile, i dislike windows so much)
<4> ||cw: whats the matter with this line: if (!empty($array = array_map($clainfo))) it says = [Wed Apr 12 15:05:21 2006] [error] PHP Parse error: parse error, unexpected '=', expecting ')'
<0> https:// works just fine.
<0> ||cw: curl is claiming "libcurl/7.14.0 OpenSSL/0.9.8a"
<7> JaredCE: http://www.php.net/empty
<7> "Note: empty() only checks variables as anything else will result in a parse error. In other words, the following will not work: empty(trim($name))."
<4> ahh
<8> Is there a plugin or extension for firefox that plays like .wmv, .mpg, and .avi files /in/ the browser?
<9> njdavid, wtf does that have to do with PHP?
<0> njdavid: How is this a php question?
<8> Nothing really.
<7> Because browsers show PHP pages?
<8> lol
<8> :P
<4> ok i have no idea what i'm supposed to do with array_map
<0> JaredCE: You need to provide two arguments to array_map, a string which is the name of a function, and the array.
<10> How would I run: "mkdir -p $dir" using php?
<10> exec?
<10> Nevermind. Sorry I did that. =)
<0> JaredCE: It then applies the function against every element of the array.
<11> <7> I got put in a closet for an entire day in middle school because a kid said I stabbed him with a pen
<7> Stop digging up old quotes, biatch
<11> giggles
<4> kennebel: i need to check an array for any empty elements,
<7> Do you want to remove them, or just check if they exist?
<0> JaredCE: You should use array_filter() then. Create a function that p***es back "true" on strlen of one argument, and use that as the callback.
<0> JaredCE: array_filter("mycallback", $array); function mycallback($a) { return (strlen($a) > 0 ? true : false); }
<2> njdavid: MediaPlayerConnectivity
<2> kennebel: https is apache, not php.
<10> Say I wanted to do exec('ls'); how would I get the name of all the files in the current directory?
<0> JaredCE: Ooops, reversed the array_filter arguments.
<10> This only *seems* to return the last one.
<0> ||cw: Do the get_defined_constants() come from the web browser?
<8> ||cw: Does it work well?
<0> cynic: If you read the manual, there is a way to capture the entire output.
<10> Oh, hint taken. =)
<12> hello does anyone know how to extract the year from 20060329014542 ( stored using now() )
<11> fm_1986: DATE_FOMAT
<0> fm_1986: substr($string, 0,4);
<12> ok thanks i will try it
<11> no need to use php, do the conversion when you SELECT, much faster
<10> Ohh... ls -m =)
<13> Hello!
<12> <11> if i would like to take the month, date and time without seconds how can i do that?
<13> Erm, I have a little problem about php.
<13> But not actually a coding problem, more an error_report issue.
<13> Well, I'll just ask: error_reporting= E_ALL is'nt working.
<13> It just logs the errors into the server file, but dont show anything on the output.
<2> njdavid: it's nice on linux, I use it to make mplayer play all embeded vids
<13> Any idea about that?
<12> hello does anyone know how to extract the year,month,date and time without seconds from 20060329014542 ( stored using now() )
<13> You can always use date, I guess, let em see.
<0> fm_1986: Already mentioned substr. :)
<14> fm_1986: http://www.mysql.com/search/index.php?q=date_format
<2> fm_1986: look closely, that's YYYYMMDDHHMMSS
<13> Ok, now(); it's not working here.
<13> Something's very wrong whit my php. :-/
<2> fm_1986: i'm guessing you mean "now()" in mysql, might be more flexable to use mysql's function to confert it to a unix timestamp and then use date() from php
<13> WTF?: [Wed Apr 12 10:33:47 2006] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function now() in /var/www/html/index.php on line 9



<2> Vanscot: now() is not a php function
<12> <2> is a php function :)
<13> Just checked that-
<13> Lol
<13> Anyway, about my first problem, any idea?
<2> Vanscot: error reporting and logging are seperate settings.
<13> I mean, why it's not showing the errors on the output?
<13> YEah, I know.
<2> and?
<13> Error logging is working fine, but error reporting is not.
<2> no no
<2> error reporting control WHAt is logged
<2> error logging control whethr it gets logged to echo'd in line
<13> But, how can now display the errror on the site?
<2> tunr off logging
<15> display_errors tells to show errors in the browser
<13> Ok, wait.
<13> Current settings: error_reporting = E_ALL, display_errors = On, log_errors = Off
<13> Should that do the trick?
<13> Because it's not working.
<2> restart php?
<2> er, apache?
<13> Ok, doing now that.
<2> also, you could have an apache vhost directive or an .htaccess that is overriding it
<2> generaly it's considered better to use a log though
<13> Maybe, but I'm used to see all errors first on dev stage.
<13> Anyway, It's working now, tks.
<13> So, every time I modify the php.ini should restar httpd?
<2> yes
<13> *restart
<13> Tks.
<16> how can Ic ount the number of files in a folder?
<10> The permissions when I try to run: mkdir -p file/path/whatever aren't set to 0777 like the documentation says it should What should I look in to?
<13> It happened to me sometimes, cynic, i cant tell the perfect solution, but chmod worked to me.
<17> Guys, I'm possibly going to use a profiles system, whereby if you are on your profile, and click a field (e.g. hobbies) it will change it using JS to an input. When that input is blurred or an ok button is hit, it'll change the value via AJAX. The problem is, how secure is this? Basicly it will just be a GET command like editProfile?field=hoobies&value=whatever, which i suppose someone on another site could misuse by redirecting peopl
<17> e there. How could I secure this?
<18> hey.. is it possible to ***ign value to a variable with EOF? i tried $buffer <<< EOF randomtextgoeshere EOF; but it does not work
<19> instruction Google Adsense--> http://planet.nana.co.il/hartk2003/en.htm Download free Firefox --> http://planet.nana.co.il/hartk2003/Firefox.htm
<17> That guy needs to be banned, he's always doing that
<13> Or he needs a life.
<0> whyz: $buffer = <<<EOF\n random text\nEOF;\n
<13> Anyway, Storm, you can try sending via post using JS, I guess.
<13> And always checking a refeerer
<17> Vanscot: Hmm
<17> Vanscot: Not a bad idea.
<19> instruction Google Adsense--> http://planet.nana.co.il/hartk2003/en.htm Download free Firefox --> http://planet.nana.co.il/hartk2003/Firefox.htm
<13> Well, #spam is empty.
<20> good morning
<13> :-/
<21> mysql_query($sql); does not return a valid MySQL result resource? $sql = "SELECT * FROM cmstest WHERE username = 'craigf'";
<13> Hi there.
<20> I'm doing file uploads with versioning
<21> I'm baffled :/ works fine else where
<20> right now i get (for example) filename.vsd.r1
<13> Mace, what ver of php are you using?
<20> I'd like to parse out the filename and drop the r1 in front of the extension
<20> any simple hints?
<21> 4.3
<13> JonathanD, you can explore and the recompose the file name.
<17> `Mace: Sure theres not an error?
<13> *exploDe
<13> Fatal error: Call to undefined function mysql_query() in /var/www/html/index.php on line 7
<13> O_o
<17> mysql_query($sql) or die (mysql_error());
<13> Ok, now this is weird.
<22> if (stripos($file,'.jpg')) { <- that will only work if .jpg is in string $file, correct?
<17> Vanscot: You don't have the MySQL libraries installed.
<20> so I'll get an array full of pieces
<20> put the pieces back together with .r1 thrown in
<20> aye?
<13> Argh, I hate yum now.
<17> Andy--: Ah ha. But don't trust it. Someone could do filename.jpg.exe :P
<13> JonathanD, yup.
<22> its my files i'm checking stealth


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#ai
#linux
#suse
azureus suse gbv smart
mysql match against score stays 0
installation of directadmin-MySQL
#css
#centos
#php
#php



Home  |  disclaimer  |  contact  |  submit quotes