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



Comments:

<0> and query analyzer to run stored procedures
<0> and inside of visual studio .NET you can run anything
<0> but that is not php/mysql
<1> yeah
<1> apparently, php has good support for stored procedures in oracle, mssql, and pgsql, but not mysql :-(
<0> maybe you can change the SQL a bit to look like a regular query?
<1> theres gotta be a way to do it somehow tho, i'm sure i've seen an article on it
<1> haha no... its like 78 lines long and uses a few control structures
<2> friends anyone .. to replace jp character using php function..
<2> i can't do with str_replace or ereg_replace
<3> bidha2kbsd, look at mb_string functions
<3> (multibyte)
<2> thanks
<3> np
<1> hmm... maybe it will work with mysqli
<2> do i need to do set some setting in php.ini to use mbstring function to parse jp



<2> i have mbstring already loaded
<2> beside that do i need to do any php.in iworks
<2> can i use like this way .. to replace
<2> mb_ereg_replace("/!/","",$content);
<3> don't think so, but you have to use an mb string function to work on the text
<3> yes, you can bidha2kbsd
<4> hi
<4> has anyone compiled 5.1.4 with mnogosearch?
<4> i do the ./configure --with-mnogosearch=/usr/local
<4> but when linking, nothing appears
<2> can you give one simple example of mbstring searching and replacing jp character
<2> i can copy page the jp character however php parser routing understand 8 bit character set so no luck
<2> so how can i actually parse it
<5> dont work..
<5> oops wrong room
<6> anything wrong wit the syntax
<6> $dsn = "mysql://$user:$p***@$host/$db_name";
<6> $db =& DB::Connect( $dsn, array() );
<7> depends of your method "Connect"
<6> i didnt get that
<8> hello, I'm trying to understand a code written in php but commented in polish, I can't find the translation of "zawierajacych" word onto internet, by any chance does anyone know what it is?
<6> ZbouhhhTaff: I didntnderstand
<8> ***dadasd: the method of the cl*** DB
<9> how is $$var different from $var1, I mean the 2 $$ compare to $
<4> any idea about mnogosearch?
<6> nvictor: which part is wrong
<10> Luckys, I'm ***uming that $var is a scalar, whereas $$var is a reference to a scalar
<8> I don't know, I was just refering to what Zbouhhhh was saying
<6> ZbouhhhTaff: which part is wrong
<9> hawkaloogie, how exactly I utilize the reference
<11> Luckys: that just means it will use the value of $var as the variable's name, so if $var == 'foo', $$var would be the same as $foo
<7> hyum
<7> ***dadasd > your syntax seems de heavily depend on your DB::Connect( ) method ; which I don't know .
<12> i want to use a pgsql result twice as an argument to pg_fetch_array, using the same variable didn't work so i tried replicating it by simply doing $qr1 = $qr; and var_dump says $qr2 is a "resource(32) of type (pgsql result)" just like $qr but i still can't use it twice with pg_fetch_array, only the first time produces output
<7> depends of what it needs as parameters form, etc
<12> sorry i said $qr2 there, i mean $qr1
<7> so, tu sum up, ***dadasd ........ I don't know
<13> http://paste.css-standards.org/1016 - why, when start is found, does it still add the start to the URL?
<6> ZbouhhhTaff: is there nayting that is depemdant on mysql 5
<6> ZbouhhhTaff: wil this work only with mysql5
<9> $_REQUEST would be an easy method to use instead of $_GET, $_POST and $_COOKIE separately?
<5> Luckys: umm yes .. but there is a problem is for example there is a $_SESSION['foo'] variable and a $_GET['foo'] variable which is why I dont use $_REQUEST !
<9> p_mash, got it
<9> I'm still confused in when to use '' (Single quotes) and when to use "" (double quotes) in print/echo statements
<14> does anyone know how to play several .wav files at one with php ?
<15> using double quotes allow you to put variables in there, e.g. "Foo is $foo"
<15> using single quotes doesn't
<3> Luckys, if you have magic_quotes on, then php will resolve variables and other special chars inside ""
<15> also if you plan on echoing alot of html code, use single quotes because the aren't used as much as double quotes.
<16> Hello
<3> in '' php will not try to resolve the vales
<16> I have create a socket server
<15> nico: congratulations!
<16> The problem is that data I receive are truncated
<5> Luckys: you should use single quotes for strings unless you want variable substitution (it aslso speeds things up) ... eg echo 'hi $foo' will output 'hi $foo' wheras echo "hi $foo" will output "hi fred" (***uming that $foo = fred)
<10> basically: print '$var'; will print literally: $var, while print "$var" will print the value of $var;
<16> I set the number of byte to read for the socket_read functon to 60000
<10> beat me to it :'(
<16> and date I send to the server are smaller than that
<15> hawkaloogie yes.
<15> nico follow inner protocol regulations, and not tcp/ip.



<9> and this would be same echo $_GET['foo'] compared to echo $_GET["foo"]
<15> If the data is split via \n then I suggest keeping a buffer until you reach \n.
<10> i totally wouldn't be able to answer questions in here if Perl and PHP weren't similar
<10> Luckys, yes
<15> Luckys, its the same thing in that case.
<5> Luckys: use single quoted unless you need variable substitution.. also makes code clearer.. and faster ...
<3> Luckys, be aware: php hates this: "blah blah $_GET['foo']..."
<16> endra>I didn't send a \n it's only a long string
<3> nico, I would suggest setting a delimiter, which you can then look for at the other end
<3> eg, after each chunk, send a \n
<16> I already do that
<3> setup your socket to read until it reaches the delimiter, rather than a set size
<15> initialize buffer to nothing , loop while no more data, get data, push to buffer , check for delimiter (\n) , repeat loop
<15> those are the steps, send like this: data . "\n"
<9> ^^angusta, can I use "blah blah {$_GET['foo']}"
<5> Luckys: yes
<3> Not sure, but: "blah blah $_GET[foo]..." works
<3> for some reason, single quotes on an array index, inside double quotes causes kittens
<3> irritating when you try to fix some scripts up to remove all the notices.....
<9> print_r($_ENV) prints Array ( ) is there any value in it?
<15> oh yes gosh dont you see it?
<15> ;p
<15> when it shows only Array( ) it means there are none.
<15> Try print_r($_SERVER) for an example of a filled one
<17> Urf... Need more sleep...
<18> having issues getting php5 working on windows apache 2.2.2 anyone could advise?
<15> Did you eat your vegetables?
<18> Yes every last one
<15> And did you follow every single step to the last one in the installation file?
<18> AFAIK
<18> I have installed PHP5 and Apache 2 on windows systems many times it should be simple. But this time whenever i attempt to fire up apache it fails....but only when i add the php loadmodule directives etc to the httpd.conf
<19> Anyone know why Debian does not build php5-mysqli ? (php5-mysql is build against mysql5 libs)
<20> I am doing a select in my table and it is bringing me several data, but at the field datetime, when I print it out at php it seems to be empty, but when I do it directly from mysql it is there. Is there something special with this type of field (datetime)?
<20> the field name is last_acess
<21> Azuos001: I dont think so
<22> test
<20> $_SESSION[ultimo_acesso]=$register['ultimo_acesso'];
<20> echo "teste:".$register['ultimo_acesso'];
<22> I'm trying to use another channel, but nickserv keeps telling me to register - my nick is already registered and it won't accept my p***wor when I try to identify - anybody know how to beat the nickserv into cooperation?
<20> I am getting my field with -> $_SESSION[ultimo_acesso]=$register['ultimo_acesso']; and trying to print it with -> echo "teste:".$register['ultimo_acesso'];
<20> ultimo_acesso = 2006-05-30 10:20:30
<20> ultimo_acesso = 2006-05-30 10:20:30 in my database
<20> how php would treat this kind of field? as a string?
<20> ^Duffy^
<21> Azuos001: http://www.google.no/search?q=field+(datetime)+php&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official
<9> how do I add tab /\t within a string""?
<9> http://rafb.net/paste/results/2SJCpp44.html
<23> i want to user header("Location: page.php"); but i want the parent window to redirect (its from within a frame... any idea)?
<24> Luckys: isn't it $_GLOBALS ?
<19> Andy298 php != javascript. Dont forget "exit();" after header(). And the Location http header requires absolute urls, according to rfc 2616 btw
<24> Luckys: wait, nvm :P
<25> I am making a forum and just wondering what the logic behind selecting forum topics by the latest forum post, I am using mysql and this might not be the right place to ask.. But does anyone know a good referance I can learn from?
<9> RvGaTe, how can I print all the elements in the $GLOBALS
<19> Morrye php.net/manual/, php.net/books.php, mysql.com ? There are tons of docs available
<23> wombachi: why do i need exit() after header()?
<19> Andy298: without it, the php code continues to run, leading to (hard to find) bugs
<23> ah (Y)
<25> wombachi: I know php quite well and have been successful in developing a forum but this is my only problem, I ***umed forums selected by ID.. Do you have anything more specific?
<19> Andy298: the browser would receive the "Location" in http headers, and some content in the http body (before following redirection)
<19> Morrye: you'll probably need to learn more about SQL. Ask google for tutorials or more advanced docs
<9> :[
<19> Morrye: you'll need something like SELECT id from posts where threadid='x' order by date desc limit 1
<19> Morrye: to get more recent post in a thread
<25> wombachi: The only thing is that I have one table for topics and one for posts.. I guess that was a stupid way of doing?
<19> Morrye: not stupid, but way too simple for a "real" forum (with threads etc). DB design is not something easy.
<25> wombachi: It has categories, threads, topics and posts.
<25> Topic just contains the first post when the user creates a topic
<25> and posts contains all the others so I need to select from both tables.
<9> how can I print from a loop array{array{array{value}},value}
<19> indeed, this is basic SQL.
<26> hi
<25> wombachi: I know but I have turned it into something hard, I need to select from both tables (using join) but then limit the information coming from posts or it will display all posts and topics.
<19> Morrye: you'll obviously have to learn SQL (yes, the basics). It's not that hard.
<20> which of these types would be better? datetime or timestamp. I bought a book that says I would likely use datetime or date more often than any other. But I am taking a look at http://uk2.php.net/date and it works only with timestamp. Does exist any other functioon that work with datetime?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#css
#sed
Ubuntu VGA support
#linux
Module snd_ioctl32 not found
ubuntu manage file types
#linux
ensoniq es1371 Audiopci-97 soundcard
libdvdread can't seek to block
ncurses-term ubuntu putty



Home  |  disclaimer  |  contact  |  submit quotes