| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Comments:
<0> @php $a = 'zone "truegrave.net" {'; print substr($a, strpos($a, '"'), strrpos($a, '"')); <1> Result: "truegrave.net" { <0> hrm <2> !php $a = 'zone "trugrade.net" {'; preg_match("/^zone "(.*)" {/",$a,$match); print_r($match); <3> Parse error: syntax error, unexpected '(' in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <2> !php $a = 'zone "trugrade.net" {'; preg_match("/^zone \"(.*)\" {/",$a,$match); print_r($match); <3> Array <3> ( <3> [0] => zone "trugrade.net" { <3> [1] => trugrade.net <3> ) <0> @php $a = 'zone "truegrave.net" {'; print substr($a, strpos($a, '"')+1, strrpos($a, '"') - strpos($a, '"')-1); <1> Result: truegrave.net <4> how would i replace all " " with " " inbetween [tag] and [/tag] ? <0> @str_replace! <1> (PHP 3 >= 3.0.6, PHP 4, PHP 5)
<1> mixed str_replace ( mixed search, mixed replace, mixed subject [, int &count] ) <1> Replace all occurrences of the search string with the replacement string <1> http://www.php.net/str-replace <0> i need some more coffee <2> i need some more startkeylogger <5> thanks guys ;) <6> hi, anyone know why email() would but a break after every text line ? so i get extra space between the lines ? only happens on one email a script sends =/ <4> ok, i get str_replace...but i don't know how to use it between two tags... <7> jon ??!?!?!! <8> bitches <9> http://newyork.craigslist.org/mnh/roo/137147418.html <9> haaaaaahahahah <8> when are you moving in? <4> $string = str_replace("\[spaces\]%' '%\[/spaces\]", " ", "$string"); is this anywhere near right? <9> uh <9> if you're trying to replace \[spaces\]%' '%\[/spaces\] with  l, yes <4> well, no <9> then no, it's probably not right <4> i want it to replace all " " between a [spaces] with an <9> then you're probably going to want preg_replace <4> yeah...but i still don't get how to use it between those tags <4> i could make it do all spaces in $string...but i only want it to for [spaces] <9> preg_replace('\[spaces\](.*?)\[\/spaces\]','ladsjlajf',$string); <10> sup bitches? <11> nada <11> how was community service? <10> sweet <10> got 6 hours for an hours worth of work <10> :D <4> http://myspace-625.vo.llnwd.net/00481/52/63/481033625_l.jpg my car <8> community service? <8> what did you do? <10> heh <8> those new chargers are so hot <10> nothing at all <4> involuntary rape <8> that's a 'stang isn't it? <10> apparently sellin dope in florida is illegal ;/ <8> whores <2> I knew it was stupid, but illegal too? <10> that's what they tell me <4> haha <2> I'm extremely ****ing bored <8> come to cleveland poutine <8> i just fed the snakes <2> I've got to work at 7am <2> **** a 2 and a half hour drive <8> can't telecommute? <4> come to phoenix <8> or hell, just leave at 4:30am <12> Can someone help debug my code? <12> Here is src > http://pastebin.com/573794 <12> Problem is.. <12> I'm trying first to download a file using ftp, and output it in a textarea <12> then I got a save button, where users are supposed to be able to save it <12> when they click save <12> it writes to a local file, and uploads the local file to the ftp server, so the file has been edited <12> But problem is <12> It works and stuff <12> but <12> It writes double :s
<12> Both the old content, plus the new content <12> well, it writes the new content right AFTER the old content to my local file, which it then uploads.. :\ <12> I want it to replace the old content instead <12> but I do use fopen($fp, 'a') and then writes so it should overwrite it.. so its weird :s <12> oh never mind.. it worked with fopen($fp, 'w') instead.. :o <12> thx anyways:) <12> oh and also <12> when I try to write a ' to my file <12> it makes it \' <12> any way to avoid that? <13> removeslashes <13> @removeslashes <12> thx <12> hm, cant find it :s <13> @removeslashes! <13> erm <13> @*slashes <12> o, stripslashes? <1> Did not find any matches for removeslashes <1> Possible matches (best first): <1> addcslashes, addslashes, com_release, ezmlm_hash, fdf_remove_item, id3_remove_tag, iis_remove_server, levenshtein, mb_convert_case, ncurses_flash, ncurses_move_panel, recode_file, sem_release, sem_remove, shm_remove, shm_remove_var, spl_cl***es, stripcslashes, stripslashes, swfmovie.save <13> yea <12> k <13> doh <12> thx <13> just woke up, sorry. <1> Failed to find definition for removeslashes! <1> Functions matching *slashes: <1> addcslashes(), addslashes(), stripcslashes(), stripslashes() <4> @mcrypt <1> Listing of all mcrypt functions: <1> mcrypt_cbc, mcrypt_cfb, mcrypt_create_iv, mcrypt_decrypt, mcrypt_ecb, mcrypt_enc_get_algorithms_name, mcrypt_enc_get_block_size, mcrypt_enc_get_iv_size, mcrypt_enc_get_key_size, mcrypt_enc_get_modes_name, mcrypt_enc_get_supported_key_sizes, mcrypt_enc_is_block_algorithm_mode, mcrypt_enc_is_block_algorithm, mcrypt_enc_is_block_mode, mcrypt_enc_self_test, mcrypt_encrypt, mcrypt_generic_deinit, mcrypt_generic_end, <1> mcrypt_generic_init, mcrypt_generic, mcrypt_get_block_size, mcrypt_get_cipher_name, mcrypt_get_iv_size, mcrypt_get_key_size, mcrypt_list_algorithms, mcrypt_list_modes, mcrypt_module_close, mcrypt_module_get_algo_block_size, mcrypt_module_get_algo_key_size, mcrypt_module_get_supported_key_sizes, mcrypt_module_is_block_algorithm_mode, mcrypt_module_is_block_algorithm, mcrypt_module_is_block_mode, mcrypt_module_open, <1> mcrypt_module_self_test, mcrypt_ofb, mdecrypt_generic <1> http://www.php.net/mcrypt <4> oops <11> jeebus <14> hello ^^ <13> Robdgreat: how does the DEFAULT works in mysql? I had a field with NOT NULL and DEFAULT "foo" - if I supply a null value for it, it doesn't go "foo" <4> @mcrypt_ecb! <1> (PHP 3 >= 3.0.8, PHP 4, PHP 5) <1> string mcrypt_ecb ( string cipher, string key, string data, int mode [, string iv] ) <1> Deprecated: Encrypt/decrypt data in ECB mode <1> http://www.php.net/mcrypt-ecb <4> deprecated? what should i use now? <9> @mcrypt_generic! <1> (PHP 4 >= 4.0.2, PHP 5) <1> string mcrypt_generic ( resource td, string data ) <1> This function encrypts data <1> http://www.php.net/mcrypt-generic <4> ty <12> Is there a easy way to use php to do a bandwith test? Could I for example do $start = microtime(); *load a 100kb image here* $end = microtime(); and $final = $start - $end; <- or soemthing like that? hmm <9> uber: that has nothing to do with bandwidth <12> hm <12> but I mean, get the time the user uses to load 100kb? or how could I do it? :1 <4> download speed? <12> yeah <11> the php won't wait until the image loads to execute <4> a 100k picture <4> and then use js to see when it finished loading <11> js might work <11> but php just outputs the html <11> it doesn't actually load the image <12> hmm.. k, <12> o <4> yeah...i wouldn't use php at all for that <12> but isnt the script still loading till the image has been output? <12> hm,k <4> php hypertext PREprocessor <9> !php $a = str_repeat('a',1024); $i = microtime(true); for ($i = 0; $i < 100; $i++) echo $a; print microtime(true) - $i; <9> might work. <12> hm, k. looks advanced :o I'll giive it a go <12> _ <9> advanced? it's one line
Return to
#php or Go to some related
logs:
#allnitecafe strlen round php strreplace #java askeriye gidim #netcafe libphp5.so: undefined symbol: php_escape_html_entities _winxp2kmce_english_whql BANJIR ja_som_boh sneha kundi
|
|