Home Page   #javascript  #perl  #c  #openmoko  #php  #ruby-lang  #apache  #cisco  #java  #mysql   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#php

24 December 2007


Total 10 pages. You are browsing page 1/10.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Mon Dec 24 17:19:17 2007
--- Log closed Mon Dec 24 17:19:53 2007
--- Log opened Mon Dec 24 17:20:58 2007
17:21 <****> Black: php.net/pcre .-.
--- Log closed Mon Dec 24 17:21:24 2007
--- Log opened Mon Dec 24 17:21:45 2007
17:22 <****> Black: and php.net/preg_match :)
17:22 <****> thx
17:23 <****> guys, is there a tool or a function to check if at a certain point an object is the same instance as another, or if it is passed by value at some point?
17:25 <****> anyone?
17:30 <****> black - preg_match("/[^a-zA-z0-9]/",$str)
17:31 <****> ew. ctype_alnum is all you need
17:31 <****> q. is there a function to get time with a precision of millisecond ? currently i use time() but it is only at the second
17:32 <****> so how would i contraint to only numbers and letters
17:35 <****> everyone put o{| at start of yuor name and join #o{| !!
17:35 <****> woops
17:35 <****> sorry
17:35 <****> on xchat screwed up
17:36 <****> ?
17:36 <****> with *
17:39 <****> Guest16155: Try to create the required regular expression. php.net/pcre
17:40 <****> Wolfpaws, pm?
17:40 <****> ok guys,im playing around with curlopt_proxy ,copy/pasted a short simple script togheter where you give it ?url=http://whatismyip.com/ and it should give back the page thru a proxy,but it wont,i always get the ip from the server where the script is hosted.
17:40 <****> script is here http://pastebin.com/mbde44d7
17:41 <****> whats the [ and ] and / and ^ mean in preg_match?
17:41 <****> proxys are handtested and ano
17:46 <****> one more question
17:46 <****> pregmatch will work with any normal reg expression?
17:46 <****> e.g.
17:47 <****> /%[^a-zA-Z]%/
17:51 <****> omg hot chick
17:51 <****> http://niko.mirror.waffleimages.com/files/04/04b88079949c4415c2f90c058785177c215dcbb6.jpg
17:52 <****> righty-o, time to head home. merry Christmas to one and all.
18:05 <****> how would i combine two pregmatches?
18:06 <****> like the checks
18:06 <****> how can you clean up something like this so you dont have to work inline ? http://nopaste.php-quake.net/12654
18:06 <****> is there a seperator?
18:06 <****> preg_match(reg_ex1 | reg_ex2)?
18:08 <****> depreciated?
18:08 <****> it isnt portable
18:08 <****> good mornin everyone
18:09 <****> im not sure about deprecated Ortzinator
18:09 <****> portable?
18:09 <****> I am using php cli, there is a loop runnin and if I press ctrl+c the script terminates with this error. "Error in my_thread_global_end(): 1 threads didn't exit"
18:09 <****> I am wondering if there is a way that I can catch that since ctrl+c would be canceling the script. I have looked in google and all I can find is mysql related which this is not since mysql is not used in this script
18:10 <****> not every server has them enabled Ortzinator
18:10 <****> it isnt much to find/repl. <?= for <?php echo , in any case
18:10 <****> oh ok
18:10 <****> Ortzinator: It requires a setting (short_open_tag) in php.ini to be set to On. This is not the case on every server .-.
18:11 <****> ok that was my next question
18:11 <****> thanks
18:11 <****> you will get nothing but text if it is not enabled
18:11 <****> Quick question all: I'm trying to receive and send data to a telnet like server, The data returned is 'live data' meaning there is a delay in receiving data, In parts. I know I can use stream_blocking.. But I want the script to be as fast as possible.
18:12 <****> Any ideas?
18:14 <****> mpmc: Um... Don't use PHP?
18:14 * ThinkMedical was thinking that
18:15 <****> Wolfpaws, I'm creating a WebUI.
18:15 <****> mpmc: "as fast as possible" excludes PHP.
18:15 <****> I mean as fast as PHP is able.
18:16 <****> does php have any seed functions? You pass a function a password and it generates a string sort of like createSecureString('my password only I know', 'what i want to change');
18:16 <****> how would i combin two instances of pregmatch?
18:16 <****> mpmc: Why use PHP in the first place?
18:16 <****> it depends what 'as possible' is as allowed to include Wolfpaws... interpreted langs. for a server would inc. php
18:18 <****> someone must know
18:18 <****> crypt maybe
18:18 <****> yes
18:18 <****> When using set_stream_blocking the script just hangs until the connection is closed, 30 second wait, When stream_set_blocking is false there is no delay, But the returned data is sometimes NULL.
18:19 <****> I don't want to constantly loop..
18:20 <****> mcrypt looks like it takes a password
18:20 <****> mpmc: My question didn't change.
18:21 <****> what about uniqid() todd-?
18:21 <****> i need something like mcrypt('password', $data);
18:21 <****> crypt ( "YourPass", "Somesalt" ) should do it
18:22 <****> Wolfpaws, Simple answer. It does the Job.
18:22 <****> mpmc: no, not really.
18:22 <****> where it takes a secret key
18:22 <****> salt is your secret key
18:22 <****> oh ok thanks Aslyum i didn't see that in the spec
18:22 <****> np
18:22 <****> todd-: You want a 2-way encryption?
18:22 <****> yeah
18:23 <****> that would make it faster
18:23 <****> todd-: For a password? Why?
18:23 <****> FAster? Faster how?
18:23 <****> you want one way for sure
18:23 <****> what Asylum says
18:23 <****> Wolfpaws, Ok What would you recommend, I code a WebUI in.. That'll run on any OS?
18:24 <****> mpmc: PYthon, Ruby, Perl,...
18:24 <****> python maybe mpmc
18:24 <****> oh yep heh Wolfpaws
18:25 <****> I would use python if it were me
18:25 <****> because then I don't have to loop through comparing hashes
18:25 <****> todd-: What?!?
18:25 <****> if it is one way
18:26 <****> i need to do something like this
18:26 <****> crypt('secret key', $data);
18:26 <****> Wolfpaws, Why would I want to switch to those langs when PHP can do the job just aswell?
18:26 <****> if secret key doesn't match, then it returns an error (not something else)
18:26 <****> not like another number or something
18:27 <****> todd-: what you would want to do is define your salt and then use it to make the paswords and then use to to make a hash of the posted login password and match that against your stored hashed passwords


Total 10 pages. You are browsing page 1/10.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo