| |
| |
| |
|
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 33 34 35
Comments:
<0> i just set the external smtp server in my php.ini, but doesnt work <1> RogueJedi: well double checking, file_exists doesn't work with the HTTP wrapper anyway <1> can just use curl I suppose <2> NativePHP: Heh was still looking for that =) <3> yeah i can use curl i guess, figured since php was scripting languge it would have that hehe <1> i don't usually do image stuff, but i'm suprised there isn't an is_image type of function somewhere that validates an image exists at a path <3> i thought getimagesize() would have that but it doesnt <3> that's what im playing with now <4> NativePHP, http://jp.php.net/file%20exists <2> Gerry: We just went over that <4> sorry <4> I don't like reading. =D <3> oh god, that function for url_exists looks insane <1> and the http wrapper doesn't support stat() either, so file_exists wouldn't do any good for the remote images <1> there's also the PEAR HTTP packages, may have a better (higher level) API to use for validating a URL
<5> How do I tell a function to add content to the header? <4> snoopy <3> $header .= heh <4> philovirus, do you mean header(); <5> wow. color me stupid <5> lol <6> ers* <1> could use HTTP_Header from PEAR ;) <5> I'm in the midst of writing a wordpress plugin but I need to have the plugin that you call via function wp_plug() also echo 3 javascripts into the header <7> philovirus: dynamic? or static? <5> static. <5> Basically due to the way wordpress handles php it reuires an external page to do what I want. <4> :) <7> philovirus: ah, that ****s... <3> $response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); <5> http://cdcstudios.com/archive.php is what the plugin does but I'm trying to make it far easier for new users with no real coding experience to be able to use the plugin <3> that should do the job for me, in case anyone cared <7> _clean_ layout <5> lith: yep <5> i'm just curious how to make a function write to the header <6> philovirus: i'm not sure what you mean by that <8> Thanks for the help :) <5> I have a function that is to be added into a php file. That function writes the archives portion of my wordpress/php site. I'd also like to have the function echo some data to the header <9> was i just imagining it or was there a date format that included string like 'today', 'yesterday' ... that kinda thing ...? <10> You mean a way to turn 'yesterday' into a day? <10> date* <6> hmmm.. jymmm infectd the place with the bird flu <6> kudos to jymmm :) <11> where should i go to get help with php stuff? <4> tobmoox, the php manual <3> geezus 5000 lines of code 4900 syntax checking scrip code 100 lines lol <3> but my **** is SA-KURE <3> until tommorow when a new exploit is found <6> tobmoox: as Gerry suggested, the first place should be php.net/manual <3> lig please lick not chew your cream <3> have your gf educate you <12> moosey: sensitive teeth - can't chew... <12> and my husband would love me having a gf <12> to educate me <3> lol <12> ;) <6> hmmm.... droool... <12> lol <3> reading your blog <12> ? <4> <12> and my husband would love me having a gf <----- Gerry loves that sentence. <12> hehe sad part is he would too <4> That's no reflection on you. <3> your blog needs pics of you and your travels <4> If it were possible he would probably want your gf to be a clone of you. <13> incest <4> heh <12> understood - lol <10> Marilyn Monroe clone all the way.
<12> moosey: my blog? <3> yes <12> follow the photogallery link <4> Yeah or Jessica Alba <12> there are plenty of pics <2> All this talk of a blog and yet no one has put up a link -_- <4> ^agreed <12> http://khankennels.com/blog/ <2> Much better <12> moosey: photos - http://www.khankennels.com/gallery/ <3> holy pics <12> need to put up some of the newer dive pics - been lazy <3> what breed is mixed in with that shepard? <14> $template = preg_replace("/\\<if error_message\\>(.*?)\\<\\/if error_message\\>/s", ($message != "") ? "\\1", $template); <14> i don <12> akita - and he is a belgian malinios <14> i don't know what to put in the replaced value <3> back legs look like a deer lol <4> The pics from China are very cool <14> could anyone give me a help please? :) <12> Thanks Gerry - will be adding australia this summer <4> =D Perth? <12> Cairne <4> or Sydney :( <12> think that is how you spell it <4> close enough <4> dlon9, this will help you with your regexps: http://www.anthd.com/rithiur/php/regex.php <15> !+mre <16> [MRE] 'Meal, Ready to Eat' used by the military in the field and others during a disaster as they have a long shelf life. But you probably wanted 'MRE - Mastering Regular Expressions' the bible of regex http://www.oreilly.com/catalog/regex2/ Use this utility for learning/understanding/troubleshooting your RegEx --> http://www.weitz.de/regex-coach/ <14> can i put if into the preg_replace? <12> still need to get that book... <4> dlon9, no <14> then can i use if in eval? <10> !tell dlon9 about eval <4> Ehh, who needs a book when you have the net. Especially on a topic such as regexps <12> regex kicks my butt every time... thank god for regex coach <10> Personally, I'd just make it using preg_replace_callback. Very pretty. <10> I love Regex <3 <10> Possibly because of the perl background but hey.. <17> Zule: agreed. regexs are so incredibly useful it's not even funny :) <12> perl kicked my butt to - serious mentality shift <4> I hate Perl, but love it for bringing us regexps. <17> (as the saying goes...) <10> I hate perl these days too :( <10> It's still good for some really dirty scripts :) <4> Great for parsing text files fast. <10> So true \o/ <4> So thank god I use a database. =D <10> Reminds me of a time I was converting a website from html to something a bit nicer. So I used a messy bunch of perl to extract everything I wanted <3 <12> can an object have a variable property? Ex: $this->$var <10> Err? <10> Are you meaning if you have a variable 'var' within your cl***/object? <12> I'm trying to read a multi-dim array in an object <12> the $var is the depth of the array <12> built dynamically <10> $this->var ? <12> $this->var[] or $this->var[][] or $this -> var[][][] - the depth is built dynamically and held in a var <12> hold on - let me pastebin it <4> lig: what is the root problem that you are trying to solve? <10> :) <12> maybe I'm just thinking too hard <4> ahh yes pastebin it <10> It's possible :) <12> I am reading a config file and it can be multiple layers deep... it is loading into a multi-dim array in the object.. I am trying to get it back out - http://pastebin.com/710843 <14> eval("if (\$message != '') \"\\\\1\";") <- do not output anything <12> sorry - didn't fix the indents on the code <12> now the arg list prints fine and the $depth as well - but it throws an error at the return saying it can't find the value <10> You'd just use $depth... wouldn't you? <12> yeah <10> Why $this->$depth? <12> because the depth is variable depending upon the number of args p***ed to the function <12> it builds the settings[][] part <10> That doesn't really make much sense to me. I can see you're ***igning stuff to $depth above ' $depth .= '["'.$arg.'"]';' etc. So that's a local variable rather than a cl*** one
Return to
#php or Go to some related
logs:
#ldap #perl winscp xpm konqueror rip mp3 kde3.5 domain-search-order isc dhcpd dpkg: error processing gforge-db-postgresql (--remove): invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found slappasswd generate php freenx black screen #perl
|
|