@# 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 33 34



Comments:

<0> i am sorry for the question here but i don't know where to ask as i don't have friends in here. May you login on google adsense right now? Because i have error message for more than 2 hours. Thank you in advance
<1> Hey i have some page which has a submit button on which some data is send to next page when i press back it say your page is expired i want to come on same page without it saying your page has expired
<1> Is it Possible
<2> blackhole: Yeah, you need to add some headers to the first page about caching. Let me look them up...
<1> Thanx
<1> do let me know
<2> blackhole: Try this: session_cache_limiter('private')
<2> blackhole: Make sure to put it at the very top of your script, so it gets sent before any other output.
<1> k Telamon thanx
<3> How do you make sure a variable is an integer?
<4> dampjam: is_int()
<3> thanks
<5> How do I check if I have imap support in php5.0.4?
<6> phpinfo()
<7> do phpinfo() and grep for imap.
<6> or command line : php -i | grep imap



<6> morning Jymmm... ltnt
<5> Do phpinfo() from a browser or cli?
<5> 'Cause I'm looking at it in a browser...
<7> Wolftech, whichever.
<7> In cli, do php -i.
<5> kodekrash: I did the php -i | grep imap and just got the whole compiled with string. Was that cmd right?
<6> Wolftech: that means --with-imap was part of the compile options, I'd guess :)
<5> kodekrash: Ah, tough to sift through all that though. ;)
<4> Wolftech: php -m | grep imap
<5> kuja: Ok, that got nothing. That mean it ain't there?
<5> :(
<4> Yes, it means your CLI binary doesn't have the imap extension loaded.
<5> kuja: Next question, pardon if it's a bit n00b-ish but, how to get it loaded?
<2> Wolftech: You are probably better off writing a test.php file with <? phpinfo(); ?> in it and loading that from your browser. Then just do a search for "imap" It might be loaded in the web module but not the CLI.
<4> Wolftech: How are you installing PHP?
<8> heya kuja
<5> kuja: I am on Fedora Core 4 which is an rpm based sys, php was installed during my initial install so I did not control anything. However, with that said, I can't afford to lose the options that id CURRENTLY has loaded either...
<5> kuja: So I am looking to proceed cautiously...;) That's the only way right?
<4> Hey snipe! :D
<8> :)
<4> Wolftech: Might want to check for the php-imap corresponding package then.
<5> kuja: Ah, good call, didn't know that existed so that might work.
<0> hi, $HTTP_HOST definition five me the url of my website. I want to grab the URL including the subdomain name
<0> hi, $HTTP_HOST definition give me the url of my website. I want to grab the URL including the subdomain name
<9> !+gv
<10> Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre>
<0> sorry for repeating but i missed a letter
<0> Jymmm may i still use the http_host for subhost url catcher
<9> Skretch you shouldn't use $http_blah, they are depreciated.
<11> sound off, do you think the Terminator ran on windows or *nix?
<0> Jymmm what is better then. REDIRECT_URL ?
<9> Skretch: Kumkwats in a basket
<12> should echo error_reporting(E_ALL); give me all errors?
<3> I have a string that has many \n in it... I want to put the first line into a new variable, and for the other one take out the first line... is there an easy way?
<6> error_reporting() on changes the reporting level...
<6> http://php.net/error_reporting
<12> dampjam, explode()
<11> Slee: correct
<11> Slee; n/m
<13> I'm getting this error with php 5.1.1 MESSAGE: strftime() [function.strftime]: Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone
<8> I have caffeine - what I miss is my mind
<12> kodekrash, so error_reporting(E_ALL); just turns it on?
<6> yeah
<5> kuja: Ok, once that is dl, other than restarting apache, will I have to do anything else for it to be enabled? (just checking)
<4> Wolftech: Shouldn't have to. ***uming you've installed the right package, it will do it all for you.
<12> how do I echo the errors, then?
<5> kuja: php -m | grep imap now shows imap so all should be good yes?
<4> Wolftech: That's for CLI, now you want to check the phpinfo() from your browser.
<4> Don't forget to restart Apache as well.
<5> kuja: Right, doing that now.
<9> G'Night Folks!
<5> kuja: I think I must have to restart apache because on the phpinfo page, I do a search for imap and it seems to only be in the apache loaded mods.
<12> ini_set("error_reporting", E_ALL);
<12> echo ini_get("error_reporting");
<14> Night, Jymmm!
<5> kuja: Ideas?
<5> kuja: Or suggestions rather?
<4> On what?
<5> kuja: I think I must have to restart apache because on the phpinfo page, I do a search for imap and it seems to only be in the apache loaded mods.
<5> kuja: Actually, even AFTER restarting apache I get the same results. Where should I find it on the phpinfo page?



<4> Well, you need to restart Apache so Apache can reload the PHP module and so that the PHP module gets a chance to load any newly enabled or disabled extensions.
<5> kuja: Actually, I DO see it as ini's parsed so that's a good sing I suppose, yes?
<5> kuja: Sorry, had not looked far enough, now it has it's own section too. So I'm presuming all is fine.
<4> Wolftech: <?php phpinfo(INFO_MODULES); /* look for the imap extension */ ?>
<4> :P
<5> Thanks.
<15> Hello, can anyone tell me how I can create a function that inserts this categoryhierarchy in to a mysql database? http://pastebin.com/576264 I need to know what mother the child category has... any ideas?
<5> kuja: The app I needed it for is working now so all is well. Thanks very much for the ***ist. I 'preciate it greatly.
<4> You're welcome.
<4> snipe: So... how goes it? :)
<8> kuja: it goes :)
<4> Been very busy eh? :(
<4> CopyNinja: If you want an infinite structure like that, you only need 2 things. The category: 1) Must belong somewhere, 2) Must have its own unique identifier.
<8> kuja: you could say that :)
<4> snipe: You should come more often :(
<14> Heh, anyone has any suggestion to make sure that e-mails being sent from php script are not categorized as Bulk at Yahoo!?
<8> kuja: ROFL.. yer damn right I should... oh wait... you meant come here....
<4> lmao
<15> kuja: yeah I have a database that works like that (defined my mother id) but how can I insert it using a PHP-function? its to much to do manually... believe me I've tried and got lost after inserted about 120 categories =(
<8> hehe.. oops... understandable mistake, no? :)
<15> I guess I have to split it in some way... but I don't just know how I should do it =(
<4> :D
<4> CopyNinja: 9:1:1 CRT <-- Why do you have 3?
<14> kuja: 2:1:1:1 <-- It's 4!!
<4> Well, actually, that could work. You only need 3, perhaps. One belonging to whatever master, one unique identifier, and one identifier that tells it what category ID it belongs to.
<4> So, in reality I suppose you only need 3 IDs
<7> tws, well, for one, make sure your headers are valid and consistent with your MTA.
<4> From there on it's just a little bit of recursion to display it.
<15> well the hierarchy can be infinite... that depends on my wholesaler (where I get that hierarchy from)
<14> pmv: Hm ... what do you mean with that?
<16> Hi anyone know some good PHP module to translate english text to multiple langugages like french,german,russian,chienese etc.. any smart way?
<15> let me show you the database design... hang on (pastebinin ;))
<4> CopyNinja: Well, even if the heirarchy is infinite, you only need 3 IDs.
<4> If your categories are independant, then you only need 2, so that you don't have to link categories anywhere.
<8> kuja: I'm actually having a bit of a rough day, so I'm going to bail.. but I'll be back sooner than before
<0> how may i combine string1 with string2 so string3 = string1string2
<14> pmv: I mean, I don't understand the `valid and consistent` header. :|
<4> snipe: Ah okay, nice seeing you though. Take care, and visit more :D
<7> tws, for example, make sure your FROM address is valid for the domain you're sending it from.
<4> Skretch: $str1 = $str2 . $str3
<0> with . ?
<0> thank you
<14> pmv: Valid as in the e-mail account exists?
<7> Email from president@us.gov from say, your local MTA (foobarbaz.org) would obviously be counted as spam.
<17> How would I count how many rows were returned by mysql_query?
<15> kuja: Here is the layout of the categories table in the MySQL-database (osCommerce): http://pastebin.com/576271
<15> I don't understand what you mean with 3 IDs actually?
<14> Ah, okay. May I paste you the header via PM?
<3> What creates a new line other than \n?
<17> dampjam: In terms of {x}html, <br />
<3> nitishp: in terms of file, not html
<4> CopyNinja: Well, all categories have a unique ID, right?
<15> kuja: yup
<3> nitishp: when I use nano to open a file I see the new lines, but php is not finding any \n in it
<7> tws, that's just one tip.
<7> There's probably other reasons too.
<7> Heck, email from gmail used to go into Yahoo's bulk folder.
<15> dampjam: also check \r and \r\n
<17> \r would just do a carriage return, I doubt that's what he wants.
<17> (or she).
<4> CopyNinja: Think of it this way, it's not hard. The heirarchy is inifinite, right? Regardless what how deep or shallow the category is, just make the ID unique. Then, you can have a separate field that will be called something like 'parent_id', and then the heirarchy won't matter.
<17> How would I count how many rows were returned by mysql_query?
<3> thanks
<14> pmv: The same e-mail checked as Bulk at Yahoo! is going into Gmail's Inbox smoothly. What's another possible reason?
<17> count(mysql_query) or something?
<4> CopyNinja: As long as *every* category, deep or shallow, has a unique ID.
<7> tws, go ask Yahoo.
<14> nitishp: mysql_num_rows
<17> tws: Thank you very much :)
<14> pmv: I did and no reply at all from them.
<14> pmv: Thank you, anyway.
<14> nitishp: That depends on the operation type of your query. Read the manual first.
<4> CopyNinja: example categories: foo has id 1, parent_id null <-- so it's top level. bar has id 2, parent_id 1, so you know that you need to put it under foo.
<7> Good luck.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

integral kousu
perl2awk
qmake: command not found ubuntu
#openzaurus
2.6.13.5 kernel udev
linux activeworlds
spamassassin bad transport type: content_filter
#linux
ubuntu + xorg headers
gcc-select ubuntu



Home  |  disclaimer  |  contact  |  submit quotes