| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Comments:
<0> paste bin the code <1> paste bin what code <2> Mickly: try this: <2> <?php if ($thisPage!="map") {echo "<a href=\"map.php" . color() . "\">Site Map</a>" ;} ?> <3> Hi all! <3> Where does PHP store its $_SESSION variables? <4> That is an internal representation <4> Why do you ask> <5> is something wrong with IE, Sessions and SSL ? <3> KillerX: because they don't seem to get preserved. <3> KillerX: I get an empty username. <3> KillerX: after I log on to my Symfony app. <3> KillerX: by "where", I mean in which medium (cookies, etc.) <4> rindolf: Cookies <3> KillerX: so all the session parameters are placed in one cookie? <3> KillerX: I think cookies are limited in size.
<4> Have you read http://sg.php.net/manual/en/ref.session.php <3> KillerX: no, not yet. <4> Then please do :) <1> Xore it thinks the link ends with the " after .php <2> Mickly: the basic problem is that you're trying to insert php script into the html output. you can't do that: php doesn't execute recursively <6> hI I have a question, i have nmade a script that reads bounce emails, is it possible to forward the email from my catchal account to the script i made? <7> opCoder32xz: Probably <1> I see, But now I have found http://au.php.net/eval <7> Mickly: NO!! <?php if ($thisPage!="map") {$wibble = color();echo "<a href=\"map.php" . $wibble. "\">Site Map</a>" ;} ?> ***uming color() returns a value <7> opCoder32xz: A bit more detail on your setup might help <3> KillerX: so the session is stored under session.save_path ? <8> rindolf: for the file session handler, yes <3> mst: I see. <4> rindolf: Indeed <3> session.save_handler = files <3> But this directory is emtpy! <7> opCoder32xz: For instance, you might use an alias or procmail to feed emails to your script <1> that is odd <1> <?php $wibble = color(); ?> is putting $wibble = color(); on my web page <1> why would that be? <7> Mickly: Pastebin your code - we don't wantto play 20 questions finding out what is incorrect <7> At least I don't :-) <1> I going to have to install a better chat client to do that. I useing one a web site <7> Mickly: One normally uses a web browser to pastebin <1> what do you mean by pastebin? <2> http://mickly.pastebin.com <1> ??? <8> Mickly: we created an ENTIRE pastebin, for free, just for you! Don't you think it's worth the effort to at least get a little bit acquainted with it? <1> I see, never seen pastebin.com before <7> Mickly: The link What's a private pastebin? from that URL will tell you lots of interesting stuff <1> http://mickly.pastebin.com/744470 <1> can you see what is wrong? <2> color() is printing directly to output rather than returning a string <9> guys any PHP5 ACL cl*** ? <1> Since I am real stupid at php, how do I fix that? <2> Mickly: you can either have color() return a string, else echo <a href="map.php", then call color, then echo "> <2> at this stage, the first option is easier, just change the "echo" in your color function to "return" <2> it's not clean, but it's simple <2> you don't need to global $_GET either :P <7> Mickly: Try http://mickly.pastebin.com/744488 - shouldn't have too manyerrors <1> I was told I needed the global $_GET <10> anyone here used PHP Designer? <11> mejobloggs: ask your question <1> that gives ?color=red<a href="map.php">Site Map</a> on the web page <11> though we are here to support PHP programming <10> ok, I was just wondering what people's thought on PHP Designer was. <11> (not php scripts or other software made for php) <6> wobbles thanks dor the info\ <10> Drakas: Yes, but who better to ask? <11> mejobloggs: i am sure webhostingtalk.com has got some opinions as well as google and it's groups <11> i don't use any designers, i write code by hand <10> Drakas: well yes, you still write it by hand, it's just a php ide with debugging and stuff <11> debugging? :O <11> debugging is mostly done by looking at the warnings and errors and then spilling all the variables out <11> ;] <10> what's wrong with that? <11> i didn't say anything is wrong with that <10> yeah, but this thing gives you the errors as you type sort of thing <12> It's only available for XP :(
<10> so you dont have to wait until you run it to find the error <10> ok, get phpeclipse then <11> :) <10> that has a debugger, and it can be run on linux <10> but i was just trying things out <11> aren't you supposed to learn from errors? <11> ;:] <12> The Zend IDE is pretty good :) <13> phpeclipse is actually pretty good <11> !tell everyone about offtopic <11> :] <11> <php-bot> No, everyone is not in any of my chans. <8> emacs! <1> Worked out how to do it with out echoing all sorts of other funny think over the site <?php if ($thisPage=="map") {echo "" ;} else {echo "<a href=\"map.php"; color(); echo "\">Site Map</a>" ;} ?> <8> why echo ""? <10> does emacs have debugging? <8> mejobloggs: emacs has TETRIS <10> mst: yea?? I like it, can i get it for windows? <7> He's a noob :-) Mickly you could just do <?php if ($thisPage!="map") {echo "<a href=\"map.php"; color(); echo "\">Site Map</a>" ;} ?> <8> mejobloggs: yes <8> btw, sacha from #emacs is *god* <8> someone should explain Mickly why embedding HTML shrapnel in PHP code is a bad idea for anything larger than one-page website <1> the noob fixes the bit of code <1> It is in a php include <8> if ($thisPage <- request-based routing, should be in the contro...oh wait some people still don't use MVC :P <10> emacs better than phpeclipse? <14> which is the best php editor generally used <15> textmate, zend studio <15> vim <3> Can anyone help me debug why PHP doesn't store my sessions? <1> [20:44] <8> someone should explain Mickly why embedding HTML shrapnel in PHP code is a bad idea for anything larger than one-page website <1> can some explain or link? <16> does anyone know how to convert uint64 timestamps to unix timestamps? <14> PHP Designer 2006? <10> Luckys: try it and find out. There is also phpeclipse. Right now I am about to have a look at emacs <14> emacs, vim, would be all time favourite though <17> i can never understand how to use emacs/vim <18> how can I instruct PHP to treat $_POST as UTF-8 for an insert into Mysql 3.23 Text field <19> ok, i'm getting this weird problem that i think might be caused by extra quotes somewhere or comments.. here's a screenshot of the output: http://thewebsitetailor.com/problemscreen.png <19> have you seen that? shouldn't the titlebar never say <?php ?> ? why aren't those parsed by the local server? <19> and where are all of the question marks coming from? <18> NBrepresent - was that to me? <19> sorry? <18> <NBrepresent:##php> and where are all of the question marks coming from? <19> well, it was to whoever might understand the problem in the screenshot: http://thewebsitetailor.com/problemscreen.png <19> so, yes, you, maybe. heh. <14> I can see one serious error behind that window <3> NBrepresent: what does view source show? <19> when i view source with firefox, the syntax highlighting is off <19> and it just shows <?php ?> tags like regular text <19> but not for the other sites on my local server <20> NBrepresent: could you throw the source in a pastebin? <19> of the header file? <0> NBrepresent: Are you using windows apache or IIS? <19> or the generated source? <19> windows apache, xampp <0> ANd php normally works? <19> yes <20> the original, not the generated <19> k <19> http://perry.pastebin.com/744545 <20> looks fine to me <19> **** <0> NBrepresent: What windows are you on? <19> xp <19> but this only started last night <0> What version? <19> and only with this site <19> my xampp server is working for other directories <0> XP home or pro? <19> home <0> Okay
Return to
#php or Go to some related
logs:
xchat ubuntu popup.conf #bash #perl #python +x11 +nvidia +No valid modes for fedora gdmflexiserver fc5 ubuntu amarock codecs fedora rescue mode radeon longshine mq4fe1kmx
clock skew sucks Kerberos
|
|