| |
| |
| |
|
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> some thing like SET key='email', value='".sericalize($email)."'... wher $email is an array that hold smtp host/port, imap/pop3 server, etc <1> ||cw: I don't want to make another table as right now it's only 3 values and I don't expect to ever add more than maybe one or two. I had just been using an array, but it's not ideal. <2> Is there a way to force an email with php mail functions to display in plain text? <0> hackel: if you aren't going to make a table then where are you going to store it? <3> SimAtWork: It's a contest, not an advertisement. <0> Supperman: add a content-type mail header <1> ||cw: I'd love to store it as just a define or const variable in my cl***. <0> hackel: so hard coded... <1> Unless there's a more sensible way I'm not thinking of, which is why I'm asking. :) <2> ||cw: sorry I'm actually receiving the mail and its content-type is html, but im trying to force it to display in plain text. <0> Supperman: if it dones't have a plain text part to display plain text, then you'll have to strip the text out of the html <0> Supperman: strip_tags() might be beough <0> hackel: hard coding site dependant info in a cl*** is never really sensable, unless that's all the cl*** does and it's in its own file called soemthing like config.inc.php <4> I have a protected variable $foo in cl*** mother. How do I access it from cl*** child (extends mother)? <5> i rember reading that you can write php shell script.. how do you go about doing that? just start the scripts with like #!/bin/php? <0> cyberix: $this->foo?
<4> Hmm <0> scampbell: php.net/cli <4> Thats how I did it. <0> opps <4> Maybe there is something else wrong <0> scotepi: php.net/cli <6> scotepi: if PHP is in /bin/php then pretty much, yes <6> scotepi: CLI PHP has an argument letting you specify an input file as well <0> cyberix: maybe self::$foo <0> if it's also static <5> there is no php.net/clui but i just found a smaple that started with #!/usr/local/bin/php -q <1> ||cw: The cl*** is in it's own file, and I can easily use cl***::CONST whenever I need it, but if there's a better place in your opinion I'd definitely like to know. The whole point of this is to be able to use a tinyint instead of enum table in mysql but still refer to readable string values. <7> scotepi: php.net/features.command-line <0> scotepi: php.net/manual/en/features.commandline.php <0> opps <0> too slow <0> scotepi: -q is for using the CGI binary in place of the CLI binary <5> omg ... im gona <3 this i hate batch!! <8> whats the best way to redirect to thisPage.php?var=x onClick from a button? I mean the form itself already has a submit ... I kinda just want this other button to send vars to another page <8> and open it of course <8> nm <5> got another question... how can i have a page residing at myserver/phpscript/ and have myserver/phpscript/randomvar have randomvar = index.php?var=randomvar ? is there a easy way to do it? like how php.net has php.net/function <0> caneba: either a seperate form or use javascript <4> Do I need to explicitly run parent constructor even, if I don't define a constructor in child? <8> nm <8> thanks <0> scotepi: either pathinfo or mod_rewrite <0> cyberix: I think so <0> cyberix: but not sure, try it <5> ||cw i wonder if you could also do it with a 404 page ;) <0> scotepi: with mod_rewrite, sure <0> actrualy, i'm not sure <0> apache bascialy rewrites in that case too <9> hello all <9> is there a way to split php.ini directives over multiple lines. I have a rather long list of disable_functions, I was wondering if I could make it more estetically pleasing <9> aesthetically <5> ||cw if you did it with a 404 page you could strip down the URL to the vars you wanted then call on the right scripts/functions <9> is there a way to split php.ini directives over multiple lines. I have a rather long list of disable_functions, I was wondering if there was a way to make it more readable <10> Anyone here ever work with directi API? <11> no, but your nickname made me chuckle ! <12> So. <12> I seem to have a problem. <13> you're not asking a question? <12> foreach ($_SESSION['something'] as $i => $something) <12> The first time it goes through, it's fine. <12> The second time it goes through, $_SESSION['something'] is 1, instead of the array it used to be. <12> And nowhere within the foreach is $_SESSION modified, or even called. <13> sure it's not <13> those values don't just change on their own <12> Well, that's what's happening here. <14> what in the foreach then ? <15> Zarel: a program always does exactly what you tell it to. <12> http://www.mywritespace.com/bpa/State/cart.php <12> Source code in: <12> http://www.mywritespace.com/bpa/State/cart.php <12> I mean, <12> http://www.mywritespace.com/bpa/State/cart.txt <12> Around line 157. <15> Zarel: prove how it's changing. Use var_dump() to show values. <12> I'm already doing so with print_r and $_SESSION['something'] <15> Zarel: I don't see line numbers on that.
<12> ...Ehh, there aren't. <14> Zarel: register globals on ? <16> ^^^^^^ <12> Just do a find for: echo "<pre>Chk 1\n"; print_r($_SESSION['cart']); echo '</pre>'; <15> Zarel: why not post the relevant part to pastebin? <12> Go here: http://mywritespace.com/bpa/State/products.php <12> Click "Add to cart" <12> And you'll see all the debug info you'll need. <16> Zarel: check and see if register globals is on <12> Is it supposed to be? <16> no <12> Hmm. Of course, I should've thought of that. <12> Thanks. That should solve all my problems. <7> foreach ($_SESSION['cart'] as $cart) <-- *blink* HOW many cart does usually a person have 2417.5?!? <12> ? <12> What do you mean? <16> I wish having register globals off solved all of my problems <2> Is there a way to force display plain text on an email in php? <7> Zarel: Exactly as I said. <11> he means your variable name stinks :> <12> Um, header mime-type as 'text/plain'? <12> I don't get it? <16> mail($to, $subject, $msg, "Content-Type: text/plain"); <12> Stormchaser: I don't get it. <14> Just add a text part nothing else <16> along with your other headers of course <17> Uhm, Supperman maybe with htmlentities($content) and some work to customize <14> or no html part rather <12> In other news, YAY, IT WORKS <12> I LOVE YOU ALL <14> =) <16> of course it does <16> and of course you do <12> And, why do we even HAVE register_globals? <16> won't for much longer <16> it's been removed from head already <16> PHP6 has no register_globals <15> PHP6 is missing a lot of things that won't be missed, I think. <7> ds-: When was it removed? I don't follow HEAD for some months now... <15> I wonder if it'll be parrot-compatible, though. <16> a couple-few weeks ago <14> about time <7> ds-: Now onder UI don't knw that ;) <18> no $HTTP_*_VARS <7> Er... That was wrong :) <18> etc. <16> I think magic quotes and safe mode were taken out at the same time <18> no magic quotes <7> Cheez: IIRC, those are still kept <16> praise the gods <12> Magic quotes? <18> not according to what i read Stormchaser <12> What are magic quotes? <18> a 'feature' of php, it escapes quotes in form data <7> Cheez: oh... Er... /me googles for the PHP6 wiki <18> Stormchaser two ticks i'll get the developer chat <12> Hmm. That would explain the escaped quotes I see everywhere even though they obviously should not be there. <12> Stuff like that shouldn't be enabled by default. <18> http://www.php.net/~derick/meeting-notes.html <12> But, register_globals makes me wonder who ever uses it. <18> Conclusions: <18> We remove the register_long_arrays setting and HTTP_*_VARS globals from PHP. <18> We throw an E_CORE_ERROR when starting PHP and when we detect the register_long_arrays setting. <16> Cheez, that list isn't authoritative <16> some of that will end up being done, some of it won't <19> Hey, is there a way to see if somethings a reference or not (just to confirm im p***ing things correctly)? <12> Okay, so either is_int(8) returns false, or there's something wrong with this script. I'm going to go with the latter. <16> nothing's for sure until it's in CVS, and even then it's not definate <19> ...besides editing it and seeing if it changes in 2 places <12> ... <12> Okay, so, is is_int('8') supposed to return TRUE or FALSE? <19> zarel: I think you have to use intval first (or something like that) <12> That explains all the errors. <19> http://www.php.net/intval
Return to
#php or Go to some related
logs:
zv5330 ati ubuntu #php Unable to access jarfile startup.jar dapper sudo Xlib: connection to :0.0 refused by server #css #kde #linux #qmail ERROR writing user file (Operation not permitted) baudot day
|
|