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



Comments:

<0> sean`: select 1 from table ?? what would that do?
<1> thats less stressing than select column from table
<2> i use that too, when i'm too lazy to use select count(*)
<3> I cant get my php workin, no scripts work
<3> http://dalphp.shoggoth.net/pastebin_view.php?800
<3> i cant even get that one working
<4> cranked, was it ever working? Did you install it correctly?
<3> Its installed by default in Fedora Core
<4> no clue then. sorry
<3> i had to change register_globals to On to get some scripts working
<5> [Multilanguage website]: Apache + PHP + gettext: setlocale() works per process, so on a multithread apache it will not work. What solution-technologies are used to get a multilanguage-website ?. Ref.: http://es2.php.net/manual/en/function.setlocale.php (Read the Warning box)
<4> crankedm globals on is a security risk, in my opinion... but hey... what do I know.
<3> well what should i do otherwise
<3> cos i cant get scripts working without register global i think :/
<6> fix the scripts
<4> Shurique, :)



<3> there's nothing wrong with the scripts
<7> there is
<3> i downloaded like 10 scripts from hotscripts.com and NONE is working
<6> there is, if they depend on register_globals
<7> they use globals
<4> cranked, yes there is... it's coded poorly.
<4> cracked, "are". :) globals are bad... can potentially open security holes everywhere.
<6> they're bad practice even if you secure 'em
<4> ahh... I love scoope. or was scope. I can't remember... too early in the morning.
<3> ok, but still i cant get no scrips working anyways
<2> cranked: scripts that requires register_globals on are unsecure and poorly written apps. they are what hackers and crackers look for
<3> k
<6> register_globals itself isn't insecure, it's the way it's used
<3> can anyone give me a script, doesnt matter what it is, just that i KNOW its working
<4> deadroot... a little FUD is good.
<6> cranked: <?php phpinfo(); ?>
<3> phpinfo works...
<4> cranked <?php phpinfo(); ?>
<4> damn it!
<6> :)
<4> i type too slow.
<9> cranked: <?php echo 'good bye world'; ?>
<3> k
<2> <?php while(1) {} ?>
<4> know what it is... probably it's like <? do something ?> and it's being ignored... cause it's not like <?php ?>
<3> yes the good bye world works also
<3> and i aint gonna try that deadroot thing
<3> http://dalphp.shoggoth.net/pastebin_view.php?800
<2> hehe
<3> whats wrong with this one?
<2> nothing called that function
<4> exactly.
<4> add right before the "?>" this... "randQuote(); ?>"
<4> that is if that function actually works.
<4> I'm done hand holding now.
<3> http://dalphp.shoggoth.net/pastebin_view.php?801
<3> like that?
<2> it's not complete. add an echo to the function call
<3> nm its me thats stupid i got things working out now
<3> thanks for the help
<3> should i do like this: <?php echo randQuote(); ?>
<2> umm... yeah, i guess
<10> cranked: It's worth a shot, isn't it?
<3> it works :>
<3> i forgot to add the $quotes_file = blablallbla
<3> thx for the help all
<11> hi
<12> just a beginner question..
<12> what are the things not to store in a cookie ?
<11> When I define "Mozilla 4/0" as useragent for curl it kinda "messes up" the returned string, that means it unquoteds some attributes (which are not allowed, for example valign in a <td> tag)
<13> hey guys, I don't know a lot about php, and I'm relocating a site from an IIS server to another, on the new server I get a "failed to open stream" error, the code is very poorly written and I'm not the one who is going to fix it, the file paths used in the code are all relative, what option in php.ini do I have to fix?
<14> __hrz__, I would only store an ID of some sort, and store any other information in a DB with that ID as the key.
<11> How can I say that curl gets the string exactly how it should?
<15> hello.... mime_conte_type function always returns application/msword for any kind of ms office document, is there any workaround for this?
<16> Don't use MS Office.
<2> there is an alternate PEAR cl*** to determine the content-type
<17> fileinfo
<17> It's actually in PECL, not PEAR
<2> i just noticed that



<2> sorry
<18> hey, I want to know how to make a redirection, but I don't want to see my page in the Referer: http://himura.homelinux.org/redirection.php
<17> DanL: It's up to the UA what goes in the referrer, not you.
<2> DanL: not possible
<18> hmm
<19> DanL: you can use a service like anonym.to
<15> kambei: hehe dont use msoffice? its not me... but some people on earth use office, not everyone uses openoffice, and my php application should be able to recognize those formats
<15> :)
<20> does anyone know what needs to be done for utf8 strings to be retrieved and shown properly? i've set meta content to utf-8 and i've used utf8_encode on the query result.. but still some characters don't show properly. in phpmyadmin they do, so i don't think the database is wrong... only the way i retrieve the data
<16> yam: I was just playing. It sounded like a good solution at the moment.
<17> yam: mime_content_type uses mime.magic; PHP has no control over what MIME types that detects things as.
<2> Hory: it's probably because you didn't send charset in the HTTP response header as well
<2> Hory: www.php.net/header
<20> thanks
<15> TML: yes I know it uses mime.magic, was just asking if someone has some tweaked mime.magic file
<17> yam: My mime.magic file correctly detects Excel, PowerPoint, and Access filetypes, but that's how it came from my OS vendor
<15> TML: what distro
<20> well i had put "<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />"
<17> yam: Debian
<20> isnt' it the same?
<17> Hory: If your meta and your HTTP header disagree, all sorts of bad things can happen
<15> TML: I do use Debian too
<15> weird
<15> TML: stable?
<17> yam: Yes
<15> TML: hmmm weird thing bud since I have debian sarge too
<2> Hory: you also need to place "header('Content-Type: text/html; charset=utf-8')" in your php code. <- that is the HTTP response header
<20> yes thanks i've just placed exactly that
<20> on the first line
<20> and the output is the same
<2> clear the browser cache?
<20> i've tried with another browser and doesn't work..
<20> here's the paste if you'd be so kind to look
<20> http://pastebin.com/641670
<2> very weird. it should work fine
<2> http://pastebin.com/641671 works just fine
<20> yeah if i paste some utf8 characters in the code they show
<20> but not if i retrieve them from the database
<2> perhaps it is the database link that isn't in UTF-8
<20> is there a way to set that up? :)
<20> i'll join #mysql :)
<2> i haven't done UTF-8 work yet, so i don't know
<11> I have a string like this 1235043, when I make unset($string[4]) i get a fatal error, how can I avoid this?
<11> pos 4 is the 0 (zero)
<21> Why not use... like... str_replace, or substr?
<11> because I just have to delete a 0 when it's in the 4 place
<11> well, exactly, when the string starts with 00 and at position 4 is a 0
<11> international-phonenumbers
<11> thats stupid :-/
<22> hello
<23> What is SORT_REGULAR in array_multisort ?
<23> sort_string and numeric is clear, but what is regular ?
<24> [EaK]Konky: Run some tests.
<23> an exact answer is always better than the results of a limited testcase in my eyes ;)
<24> Here, we have a saying
<24> !+tias
<25> [TIAS] Try It And See. If you want to know if something works, try it first.
<23> is it documented somewhere ?
<24> php-bot: tias =~ s/know if/know if or how/
<25> OK, kuja
<22> i more than a bird
<22> i more than train
<26> http://pastebin.com/641702 why would the else { } never be evaluated?
<22> :D
<24> CrazyEddy: Are you trying to say it should?
<26> kuja, Yes, i.e. 0 rows are returned.
<26> kuja, or the mysql_num_rows returns false, which it should... the way I've set it up and tested a million times.
<26> kuja, Any ideas? :)
<24> CrazyEddy: And... you're positive that mysql_num_rows() didn't return 1?
<26> kuja, I'm positive, because if it did return 1.... it would set $_SESSION['auth']['last_login'] to that value, which it dosent... the value is null.
<24> eh, stupid tab complete.
<14> Ok, this is weird. I stuck an "echo 'LOOK AT ME!!!'; in front of a header('Location:' ); and it still tries to redir to it. Shouldn't it not try since I already outputted?
<24> CrazyEddy: First, I want you to max error_reporting, then also make sure display_errors is on. Then, I want you to make positive that it doesn't evaluate the if (mysql_num_rows()...)


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#math
can't locate textdomain.pm
dpkg-deb: parse error, in file `./DEBIAN/control' near line 7: missing package
#perl
#python
libXft.so: undefined reference to `FT_GlyphSlot_Embolden'
heartbeat-dev rhel
tutorial noscrollbar
#perl
#perl



Home  |  disclaimer  |  contact  |  submit quotes