| |
| |
| |
|
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
Comments:
<0> my host has apache2 + php4 + libapache2-mod-php4. I try "apt-get install php5" but it delete libapache2-mod-php4!! <1> There may be a php5-cgi package. <1> Although for the record, sarge did not ship PHP5 packages, so if you're doing that on a sarge box, wherever those PHP5 packages are coming from is third party. <0> can i to avoid it? <2> Cry basically, i want todo exactly the same as that but with a session,so can you set a session in an action? <2> CryWolf even <3> how would you send data from one script file to another? <0> ok, i try with php5-cgi! <4> Advocated: you can look at a post or get variable, and set a session variable <5> should is_file("/tmp/tmp_dOjmrY") return true of false? <2> CryWolf basically, i dont want the user to see stuff like index.php?page=2 <6> Advocated: you could do mod_rewrite magic <4> Advocated: make a form and use buttons <2> itrebal i did think about using mod_rewrite, used it in the past.. CryWolf so just form buttons to set a session? <7> cesarstafe: you could always build PHP from source <4> Advocated: you can not set session variables from the client side. The client must submit something to the server. The script can then act on what was submitted.
<0> Kog: i get only text in my firefox with a scrit cgi <7> heh <7> cesarstafe: I'm not sure about building w/ apt-get, but the idea behind running one as CGI and one as an apache2 module is that you go in your conf and add a handler for something like .php5 <0> my problem now is configure in a apache2 for handle php5 <6> !tell cesarstafe about at <6> what does 'at' stand for :/ ? <8> itrebal he's not here <6> Stormbot is <9> addtype <6> gotchya <0> ok <8> !at <0> addtype .php5 <6> anyone who knows germen, what does Schutzmarken mean? <0> :D <10> How would I go about starting a non-windows exe using COM? for example specifing the path and executable name to run..? I see examples for excel/word, but those are not specifing the location of the exe to run <11> !+at <12> For Apache to be able to parse your .php files, you need to add this line to your config "AddHandler application/x-httpd-php .php". To make .phps files work too, you need to add "AddHandler application/x-httpd-php-source .phps" also. You must restart Apache after adding either or both of these lines. <13> itrebal, which context? <6> matitaccia: its on a german coca-cola bottle, underneath the logo <7> Stormchaser: not if he's running PHP5 as cgi.. <0> pardon, i speak spanish <13> itrebal, protected maks. It's copyright thing... <6> alright, thanks <14> I have a question I've looked all over what does syntax like \n \r etc mean? as in "Name of sender: $name\n" . Explain please? <15> itrebal, trademarks <7> cesarstafe: you're going to want a ScriptAlias tag, an Action tag and an ActionHandler tag <15> (which are unrelated to copyright) <8> !+nl <12> Newlines are hidden (not normally visible) control characters that distinguish the end-of-a-line of text and are different for each platform as follows: [Windows=\r\n] [*nix=\n] [Mac=\r] And can be seen as: [LF (linefeed) = \n, 10d, 0x0A, 0001010b] [CR (carriage return) = \r, 13d, 0x0D, 0001101b] <8> Stormchaser: You need to update 'nl' when you can. <7> cesarstafe: and most likely an AddDirectoryIndex tag... although, you can edit your main httpd conf and just add index.php5 to your list <13> jast, nice, I dind't had the right english word. <14> Ok thanks. <15> itrebal, there's a splendid de/en dictionary on http://dict.leo.org/ :) <0> and try writte my answer in english, but i don't very well <14> That helps. <0> sorry! :) <11> Jymmm: Yeah... I lost the updater for the database... I'm writing it now... <8> Stormchaser: ok, whatever... just a friendly fyi is all. <11> Jymmm: I know... I have everything new here already... It's in progress... <16> I get an error that says it is from this line <16> if ( $ccname == '' ) or ( $ccnum1 == '' ) <5> should is_file("/tmp/tmp_dOjmrY") return true or false? it's unclear if a tmp_ file is cl***ed as a real file. <17> if (( $ccname == '' ) or ( $ccnum1 == '' )) <8> Stormchaser: That's why I said "whatever", you always feel a heavy responsability when something needs to be done, it's not that big a deal, dont sweat it, <16> oh thanks! <17> Budda: That's up to the OS. <15> BuddaBoy, if it's not a directory or anything spooky, it's a file. what else should it be, a ghost file? ;) <8> Pollita Please reserve till October 31st <7> BuddaBoy: not very portable though <17> AfterLife OS: Because death shouldn't keep you offline. <18> Stormchaser: ? <8> Pollita o_O <18> enchilalas <19> my system currently uses cookie-based auth (for storing username/hash) is it worth switching it to sessions <17> yo quiero queso <8> Pollita: Sorry, I won't be making anymore till next month.
<8> (maybe) <18> EvilGuru: Do you use SSL? <19> nope <20> anyone could help me on phpmyadmin please ? I can't get authentification working. <6> kristalino: no, go to #phpmyadmin we don't support it <15> EvilGuru, sessions make it harder for someone to steal your login information at any rate <20> itrebal, already done. I asked there... :( <8> !+g8 <12> Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here. <8> !+g10 <12> Guideline #10) We don't support xyz script. We help you *write* PHP, not download and install/hack/use pre-written scripts <18> EvilGuru: And you don't see the inherent problem in that? <19> TML: problem with sessions? <15> problem with sending login/mangled p***word with each request <20> !+g1 <11> TML: *cough*php-bot*cough* <18> EvilGuru: No, the problem with cookie based auth that ships username and hashed p***word <20> !+g2 <11> !+msg the bot <12> talk to the bot in msg or our trained attack llamas will bite your genitalia off <11> :) <19> I can see the problems with it, but could they not look at the session id in the cookie as well <11> !quit <18> !quit <18> =) <11> ha! :) <15> EvilGuru, the session id expires, the username/p***word usually don't :) <18> EvilGuru: If they look at the session ID, they can only capture THIS session <15> also you can tie session ids to specific IP addresses and mad stuff like that <19> even with a temp cookie? <21> Hey, anyone on redhat/fedora? There anyway I can yum php4? or need to compile by hand? <18> EvilGuru: If they have the username and hashed p***word and they sniff it, they can login as that user anytime they like <17> mikefoo: I would be amazed if there were not such a package available <19> TML: good point <20> interesting channel... <18> EvilGuru: That's one of the values of sessions <19> since I am new to them one quick question on them if you please <22> here's a session question. after Session ID check, what's a good second line of defence when checking a users authorization? <23> caffinated - you got a minute for a follow up question about my session problem ? <8> wrmachine: dna sampling <20> !quit <22> how about one that doens't involve me getting arrested for tressp***ing in my users homes <18> Jymmm: DNA is too easy to fake. I prefer cerebral cortex sampling. <8> wrmachine: remote dna sampling <4> TML: I'm not sure that everyone has one to be sampled <22> clever <8> TML: Not till they have the whole dna mapped it aint =) <18> Jymmm: You didn't hear? It's done. <15> TML, good point? how about retina scanning? <8> TML Seriously? <4> Jymmm: http://slashdot.org/index.pl?issue=20060517 <19> they log in, I like their login credentials, would I just set a session var e.g. $_SESSION['loggedIn'] = true? <24> deutsch? <18> Jymmm: Serious <15> EvilGuru, you could, and you'll probably want to keep the user id in the session too <18> Jymmm: Like, Monday or something <4> Chromosome 1 contains 3,141 genes. I wonder if it's a coincidence that the first four digits of pi are 3.141 <8> TML: The ****ers BETTER come up with the cure to the common cold now danit! =) <18> Jymmm: http://news.bbc.co.uk/1/hi/sci/tech/4994088.stm <25> when does header() to redirect commonly NOT WORK. <4> JJPeerless: when you have output before header() <25> header("Location: http://domain.com/newpage.php"); <25> no output.. <25> just some validation <25> on input <25> and then it redirects if the input is good <8> TML CryWolf: I had a dream a ways back that the twi-sided helix was really six points that we just dont know about. =) <8> !+enter <26> Don't use the enter key as punctuation. Think in complete thoughts, then type. <4> output includes any spaces. Is your error reporting at max? <8> !+headers <26> If you are getting error like "Warning: Cannot modify header information - headers already sent by (output started at /path/file.php:1)" it means you've got some output before your header() call or starting a session. *No* output can be sent. that includes whitespace (outside of <?php and ?>) and any (X)HTML. You can also use output buffering <25> no im not getting any errors <25> it just does nothing
Return to
#php or Go to some related
logs:
#debian key gezmods grub-install cannot allocate memory ssh cipher none gentoo xine mp3-flag could not start process for imap #xorg threads tkintern stale lock files may be present in /var/lib/ldap #perl
|
|