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



Comments:

<0> Netfeed:
<0> sorry
<0> NET||abuse:
<1> Jy: Ohh, Content-type: application/force-download seems to work in Safari
<2> :) just go to the site,
<2> it's nice
<0> i dont find any screenshot!
<2> Sweet_kate: go to the developer section
<1> eeek... so does everything else when I get the content-disposition line right... I'm gonna join god with a cup of coffee!
<0> NET||abuse: i cant find developers section
<0> there is not any link
<3> re
<0> can u givcve me it
<0> ?
<0> *give
<4> lol >.< !



<4> found out why the imagemagick wont play :| windohz need reboot I hate windows why cant everyone have *nix based hosting with good ole lamp
<4> bbiab
<5> hi... what's best practice to download a remote textfile? file_put_contents (local, file_get_contents(remote))?
<6> dj_segfault hello. :D
<0> is vbulletin free?
<7> Uh oh, He's back.
<8> hi there, i am playing with the new cl*** stuff of php5 and i am asking me if it is possible to destroy an object when i am during the __construct() phase
<9> siebeneicher: that sounds so utterly crazy that I can't even describe it!
<8> fangel: yes, maybe... in other words, i initiate the object, the __construct() method opens a file, when the file is not there the object should be unset
<8> can i do this in the object itself
<7> siebeneicher: I can see why you would want to do it, but I don't know if it can be done. Wonder if you can do something like $this = NULL
<9> dj_segfault: a dollar on that would result in "$this cannot be overwritten blah blah blah" error..
<8> exact: "Cannot re-***ign $this"
<0> is vbulletin free?
<1> no
<10> Sweet_kate: how are we supposed to know? we didn't write it.
<10> dj_segfault: do you have a nokia 770?
<11> Alright folks, any competent people here want a really easy job for $50 US (Paypal)? Just to create a html/php form with verification of fields shoved into a mysql. Looks don't matter as long as the code is clean and readable. I will supply a PDF which shows what fillable areas we need (checkbox, field, etc).
<6> dj_segfault hello. :D may i pm?
<10> !tell Alystair about jobs
<11> Why is there no one in ##php.jobs then
<12> I'm trying to convert an RFC 822 datetime to ISO 8601. echo date('Y-m-d H:i:s', strtotime('Mon, 6 Feb 2006 15:02:12 N')); proved non-working (seems like it gets it a few hours wrong for some reason). Am I missing an obvious easy solution?
<10> Alystair: mostly because people aren't interested in initiating work via irc
<10> Alystair: too many people have been ripped off on both sides of the contract
<12> I got a job via IRC once. I made the site and then they didn't wanna pay.
<12> Now I don't work for anybody.
<13> That's why you always take a 50% down payment, on ALL no-contact jobs.
<13> Only someone with no common sense takes an online job without a down payment
<10> KimmoA: what's the N supposed to mean? i've had a hell of time with all the invalid date formats in emails header. people seem to just make **** up
<12> ||cw: Yeah... I grab this from some stupid RSS feed.
<14> hey, what's difference beetwin calling obj::method() and obj->method() ??
<12> exp[a]: Huge, if it is C++, but I dunno about PHP. :)
<10> Excelsior: obj->meth() is not valid, but $obj->meth() is
<12> ||cw: I wonder what the 'N' is supposed to mean myself.
<10> Excelsior: one requires an instance, the other does not
<14> lol
<14> it's php
<10> exp[a]: those 2 were for you
<15> exp[a]: and with ::, if the method refers to the current object ($this) it won't work
<10> exp[a]: see php.net/opp and php.net/oop5
<12> Hrm...
<12> ||cw: I guess I will just hack that last char away.
<12> It works without the " N" part.
<12> Not like you seem to care...
<12> Not like you should either.
<16> hey folks, when you use CURL to transfer a file, is it possible to see where the file transfer initiated from on the receiving PHP document?
<12> It's cURL!
<17> can php edit a file?
<12> PHP can do anything.
<17> let's say, there's a file without write permission...
<16> glen_quagmire: www.php.net/fopen www.php.net/fwrite
<17> thansk
<10> if you don't have write perms, then you can't edit
<16> hey folks, when you use cURL to transfer a file, is it possible to see where the file transfer initiated from on the receiving PHP document?
<16> ;)
<17> ||cw, yah. then how do CMSs work?
<17> like, if I have a CMS that has ability to edit template
<17> when user clicks "save template" it should write to a file
<10> glen_quagmire: they give the apache user write access



<18> i can't get arg_separator.input to work... does anyone know how to make it work?
<10> if you ever installed one you'd know this
<17> never installed one..only simple ones
<17> simple ones usually set permission to 777
<16> ||cw: any idea about my cURL question? You usually seem to be able to answer my Q's
<10> Noel4DMB: your question doens't make sence
<17> Noel4DMB, is curl linux app?
<18> can someone take a look at this? http://www.klubbrekyl.com/separator.php?page=test;a=b
<16> ||cw: I send a file to a remote PHP document via cURL
<17> or a php funciton?
<10> glen_quagmire: and that would be granting write access
<16> i want to put in some security that checks to see where the file upload comes from
<17> ||cw, yah and i didn't like it because of security issue (probably?)
<10> Noel4DMB: what do you mean "comes from"
<19> i am looking for a good brief tutorial on interfacing a mysql db with php
<14>
<17> Noel4DMB, referer?
<14> ok
<19> recommendations?
<17> dust, pear
<6> #freenode-survey
<10> dust: php.net/links
<16> ||CW: The referrer. I am asking if cURL will give a valid referrer to $_SERVER or if it has it's own special way of doing it
<19> thanks!
<10> rolemodel: yes we all got the global notice
<20> i need to test a php application (both white and black box tests). Any ideas about methods and tools??? ...thanks
<10> Noel4DMB: curl comes as a new connection, if you want it to send a header like referer you have to tell it to
<6> ||cw oh. no wonder i was wondering about me /joining that channel and it never worked. heh
<10> dragan: there's some stuff in pear
<20> adp?
<20> or apd (advanced php debugger)?
<10> joab: according to http://us3.php.net/manual/en/ini.php#ini.list that can only be set in outside of the script, like in an htaccess
<21> hello
<10> joab: reason is, by the time your script is running, the args have already been procesed
<18> ||cw: ah... thanks
<16> ||cw: "CURLOPT_REFERER" the docs don't explain much about how to use this in syntax. Could you explain?
<18> so i'd have to set it in an .htaccess file then
<10> Noel4DMB: just like the other opts, you set it to a value
<7> rolemodel: Sorry, I just don't have time for svn support today.
<16> curl_setopt($ch, CURLOPT_REFERER, "www.mywebsite"); ???
<10> joab: if you only want it for one dir, yes
<21> i have a form with file upload, i am checking the file size via $_FILES['userfile']['size'] -- if($file_size > 100000) { //File too big } -- and it seems like the check doesn't work, if i try to upload larger file it allows it
<18> ||cw: i don't have access to php.ini
<21> any idea why ?
<6> dj_segfault oh, i see. perhaps another time then. thanks again btw. :)
<18> ||cw: it still doesn't work. i have php_flag arg_separator.input ";" in .hacccess
<18> .htaccess
<21> here's the code: http://pastebin.com/541643 -- if file is larger than 100kB, it's not catched and $error is not ***igned TRUE.. i've used the form example from php manual. any tips appreciated
<22> Hi, to crypt something in md5 should i do $crypt = md5('$_POST[p***word]');
<23> probably more like $crypt = md5(strip_tags($_POST['p***word']));
<18> ||cw: nevermind, it was supposed to be php_value... not php_flag
<7> NiGHTFiRE: Side-note: it's a good idea to add something else besides the p***word, like the username, so the same p***word doesn't encrypt to the same thing for every user. A little extra security for almost no work.
<6> luu righto, will set that as well. wow. new things learned everyday! :D
<23> strip_tags is always good to have on input fields
<22> So you think i should crypt the username as well?
<6> luu made a function for that if im not mistaken. :D
<22> luu: why strip_tags?
<6> dj_segfault something like $foo = "a"; $crypt = md5(strip_tags($_POST['p***word'])$foo) ?
<7> NiGHTFiRE: No, I mean when you crypt the p***word crypt the username+p***word and store that. When you check whether they've entered the right p***word, you do the same thing (crypt the username+p***word, compare it to the stored encrypted value), so the same p***word would still come out with a different string in the database for each user.
<22> Very smart.
<7> rolemodel: No, $crypt = md5(strip_tags($_POST['username'] . $_POST['p***word'])$foo)
<24> got some probs with a regex: !ereg("^[A-Za-z0-9]{11}|[A-Za-z0-9]{16}$", $serial)
<24> it validates also when it's only 15 or 14 chars
<7> Are you trying to find 11 or 16 characters?
<7> Try "^([A-Za-z0-9]{11}|[A-Za-z0-9]{16})$"
<24> only A-Za-z0-9 is allowed and or 11 or 16 chars
<7> You need the parends to make the pipes function as an OR
<24> ok let's try
<24> that worked
<24> thx a lot
<7> NP
<25> That regex could be made a ton simpler... ^[A-Za-z0-9]{11,16}$ should work just the same.... then if you used eregi() instead... ^[a-z0-9]{11,16}$ would do the trick. I'd reccomend though, using preg_match() instead... pcre functions are usually faster.
<15> BigE: {11,16} is 11 to 16.. he wanted 11 or 16..
<25> Ah. Well still, the other points prove useful.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#kde
#lisp
#css
systemimage linux
perlvariable in javascript
gnome commander conf file
gentoo coldplug and udev conflict
#suse
Starting MySQL ERROR! Couldn't find MySQL manager or server
firefox BadAlloc fluxbox



Home  |  disclaimer  |  contact  |  submit quotes