| |
| |
| |
|
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
Comments:
<0> ah <0> damn <0> you're right <1> What could this mean? <1> http://fipex.unidudes.fussycoder.id.au/websvn/listing.php?repname=SEP&path=%2F&sc=0 <1> Oops <1> Damn X11 paste. <1> This: <1> Warning: opendir(http://localhost/svn): failed to open dir: not implemented in /usr/share/websvn/include/configcl***.inc on line 511 <2> hello :-) when i write mysql_query('SELECT......') how can i catch the return of select and save it in a variable? <3> Saberoth: Your "if(mysql_query($del)){ echo "gut"; ... stuff is nonsense <0> i get rid of it <0> it was only a test <3> Saberoth: You already saved the return value in $rsult <4> Psycho-MaN: $var = func($arg); <0> where?
<3> Saberoth: What MySQL data type is "art"? <3> In your MySQL table <0> a table <0> collumn <5> someone needs to learn how to spell the names out fully.. <0> art = kind <0> german <3> Saberoth: Yes, of what type is the column? STRING? <0> text <0> no <0> varchar <3> Saberoth: I'm German, too, I understand that. :) <0> can i speak german? <0> it is easier <3> Not here, no. <0> in #php.de ? <2> freeone3000 what i put instead of arg? <2> i want to have the select result... <0> okay <0> well <0> theres a table <0> ipsperren <3> Saberoth: If you have a String in the MySQL table field, those values are to be quotes in the SQL query. <0> like? <3> SELECT foo FROM bar WHEREN art = 'value' <3> -N <3> And concerning the date, you should stick to MySQL's DATETIME instead of a Unix Timestamp <0> okay <3> Next, don't use eregi_*. use preg_* <0> so <3> Next, don't just accept data from $_POST, check what is supposed to be in the variables and what really is in them- <0> ereg = preg <3> Saberoth: No. <4> No. There's obviously some diffrence. <3> preg is way faster <0> so how does it look like? <3> Well...I won't write your program. I just tell you some things I see with a first look <3> And you should check what mail() returns. Whether it's true or false. <4> !echo <6> Frixon: if you work with mixing HTML and PHP then you just make something that just a PHP coder can modify, if you say thats ok for you, ok, but then dont say that this is the right way, its just a wrong way to mix up if you think in bigger style <6> (but 99,9% of the php coder never think of 2-3 people that work on a project) <3> Saberoth: Another thing is, that you can't easily check mail addresses with a reggular expression <3> -g <0> like? <3> Saberoth: You don't know the TLD behind the mail address, you can't just forget about "umlaute". You can't check whether the address is sane or not... <3> WTF? The German word "Umlaut" is "umlaut" in English, too. <0> lol <0> like 'sauerkraut' <6> or 'kindergarten' <0> function checkEmail($email) { <0> if (!preg_match("/^( [a-zA-Z0-9] )+( [a-zA-Z0-9\._-] )*@( [a-zA-Z0-9_-] )+( [a-zA-Z0-9\._-] +)+$/" , $email)) { <0> return false; <0> } <0> return true; <0> } <0> so? <6> yeah paste code <6> we love it <0> its only little code <6> yeah its always just a little code <7> Saberoth: The caracter "+" is valid in username part.
<0> really? <0> wow <0> i doesnt saw a email with + <0> is it new? <7> not new <7> been around <7> I use it <7> very handy <0> ah <0> k <7> http://www.sendmail.org/m4/misc_features.html <7> It's only the first caracter that needsto be alpha. <8> i have like 10.000 characters of text. for language varianting reasons I need to print it to html from php. how to do this? <8> it seems to me that if I just put printf("the long text here") it throws some errors <7> /^( [a-zA-Z0-9][a-zA-Z0-9\._\-\+] +)@( [a-zA-Z0-9\-][a-zA-Z0-9\.\-] +)$/ <8> if i go to html with ?> <p> text here </p> its difficult to do language variant "if then else" stuff <8> so whats the best practise for printing longish text to html from php <7> Saberoth: Frixon is right. Regular expression is just helping to see if the email is valid. However, its not the only thing you should reply to find out if the email is valid. <0> okay <9> i need some experiences from people who have made webmail systems in php that are used by at least a few thousand users, i made one using the imap functions in php but i was not satisfied with the speed so i remade it using Net_IMAP from PEAR and it was slow to even though thats the method squirrelmail uses, what are your recommendations? right now it seems as if recoding squirrelmail to fit our needs would be a lot better than struggling wi <10> Hey <10> im a kid running around in the programming world i have "learn" about linux, php, C++ but i need to get to the next level tutorials, books, guides can't teach me <11> Is there any command to show $var = "1929191.00" to echo only "1929191" if the decimals is .000 ? and if not, echo the decimals too? <10> that turtor...* <9> rightnow: sprintf <10> anyone that can help/show me the way to it <11> nocturnal, with %f ? <9> i don't know if php spritnf has %f, try %d instead <9> i know that in perl i use %d <11> with %d i never get any decimals <9> isn't that what you wanted? <9> oh i didn't understand your question there, sorry <11> np :D <11> i dont want the decimals if they're not used.. but if they're used, then i want to print them <11> but maybe i could print all of them tbh <10> rightnow, explode(".", $var), but there should be a better way <12> can an abstract cl*** in php5 use the __call overload method? <9> i'd use the formatting options in sprintf to do it, you can have conditionals as arguments to sprintf that check if it is a float or an integer but i'm not sure how, thats your job to figure out ;D <11> :D <11> well thanks anyway <13> conditionals in sprintf, are you sure? <10> rightnow, you can do this http://pastebin.com/574828 <11> :D thanks gental <10> npp <10> -p :S <14> anyone can help me with a GD problem im having to generate an Image? <10> .... <14> an Image is generated through a script I have, which is not a fuction, just lines of code, and it lets me save it fine. <14> but when I include the function witht he same script, and it displays the image, when I save, it wont show anything on the image after its saved, just a blank picture. <12> can an abstract cl*** in php5 use the __call overload method? <7> nocturnal: Need help with webmail? <9> roychri: if you have any input on what i said earlier that would be nice but we just decided to give up and use squirrelmail <7> I do have some ideas. Mind if we go private on this? /msg me <15> Fatal error: Call to undefined function PMA_generate_common_url() in /var/www/localhost/htdocs/phpmyadmin/libraries/header_meta_style.inc.php on line 44 <15> any idea? <12> can an abstract cl*** in php5 use the __call overload method? <16> SkramX: PMA_generate_common_url() isn't a PHP function <15> Welp.. i just tried doing a select. <17> Anyone recommend any specific "ajax" library that works well with php ? <12> cpaint is nice <17> ok <17> will cehck that <18> hey <18> is there a way to do what chr() does but with hex codes instead of ascii codes? <12> sprintf may be able to do it <18> hrm <18> maybe there's some chart with hex codes... <18> i guess i need to know what the ASCII code is for 0D0A (some kind of space) <19> good morning... I'm a bit of a bind here ... I'm fearing bad news: Question -- is there a way to run php via apache and NOT have php process post/get? I want to read, say, from STDIN and process the http protocol myself. <19> man ascii <18> there's a linux command for it? how clever <18> ah, just a chart <18> well, that'll do
Return to
#php or Go to some related
logs:
debia etch xorg poweredge 850 sarge #perl #math change background another div rollover wich version of fglrx i have tun0+bandwidthd #gentoo #linux damn.small.linux sudoers
|
|