| |
| |
| |
|
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 32 33 34 35
Comments:
<0> it has nothing to do with echo <0> wait ill pastebin it <1> DogWater: that error will not appear submiting the forms using GET <2> how am i weird Myconid <3> p0windah: Oh. lol. <4> theboywhogotlost, is correct <5> DrewMew|Home:header("Cache-control: private"); // IE 6 Fix. <4> i used cache-contro: private and had no problem <6> ld: probably should put function b() { echo 'b' } :) <3> p0windah: is there an explaination for that somewhere on the web I can read so that im not entirely ignorant <4> DogWater: he's referring to p***ing the form results in the URL i think <4> though i would highly advise against that <2> im not using IE6 theboywhogotlost .. ff <1> DogWater: not that I specifically know of, search google for "GET vs POST php" <0> URL: http://www.nomorepasting.com/paste.php?pasteID=58279 <0> there you go
<7> Artnez: it has its place <6> DogWater: what are you doing? <4> itrebal: only for browsing records <3> Oh; yeah, p***ing ?1=var&2=var&3=var for like 15 things isnt really going to work i dont think. <8> Myconid, I did, but it still doesn't display the "A" in A's __call <5> DrewMew|Home: what are you useing? <6> ld: why would it? <8> Myconid, because I'm calling a method from an instance that has a __call defined... <3> Myconid: I just have a 3 page form, page 1 someone selects a free brochure thing they want to be mailed, page 2 they fill in where they want it mailed to, page 3 is a confirm page. I'm just trying to find out the best practices way for handling the form data for security & navigation (I dont want to break the user's back button in their browser, but i'd like to use sessions, etc). <9> Is the an average() function? <2> theboywhogotlost what do you mean what am i using? <3> its probably called by its mathmatical name if there is Malooco <10> Fatal error: Call to undefined function mssql_connect() in /home/fizz/public_html/test.php on line 4 <10> any idea how to fix? <6> ld: .. your calling $b->b though <6> ld: so your __call wont get executed <9> DogWater, mathematical name? <5> DrewMew|Home: What bowser you said you were not useing IE6 <3> Yeah; mean median, medium.. etc <2> oh.. firefox <3> but i noticed that doesnt work either so I dont know if there is an avg function or not ;-) <11> _chillyD: lines 10-12 will create a space there because you're putting newlines before & after the domain name, thast dumb - thats your error, i told you that <9> ah <1> Malooco: http://php.net/ is probbly a good place to look <3> Myconid: i'm just trying to find out the best way to do it before I begin so I dont end up with an unusable pile of crap. <6> Malooco: what are you looking for? <0> my bad then <9> an average() function <11> i told you, maybe you should check these things. <8> Myconid, that's my dilemma... if I would have defined a normal method in cl*** A, I could have called it from B, but what happens with magic methods ? do I _have_ to define a __call in B that would call parent::__call, or is there any way to avoid defining it in B and still have it work ? <9> i've looked at php.net <11> Malooco: http://www.cis.rit.edu/htbooks/mri/chap-2/chap-2.htm <9> there's one there, but it doesn't work <1> Malooco: you need to improve your searching skills then <0> itrebal, if not too much to asked, could you show me an example? of what i should put instead, ill study it <1> Malooco: keep at it <11> $domain = $_POST['domain']; <0> damn <3> p0windah: well it isnt on php.net/math so thats pretty bad ;-) <0> i forgot that? <6> ld: iirc, a child inherits the parents magic methods. <12> is it possible to write a function that replaces the functionality of a built in function? for example if i wanted to change what urlencoded did everywhere is there a way to redeclare urlencode? <12> urlencode* <6> lafy: function lafys_urlencode <2> ah.. IE gave me an error theboywhogotlost <8> Myconid, well, shouldn't it then display "A" when I call $b->b() ? <12> Myconid: that's not at all what i asked <2> /msg theboywhogotlost Warning: file_get_contents(/buynow/orders/product_info.php/cPath/21/products_id/28) [function.file-get-contents]: failed to open stream: No such file or directory in /home/site1/public_html/test1.php on line 10 <6> ld: __call is only executed when a method doesnt exist.. $b->c() should print 'A' <9> function average($arr){ <9> if (!is_array($arr)) return false; <9> return array_sum($arr)/count($arr);} <9> nice <6> dont post code <8> Myconid, I get it :) thanks :) <9> it's just 3 lines <0> ok itrebal, and then, show me an example of when i use it in a link, such as www.$domain/ <5> DrewMew|Home: session_start(); <5> header("Cache-control: private"); // IE 6 Fix. <9> too little for pastebin
<3> Alternatively; is there a way to use sessions, but fix the error in internet explorer that says it wont re-submit the form? <10> Fatal error: Call to undefined function mssql_connect() in /home/fizz/public_html/test.php on line 4 <3> maybe by sending the $_POST variables/ <3> ? <10> any idea whats the problem <1> Malooco: no its not, use pastebin or dont paste <9> who made p0windah the king of ##php? <6> hmpfs: Obviously mssql_connect isnt defined :) <13> does anyone know of anyway to echo the eth0 information to php? <8> Myconid, what I'm trying to do really is to make a kind of wrapper... I want to register a function that will be called before a certain method is called... how could I do that ? <11> "(04:06:19 PM) php-bot: Submit your code to http://hashphp.org/pastebin or http://cpp.sourceforge.net or http://php.pastebin.com then tell us the URL and a summary of the problem. Don't flood by pasting in the channel." <6> malcooco: those are the channel guidelines. <9> <<3>> lines <11> Malooco: where does it say that? <3> xavierk: system(); <9> it's later down in the page <11> Malooco: where? link <6> ld: ... can you give me an example of your logic.. <2> so theboywhogotlost it should read <?php session_start(); header("Cache-control: private"); echo file_get_contents ('/buynow/orders/product_info.php/cPath/21/products_id/28'); ?> <13> dogwater system(ethtool eth0); <9> http://us3.php.net/math <10> Myconid how can i do it <9> actually, http://php.net/math <6> hmpfs: compile mssql support <11> _chillyD: dont PM without permissino <8> Myconid, I want to call $b->b(); and to have something defined in A that would first call A's c() method then B's b() <3> xavierk: sorry i gave wrong function : shell_exec -- Execute command via shell and return the complete output as a string <10> Myconid i have 2 phps installed 1 with mssql and 1 without, question is how i make my script use a specific one <5> DrewMew|Home: yes <2> mk <6> hmpfs: you configure your apache/webserver correctly. <3> hmpfs: it'll use whatever httpd is using <6> ld: can I pm you? <8> Myconid, sure <11> hmpfs: you set one php as a module, and the other as cgi <13> dogwater... if I get this in shell... will it work in php??? sudo -u nobody ethtool eth0 |grep Speed ---------- Cannot get device settings: Operation not permitted <11> xavierk: sudo it as root <2> okay theboywhogotlost i get a cannot send session cookie ... cannot send session chache limiter.. cannot modify header... and failed to open stream: no such file or directory ... but i know the file is there.. if i use an iframe.. it works fine... src="link" but this is just odd <13> dogwater, nobody doesn't have permissions...and since php uses nobody <11> xavierk: wrong one :) but in PHP, use sudo, so system('sudo -u root...'); <5> DrewMew|Home: Don't know... <10> [itrebal_work] i have /usr/php which has mssql support, how can i use it in my script, instead of the php thats compiled in apache? <2> hum... <11> hmpfs: compiled in apache? you have your terms mixed up <10> [itrebal_work] ok i have 2 phps, 1 the apache module, 1 the php interpeter, the interpeter has mssql support, the apache module doesnt, i want in my script to use the interpeter and not apache's <4> what would you guys recommend as an IRC client for win xp? <2> well.. then let me ask.. can i include a src in a div? like <div src="blah"> <10> but if i put #!/usr/php in my script, apache just displays the code and doesnt execute it <11> it has to be in the CGI bin IIRC <4> DrewMew|Home,no, you cannot <11> well, #!/usr/php \n <?php //code ?> <5> Artnez: Xchat <2> well... artnez.. aside from iframe.. can it be done with say a <td> or <tr> or any other format? <10> [itrebal_work] then it prints #!/usr/php and then executes the code <6> hmpfs: you need to reinstall php into apache w/ mssql support sir <4> DrewMew|Home,no. <11> Myconid: he can run both at the same time <10> Myconid i cant change configuration of the server for now <4> DrewMew|Home, you need a template engine... bad. <11> Artnez: whys that? <5> DrewMew|Home can you send me the file? <6> sometimes I just like coming here to listen to peoples wierd *** ways to do things <2> well.. the transaction system has one.. it just ****s... and is not versitle but it is about the only one that actually works with our payment gateway <11> Myconid: like what? <2> sure theboywhogotlost <6> DrewMew|Home: you sound like your making one of those "CLICK HERE FOR A FREE IPOD" webpages <2> no Myconid it is not a click here for a free ipod <6> xbox 360? <2> no. nothing free <6> lol.. <4> [itrebal_work], simple. If he was using the template engine i wrote it would look like. <4> <div>{%include file.tpl%}</div> <11> Artnez: meh.
Return to
#php or Go to some related
logs:
#css redect mouse ubuntu ubuntu Error loading operating system #perl #gentoo #debian yum missing dependency kernel-i686 fglrx ubuntu windows dual boot install ubuntu first gentoo vga=ask #perl
|
|