| |
| |
| |
|
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> Ah. Well still, the other points prove useful. <1> can anybody help me with a session problem? <0> Blob: Not until you actually ask a question that's PHP related. <2> i have a system with index.php and i include the other .php there <2> do you understand? <0> Blob: Just ask your question about sessions... <2> but its a little bit difficult^^ <3> yes blob... most people here understand the include() function! <2> i have the session_start at the beginning of index.php <2> but if i define a session in the first file, its not there in the second <3> in the included file? <2> jo <4> :) <3> How are you "defining a session" ? <2> $_SESSION['xx'] = "xx";
<2> -.- <0> Blob: Do you have session_start() somewhere in there? A pastebin of index.php might be useful. <2> and i give the sessionid with the url <2> k, one moment <2> http://pastebin.com/541676 <5> any example/step by step of php and mysql for newbie ? <2> is there anything that deletes sessions after one page? <3> Blob: Nope, but threre are no $_SESSION references in that file. <2> because the sessions are in the includes <2> do you want to see one include file? <0> Blob: I don't see you setting any $_SESSION variables in that file, which you said you were doing. <2> i define a session in index.php?section=xxx.php <2> and not in index.php <2> but i start the session in index.php <3> ok <3> show us the file where its going wrong! <2> but its a little bit big^^ <2> and its going wrong in every file <2> i'll show the smallest <2> hmm <2> but there are no sessions <2> http://pastebin.com/541691 <2> this is one of the files where the problem is <6> Hi, how I could read the 5 last lines from a file with PHP? <6> I've tried some stuff, but it did not work <7> open file <7> get content <7> split on new line <7> latest 5 elements of array are 5 last lines <8> If I had a PHP page that looking, say, like a del.icio.us page (with all of the edit/delete links), how would you make all the links do that? I know how to run the right mysql queries, I've just only fed input into PHP via forms, and I don't think forms would work well here <9> or with file(), you get the array with one command <6> hmm, not sure but isn't that kinda laggy for the server, cause the file is ~100mb irc -log <7> nice hint swentie! <10> what mean the line "Debug Build" on a phpinfo() ? <8> if it's a *nix, you might be able to use the system command tail, which should save some resources <7> idd <11> mod^: Perhaps shell_exec('tail -n5 biftatfile'); is fast_ <6> hmm, yea <12> what's a good free not phpBB forum? <11> ezeki3l: punbb <8> ezeki3l; mercurybb is my style <12> thanx <13> mmmmmmmmm, you're name makes me want to yawn everytime I look at it :) <8> Anyone know different ways of getting page input into php? <8> (than forms) <14> cookies? <15> what does "getting page input into php" mean? <16> is there a way to check which scripts are calling mail() ... ? <16> we got spam-problems with any unsecure php-mailform on a shared-host ... <16> i need a sort of log function for that ... <17> xirjs, grep <14> full text search with grep <16> judeau: grep what? <18> xirjs: grep -r 'mail' *.php <16> there are tons of mail-callers ... <18> xirjs: grep -r 'mail(' *.php <16> i want to know which scripts are calling my sendmail now ... <8> Sulien; effectively, I want to be able to, depending on what link the user clicks on, p*** 2 values into another php page <8> Sulien; another way to think about it-- if you were making tictactoe in PHP, you wouldn't want to make 9 forms (one per square) to let the client know which square he clicked on-- instead you would do _____. That's the blank I'm trying to fill <14> attache them with JS into the URL <18> xirjs: what do you mean "now"
<8> Sulien; that help? <19> Ktron: I would make a single form, with nine inputs. <8> CryWolf; like, 9 submit buttons? heh... I suppose that might work <20> hi everybody <15> Or use GET <18> Ktron: learn html. hint: form's can have many submit buttons with different names, and only the one that gets clicked is submited. or, use an image submit and only have one image for hte whole screen and use the x/y to figure out where the uiser clicked <19> Ktron: but the answer to your question is GET variables. url?a=foo&b=bar <21> can anyone reccommend easy php+GD bar graph / pie chart code? <8> Sulien; and make the links like script.php?vars=this ? hm... <20> my long running php eats all my memory. how can i avoid that? does anyone have a clue how and when php free/resuse's memory? <18> [fields]: I think i saw reference to one in the manual's user comment on something to do with gd <18> faber2: many of php's extentions have memory leaks <8> ||cw; play nice, I understand how that works... I'm not actually making tictactoe, I'm making a del.icio.us-like page though, and having a dynamic length of a form with (2*the number of lines + 1) submit buttons sounded ridiculous, and I figured there was probably another way to do it <15> faber2: depends on what you're doing <8> CryWolf; using GET makes sense though <18> Ktron: ah, the fun limitations of html <20> ||cw: i am using the mysql stuff and other than that is is straight forward (recursive ;-) php <10> any know for what is the "Debug Build" option on apache ? <20> Sulien: for instance: how can i free memory used to "return" a variable? <18> faber2: hm. what i know about php and memory is that php doens't ever free the memeory to the system until it exits. it does try to reuse memory that has been unset() though <15> there is not poing unsetting small variables <20> ||cw: and how about a context like "foreach ($foos in $bar)". will php free everything after this? <2> BigE, Gargoyle, do you have a idea? <15> only large arrays, freeing resultsets and so on <22> hi folks <18> faber2: it should <8> I just figured there was an alternative... maybe some tricky way to set POST variables via a javascript or php trick before advancing, but I guess GET links with work.. .thanks <2> -.- <23> hey mates I have 1337 idea :) Is it possible to do webiste screenshot with php&gd ? :) <18> Ktron: you can do all sorts of fun things with JS <14> hey Ktron.. what about using AJAX? ^^ <8> [FiRe]Maverick; I haven't learned AJAX at all yet <24> hmm <23> KiKr it's easy ;) <8> [FiRe]Maverick; though I suppose I could <7> ajax s only a couple of lines :p <15> Ktron: there *is* an alternative... BUTTON element in form... by specification it p***es clicked coordinates via GET <15> no JS in that... that is browser behaviour <20> can php dump information like "active" variables or such? <22> any ideas why the following form_mailer.php has the return-path of a local user on the system: http://pastebin.com/541723 <8> Sulien; I could use POST there instead too... hm... isn't using button elements like that though effectively doing the same as making lots of submit buttons? <25> ||cw: Damnit, type out three letters of the anme before you hit tab. <14> `asterisk` this wont work <26> Hey <20> Ktron: why dont you use <a href=>Links</a> ? <22> the form_mailer.php is submitted via apache but it picks up an admin account when it gets sent out via <26> Why doesnt cPanel support PHPbb anymore?? <23> [FiRe]Maverick you are talking about screenshot ? <27> I echo the filename 'name name+name.jpg' urlencoded, and it comes out as 'name+name%2B.jpg' which is all good. But then when that string is p***ed as an argument to a javascript function its turned into 'name+name+name.jpg'. why? <26> There is only SMF <8> Sulien; Thanks, but I think at least for this implementation, using GET links will work... <23> joey4127 ask cpanel <23> :) <19> joey4127: you should ask cpanel that. but I've no doubt they have a good reason. <8> faber2; are you talking about using GET links? <23> I think cpanel never supported 3rd party scripts <15> Ktron: yes he is <18> Excelsior: took ya long enough :D sorry about that though <8> Sulien; that's what I thought <25> :P np, I just got home from my first cl***. <20> Ktron: you want to submit a form with buttons? i suggested to use links instead <14> so.. how u wanna make a screenshot of a website with php/gd... this cant work?!? aterix <8> Alright, I need to run, I'll check back later and maybe show what I've been working on... <20> Ktron: but i must admint i have not followed from the beginning. whats exactly is your problem? <18> [FiRe]Maverick: you can't do it with gd. you'd have to have something render the site first <23> [FiRe]Maverick well... nothing is impossible :)) and what about other technologies? <14> thats what i mean cw ^^ <15> Ktron: is it tictactoe? ;) <8> faber2; if you mean <a href="script.php?a=3&b=4">link</a>... then that's the current solution. Probably is/was having lots of buttons/links on a page that need to specify at least 2 values depending on which I clicked on to the page they go to... Think edit/delete links in del.icio.us or making tictactoe in PHP <22> http://pastebin.com/541734 <23> yeah but how I can render it :} that's what I'm looking for <14> as cw said asterisk... "php" only knows the HTML source.. and hase not a picture of the page <20> Ktron: tictactoe in PHP. alright. if you use tables you can go down to 1x1 pixels, even for links <8> Sulien; no, it's not tictactoe, It's a loosely search-engine-like thing, uses google... users can specify/edit lists of sites (the part I'm working on now), use the search bit (I'm done), and I'll have to make the session logins later
Return to
#php or Go to some related
logs:
#perl ubuntu mounting at boot fstab Pentium D preslar sun-jdk nsplugin #debian #linux debian psmouse mousedev vmware gentoo Xlib: connection to :0.0 refused by server gdm Ubuntu ssh x11forward #linux
|
|