#php
27 October 2007
Total 30 pages. You are browsing page 1/30.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Sat Oct 27 00:00:10 2007
--- Day changed Sat Oct 27 2007
00:00 <****> b0ha: ?
00:00 <****> rocketmaster, if you are looking for a more in-depth analisys of the vulnerabilities an application may have, this is my personal favourite: http://www.phparch.com/shop_product.php?itemid=98
00:00 <****> eh i thought it would give me a link or info :)
00:00 <****> I have a question about the pear spreadsheet writer can anyone give me a quick hint?
00:00 <****> b0ha: php.net/apc
00:01 <****> s-corp, 1000 thx :)
00:01 <****> thank you
00:01 <****> I just need to know how to combine functions from the Worksheet class and the Format class cause I need both in one cell
00:03 <****> carrierBag, but with header(), would I still not have to send an actual file, instead of a string that has the file contents?
00:08 <****> Hey guys. I am building a spider script that loops through some arrays, and I need it to echo out what it's done every time the loop restarts.
00:09 <****> I don't actually get all my information I want until it ends, which it should just echo during processing.
00:09 <****> php.net/flush
00:09 <****> you probably want to ob_flush(); flush(); every time you output
00:09 <****> ok
00:09 <****> I'll look into it.
00:11 <****> Im trying to use the Ternary operator todo $AC =($Active=1 || $Scheduled=1 ? ',':''); $AC echos 1 instead of , when true !
00:11 <****> what was the new ternary oeprator feature in php6?
00:12 <****> $a = 20?:10;
00:12 <****> something like taht
00:12 <****> but what would you use that for
00:13 <****> raden_work: == or === to check equality, = to assign
00:13 <****> i WANT OR
00:13 <****> ?
00:13 <****> ($Active=1 OR $Scheduled=1
00:14 <****> $foo = $_GET['foo'] ?: 0; iirc
00:14 <****> raden_work: the "or" bit is fine, but you're assigning instead of checking equality
00:14 <****> im assigning to $AC
00:14 <****> raden_work, have you heard before about boolean operators?
00:15 <****> that would be logical, sry
00:15 <****> lemee do a lil reading
00:16 <****> raden_work: "$Active = 1" sets $Active to 1, "$Active == 1" returns true if $Active is equal to 1
00:16 <****> why wont a logical orperator work ?
00:16 <****> arpad, shit missed that :)
00:16 <****> raden: language, please.
00:17 <****> guid3r: that should be !empty or reverse the order, of course ;)
00:31 <****> hello, I'm working on simple commenting system, but I need a SIMPLE BBcode with smilies & CAPTCH, so do u recommend me any ?!
00:32 <****> ok what am i doing wrong ? $AC =($Closed==1 && $Active==1 || $Scheduled==1 ? ',':''); if closed==1 i want it to see if $Active or $Scheduled are == 1 and set a true if either one is no matter what its returning true ieven if $closed==0
00:33 <****> for PHP/4.3.9 what do I need to do when $_SERVER doesn't seem to exist ?
00:33 <****> WebDragon|away: $_SERVER always exists
00:33 * WebDragon|away is getting ""
00:33 <****> any ideas ?
00:34 <****> WebDragon|away: CLI or web environment (CGI / apache module)?
00:34 <****> web env
00:34 <****> checking one other thing, hold on
00:40 <****> raden: Ummm... You can't have ternary in if statement?
00:42 <****> alguem?
00:44 <****> you can use ternary syntax in a if statement, it's not that helpfull but eh...
00:50 <****> still cant figure out that error 4hrs and counting :|
00:50 <****> ekneuss: That's just... Wrong...
00:51 <****> datarecal: Wrong file. Still.
00:51 <****> datarecal: What is the *EXACT* error?
00:52 <****> wolf its not the wrong file :) the exact error says
00:52 <****> PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/dev/public_html/scan.php on line 503
00:52 <****> line 503 is : if ( !isset($test['host']) || !isset($test['scheme']) ) {
00:53 <****> Wolfpaws, uh ?
00:53 <****> datarecal, a missing bracket?
00:53 <****> nope, sry
00:53 <****> ekneuss: Using ternary in if statement. It defeats it's purpose.
00:53 <****> datarecal: What's line 502?
00:53 <****> sure it does, it's possible though
00:54 <****> $test = parse_url($address);
00:54 <****> ekneuss: scary
00:54 <****> but if i comment the whole function out the error still says the same line
00:54 <****> Wolfpaws, halloween times ;)
00:54 <****> datarecal: Then you have some invisible character in that line.
00:55 <****> datarecal: Can you repastebin the whole script, please?
00:55 <****> the whole script is 1200 lines ill repaste the function
00:56 <****> datarecal: No. Repaste the *script*
00:56 <****> if (($a == $b ? true : false)) { ..} :)
00:56 <****> http://paste2.org/p/8760
00:56 <****> hello, I can't do polymorphism in PHP?
00:56 <****> datarecal: Now repaste the *entire* script.
00:57 <****> Cannot redeclare Generic::init()
00:57 <****> I have two functions init($config) and init()
00:57 <****> no
00:57 <****> you can't do function overloading
00:57 <****> is there anything I could do to pass that?
00:58 <****> `m0: Use C++?
00:58 <****> any alternatives, or just make another function
00:58 <****> you can do polymorphism though
00:58 <****> make another function / method
00:58 <****> Wolfpaws: Your a very smart person
00:58 <****> `m0: So I've been told.
00:58 <****> jup
00:59 <****> ekneuss: yes. With runkit
00:59 <****> uh ?
01:00 <****>foo(); } // this is polymorphism
01:00 <****> (and even that isn't the real polymorphism. You can remove / recreate the functions / methods in the sandbox.
01:01 <****> hm
01:01 <****> he's looking for function overloading here, not polymorphism
01:01 <****> ah
01:01 <****> or, overloading polymorphism
01:02 <****> OR you can do a multi-purpose method / function...
01:02 <****> and overloading can be achieve with some instanceof checks and optionnal args
01:02 <****> +d
01:03 <****> yep. There is no *real* overloading in PHP, sinc PHP is loosely typed.
01:03 <****> hi all
01:06 <****>key to return $value without use a for. Is a fonction exists?
Total 30 pages. You are browsing page 1/30.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
