| |
| |
| |
|
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
Comments:
<0> i can't remove that in the server, i don't have access <1> you don't have access to the code? <0> to the server <0> yes <2> sigh i should update php i guess... anyone know a good tutorial to update php on freebsd? :x <0> i can't do a ftp or ssh session, just port 80 <1> arrase: you can't modify the php code on the server then? <3> Why would one code on a server that doesn't give you permissions to code? <0> no, i can't modify the php code on server side <3> Gimble, What OS? <4> windows <4> xp, if it matters <4> something light, I want to use it on an old laptop <3> Gimble, If you want an entire IDE you could check out Zend's Studio, if you're good to go with just an editor I would recommend www.context.cx (very fast) <3> Ah, then context will probably work.
<4> okay, I'll check that out.. thanks :) <5> hi guys <6> hello <5> what does this means: $objValue = ( empty($_POST["txtValue"]) ? 0 : $_POST["txtValue"] ); <6> i have a problem with the session handling in php 4 <3> mynullvoid, It's a condition, use if-else instead, much clearer in my opinion. <6> i have the following code: http://pastebin.com/718631 <3> mynullvoid, I think it does this: if txtValue is empty, $objValue will have the value of 0, if its not, it will have the value of txtValue. <7> if i have $a = array ( "foo" => array ("bar1", "bar2"), "bar" => array ("foo1", "foo2") ); and i want to copy $a["foo"] into $b = array(); can it be done by: $b = $a["foo"]; ? <5> eml: what is the condition <6> but my browser does not receive a cookie or something else <6> why? <8> _idan, have you try ? <5> thanks eml <0> why this code: http://ppt.pastebin.com/718566 don't work with: http://ppt.pastebin.com/718567 ? <6> do i have to write the header explicitly to the browser? <3> kakalake, You only have to use session_start(); Not those other functions. <3> kakalake, And what is the page supposed to do? <3> kakalake, Do you want "hallo" as output? Then echo $_SESSION["test"]; <6> it is only a testpage <6> to test of session handling works for me <3> And what do you want to do with it, what is the output supposed to be? <9> WHOIS sherab <6> but why this code dont write a header with a cookie tag to the browser <1> [15:08] arraseno, i can't modify the php code on server side => then you can't reasonnably hope to solve your problem :/ <6> it is only a testpage because my session handling does not work <3> kakalake, header with a cookie tag?! <6> content-type header and this **** :-) <1> and instead of asking your question lots of times, try explaining your problem more clearly <6> http-header <3> I don't think that code would give you anything like that, SESSIONS are server-side, not client-side. <6> with content-Type, cookie information <6> yes <0> ?? thats a security contest, i can't modify code but be sure it's posible to do it <0> with out codo modofication <1> arrase: yeah, sure, i understand <6> but if i read the php site to the topic session then it writes that there are two methods to propagate a session id. URL and Cookie <1> so youre saying neither of lines 26 or 28 are executed ? <6> but who do this? <6> the php-apache-module, or do i have to send a session cookie explicitly <0> yes <3> kakalake, Let me write something for you. <6> jo <6> ok <10> howdy <3> kakalake, http://pastebin.com/718646 <10> is it possible to ***ign default values to function variables, e.g function ($foo="bar", $bar="foo") ? <1> yes it is <11> YazzY, exactly like that, but just remember they must be the right most args <1> http://fr3.php.net/manual/en/functions.arguments.php#functions.arguments.default <11> (i.e. function foo ($bar = 'baz', $bat) is wrong <10> Davey: all the variables need a default values ? <10> is that what you mean ? <11> only after you start ***igning defaults <11> so ($foo, $bar = 'after this arg, all must have defaults', $wrong) <12> hello <10> Davey: right, so ($bar = 'baz', $bat='davey') is OK , right ? <11> yuppers :) <10> Davey: thanks :) <10> Davey: that goes to functions inside cl***es as well ?
<12> what's the difference among setcookie("name", "", time()-3600) ; setcookie("name", "", time()+3600) and setcookie("name", "value", time()-3600)? they all delete the cookie... <0> alakazam can you read my private mesages, i have this in my server window: Private messages from unregistered users are currently blocked <1> arrase: nope, I can't <6> yeh eml: I tried your code <10> well, lemme check/test this <6> but the same result <13> obscuresoul the second one shouldnt delete it? it should just set it to "" <1> hmuh, I'm registered, you aren't ;) <6> i have cookie enabled in my browser <1> (it's probably there to avoid spam) <0> :( no, i'm not <6> but this code does not set any cookie for my browser <14> I read using 1/0 is faster than using true/false? I would ***ume it used more resources... <0> ok <11> true/false is likely faster <15> hi <0> you need VPN session with my university for access to the security contest, but i have the code <16> Elviso: even if it was slower, you should still use it <1> ok arrase <15> i've a file feed.php that generate a dynamic RSS <16> Elviso: if you're worried about that kind of speed decrease, PHP is NOT the language for you <1> can't do any vpn from behind my universities firewall, anyway ;) <14> aidan: lol <15> the problem is with <?xml ?>, he makes confusion with <?php .. <11> if the engine doesn't make a special case for 0/1 then I would imagine it would type-cast to boolean true/false THEN do any comparisons you wanted <16> amak: disable short_tags on your server <14> aidan: I was just reading up to see what good/bad practices were, and optimization was mentioned alot... <13> Davey afaik true/false are just constants defined as 1/0 <0> is posted in: http://ppt.pastebin.com/718648 http://ppt.pastebin.com/718566 http://ppt.pastebin.com/718649 <0> only 3 urls <16> Elviso: optimisation is great, but readable code is better. If a language has true/false use it :) <14> I concur, aidan <11> Elviso, one of the worst things you can do for your application, is pre-optimize <14> Davey: really? most of the articles suggested that you build prototypes to test with, optimize, then code it fully <15> aidan is there other way to resolve this? <12> Raevel, these 3 examples delete the cookie...and the second one will delete it as well <14> Davey: or does that go with what you said <1> arrase: got to go, if you're still here in a couple of hours, and have registered, don't hesitate to pm me <10> Davey: jupp, the same goes for functions inside cl***es <11> Elviso, optimizing before something is working, is pointless <10> FYI <13> obscuresoul well then it might since the value is an empty string, so it won't matter in your case <1> arrase: and could you just add the html code you're getting? :) <14> Davey: i see <0> all code is in : http://ppt.pastebin.com/718648 http://ppt.pastebin.com/718566 http://ppt.pastebin.com/718649 http://ppt.pastebin.com/718567 <11> Elviso, see, one thing to consider is, that no matter how fast your PHP code, your DB queries will far overshadow it in terms of bottlenecks (for example). <12> Raevel, but i can't understand why it's advisable the use of an empty string and the use of time()-number to delete it <13> obscuresoul i wouldnt say it is, no <12> ok thank you <17> Hi all <17> Is it possible to use a global variable for an object? <17> If i simply to a global $var; $var = &new Object (); this doesn't work. <18> any comments as to the best PHP framework for rapid web app development? <18> I found http://www.theweb20dev.com/wordpress/2006/05/03/5-next-generation-php-frameworks/ <18> which narrows it down to 5 ... anyone had exceptionally good or bad experience with anything there? <19> ey anyone know if its possible to parse binary data using xml and pear::xml_serializer <6> hello i found the error with the session cookie <6> if i use the php variable <20> if you look at www.notd-aftermath.com/hq you will notice that the search bar is slighty lower than wanted. How do I push it higher? <6> if I use the php variable auto_append_file and auto_prepend_file to append and prepend a htnl file then the session cookie will not be send to the browser. Why? <18> kakalake: probably because session_start(); has to come before all output <18> and the auto_appended file is being output first <6> session start is before all output <21> someone knows how to organize a folder using opendir() ? <18> kakalake: what about the appended file's output? <6> i set the php variables in the .htacces file <18> ? <18> ok, if you know what you're doing <6> could this be a problem <18> do you have error reporting E_ALL ? <18> or E_STRICT <6> you mean a error handler? <18> no <6> yes
Return to
#php or Go to some related
logs:
kernel waiting for root fs sata kstartup suse #php familly #physics no configuration chosen from 1 choice udev solaris 10 smb:/// gnash fc5 x64 python unexpected end of regular expression #gentoo
|
|