| |
| |
| |
|
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
Comments:
<0> lol <1> TML : do you know the name of the PEAR package to use? <0> well lets call this a learning project just to further my self knowledge...what is the "bad solution"? <2> uFiS: Try searching for "captcha." <1> :) <2> ootz0rz: Make your web directory world-writeable and accessible via anonymous FTP. <3> uFiS: text_captcha? <3> Something akin to that <1> found it thanks <0> CWhiz that doesnt help >.> heh <3> ootz0rz: Well, I'd probably pre-process template files at upload/store time to replace {foo} in PHP blocks with $foo <3> (or whatever the appropriate variable is) <0> yea but what if the {foo} var can chance with each view of the page <0> it cant be hardcoded like that <3> ootz0rz: Anything that can be done via {foo} can be done via $foo
<0> oh sry i see <3> Because that's what it's going to end up doing in your system anyways <0> i thought u said replace it with the value of $foo <3> No, replace it with the symbol "$foo" <3> !tell ootz0rz about u <0> lol ok <0> hmm well the files are going to be uploaded via ftp. like for example the template system in phpbb, i know it doesnt have the same feature but...if you uploaded the template one day and then a week later you wanted to modify it. but then you found that all your {foo} tags were now variable names... <0> they'd be downloaded via ftp as well...so i dont think i'd be able to make it so the php could convert them back unless i made a system to upload and download the templates from the php site <3> ootz0rz: You'd have the FTP upload them to a space outside webroot, and then your out-of-band process would write the processed files into the webroot <3> Never providing direct access to the processed file <0> what do you mean by out-of-band process? a background process to process the template files? <4> Stolichnaya: Privet? <5> tws: otvet <3> ootz0rz: yes <3> ootz0rz: It listens to the FTP upload dir, maybe using FAM, and processes files as they appear <5> tws: ya, pravda, ne z _tiei_ Stolyci ... :) <3> Stolichnaya, tws: English, please <0> TML, one more question...know of any windows alternatives to FAM? heh <3> No <3> You could fit my win32 knowledge in a thimble and have room for a double-shot of Jim Beam <0> haha <4> ootz0rz: May be you can set up a cron job (Task Scheduler on Windows) that will run a script that will do that for you. <0> yea thats what I was thinking...have it keep track of like CRC info or something <3> ootz0rz: But, seriously, this is almost certainly NOT worth the effort <3> Let them use real variables in the PHP blocks <3> But, then, template languages that allow arbitrary PHP blocks are doomed anyways, so I guess it doesn't really matter <0> whys that <3> You'll find out <0> mmk :P <6> is anyone using PhpDocumentator here? I have installed it through pear and everythime I try to generate output I get: ERROR: template directory "/usr/share/php/data/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/" does not exist <3> eleftherios: Does that directory exist? <7> i have a json object in php i want to turn into an array and loop through <6> TML no it doesn't <3> sethuhdiah: Try http://pear.php.net/pepr/pepr-proposal-show.php?id=198 <3> eleftherios: ... <3> eleftherios: It would seem that your application is correct, then. <6> TML, should it work out of the box since I haven't installed anything manually? <6> pear install PhPDocumentator was all I did <3> eleftherios: You'd have to ask the PhPDocumentator support group <3> eleftherios: I'd imagine http://www.phpdoc.org/faq.php to be a good place to start <6> TML :-) <8> hi <9> hey <6> TML, things don't look good <8> whats wrong about such time input format: '2006-APR-09 12:43:00' ? <8> echo date('Y-m-d H:i:s',strtotime('2006-APR-09 12:43:00')); ->> 2014-09-27 12:43:00 <8> how does that happen? :/ why? <3> poncha: Because "YYYY-MON-DD" isn't a valid strtotime format <8> does it accept "MON" somewhere at all? <3> I don't know. Check the formats. <3> There's a link on the manual page that takes you to where they're listed <3> poncha: Hmm...just took a wild shot and tried the format I use when writing dates <3> Appears to work fine <3> 09-APR-2006 <8> ok.. thanks <3> US banks hate me, .EU co-workers love me. :) <8> voila.. i think i finally (after trying to do so for a week) succeeded explaining to a person what "iso date format" is :) <8> but i will still rewrite that freaking thing, just in case <10> isn't there a function that converts from a specified date format? <3> Ciaran: Not that I'm aware of, but I'm certain such a function would be accepted were you to offer it <3> Shouldn't be too difficult with a bit of sprintf()
<11> I've just installed libiconv, but php prints me error that iconv() doesn't exist (I didn't do any configuration to php), what should i do more to turn on iconv ? :) <8> Ciaran, may be... but i do not rely on that input to stay in one specified designated format... working with a couple of morons as a second party :/ <3> ast[away]: Who built your PHP? <10> http://uk2.php.net/manual/en/function.strptime.php <3> Ciaran: There you go. Told you it should be pretty easy with a bit of sprintf(). :) <10> I converted a Temporal Expression library to PHP the other day does anyone require such a thing? :| <11> TML, my administrator, but now he is on holiday so I need to do this job myself ;p <3> ast[away]: That's a really bad idae <3> idea, too <3> Ciaran: "Temporal Expression? <3> s/.$/"?/ <11> TML mhm, why ? <3> ast[away]: If you're not the admin, you probably shouldn't be futzing with the server. <3> That just seems a general rule of thumb <4> ast[away]: Unless you're ready for headache and don't mind being blamed by admin if things are messy in the end. <10> TML: yeah they represent points in time, like "every friday" or "between march and june" or "every monday in june except last monday" <10> etc. etc. <11> TML well server is mine... <12> What would be the quickest way to find the title of an external page? Inbetween the <title> tags? <13> ya <13> <html><head><title> tag <12> Lol <13> there may be title tags elsewhere, if the person ****s <12> I mean Using PHP <3> Ciaran: Ah, yes. I've implemented such a thing before. Never heard that name, though. You should submit it to PEAR. <12> numist: The url is different. <12> numist: The pages will all be different. <11> tws i don't think it's very hard to install iconv ;p <10> really TML? Anything I could see? I'd be interested to see how you did it <3> Ciaran: It's been about 3 years, I wouldn't even know where to find the code anymore. <10> heh ok <3> Haven't worked for that company in ages <3> ast[away]: iconv can be *very* tricky <10> at least it's not on Windows <11> mhm tricky ? how ? :) <8> Ciaran, do you share your code ? (that temporal expression stuff :) ) <3> ast[away]: It's large and complex, and if you have an existing install and install another one alongside it, very bad things can happen <10> poncha: would you have use for such a thing? <3> Ciaran: I can see myself having use for it again some day <3> hence my suggestion to submit it to PEAR <8> Ciaran, i think so... <8> submitting it to pear is a good idea <10> yeah but as is it's not usable, if you needed it for your current project I'd sort it out <3> Ciaran: throw it out there in its current state see if someone cleans it up <3> At least 6 PEAR packages have come from my code that way <10> well I'm going to try and use it in a project I'm working on now so I will clean it up myself <11> well i've just installed it, but i think i need to do some configuration in php.. am i right ? <3> ast[away]: Yes, you're right. <11> where I can find info what changes i need to do ? <14> what can that be: I copy a directory recursively with FTP to another server and after exactly 4 minutes, the copy process will just stop <14> that is with php of course <10> well, I plan on working it out later today so I'll keep you guys posted /!\ <8> ;) <11> TML so could you help me? Or i have just "google".. <12> For the life of me, I can't find the syntax error in this... http://pastebin.com/650902. I'm getting "Parse error: parse error, unexpected T_RETURN, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'". <5> is there a way to return all array elements that start with 'custom'? <12> Will anyone take a look? <5> e.g. i'm posting a form in which some fields names start with 'custom', and these fields are processed apart from the rest of the form <5> so they need to be split off the rest of the $_POST <10> I think you have a mismatched brace MadSekkai? <12> Ciaran: Where? Hehe <12> I can't find it <5> the only way of doing it that i can think of is getting array_keys, then using in_array <10> the one before the return looks out of place <5> perhaps there is an easier solution? <8> Stolichnaya, foreach (array_keys($arr) as $key) { if(strncmp($key,"custom",6)) continue; ... } or foreach($arr as $key=>$val) { same... } <5> poncha: thanks, figured it was the only way. did it with a for loop and strstr()... ;) <12> What's the quickest regex to find the href= bit of a url. <12> It could be like <a target="_blank" count="value" href="http://iwanthisurl.com" cl***="te uver" /> <12> that will all change. <12> The target could be gone <12> the cl*** could be different/gone <15> <a.*?href="([^"]*)" <15> that one relies on the usage of double quotes for the delimiters
Return to
#php or Go to some related
logs:
+grub +Error 22 +evms uninstalling evolution ubuntu gentoo error opening/initializing the selected video_out #linux #lisp aidymole nopalin canada
#suse #math #debian
|
|