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



Comments:

<0> NET||abuse: ig you output html, but with just table in the body, with the .xls exension, EXCELL will open it like a spredsheet. But only with the cells in your table.
<1> ByteCode: that is how my app works currently(in two modes, one csv other html tables) but it's not good enough
<0> AH! just realised I Was responding to a q from halfway up the irc-history! D'oh
<1> macros' and certain systems have problems
<0> ah. macros :( - EXCEL is dodgy territory too - as it deals with things like csv cell cotent etc... differently from version to version. On some systems that I have generated a csv for, Excel loads the multicolumn, multi-row csv into a single cell in the spreadsheet.
<0> but the same site, same csv is loaded perfectly for another user with a different version of excel.
<0> and that's one of the reasons that I use OpenOffice for day-to-day use, and Excel for testing only.
<2> NET||abuse, dude... I think the cl*** I have is in the office... If you'll be around for an hour or so.. I'll check back and give you a link
<1> oh?? wow, cool
<1> thanks
<3> Google, dear google, you and me against the world... :/
<4> lol?
<5> "(07:36:23 AM) aidan: lol?" hehe
<6> woops, wrong quote.... the previous one...
<7> not really on topic, but.... can javascript run if it's inside an href if it contains no - javascript: ?
<4> cyphor: sure, you can use the action handlers (onclick, onselect, onfocus, etc)



<8> cyphor: no, it's not encouraged to use javascript in the href attribute
<7> the reason I asked is because I'm trying to inspect user supplied urls and prevent xss issues
<7> this is kind of funny --> http://www.betanews.com/article/CrossSite_Scripting_Worm_Hits_MySpace/1129232391
<9> cyphor: and old
<7> heh, not to me =)
<10> the-erm, is it possible that my host has made it to where the apache user cannot access ftp. is it possible to exec() as a particular user?
<11> Hello !
<11> Is there a way to get the filename of a file who included one php file ? (I would like in the included file to get the filename of the script who does the include call.)
<11> the __FILE__ constant does not the job
<12> Levure: you can get the script name with _SERVER["SCRIPT_FILENAME"] but that will only give you the top level script. You 'might' be able to do something with the output of debug_backtrace() however.
<4> Levure: debug_back_Trace
<4> er yeh what Lomat said
<11> I try that, now :)
<11> I can't do debug_backtrace()['file'] ?
<11> it seems it returns an array, so why not ?
<13> $a = debug_backtrace(); return $a['file']; maybe this would work? :D
<11> Yes, but I was trying to write it in one call :-P
<14> can someone remind me what model-view-controller is on procedural php?
<0> Levure: $a_include_files = get_included_files ();
<11> $BackTrace[0]['file'] also does the job
<0> Levure: print_r($a_include_files );
<11> I try that :-)
<15> hello
<11> That functions does not do what I need, the backtrace does.
<0> oh
<0> ok sorry.
<11> Thanks guys for the help :-)
<15> what's the best way to add empty spaces between all letters in my string?
<11> ByteCode : Do not. I probably was not precise enought
<15> like t h i s
<16> Weiii! Lunchtime! Finally! =)
<15> bon apetit
<17> Lion28Wrk: probably some forloop and char index...
<15> buon apetito
<18> exit
<18> *doh*
<15> Stormchaser: i tryed with explode $mystring=("", $string) $mystring=implode (" ", $mystring); not working though
<19> Hi, how can I prevent curl redirecting when it receives a 302? I just want to get the whole 302 response so I can grab the url
<20> hiya
<20> hi
<20> mode = $_GET['mode']; <-- what's wrong? parse error
<21> bubblenut: set CURLOPT_FOLLOWLOCATION to false
<22> nik: $mode = $_GET['mode'];
<22> you forgot the $ on the first variable
<20> uahrg ;)
<20> mixed it up with python...
<22> I have to switch back and forth between Java, Javascript, and PHP every hour or so ... I swear i can never remember whether . or + concatenates strings anymore
<20> mh :)
<0> IdahoEv: no! it's contact(a, b, c)....oh no hang on, it's a || b || c....no....argh! head explodes.....
<0> oops - that should be concat
<22> yeah, exactly ByteCode
<22> I have written + for concat in SQL queries at least a dozen times
<0> or in VB: a & b & c
<22> PHP mail handling: If you needed your PHP app to redirect incoming mail messages to a list of addresses (without parsing the mail body, just remailing), how would you do it? Accept the incoming message as an input pipe?
<22> Save the message to a file and just send that file via something like exec('mail address@foo.com < savedmessage')
<22> ?
<23> i need a good algorithm to make a cloud type effect
<23> so i can replace my crappy one http://upit.section31.us/?tags
<24> in the past php and apache2 did not work together well. are these issues resolved? is it now safe to install apache2 and php or should one still use apache 1.3 with php?
<22> i'm using apache2 on all my servers, have never noticed a problem with php
<25> hey everyone



<22> hello
<25> hello :)
<12> arag|work: IIRC the main issue was with thread saftey. I think that there are some compatibility notes for apache2 in the php manual installation section
<17> !+a2
<26> Apache 2 the newest version of the Apache web server. PHP versions 4.3 and above are somewhat compatible with it. Because of Threadsafety Issues, mostly in extension libraries, the Multi-Threaded MPMs should be avoided. The Prefork MPM works in a similar fashion to Apache 1.3.x and appears to work accordingly. See http://news.php.net/php.internals/10491 for a more detailed explaination.
<24> thx, I'll have a look
<25> has anyone tried using shell_exec to run a mysql command? i'm just getting a blank variable as a result... the same command runs fine via command line. other commands like 'uptime' seem to work fine from shell_exec...
<25> just for some reason not mysql...
<22> why not just use the mysql functions?
<25> IdahoEv: i'm actually going to populate a whole database using a .sql file... it's sort of hard to do the same thing via mysql commands
<22> true
<22> i have done this, but I just put the mysql commands in a shell script and called that from PHP
<25> something like shell_exec("mysql my_new_db < my_db_template.sql")
<17> infect: IF the executed output gives you no command, then there is nothing outputed from the application.
<17> s/command/output
<10> anyone look at this and let me know if they see any bugs?
<10> http://lunis.pastebin.com/557518
<10> when i try to load it, it just hands.
<10> *hangs
<27> lo
<25> Stormchaser: true, but it's not actually creating the database, so my only ***umption is that it doesn't run. also, running other mysql commands that should give output also return a blank variable
<17> !tell Lunis about doesn't work
<16> Does anyone know a regex for checking if a string contains a date in this format: 23.02.2006 ?
<10> Stormchaser, <10> when i try to load it, it just hangs.
<10> >_>
<25> CopyNinja: should be easy enough: http://weblogtoolscollection.com/regex/regex.php
<17> system('wget ftp://xxx:xxx@xxx.net/eggdrop/logs/eaos.log.'.$logDate) <-- this can be the reason why...
<22> CopyNinja: \d{2}\.\d{2}\.\d{4}
<28> hi :) what's the proper php syntax to call a flash (.swf) file into a .php page? (the .swf is located on my server with the php page).
<16> Thanks IdahoEv!
<22> n/p
<10> Stormchaser, could you be a bit more specific? "This line is broken" dosen't tell me anything.
<22> Can anyone suggest a strategy for remailing emails with a PHP script? I don't want to edit or parse content, just change the "to" "bcc" and "from" and send it back out. It would be easiest if it worked as a pipe.
<28> n.b. i am reading http://il.php.net/manual/en/ref.swf.php but don't "get it" quite, it seems. :)
<17> I didn't said 'the line is broken'... PHP isn't multithreading application, and it does it's ex3ecuting linearly. Meaning: If the wget has problem connecting to your site, then PHP won't continue untill wget does something.
<4> laughzilla: do you want to edit it with PHP?
<0> IdahoEv: that sounds more like a job for a mail server - would that not suit your needs better? or is something that you definitely need to script?
<29> i need help with ldap, i'm getting the error Warning: ldap_read() [function.ldap-read]: Search: Operations error in c:\Inetpub\intranet\test_ldap.php on line 25
<30> how do i remove p-tags using preg_replace() ?
<22> ByteCode: the email addresses I'm sending it to need to be pulled out of a MySQL database
<10> Stormchaser, and I didn't say "it dosen't work either" ;) I tested it, actually, the wget. wget'ing from within my shell account works perfectly.
<4> laughzilla: flash is client side, you link it via HTML not PHP
<28> aidan - so i just "call it" with regular html syntax in my php page?
<17> Lunis: Log, what your wget returns.
<25> IdahoEv: i tried putting the commands into a shell script like you suggested.... still nothing... any ideas?
<28> aidan - ie: <img src="http://location.tld/path/to/my.swf"; width="120" height="600"> ?
<22> My client wants to be able to send emails to arbitrary groups of addresses from her marketing database. I've already built the code so that she can save tagged groups in the DB, now I just want to make it so that if she sends email to blast.<groupname>@herserver.com, a script at that location looks up the DB contact group "groupname" and redirects her email to those addresses.
<22> Infect: do the commands work if you just enter them in at the command line?
<25> IdahoEv: yup... that's why i'm so confused
<29> http://www.nomorepasting.com/paste.php?pasteID=57747
<29> any ideas?
<22> Infect: huh.
<4> laughzilla: it's not an image, you call it using the <object> html tag
<4> laughzilla: you can look this up on google
<28> thanks! i appreciate it. :)
<25> IdahoEv: they run without a hitch if i just run them form the command line.... and it seems like mysql is the only thing that doesn't work right... i can run uptime and other scripts just fine from shell_exec
<29> Warning: ldap_read() [function.ldap-read]: Search: Operations error in c:\Inetpub\intranet\test_ldap.php on line 25 is the error i get :S
<29> anyone got experience playing around with LDAP?
<22> try using exec() instead of shell_exec(), put arrays in for the 2nd and 3rd arguments, and print_r() those arrays on return. It may give you more information about what's going on.
<30> should this code remove p-tags on unicode? $value = str_replace("<p>", "", $value);
<31> xirjs: is str_replace unicode friendly ?
<30> p0windah: dont know ... ?
<31> xirjs: probably isnt, might be worth checking for a backport for alternative function
<30> p0windah: do you know a solution for that problem?
<31> xirjs: http://hk.php.net/manual/en/ref.mbstring.php
<32> Are there any php functions to give you the quarter of a date?
<32> fiscal quarter that is, Q1 thru Q4
<22> 'Q'.(1+(date('n')-1)/3)
<22> (i think)
<25> anyone have any idea how to populate a database with sql file data using php... preferably not using shell_exec as i can't seem to get that working...
<32> you could always read the file line by line and runu each line as a mysql query?
<25> l008com: hm.... yeah... not a bad idea i suppose
<32> ill just do all my date math in mysql, it actually seems a little easier to calculate things with it
<10> how would i simply check to match if the contents of $string1 are somewhere in the contents of $string2, without matching case?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

xvnc4server
#web
#perl
#gentoo
#web
#ai
emerge libfaad
#web
#perl
stargate ori gifs



Home  |  disclaimer  |  contact  |  submit quotes