| |
| |
| |
|
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 35 36
Comments:
<0> **** <1> ok <2> ganymed_: http://www.php.net/manual/en/reserved.variables.php#reserved.variables.session <3> ganymed_: what kind of enlightenment do you need? <0> header( "Location: <URL>" ); <4> ah <4> duh <4> okay <0> kenroy_: ^^ <4> IT's not the newline <4> It's the fact that "foo"."bar" isn't considered a static scalar <5> Oh. Right. <1> thnks kambei <6> Pollita: what to do then? wrting the long line without linebreaks makes the code very ugly <4> kostja: Set it in your __constructor :) <4> -or
<2> for a static? <2> yah see...static constructors doesn't sound so stupid now does it :P <7> kostja: $string = file_get_contents(); <4> doi <4> forgot it was static <4> define it NULL and set it in the runtime portion of the file your cl*** is in <4> cl*** foo { static $bar = NULL; } foo::$bar = "foo"."bar"."bar"; <4> Yes, that's a hack <8> b1n0ry: i open a my contact page, the session has already been started and $_SESSION['lang']=en, for example. there is a contact form which open a send_mail.php. in the end a text dependend on the language shall be printed... <2> kostja: you could also put if (!isset(self::$var)) { $var = "yada yada" . "yada yada"; } in the constructor if you want to keep it protected <6> Pollita: hm. <2> and you know it won't revert back to being null for a specific reason <2> another hack <3> ganymed_ so you do something like: if($_SESSION['lang'] == 'en') { load the english file } <8> b1n0ry: everythings works fine until i click on submit and it open send_mail.php in a new window... but it "forgets" the value of $_SESSION['lang'] <3> ganymed_ unless you have specified sessions to autostart, you will need a session_start() at the beginning of every page that uses session variables. <6> well thank you all! <8> b1n0ry: sth. like this before, yes. actually i do: $_GET['lang'] = $_SESSION['lang'] <8> of ->every<- page? <9> $obj = &new MyCl***(); // <-- what does the & before new do? <4> okay... I don't see any reason why '.' static_scalar shouldn't be allowed <10> I have a error related to http://bugs.php.net/bug.php?id=35029 , but i have PHP 4.4.2 and Apache 1.3.34 ( segmentation faults with multiple include virtual requests ), i tried upgrade, remove, re install, and nothing solve the problem, i got this too: signal Segmentation fault (11). Thanks in advance. <4> So I'm gonna post internals and see if Zeev's head explodes <11> inside index.php i have a switch statement used to include an html file based on the value of $page . without register_globals, does this become $_GET['page'] ?? <3> ganymed_ unless you have session.autostart (or whatever it is) set in php.ini, you need to have a session_start() statement before header output on -every- page that needs access to the session and it's variables. <9> elouise: yes <11> cool <2> Pollita: I betcha it's a side effect of the ugliness in zend_language_parser <4> oh <4> wait <3> ganymed_ when you session_start() yare are only starting the session for the current script, not for the visitor's entire browsing experience. <4> I just realized something <12> Can anyone tell me the advantages of using PHP's built-in sessions instead of rolling your own sessions? <12> Apart from reinventing the wheel, of course, there's just something about PHP's session management I don't trust completely... <4> I completely remember this conversation now <13> hey, anyone got a link to a nice resorce on creating a "users online" feature <2> SDE: In php 4 it ***igns a reference to the new object instead of copying it. It's completely unnecessary in php5 <4> Kurisuteru: Get over your mistrust <14> Kurisuteru: I'll second that. <5> Does this mistrust have any evidence behind that? <5> s/that/it/ <8> b1n0ry: sounds logical... thanks a lot <2> I'll third it <3> ganymed_ so even though the variable values are stored and accessible, unless you session_start() on the next script they go to, the next script won't have access to those values. <4> mattmcc: Well, there is reason to mistrust the custom handlers.... <5> An examination of the code involved, for example? <5> Pollita: Oh, sure. It introduces variables PHP can't rely on. <4> Plus... Sterling did write the initial implementation... <5> Did the custom handler actually save the session data? Dunno, maybe. <4> mattmcc: No, not that. I mean the custom handlers *are* broken. <4> The framework for them. <4> *but* they're broken in a predictable way <12> mattmcc: nah, nothing else than knowing _exactly_ what's going on with cookie transfer etc and controlling output - it's not a "backdoor scare" thing... I just like to know what's going on. Probably should not use Smarty then lol <4> So noone cares enough to break BC <3> so you like to know/control what's going on but you use a rather sizeable templating engine :) <4> Kurisuteru: Oh god no. Smarty leaks like a seive <12> hehe <4> It's got more holes than a cathouse <3> ...speaking of which... <4> *ow*... broke myself there <4> I'm a triffle randy today...
<3> Pollita: need some help with that? <4> b1n0ry: Yes, and I'll get some at home thank you <15> how can I check if a string is within a string, not ==, without using regex <5> Pollita: Speaking of that, is the save handler being triggered twice for a request (>2 seconds apart) a known issue with the custom handler? <4> if (strpos($needle,$haystack) !== false && $needle != $haystack) <4> ((might need to reverse needle and haystack <5> Pollita: I have an app that saves session data to Oracle, and can literally watch it save a new value for a session variable, and then a couple seconds later, do another save of the old value. <15> Pollita: thanks <4> mattmcc: No, that's IE requesting the page twice <10> I have a error related to http://bugs.php.net/bug.php?id=35029 , but i have PHP 4.4.2 and Apache 1.3.34 ( segmentation faults with multiple include virtual requests ), i tried upgrade, remove, re install, and nothing solve the problem, i got this too: signal Segmentation fault (11). Thanks in advance. <3> aren't seg faults typically kernel problems? <16> no <17> Looking for someone who is some kind of parse master to have a look at this and tell me where I am slipping up. http://pastebin.com/594987 <3> or... rather... problems with something incompatible trying to interface the kernel <15> is there a way to sanitize/escape a text with < for example, so it wont get parsed as HTML? <5> Hrm. How do you politely tell a QA person that you'd rather them just file bug reports, rather than show up at my desk every time he finds behavior he doesn't think is right, because his voice annoys me? <12> xP <16> no its just accessing incorrect memory <12> mattmcc: "sod off? /please/?" <3> mattmcc: "Shut the fu-- up and stop bugging me so that i can get your last 500 requests fixed!" <18> mattmcc: "Could you from now on put that in writting so I have a record of it and can review more closely at a later time" <18> mattmcc "CYA Rule #1" <18> mattmcc : CYA Rule #2: Create email rule to bounce/delete all message from blah. <3> how many times do i have to show the same -damn- person how to start a video conference? you turn on the power. you press the call button. that's all. <12> rofl <18> b1n0ry: Write a cheat sheet and post it above the ON switch. <3> i just got called "chris can you come up and show me how to do this?" this guy has a conference about every 3-4 days for the last 2 months. and every time it's the same thing. so what do i do? i turn on the TV, i turn on the camera. when the system boots up. I press the giant green button at the very top of the remote control and he's on his way. <17> What? No parsing masters out there to check out a simple example :P? http://pastebin.com/594987 <18> b1n0ry Step 1: Turn on power switch. Step 2: Press the Call button. Step 3: Remove clothes and begin speaking into the camera <5> Wow, that's a lot easier than the last video conference I used. You go to a website, create a conference, e-mail a mile-long URL to participants, they go to the site, try to launch the Java applet without crashing their browser... <3> Jymmm: lol <3> mattmcc: webex? <2> wtf <5> Don't remember the name. Maybe.. <5> Miserable interface, whatever it was. <2> why are you evaling an eval statemeny? <17> Heh. Please do not ask why :P. It just must be done. <5> Zeth: You seem to need to learn about variable variables. <17> Can you help me solve the syntax issue? <19> Zeth: that is truely disgusting <17> I know about variable variables. <3> mattmcc: we have our own polycom system. it's connected directly to a QoS port on a point-to-point to our other office where there's another polycom with a QoS port. They both have static IPs and since they don't call anything else, you just turn it on and press Call it defaults to the last session. Pretty simple. <17> It has a valid purpose also. <20> is there a way to load javascrip to a php file with the include command? so that I would have a <? include ="javascript"; ?> tag in my index.html that would g <5> No, it doesn't appear to. <17> I'm building custom input parsers for various file types. This is an example ripped from an input parse array that filters commands. <17> I just simplified it. <3> ironpig: how about an include('javascriptfile.js'); in your index.php file. that'll work. <5> b1n0ry: Ah. It can afford to be simple because it's so limited. Gotcha.. :) <21> hi....how can i connect to a mysql database (outside lan) thru a non transp. proxy server ? <20> hmm <20> does it need to be .js? <3> mattmcc: oh, it has the capability to connect to other locations, sites, internet cameras, etc. but we only use it for this. <2> but evaling an eval? <3> ironpig: no, it can be whatever you want it to be <3> ironpig: but an include() directive has to be in a .php file <3> ironpig: and .js is pretty much a standard for a javascript file <20> does the .js file need to echo or print the <script> .... </script> infor? <20> info <3> ironpig: no. including a non-php file (or a php file without parsed lines) just puts the content of the file wherever it should be. <19> Zeth: you'll get much more help, if you ask an actual question, or possibly describe what you're really trying to do. <22> ironpig: And how is that connected to ##php? <12> ironpig: You need <script> encomp***ing the include, or inside the included file <2> he left <3> Stormchaser: he was asking about using include() to include non-php parsed files. <20> well, I'm trying this and its not working... I'm not sure why... <3> ironpig: how about pastebin your code <9> who is the PHP 00 resident guru? <20> k one sec.. <23> SDE: just ask thy question, be not afraid <2> ask your question and see :P
Return to
#php or Go to some related
logs:
hda3 arsss ubuntu live badblocks permission denied
#css conntrack table full limewire + .deb INSTALL4J_JAVA_HOME debian yum install pdflib fc5 #lisp r1000 networkmanager zen-m ubuntu
|
|