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



Comments:

<0> ok
<0> hmm should have been "do I"... :)
<1> and "lose"
<2> Anyone knows how php 6.0 differs from 5.0?
<1> Ciantic: http://www.php.net/~derick/meeting-notes.html
<3> Is anyone aware of an actual functional phptidy utility, a la perltidy? I'm finding copious dead links, but very little functional code.
<4> easy
<4> 5.0 is out
<4> 6.0 is a pipe dream
<5> hey
<0> niraj: hehe
<2> Rhasta, even though, 5 is out, there are still servers running php4 :(
<4> gee i wonder why that happened
<6> how come a postalAddress attribute is not returned during an ldap_search?
<6> even though specified
<7> if (ereg("\w\-\[\]", $this->usr_name)) { <- I want to check if the name only contains [A-Z] [a-z] [0-9] - and [], am I on the right way?



<8> I need a way to compare a variable to an array
<8> $var to $arr[] and $var is == 1 and $arr[1] is == 1 also
<8> but I only want to see if $var is NOT in $arr
<8> Possible I know it is, but what is thee asiest way to do it?
<5> hey , is it possible to send form informations via email without an mailserver installed?
<8> Well
<8> If you can install and use magic
<5> well... im a wizzard :>
<8> omg
<8> Merlin?
<5> na
<5> merlin allways looses the 1on1 :P
<9> Kcaj: check out array functions on the php webby
<9> website*
<9> there is a function that does what you need.
<10> Notice: Undefined index: PHP_AUTH_USER - i have php as module, but still get this
<11> Anyone know of a nice validation function to validate all the variables in a $_POST ... in one line or so ?
<12> Greetz. Is it possible to delete some text within a variable using positions? There is a bug in eregi_replace that makes it impossible to replace a given string correctly. I replaces it twice
<12> Also, I need to be able to insert text on a given position
<9> babo: You would need to check everything you want to verify, if you want it on one line, dont use returns ;)
<13> Hi all!
<14> Hiho. Installing PHP 4.4.2, it seems it has not installed the pcre extensions, even though doc says that happens automatically (and I have not disabled it).
<13> anyone here using eclipse?
<14> I can't find pcre in my php_info().
<14> Can I somehow force it?
<9> jemt, there should be something usefull in strign fucntion right?
<11> UltiB|250012: yeah, you're probably right ... thanks anyways ...
<5> are there unified variables or do i need a specific mail script for every mail server ?
<12> UltiB|250012: What?
<15> swissmade- if PCRE isn't enabled, it's because you disabled it
<9> jemt: depending on what you need to replace/delete etc. and if you know what it will be you can use strpos/substr etc to change them. I think.
<12> UltiB|250012: strpos nor substr modifies the string
<16> StR, Yeah.. But not for PHP.
<5> whats teh problem in PCRE
<5> ?!
<13> fulhack: what do you use for PHP?
<9> jemt: use strpos to see where the string is is located in the string, then use substr ( or was is strstr) to select the rest :X
<9> jemt: but that would be in the category weird hacks imo.
<16> StR, I use php very little, I usually use gedit or dreamweaver, depending on which platform I'm on.
<12> UltiB|250012: Neither of these functions can be used to MODIFY the string. It's easy to extract a given portion of the string. But I need to modify it.
<17> hi all. I have array $array[] = array("id"=>1,"name" => "blabla","update" => "20060301"). then I want order by id, name, update key
<9> jemt: extract the part u need to keep and set the var to that part... and poof, its modified ;x
<15> Tulga: http://www.php.net/usort
<12> UltiB|250012: You havn't understand my problem..
<18> let's say I'm executing this.php, where a get a long text which needs to be sent to that.php , how can this easily be done ?
<12> UltiB|250012: "This is an text". How would you replace 'an' with 'a' if you should do it by positions?
<12> Hm, I might be able to substr until the 'an' and after the 'an' and then create a whole new string.. Hmm
<9> remember to add the whitespaces
<9> " an "
<9> Makes it more failproof ;p
<19> jemt: by positions? Why? That sorta thing is perfect for regex replace functions
<9> Ahroun: he cant use those for some buggish reason he said
<12> Ahroun: I **** at regEx :)
<19> ah, 'k
<0> Could it be possible that I installed from php-source and still didn't get the phpize part?
<12> No, I can't use eregi_replace - havn't said I could use regEx
<12> UltiB|250012: You are not very helpfull here :p
<19> I have a hard time with regex too...
<20> how many html files can i have in a dir before things become tediously slow?
<9> ow
<19> jemt: try preg_replace if eregi_replace isn't working for some reason.



<9> tbh, if you have no other reason then not understanding regexes, go learn them
<21> lra_: You're on about the file system?
<9> type: !regex for a good tutorial etc.
<12> Ahroun: Ok, i'll give it a try - thanks :)
<9> and download regexbuddy for nice realtime testing
<16> !regex
<22> is it possible with domdocument->xinclude to include dinamicly .xsl files into already parsed xsl file ?
<20> dm - reading static html pages from a directory
<23> Hey, are there any requirements other than php >= 4.3 for html_entity_decode ?
<19> I have to agree with Ultib there... regex may be slower than dirt for somethings but yeah, when you can use it, sometimes its worth the trade off, and it's certainly faster than any custom string handling you're likely to write.
<24> What's wrong with this?: $this->sDriver :: write($this);
<24> Can you not use variables do define the cl***name?
<23> my script runs fine locally (WAMP) but on the server (4.4) html_entity_decode has no effect ... and leaves no traces of errors
<21> lra_: Not really php related. Try #apache or ##linux for example
<23> Narada, nothing seems to be wrong.
<24> lepine: Hmm eclipse is highlighting the '::' with a dotted red line :(
<9> use -> ? ;)
<24> UltiB|250012: It is a static function.
<25> Hello, with PHP4, can't I call a cl*** var statically? lile MyCl***::my_var ?
<0> anyone?
<9> pft should start using php 5 lol
<21> Narada: how about running it through the PHP parser and let that tell you instead
<23> odd, echo html_entity_decode("&#224;"); returns &#224;
<24> Hmm good point. Sometimes when developing I forget that one can create tiny tests outside of a larger application that is incomplete. :)
<23> any clues for this html_entity_decode thing ?
<25> lepine: encode?
<23> no, i want to decode
<25> but if decode isn't working try the inverse hehe
<23> go from the html equivalent to the ascii equiv.
<25> With PHP4, can't I call a cl*** var statically? lile MyCl***::my_var ?
<23> no
<23> not logically anyway
<26> how to say: if (array is empty) {...} ?
<25> empty($array)
<27> http://sgrgc.byethost9.com/
<28> if(count($array) == 0) ?
<23> if ( is_array($array) && count ( $array ) > 0 )
<19> Gareth: or reduce the computation by one step -- if( !count($array) ) {}
<29> if i set a cookie on domain ".example.com" will it be readable at "http://example.com"; or just "http://<anything>.example.com"; ?
<23> second option
<29> i c, how would i make it readable at "http://example.com"; also?
<23> oh, sorry, it would be both
<29> oh right, thanks
<11> $contact = htmlentities($_POST['contact'], ENT_QUOTES, 'UTF-8'); ... do you think that this provides adequate input validation ...?
<21> babo: You mean output?
<11> Dangermouse: errr ... whatever
<11> Do you think that it cleans input/output variables sufficiently ?
<24> Dangermouse: lepine: Nope doesn't work. I've pasted the small test, the error line and the error message. Why shouldn't this work? http://pastebin.com/626907
<11> if (!(preg_match('/[A-Za-z0-9 \']/',$contact){ contact=''; } ... or would this be better ???
<11> I mean, the first one is safe right ?
<24> I never knew that you couldn't do: $variable :: staticMethod() or $variable->variable::staticMethod().
<23> narada ... right ... hmmm ... you are calling a function in a static way when it's already initialized ...
<24> lepine: It is static. Not initialised. 'b' I mean.
<24> Oh wait I see what you mean.
<23> it's a static function ... that you're trying to call from an initialised object
<23> $object::function() won't work ...
<30> whats the syntax for date('d') to display tmrw ?
<24> Goddammit :(
<23> it's DefinedCl***Name::function
<14> Dragnslcr: I didn't .. but by installing pcre and then pointing the dir option at it, I got it working.
<24> lepine: But problem is I don't know what the DefinedCl***Name is going to be because that is the driver cl*** that the user sets.
<23> there is most certainly a function to get the cl*** from an initialized object
<23> if not, it's probably in var_dump()
<24> lepine: But then it doesn't even with $string :: staticFunction ()/
<24> *even work I mean
<24> lepine: The cl***name 'b' is stored in a string. You can't even use that as a cl***name.
<24> http://pastebin.com/626916 doesn't work either
<5> hi
<5> is there an mailscript you call your favourite? i have no exp with them need some help :/
<24> Google it.
<24> It's like one line of code to send an email.
<24> lepine: This ****s! I hate it when I find limitations like this.
<3> http://php.net/mail
<19> Narada: every language has limitations. Try writing good proceedural code in lisp.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#suse
dutck english
knoppix WPNT511
#debian
ImportError: No module named gtk.gdk
defer service failure
ubuntu boot init 3
rtl8169 knoppix
Duplicate entry 'localhost-mail' for key 1
LogVol100



Home  |  disclaimer  |  contact  |  submit quotes