@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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



Comments:

<0> AsadR : I just wanted to split the project at my hand to pieces..
<1> kynes: so the PHP code that checks shouldn't display any HTML, just make it run the code and then redirect
<1> if you really really wnat it to show some HTML before redirecting.. then use JavaScript or the HTML META REFRESH tag
<0> okay can you give a really short example?
<2> hey
<2> php header(Location) isn't redirecting
<3> endra: of course not, that is an invalid header calls
<3> s/s//
<1> header("Location: newpage.php");
<1> kynes: google for HTML META REFRESH tag
<4> the RFC requires an absolute URL in the Location header
<1> YGBSM.
<5> hey guys
<3> meta refresh should only be used if you have no other way to redirect
<5> what's the function that lists the php info ?
<5> phpinfo(); ?



<3> blank_: yea
<1> itrebal: guess then you'll have to construct it from $_SERVER values
<4> AsadR: thats what you'd do, yea
<5> zircu, thanks, and it automatically prints the information right, I don't have to do echo phpinfo(); or do i
<4> but if i followed the RFC i'd do my own hredirect() function to do it for me
<5> zircu, ?
<1> though i can't imagine why they'd say that in the RFC..
<6> blank_: TIAS.
<5> BigE, eh? TIAS?
<6> !tell blank_ about TIAS
<7> !+tias
<8> [TIAS] Try It And See. If you want to know if or how something works, try it first.
<5> 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?
<4> AsadR: it makes sense, how should the browser know where to go to? that could get messy (though 90% of all browsers support it)
<6> blank_: Well... if you see a page with information about PHP, then it's working.
<7> heh
<5> BigE, Nevermind...
<9> hello, how can i validate in javascript a html element named foo[], i need this name to make an array...
<10> crypt0: #javascript
<9> in php...
<3> crypt0: how to validate an element in javascript in php?
<11> crypt0: Reference it using an array subscript in JS, rather than an object property.
<11> crypt0: formobject['foo[]'] instead of formobject.foo[]
<9> sorry for my english i'm venezuelan, i try to explain...
<0> AsadR : are you saying that I should do the redirection with HTML META REFRESH
<7> mattmcc you tried at least =)
<7> mattmcc: Here's a present for your efforts... http://sperone.free.fr/extraz11.htm
<0> AsadR : cause I see that it is just able to do that
<0> AsadR : session info won't be lost?
<9> i named some html elements foo[], and when submit this created a foo array in php....
<7> mattmcc (work safe)
<11> kynes: You seem to be missing some information about how sessions work.
<9> the problem is when y try to validate in javascript, y cant validate an element called foo[] because '[]' are reserved...
<11> crypt0: formobject['foo[]'] instead of formobject.foo[]
<3> crypt0: do what mattmcc said or access the element via its ID
<3> y?
<1> kynes: if your php session id is being stored in a cookie, it won't be lost due to the refresh
<9> ok, thx..
<1> kynes: instead of a refresh, why don't you make the user press a button to continue or something
<3> zircu: the second to last letter of the alphabet or sometimes meaning in aolbonics.. why
<12> Why is zircu talking to zircu?
<1> Noble blood?
<1> He refers to himself in third person too, i bet
<13> how do I override the max upload file size in php?
<3> i was hoping someone else would define 'y' like 'u' is defined
<14> how do you make sessions expire after X about of time?
<14> of inactivity
<14> ;\
<3> Rewt`: in the php.ini or equiv
<3> nanotec: ditto
<13> prefer to do it for the one file only
<13> ini_set or something
<3> Rewt`: you can't use ini_set, it is to late for that
<14> zircu well my site is hosted from a web hosting company, so i dont think thats an optionf or me
<14> heh
<6> Rewt`: You can't... by the time that command is processed, the file is already received.
<13> can I overwrite it in .htaccess then?
<3> nanotec/Rewt`, if .htaccess is enabled you can do it there
<6> Should be able to, yes.
<1> Rewt`: do you want to increase or decrease the size?
<13> increase



<3> of course BigE's 'should' is a big question
<14> yes i have .htaccess
<13> thiking of this in htaccess
<13> php_value upload_max_filesize 30M
<13> php_value post_max_size 30M
<3> Rewt`: you will want more post_max_size, there is overhead in POST data when doing uploads
<13> well, there's overhead
<13> as the majority of the files will be ~10 megs
<3> but yeah, that is what you want
<3> if .htaccess is enabled and you are allowed to do that in .htacces
<15> How do you do mathematical parentheses? E.g. (($a+$b)/$c)^($d*10)
<3> SoulPropagation: i dont know how to answer that since you aleady have parans
<7> SoulPropagation like your example, but ^ isn't powerof in php
<16> Right, that's what it would be in non-php
<16> How would I translate that to php?
<7> SoulPropagation http://www.php.net/manual/en/function.pow.php
<3> Jymmm?
<7> zircu: Leave a message at the beeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeep
<3> zircu: the soul of ##php :)
<3> I think my last message just would confuse people
<16> I still don't get how to do parentheses
<7> last, first, and any in between.
<16> Because nobody told me
<3> SoulPropagation: your ^ complicates how to do parens since there is no straight forward way to do ^ in php
<3> SoulPropagation: (1+2) * 5, php will use parens first then equations, a standard logical evaluation
<3> s/equations/mathmetical operators/
<7> SoulPropagation: IT's standard algebraic notation, if you have any more issues after this try #math instead. $results = pow((($a+$b)/$c),($d*10));
<3> $a+$b first, then divide that by $c... take $d * 10 and use that as the power of.
<3> ***uming the language you are using has ^ == power of
<3> Jymmm: to simple make it you do
<17> ^ is not 'to the power of' in php
<16> Oh, I tried it before and it didn't seem to like my parens
<3> caffinated: it was ***ume the expression was in a language other than php, implying power of
<16> It was pseudocode
<3> SoulPropagation: and you used ^ as power of? right?
<16> yes
<16> Lemme try it, hold on
<3> SoulPropagation: use Jymmm's solution
<18> when i look a scripts reading a file i often see it reading small parts of it in a while loop but i dont understand why what do you gain with this way?
<18> at*
<19> There isn't any, to my knowledge, unless you're dumping the variable out straight away. Ie, reading it in to echo it out somewhere else, to the browser.
<3> dumping the var directly makes less sense
<18> file(), file_get_contents() even fread($file, filesize($file))
<3> Silliman: what kind of loop.. while (!feof($fp) { $s = fgets($fp); echo $s;
<20> there is no phpnuke room on this server with anyone in it, would anyone happen to know of a server with an active phpnuke room?
<19> What was that for? :D
<3> file_get_contents is your best option
<7> Zule|BBL: Stormchaser is horny
<21> Zule: hungry like a wolf
<19> Mmm, horny
<21> o.O
<18> zircu, like while (!feof($handle)) { $contents .= fread($handle, 8192); }
<22> is it possible to maintain $_POST while redirecting?
<19> Then there isn't really a benefit to that. I think its basically just because file_get_contents didn't exist, and... neither did filesize obviously :D
<18> Narusegawa, you can serilaize it
<3> Silliman: yeah that doesn't make sense, just use file_get_contents, it takes advantage of OS memory mapping when reading files
<3> if available
<18> serialize even
<21> Narusegawa: you can stuff it into $_SESSION
<18> zircu, k :)
<18> Stormchaser, and if he redirects to sites outside his?
<22> figured i'd have to do that, at first i thought it was the ob_start() that was killing my arrays
<21> Silliman: cURL
<22> Silliman: its all internal site stuff
<21> Hum... Okay... there is some other way...
<18> Narusegawa, then just use sessions
<21> !+sentohost
<21> !+sendtohost
<8> http://mmcc.cx/sendtohost
<23> i need multi coders
<23> :P
<21> you need what?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#perl
#lisp
#mysql
#lisp
/bin/sh: cmp: command not found Try setting CONFIG_KALLSYMS_EXTRA_PASS
Metadata file does not match checksum yumex
#perl
functions_search.php line 251
quickpkg world
fedora automount execute fstab memory stick



Home  |  disclaimer  |  contact  |  submit quotes