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



Comments:

<0> I've used fp***thru & readfile...for some reason it will only download 2mb of the file instead od 12MB & I increased the memory limit.. not sure what to do here
<1> is suphp usable and stable?
<2> I have a mysql databases inside i put contents of textarea with htmlentities(content) and mysql_real_escape_string, after i get them with query and i make a eregi() on contents of databases, and text i write inside a input type=text, and like i'm french i have "accent", and impossible to find word with "accent" is someone can help me ?
<3> is there any way to p*** in multiple arguments to a callback from preg_replace_callback?
<4> mod_cure: php.ini, search for "upload_max_filesize"
<5> I ***ume you've raised the upload limit?
<0> downloading the file
<0> using php to download mp3 file
<5> oh, sorry.
<0> it dying aourn 1-2MB
<0> going nutz not surw why
<4> mod_cure: Then you need to be changing the upload max filesize because as far as the php client is concerned, the download is an upload.
<6> Zmanu: Why are you using htmlentities() on something that you're storing in a database?
<7> CryWolf thanks for your reply
<6> Zmanu: I mean, mysql_real_escape_string() makes sense, but not htmlentities(). You should only use that when displaying something.
<4> mod_cure: What are you using to transfer the file?



<8> Performance issues ?
<2> Elazar: i use it, to not need it when i display content
<0> using the code at bottom of page
<0> http://us3.php.net/manual/en/function.readfile.php
<4> mod_cure: *thinks* Wait... wait. Lemme guess. The cut-off isn't always at the exact same byte, is it? It varies slightly?
<0> pretty much the same byte
<2> Elazar: gonna remove htmlentities before put inside database, and see if better, thanks
<4> mod_cure: Pretty much or exactly?
<6> Zmanu: Sounds like your problem has more to do with MySQL than with PHP. Try #mysql.
<7> but an E_WARNING is like an E_NOTICe, what is precisely the difference
<2> Elazar: i don't think, because my problem is with use of eregi
<2> not with mysql
<0> the same
<0> 1.90MB
<6> Zmanu: You're using eregi() to search for an e with an accent?
<2> yes
<4> mod_cure: What speed is your connection in that direction?
<0> fast
<0> cable modem
<0> its not the speed
<2> Elazar: why is it impossible ?
<6> Hm... anyone know for sure if PHP supports extended ASCII?
<0> if I download the mp3 file directly it works perfect, takes a few secs
<6> I know it doesn't support Unicode until PHP 6, which might be Zmanu's problem.
<0> Ahroun, not sure why raising the upload limit would fix this
<5> okay, now is there something like tr's squeeze?
<4> mod_cure: It may be. If your script is timing out at 30 seconds, then it might why things are getting cut. Try chaning your max execution time and see if the cut position is different.
<2> Elazar: you think that it's impossible to look for a letter with accent
<0> did that already
<6> Zmanu: No, although if you were using htmlentities() when you stored it then you'd have to be looking for the HTML entity when you pulled it back out again.
<9> Is there any way to specify what charset and collation PDO uses? It is scrambling my output result set from db!!!
<2> Elazar: that's why i do a htmlentities on text i'm looking for
<6> Zmanu: Hm... pastebin your code?
<0> I raised the upload limit but it didn't work. I figured it wouldn't since download != upload
<10> Hello, I have a problem : p***trhu() works fine except with the command perl or perl scripts. Why ?
<2> 2 mins
<11> need a regex to replace 12345: (series of numbers followed by a colon) with ""
<4> mod_cure: But now we have useful diagnostic info that we didn't before. If you want help, drop the confrontational attitude.
<6> Leo18: What happens when you use p***thru with the command perl or perl scripts?
<9> Does PHP5.1.2 support unicode?
<0> Ahroun, u r right, sorry
<6> Narada: No. PHP 6.
<0> just going nutz, I tried so much so far.
<12> www.muzyka.oz.pl :D
<12> http://www.muzyka.oz.pl :D
<2> Elazar: http://pastebin.com/651576/ is moteur.php
<10> nothing
<10> I see nothing Elazar
<9> Is SP support screwed in PDO?
<9> I mean stored procedures.
<2> Elazar: http://pastebin.com/651578/ is trait_moteur.php
<4> mod_cure: For example, now I know it's not the upload size, I know it's not your execution time. *thinks* Have you tried it in different browsers?
<6> Zmanu: I don't see any eregi().
<2> Elazar: http://pastebin.com/651580/ is mot_cle.php
<2> Elazar: in this one ^^
<0> Ahroun, I tried that just now, samething
<0> it hang on 1.90MB then after a few secs, the complete window comes up
<4> mod_cure: Hrm. *thinks* Tell me... what are the last few bytes in hex ?
<6> Zmanu: 98 if (eregi(htmlentities($mot),$row[$j]))
<6> Zmanu: Thought you said you were calling htmlentities() before you stored it?
<0> not sure



<6> Zmanu: If that's the case, why are you calling it again there?
<10> Hello, I have a problem : p***trhu() works fine except with the command perl or perl scripts. Why ?
<2> Elazar: i use htmlentities when I put contents in database
<4> mod_cure: Check the return from ReadFile. if( filesize( $yourfilename) == readfile( $yourfilename) ) { echo "Tell ahroun that readfile is binary safe."; } else { echo "tell ahroun that readfile is NOT binary safe."; }
<2> Elazar: the second htmlentities is for text in when to compare with content inside database
<6> Zmanu: Hm... try outputting $mot right before 98, view the source of the page, and see what shows up.
<0> Ahroun, samething but I can't see results
<2> Elazar: i can't see source, because it appear in a layer, and you can't see source code inside a layer
<0> when I use the filesize() it says 12705920
<4> mod_cure: hrms. point taken. um... *thinks* instead of echos, create a file called error.txt and save either 'is binary safe' or 'is not binary safe' to the file, then after you try to download the file, access error.txt and see what's in it
<6> Zmanu: You can change the way it outputs data so you can see it.
<9> Are there any PHP devs around?
<6> Zmanu: More than likely, the entity encoding (or lack thereof) varies between the variables you're using and you don't realize it.
<2> Elazar: how do you want is do that
<2> Elazar: i think to that
<6> Zmanu: So just output them to see what they are, to confirm that the encoding is right and you're searching for what you think you're searching for.
<9> Anyone use PDO with stored procedures?
<2> Elazar: i can't see change, because htmlentities done "accent" and whitout htmlentities i have "accent" too
<2> so i see no difference
<2> but eregi see one
<2> but which one
<13> Narada: i tried once, never worked right. adodb worked right though
<10> Hello, I have a problem : p***trhu() works fine except with the command perl or perl scripts. Why ?
<6> Zmanu: I think you're going to have to find someone who speaks your first language, because I'm having trouble understanding you or your code.
<13> Leo18: p***thru doesn't start a shell and perl probably wants one.
<2> Elazar: ok, no problem thanks
<14> Anyone ever heared of a language called aspx?
<9> ||cw: Lol. Yes you've said. Can you remember what problems you had?
<10> so ||cw what's the solution ?
<14> I only know asp.net -> extension is .aspx
<13> Narada: no, i think i blocked it from memory. so i guess it was a bad experience for me
<9> ||cw: Lol.
<13> Leo18: shell_exec()
<6> sean`: As far as I know, there isn't a language called ASPX. A .aspx extension should indicate an ASP.NET file.
<6> sean`: Although I don't know why you'd be asking about that in ##php.
<14> True
<13> sean`: which, technicalt, could be any CLR language
<2> is there a french guy here to help me with problem with "accent" or someone who soon use "accent" ?
<7> where i can learn a good design of error handler to use in my application
<7> because i don't want check on every step true/false
<13> !tell Leo18 about g9
<13> !tell Leo18 about doesn't work
<13> kioto: i think there's a function set_error_handler()
<6> kioto: Maybe look into ***ert? http://php.net/***ert
<15> Is there a limit on the size of data that can transferred over HTTP GET?
<6> ||cw: Yes, there is, but I believe that's for cases where PHP would output an error itself.
<6> ||cw: Could be invoked with trigger_error(), though.
<7> yes ||cw i now i try to use that
<6> Bonaparte: Yes, though I believe it varies depending on the browser.
<6> Bonaparte: That's why POST is generally preferred for larger data sets, because it doesn't have that restriction.
<15> I browsed through several pages. I couldn't find that in the officail HTTP manuals too
<4> Bonaparte: That's because as Elazar just mentioned, it's browser dependant and I believe server dependant as well.
<15> Has anybody encountered issues with that ?
<15> Does Apache/Firefox impose any such restrictions?
<16> I did once, when my scripts started dying because a base64_encode(serialize())'d array was too long
<4> Bonaparte: They all do, wether by programmer intention or by allocation limits.
<10> Hello, I have a problem : p***trhu() works fine except with the command perl or perl scripts. Why ?
<15> Thanks for the information, folks.
<6> !tell Leo18 about doesn't work
<6> !tell Leo18 about g2
<17> I have an ineresting php / mysql question for everyone.... Why is it when I run a mysql insert query via command line, and then run the same query via a php script, I get an error with the PHP and not with the command line? Could the php be using different text encoding than the command line?
<15> ironpig_, what is the query?
<17> I'm just copying and pasting the indormation from the php script into the command line.
<17> one sec, I'll post on paste bin.
<15> And what is the error?
<17> wow, maybe I found the problem... one sec..
<17> when I posted the script to paste bin, only part of it showed up... Its like it doesn't like some of the ' charaters
<18> ironpig_: Make sure they're actually ' and/or ". Smart quotes won't work.
<18> PHP would generate a parse error
<17> Warning: Unexpected character in input: ' in
<13> smart quotes are stupid
<17> so your saying that those are actually smart quotes?
<13> no, just that it's possible
<17> ah ok


Name:

Comments:

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






Return to #php
or
Go to some related logs:

xargs postsuper -d
#linux
#perl
phycho behaviour
adsl fw_forward_masq
sii 3112a fc4
mount raidfs
#perl
VA111680 FIRMWARE
crossover-pro fedora



Home  |  disclaimer  |  contact  |  submit quotes