@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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



Comments:

<0> Smarty is a template engine
<1> so how can i reference whatever data is submitted from a form?
<1> a loop or something?
<2> feistel: Templating engine != framework.
<0> $_GET or $_POST\
<3> ^Migs^: what is the best framework for you?
<4> how about the zend framework
<0> I don't use framework
<4> Andy298: php.net/variables.external
<0> I don't think I understand what you mean by framework here
<3> I am finding a good framework for e-commerce applications
<2> philip: I hear Zend's framework is crap.
<3> ^Migs^: http://www.coldscripts.com/PHP/Scripts/Development/Frameworks/?gclid=CLXDm4HEh4QCFQ9_LAodOkKkfw
<3> Stormchaser: http://www.coldscripts.com/PHP/Scripts/Development/Frameworks/?gclid=CLXDm4HEh4QCFQ9_LAodOkKkfw
<3> choose one!
<5> while(ctype_alpha($value{$sub_string_count}) && $sub_string_count > 0){ $sub_string_count--; }



<5> shouldnt that backup through a string until it finds a non character?
<5> or the beginning of the line
<2> *blink*
<6> I simply won't find the perfect Web host for my needs by searching for it. Do you know of any serious USA based host with support for PHP 5.1, cronjobs, CLI, MySQL, etc., or am I stuck doing it myself on my own server again? :/
<7> myconid: strrev and strspn will look way nicer.
<0> uh, why?
<7> myconid: or use regex...
<5> KimmoA: What kinda bandwidth?
<8> KimmoA: some people may say DreamHost, but that was the WORST host i had EVER experienced
<6> myconid: More than 30 GB/month, at least.
<0> why, itrebal?
<6> itrebal: Hrm...
<5> KimmoA: What kinda site?
<0> I've heard nothing but great things about it
<0> I'm regretting godaddy right now
<6> myconid: Multiple. Must allow vhosts and support RewriteRule too...
<5> KimmoA: can I msg you?
<6> Maybe this is hopeless. I'm probably gonna end up brushing off my server...
<6> myconid: Um... sure?
<8> ^Migs^: do you consider 4 days of hosting without apache working (httpd errors) MySQL working one out of those 4 days, 16 server reboots, and 4 'sorry your service is down...' emails great?
<9> does DirectoryIterator not always order things by name?
<9> it has been until this one time
<0> see, I've never heard of a user who had any of that, except you
<0> so in my mind, you're the exception
<0> how long ago was this?
<10> how do I sanitize a string when I need to send it via SMTP?
<0> smtp_sanitize_string()
<10> I'm using a From: of "So & So" and the ampersand is blowing things up
<8> ^Migs^: one of the emails of the httpd errors told me "sorry that it hasn't worked yet, it generally takes 2-3 days for the config file to take hold, but 4 is unusual" as well as several other people telling me 'if you dont screw with the hosts configuration, its fine.... but when you do you have to wait 3 days for it to work'
<11> how can i avoid the double line here? http://pastebin.com/631492
<11> (just 5 lines)
<8> Jax: http://pastebin.com/631495
<8> that may work
<11> hm
<11> interesting
<11> thanks
<9> anybody ever notice DirectoryIterator not ordering by name
<5> how can I tell if a single entry in a string $string{$id} is a character (a-zA-Z0-9)
<12> ctype_alnum
<10> SMTP is barfing on an ampersand char I'm putting in a name field, what can I call to fix that?
<5> doesnt $string{$id} return a single char?
<13> myconid: yes
<10> how can I run PHP interactively?
<5> BaconTastesGood: type php at a cli
<5> while(ctype_alnum($value{$sub_string_count}) && $sub_string_count > 0){ $sub_string_count--; <- doesnt seem to work
<13> BaconTastesGood: php -h gives all command line options
<10> k, thanks
<14> I always wondered how to get into interactive mode. Cool. Joy. Not very useful, but neat.
<15> is there a command like trim, but inversed?
<15> so I could say trim all but [A-Z][a-z][1-9]
<14> keep only the white space and get rid of the text in the middle? Oh, that's not quite the inverse. :)
<14> mikearthur: I'd use a regex there.
<15> ok
<16> is there any way to find out if mysql has been configured properly to work with php5? my php script is not seem to be working I kepping an error
<16> error: Fatal error: Call to undefined function mysqli_init() in c:\Apache\htdocs\dbconnect.php on line 4
<17> are these identical? if ( !($var == 'this' or $var == 'that') ) { if ($var != 'this' and $var != 'that') {
<14> break the line, change the sign. Looks about right... I know there's a mathematical principle of boolean logic that addresses that... gah! Mcsomthing-or-other.
<17> are you talking to me?
<14> DeMorgan's Rule.
<14> Yes.
<17> k



<17> what is break the line and change the sign?
<14> cyphor: http://en.wikipedia.org/wiki/De_Morgan%27s_laws
<18> can i use explode() if i'm trying to split new line delimited stuff in windows? i'm trying to do "\n\n" because there is one blank line between entries
<8> fedya_: why couldn't you?
<18> can i use explode() if i'm trying to split new line delimited stuff in windows? i'm trying to do "\n\n" because there is one blank line between entries
<8> fedya_: why couldn't you?
<18> it doesn't work
<14> yay for deja vu.
<8> fedya_: then your code is broken
<8> because it does work
<18> maybe there's another hidden character between the \n s?
<17> if a script creates a non-fetchable directory when a new user account is created to store that user's files, is 0755 for the directory okay?
<14> itrebal, what's the quick-bot thing for explaining \r, \n, and \r\n?
<8> doesnt windows use \r\n?
<8> Ahroun: i dunno, i was looking for it :)
<8> ah ha! "(04:32:00 PM) php-bot: Newlines are hidden (not normally visible) control characters that distinguish the end-of-a-line of text and are different for each platform as follows: [Windows=\r\n] [UNIX=\n] [MAC=\r]. And can be seen as: [LF (linefeed) = \n, 10d, 0x0A, 0001010b] [CR (carriage return) = \r, 13d, 0x0D, 0001101b]"
<18> ah
<18> \r\n that's it, i coudlnt remember the \r
<19> any tips and tricks to get rid of "open_basedir restriction" errors in Plesk?
<8> Miaow: not here, go to #plesk or email them
<14> what's the quick-bot thing for package support? *eg*
<8> g10 IIRC
<14> oh, wait, I can't use it anyways. Dang.
<8> you can do !tell nickname about quickbotthinghere but not the !+quickbotthinghere
<15> Ahroun: could you suggest a regexp to use?
<14> mikearthur: You definately don't want my help with regex. :) I stink at 'em.
<15> as do I :s
<20> Regex is easy. :|
<8> mikearthur: preg_replace('/[^a-z1-9]/i', '', $something);
<20> What was the question?
<14> Well, politely re-state what it is you're doing and see if someone can help you either generate an appropriate regex or point you in a useful direction. :)
<8> err... no it wont
<8> mikearthur: that regex will not work, dont do it - re-post it
<21> can someone tell me the difference between pecl and pear? pecl docs don't seem to say.
<8> preg_replace('/^[^a-z1-9].$[^a-z1-9]/i', '', $something); that'll do something like 'trim' on anything that isn't a letter/number, right? (only in the beg. and end)
<22> pecl is cooler
<15> so I could say trim all but [A-Z][a-z][1-9]
<22> difference is two last letters
<8> scruffy: pecl is compiled modules/extensions of PHP< while PEAR are PHP scripts
<20> Trim kills /all/ extra whitespace. s/[^\w\d]// would work fine.
<21> itrebal: I see.. okay, thanks.
<20> preg_replace('/[^\w\d]+/','',$str);
<15> nice one
<21> itrebal: whoops, I'd have noticed if I'd actually looked in the .tar package and seen the C source code! :-)
<20> I mean, you could just do preg_replace('/\s+/','',$str).
<19> itrebal: thanks!
<20> I don't know how agressive you want to be with this regex.
<20> \s just covers x20, \t, and [\r]\n.
<20> s/x20/0x20/
<15> whats \w cover?
<20> Word characters.
<20> [A-Za-z0-9_]
<20> Actually, \w\d is redundant.
<20> [^\w\d] simplifies to \W.
<15> k
<20> That's a lot more aggressive in what it culls than \s, though, as I said.
<23> hi ! I have a problem : date("N",mktime()); give me -->N instead of the day number in the week ?
<0> we bought this $50,000 Java IDE to develop a portal, but I'm thinking it actually would've been -easier- to do the whole thing in PHP
<0> yet still as robust and secure
<20> You /bought/ a Java IDE?
<20> Big mistake righ there.
<0> licensed one, yes
<0> BEA WebLogic
<20> SHould have just used Eclipse.
<0> don't know why they didn't just use NetBeans or something
<0> yeah
<20> NetBeans for teh lose.
<0> WebLogic is nice and all, but...seriously. This portal doesn't really contain anything that makes it easier to develop in Java.
<24> But hey, someone made a nice commission, would you begrudge them that?
<25> holy cow
<25> $50k for a java IDE?
<26> but it's ***y!


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#linux
gentoo module nvidia /proc/modules
#perl
error while loading shared libraries libexpat.so + gentoo
#debian
suse increase file descriptors
#mysql
selkfoster
Ralith
php call_user_array_func



Home  |  disclaimer  |  contact  |  submit quotes