| |
| |
| |
|
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
Comments:
<0> Matthew^^: As long as words are seperate by spaces and not something else, like "-", ":", etc. that will work fine. <0> Matthew^^: If there's only one word, it does the correct thing. <1> erm <1> no they wont allways be seperated by spaces <1> people get to my site by typing things like textkeyword <1> etc <0> Matthew^^: Then you'll either have to come up with a different solution, or normalize the string to seperate words with spaces <2> My point is that im getting sick of people avoiding my question by talking for hours about how-this-is-not-the-place-to-ask-this-question where the actual answer is just 1 line of code. <3> TML: Have you looked at seraphinn? <2> ah well nevermind <0> micc: If you know it's one line of code, then you MUST know the answer, so go fix it yourself. <0> Stormchaser: Not yet. No time. <2> wow dude yeah that clears everything up <2> are you reading at all? <4> Look micc - get a grip, none of us are getting paid here, if you ahve a specific PHP question ask it. If you've got a question which is probably phpbb related, perserver with #phpbb <0> micc: I am. Are you?
<1> How would I normalise the string when there is no way to figure out where the spaces should go <5> can I p*** an array in the value for a input type="hidden"? <4> gunoo seralize() <5> can you show me an example? <1> I could do the search on each array element indivually with a while look working through the array <3> gunoo: Use sessions instead' <1> Which function would I use to search for the one word in the string though <0> Matthew^^: That's an excellent question. How do you intend to know that "textkeyword" is two words "text" and "keyword", and not one word, "textkeyword"? <1> yeah hehe I think I just asked you that <0> Matthew^^: If you don't use my solution, how do you intend to solve the problem? <4> echo '<input name="hiddenField", type="hidden" value="'.serialize($yourArray).'">'; <1> your solution only works when the string has spaces though doesn't it? <0> Matthew^^: That's a problem you're going to have to solve either way. So whatever solution you come up with can just as easily be applied to my suggestion as it can to anything else. <6> "The requested operation has failed" - I get that error message when trying to start my Apache2 server. I've used the guide to install PHP from http://dk.php.net/manual/en/install.windows.apache2.php, and inserted 3 lines of code in the httpd.conf <4> gunoo http://php.net/serialize <3> andrewtaylor_: Well... That is wrong... Ever checked, how many quotes are in serialized string? <1> For example say $string = "Hello my is MarkJohn"; And I want to return true if the word Mark is found in the string and false if it isn't <7> i'm trying to do the equiv of a transliteration regex (i.e. tr/SEARCHLIST/REPLACEMENTLIST/). Anyone know of a simple way to do this in PHP? <1> now Mark is in the string but its not a word on its own <1> Yet I would still want it to match <0> depquid: php.net/strtr <3> gunoo: Rather use session, since whatever is sent via client, can be faked. <7> doh, i was searching for translitarate <7> *transliterate <7> thanks <0> depquid: Note that they're *not* regex <1> hmm I think a simple preg match will do it afterall <8> Matthew^^: how would you seperate penisland? <1> if (preg_match("/mark/i", "my name is MarkJohn")) { echo "A match was found."; } <0> Matthew^^: The question is whether that SHOULD be a match or not. <1> for me yes it should be a match <7> TML: yeh, i actually don't need a regex in this place, but i'm porting from perl, so i'm using that terminology <0> depquid: Just wanted to make sure that was clear. <1> This way seems slow though <1> as I would have to work through all 200 elements in the array <1> Im sure there must be a way to return which element in an array matches all in one go <7> TML: yeh, i got it, thanks <0> Matthew^^: There's not. To compare a string to an array, you're going to have to loop. <1> ok <1> Its not too bad I suppose <1> Thanks for the help. <9> Jymmm, Synergy rocks. <10> Lateralus: Thought you might like that. <9> Jymmm, correct <9> Jymmm, it rocks! easy to setup :) <11> I was going to make a page that says, "One second while your download begins..." or whatever. What is the best way to do this? I was thinking an invisible iframe that loads up the file ... but some browsers don't support iframes and what not. What do you guys think? <10> Lateralus Just dont use it on an UNsecure LAN. <10> Lateralus: I avoid using it across wifi as well. <0> foo: Most places it do via a meta refresh <12> startkeylogger <0> Jymmm: What is this you're talking about? <13> joh: can I PM you one or two quick questions? <11> TML: Ah, I see. Thanks <10> TML: syenrgy2.sf.org <0> You mean .net? <10> Lateralus: FWIW syengry and syenrgy2 are two different things. <14> Running PHP on Apache2 on Windows, my mail script works if I run it from a browser, but doesn't work if I run it from command line. The error I get is telling me my sendmail_from is not defined but it definitely is. Its as if, running PHP from command line somehow ignores php.ini. Anyone know what I need to do? <15> quit <15> oops :) <14> I thought of that but its not an option ;) <13> Smegzor: No but it could be a DIFFERENT php.ini. Try doing phpinfo() using the cli version.
<14> hmm.. ok. <0> Jymmm: syenrgy2.sf.org doesn't exist and syenrgy2.sf.net gives me a page saying that this project hasn't setup their website <9> Jymmm, oh? <10> TML http://synergy2.sourceforge.net/ <9> Jymmm, then why are the synergy2 binaries called synergythis and synergythat? <9> eg, synergys/synergyc? <0> You changed the spelling of synergy on me. :) <10> Lateralus synergy is a CAD thing, synergy2 is the softKVM <14> hmm.. how do I get phpinfo from command line (shell)? <16> hey guys, Can someone help me solve this problem. I need to know if there is there an easy way to remove smartquotes from text that came in from a microsoft word document <10> TML sue me! <10> =) <14> I tried php.exe phpinfo() and got a 404 error :/ <0> Smegzor: php.exe -i <14> there is a php.ini in the same folder as php.exe. I might copy the system php.ini over it. <13> Smegzor: No, create a test.php containing <?php phpinfo(); >? then call it on the command line as php test.php <0> Jymmm: hmm <13> Smegzor: I would not copy one over the other. There are options that should be different, like the error reporting ones. <10> TML ? <0> Jymmm: curious <0> Only problem I can see is that I'd have to run X 24/7 <17> Hello, I need to show the current date/time into a field text <17> how do I do? <17> I have this <17> <input type="text" name="fecha" value='<?php $fecha = date("d/m/Y h:i") echo $fecha;?>'> <17> what's wrong? <18> Neurobyt3: you are ***inging and not echoing? <10> TML You should have been running X 10 years ago <3> Neurobyt3: Why do you put that date into variable, if you're not going to reuse it? <0> Neurobyt3: That's a parse error <14> I made a backup first. Replacing php.ini in the php folder with the php.ini used by the website fixed my problem. <0> Neurobyt3: Use <?php echo date("d/m/Y h:i"); ?> <0> Jymmm: Well, I already have a KVM, so I don't really *need* a software solution. <17> I need it in the field text 'cause it will be stored in a BD <10> TML: Same here, but does your VKM allow copy-n-paste between machines? <10> KVM <0> Jymmm: No, but I've never desired such <10> TML you dont know what your missing =) <17> ohhh, ok... it works! :) <19> does anyone if it's ok that images in a non-browsable folder are not shown in static html pages? <17> Thanks for it! <0> Jymmm: I only go to anything other than my debian stable box for just a second or two <3> putty / ssh => copy between machines :) <10> Stormchaser: images too? <18> Toerkeium: the browser has to have a way to download the images <19> ||cw, thank you <3> Jymmm: I never wished for that... I have samba sharing setup for the physical files, tho <20> I'm making a m*** mailing system to test a block function of my friend's mail server, and I want to make sure that I'm making stuff right, can someone take a look at my code real quick and let me know if it would work <20> http://pastebin.com/567476 if you wanna look at it. <21> can i ask an OS X install and configuration question here or is that better left to #macosx? <0> Punkwork: Are you asking a question about installing PHP on OS X? <0> Punkwork: Or a question about installing OS X? <21> TML : PHP on OS X <21> and its actually a configuration question <0> Punkwork: Ask away <21> in phpinfo() my Configuration File Path = /etc -- but I dont have a php.ini in /etc/ <21> im just trying to find where my stupid php.ini file is - the only one slocate returns is in /usr/loca/php/lib/php.ini - but it doesnt come close to accurately reflecting what phpinfo() is returning <20> Can someone take a look at my code please? <20> http://pastebin.com/567476 <0> Punkwork: phpinfo() is always right <0> Punkwork: If you don't have a php.ini in /etc, then you need to put one there. <21> ah so if php.ini exists it uses that but else reverts to a set of defaults? <0> Yes <21> TML : thanks that clears things up <0> Phuzion: Did you have a question of some sort? <22> Phuzion yes ? <22> I'm looking for it <11> I'm going to be writing information to a MySQL database that will contain a timestamp. I'm going to spit out the most recent entries at one point. What's the best way to do this? Just write 20060222 ... and then spit out info with order and then format the date when spitting out? Or doing something like 20060222 in one field, and then doing 2/22/2006 in another field ... ? Or what? <23> hi! <0> foo: You don't need to store the date twice. <20> I was just wondering if that would come out right and work. <23> I'm running php4 on my mac, and I'm trying to see the errors...they don't display <11> TML: Gocha, that's what I thought. <11> TML: Thanks.
Return to
#php or Go to some related
logs:
#perl error: *** GLIB >= 1.2.2 not installed ubuntu fedora dv1000 hibernate #perl vnc4server debian etch #web #kernel #awk error_perm: : command not understood. +k3b +4.2 +gigs +file
|
|