IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-27
Pages: 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
Next >
[00:00]<cdgns>AsadR : I have a login page.. it takes input and after checking the things, redirects to user page..
[00:00]<cdgns>AsadR : I just wanted to split the project at my hand to pieces..
[00:01]<rsrmr>kynes: so the PHP code that checks shouldn't display any HTML, just make it run the code and then redirect
[00:02]<rsrmr>if you really really wnat it to show some HTML before redirecting.. then use JavaScript or the HTML META REFRESH tag
[00:02]<cdgns>okay can you give a really short example?
[00:04]<ggmzr>hey
[00:04]<ggmzr>php header(Location) isn't redirecting
[00:05]<eyzau>endra: of course not, that is an invalid header calls
[00:05]<eyzau>s/s//
[00:06]<rsrmr>header("Location: newpage.php");
[00:06]<rsrmr>kynes: google for HTML META REFRESH tag
[00:06]<yvzn2rf>the RFC requires an absolute URL in the Location header
[00:07]<rsrmr>YGBSM.
[00:07]<2frgc_>hey guys
[00:07]<eyzau>meta refresh should only be used if you have no other way to redirect
[00:07]<2frgc_>what's the function that lists the php info ?
[00:07]<2frgc_>phpinfo(); ?
[00:07]<eyzau>blank_: yea
[00:07]<rsrmr>itrebal: guess then you'll have to construct it from $_SERVER values
[00:07]<yvzn2rf>AsadR: thats what you'd do, yea
[00:07]<2frgc_>zircu, thanks, and it automatically prints the information right, I don't have to do echo phpinfo(); or do i
[00:08]<yvzn2rf>but if i followed the RFC i'd do my own hredirect() function to do it for me
[00:08]<2frgc_>zircu, ?
[00:08]<rsrmr>though i can't imagine why they'd say that in the RFC..
[00:09]<byre>blank_: TIAS.
[00:09]<2frgc_>BigE, eh? TIAS?
[00:09]<byre>!tell blank_ about TIAS
[00:09]<jdddd>!+tias
[00:09]<lxl-2jv>[TIAS] Try It And See. If you want to know if or how something works, try it first.
[00:09]<2frgc_>BigE, I'm having problems with my server, what I'm asking is so that I can test it, if it doesn't work, how would I know if that's the typical behaviour?
[00:09]<yvzn2rf>AsadR: it makes sense, how should the browser know where to go to? that could get messy (though 90% of all browsers support it)
[00:10]<byre>blank_: Well... if you see a page with information about PHP, then it's working.
[00:10]<jdddd>heh
[00:10]<2frgc_>BigE, Nevermind...
[00:10]<azdlv0>hello, how can i validate in javascript a html element named foo[], i need this name to make an array...
[00:11]<mrxrmnvr>crypt0: #javascript
[00:11]<azdlv0>in php...
[00:11]<eyzau>crypt0: how to validate an element in javascript in php?
[00:11]<drvvdaa>crypt0: Reference it using an array subscript in JS, rather than an object property.
[00:11]<drvvdaa>crypt0: formobject['foo[]'] instead of formobject.foo[]
[00:12]<azdlv0>sorry for my english i'm venezuelan, i try to explain...
[00:12]<cdgns>AsadR : are you saying that I should do the redirection with HTML META REFRESH
[00:12]<jdddd>mattmcc you tried at least =)
[00:13]<jdddd>mattmcc: Here's a present for your efforts... http://sperone.free.fr/extraz11.htm
[00:13]<cdgns>AsadR : cause I see that it is just able to do that
[00:13]<cdgns>AsadR : session info won't be lost?
[00:13]<azdlv0>i named some html elements foo[], and when submit this created a foo array in php....
[00:13]<jdddd>mattmcc (work safe)
[00:13]<drvvdaa>kynes: You seem to be missing some information about how sessions work.
[00:14]<azdlv0>the problem is when y try to validate in javascript, y cant validate an element called foo[] because '[]' are reserved...
[00:15]<drvvdaa>crypt0: formobject['foo[]'] instead of formobject.foo[]
[00:16]<eyzau>crypt0: do what mattmcc said or access the element via its ID
[00:16]<eyzau>y?
[00:17]<rsrmr>kynes: if your php session id is being stored in a cookie, it won't be lost due to the refresh
[00:17]<azdlv0>ok, thx..
[00:17]<rsrmr>kynes: instead of a refresh, why don't you make the user press a button to continue or something
[00:21]<eyzau>zircu: the second to last letter of the alphabet or sometimes meaning in aolbonics.. why
[00:22]<tzgsgzz>Why is zircu talking to zircu?
[00:22]<rsrmr>Noble blood?
[00:23]<rsrmr>He refers to himself in third person too, i bet
[00:23]<rnwv`>how do I override the max upload file size in php?
[00:23]<eyzau>i was hoping someone else would define 'y' like 'u' is defined
[00:23]<grgjvna>how do you make sessions expire after X about of time?
[00:23]<grgjvna>of inactivity
[00:23]<grgjvna>;\
[00:24]<eyzau>Rewt`: in the php.ini or equiv
[00:24]<eyzau>nanotec: ditto
[00:24]<rnwv`>prefer to do it for the one file only
[00:24]<rnwv`>ini_set or something
[00:24]<eyzau>Rewt`: you can't use ini_set, it is to late for that
[00:24]<grgjvna>zircu well my site is hosted from a web hosting company, so i dont think thats an optionf or me
[00:24]<grgjvna>heh
[00:25]<byre>Rewt`: You can't... by the time that command is processed, the file is already received.
[00:25]<rnwv`>can I overwrite it in .htaccess then?
[00:25]<eyzau>nanotec/Rewt`, if .htaccess is enabled you can do it there
[00:25]<byre>Should be able to, yes.
[00:25]<rsrmr>Rewt`: do you want to increase or decrease the size?
[00:26]<rnwv`>increase
[00:26]<eyzau>of course BigE's 'should' is a big question
[00:26]<grgjvna>yes i have .htaccess
[00:26]<rnwv`>thiking of this in htaccess
[00:26]<rnwv`>php_value upload_max_filesize 30M
[00:26]<rnwv`>php_value post_max_size 30M
[00:26]<eyzau>Rewt`: you will want more post_max_size, there is overhead in POST data when doing uploads
[00:27]<rnwv`>well, there's overhead
[00:27]<rnwv`>as the majority of the files will be ~10 megs
[00:27]<eyzau>but yeah, that is what you want
[00:27]<eyzau>if .htaccess is enabled and you are allowed to do that in .htacces
[00:27]<sjuflzjlrrrvyjw>How do you do mathematical parentheses? E.g. (($a+$b)/$c)^($d*10)
[00:28]<eyzau>SoulPropagation: i dont know how to answer that since you aleady have parans
[00:28]<jdddd>SoulPropagation like your example, but ^ isn't powerof in php
[00:28]<sjuflzjlrrrvyjg>Right, that's what it would be in non-php
[00:29]<sjuflzjlrrrvyjg>How would I translate that to php?
[00:29]<jdddd>SoulPropagation http://www.php.net/manual/en/function.pow.php
[00:31]<eyzau>Jymmm?
[00:31]<jdddd>zircu: Leave a message at the beeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeep
[00:31]<eyzau>zircu: the soul of ##php :)
[00:32]<eyzau>I think my last message just would confuse people
[00:32]<sjuflzjlrrrvyjg>I still don't get how to do parentheses
[00:33]<jdddd>last, first, and any in between.







