| |
| |
| |
|
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
Comments:
<0> Wizzo_kidd: Easy, then. :) <1> Wizzo_kidd: theu build drivers for link i think <2> riqn, never used emacs really .. :) <3> a HP 5510 All in one <0> Wizzo_kidd: Install cups, install hpifs, install foomatic, foomatic-db... okay, maybe not so good. <3> i got cups <3> i got the <1> Wizzo_kidd: what distro? <4> hello, i've got a problem with getting __PHP_Incomplete_Cl*** in my sessions. i've read about making sure session_start() is called after any cl*** defintions (which it is), session auto start is off, and i've even done the unserialize_callback_func trick on php.net. i'm really not sure where to go from here. any ideas or suggestions? <3> hpjis ppd file <3> uploaded it tried to print test page no luck <0> Wizzo_kidd: Get foomatic-db-hpifs, and follow the directions on the hp site... <2> dgsss, do you serialize the object before putting it in the session ? <0> Wizzo_kidd: They actually have docsspecifically for setting up printers under linux. <2> dgsss, sorry didnt read everthing .. i guess you did <5> print EntriesFactory::GetEntries->getItem($x)->current()->getItem($y)->members->getIterator()->current()->getItem($z)->GetField($field); can someone debug this for me? lolz *pastes code*
<4> riqn: the interesting thing is, i dont ever store an object in the session. i do write to _SESSION *From* an object, however. <4> so it's really boggling my mind <2> dgsss, ohh .. well i always have session_start from the start of my main file (which would be index.php) .. dont know if its stupid but it works <4> i suppose i could try it <1> riqn: well a stupid questions.. do you include the cl*** definition before unserializing it? <2> yes <2> i use the autoload function <6> Hmmm...ucwords() should implicitly call strtolower() <1> ah i see <1> TML: WhY? :P <2> can anyone explain to my shortly how i would bind the different layers if i would do MVC in php ? <6> riqn: http://www.google.com/search?hl=en&ie=ISO-8859-1&q=PHP%20MVC <6> Start reading code <7> I'm writing an upload script and when I click 'upload' it get: Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/usr/local/djcsites/dajoob.com/www/hit3k/uploads/firefox.png) is not within the allowed path(s) <2> TML, erh ... thanks lol :P <7> any ideas? <8> hey ifdev you know any good opensource ones i dont pay for tools to develope opensource langauges. <8> lol <1> surffy: TruStudio is OSS.. it has a free (as in beer and as in speech) foundation version for PHP and Python.. <6> Hit3k: Either turn off the open_basedir restriction, or upload to a path within your open_basedir set. <9> hey guys - is there a functino to remove array elements if another element within the array has the same value? <1> SweetAs: array_diff? <6> Or array_unique <1> two arrays or one array? <9> array_diff is about more than one array <10> Hey everyone... quick question about cURL.. curl_exec is returning true/false and not the content of the URL I put in. I have curl_setopt with CURLOPT_RETURNTRANSFER set to true. What else would cause that? <9> im talking within the same array <8> ifdev its to confusing :P <1> yes <6> SweetAs: php.net/array <6> There's a whole list of functions that work with arrays. <9> no **** <9> sorry that was rude <9> ignore me <1> and have a nice time with remember the order of arguments if you use vi :P <9> array_unique <9> (PHP 4 >= 4.0.1, PHP 5) <9> array_unique -- Removes duplicate values from an array <9> 20:08 < TML> Or array_unique <6> javadude: Well, it always returns false on error, regardless of CURLOPT_RETURNTRANSFER <10> but it also returns true when its valid (like http://www.google.com/) <1> wasn't there a bot for functions and stuff oO? <6> javadude: Not here, it doesn't. <10> ugh... i hate it when this happens. now it works :S all i did was re-run it... now i feel like an a$$ <10> *shakes head* ok, i'll go back to my corner :) thanks anyway TML <11> Does anyone here know how to use the mysqli cluster api functions? Do I need to use multiple connections, or is a connection to the master enough? <1> Cody`: #mysql knows <11> Really? I thought it would have something to do with the actual api. <11> Will try it though <12> i want to unset($_REQUEST["ins_*"]; <12> will this work? <12> how do i wildcard keyvalues? <2> lorfds, eek $_request :S <6> lorfds: You can't. <6> lorfds: Nor does it make sense to unset() items in $_REQUEST <12> TML: well -- this is causing problems for me in my app <2> TML, might do in some $_POST cases <12> hmmm <12> you might have a good point <12> $_REQUEST has an effect on $_POST, yes?
<6> No <6> Things in $_POST also appear in $_REQUEST <2> $_REQUEST is just a alias for either $_GET or $_POST your can say <6> But it makes no sense whatsoever to unset any of the $_ variables <6> riqn: Actually, it's both, as well as cookies and env <12> TML: I have this problem where I have a form that is error checked, and the form is pulling down old values from $_REQUEST, instead of replacing with the entered values, when the form returns an error <1> TML: cookies and get not env? <2> TML, i have unset($_POST["lo"]) before .. cant remember why tho .. can you unset($_POST) and have it not repost on refresh ? <12> when I unset $_REQUEST, my problem goes away <6> ifdev: You might be right. I thought ENV was in there for historical (read CGI) reasons, but it's been awhile since I checked. <6> lorfds: You should probably overwrite $_REQUEST['someval'] with the new value, not remove it completely <12> TML -- yes that is what I want to do <6> riqn: It doesn't "repost on refresh" <6> riqn: $_REQUEST is only per-request, it doesn't persist in any fashion <2> TML, if you unset or what do you mean ? <6> riqn: Same with $_GET and $_POST <6> There's no valid reason to unset members of $_ <2> TML, you dont understand what i mean by re post then ... if you post a form and hit F5 what happends ? <12> TML: that is why I wanted to wildcard, because there are a number of different values i want to replace, all with the prefix ins_ <6> riqn: Depends on the client; has nothing to do with $_POST in any sense <2> TML, well what it does is it gives you and error and asks if you want it to post again basicly .. <6> lorfds: make an array of the values you need to replace and loop over it, setting $_REQUEST[$currkey] as you go <13> if I have a main page a.php, I require b.php in the first line of a.php. b.php declares a cl***. I require c.php in the second line of a.php. Will c.php be able to call the cl***? <6> riqn: That's right. <2> TML, and my question was that if i did an complete unset on $_POST, would that message go away :P <6> riqn: Again, it has nothing to do with $_POST. unset()ting $_POST won't change how that behaves. <6> riqn: No. <14> that happens in the browser before it makes the request <6> Correct <2> TML, ok :) thanks ... so is there any other solution to that then make a refresh = <6> That's something the client resolves long before PHP becomes involved in any fashion <2> ok <15> anyone knows how i can display text in an image ? <6> PHP_Devil: php.net/gd <15> not by GD <6> PHP_Devil: Then you're on your own. <6> GD is the only image library for PHP supported by this channel. <16> I think you can do it with imagemagick? <2> PHP_Devil, hehe do image as background on a div and write over igt :P <15> i just want show a static text over an image <15> i cant set the image as background, tried and doesnt work... <17> the backbone is dancing today <15> it is a cell of table, not div <17> PHP_Devil: #web or #html ? <2> PHP_Devil, erh ? ofcourse you can ... <td style="background-image: url('images/mypic.gif');">lol</td> <14> riqn: what you can do is, in response to the POST, tell the browser to GET another page <17> riqn: don't use quotes around the URL .. it confuses some browsers :P <14> ifdev_: which browsers? <2> ifdev, which ? <2> ifdev_, i have never had that problem <17> deltab: don't remember exactly.. but i do remember it's a rule of thumb to not qoute them.. well google anyway <6> ifdev_: You know, if you'd register with nickserv, you could ghost that <17> TML: kick the other me lol <2> deltab, what do you mean ? by making a refresh in javascript or sometihng ? <6> ifdev_: I just did. <13> if I have a main page a.php, I require b.php in the first line of a.php. b.php declares a cl***. I require c.php in the second line of a.php. Will c.php be able to call the cl***? <6> 17:31 -!- mode/##PHP [+o TML] by ChanServ <6> 17:32 -!- ifdev [n=ifdev@82.201.231.38] has left ##PHP [requested by TML] <15> riqn, ok that would work, but image doesnt fit the background and resamples lot times, how can i specify size of image to show in background ??? <17> hmmm <2> ^^ <6> Fango: yes <2> Fango, it should <6> Fango: You could always try it and see...it would have taken just about as much time as it did to come here and ask us <13> hmmmmmmmmmm then there is an erorr in my code <13> I have been trying <15> riqn, ok that would work, but image doesnt fit the background and resamples lot times, how can i specify size of image to show in background ??? <18> when I use { } within a function , does it denote a new scope ? i.e. are variables within these blocks automatically destroyed ? <15> <td valign="top" width="801" height="22"> <15> <img height="22" src="img/bottombar.gif" width="802"></td> <2> PHP_Devil, so it displays lots of differnt images with differnt sizes <15> no the same image <6> wimpies: No <15> the image itself is half than the TD
Return to
#php or Go to some related
logs:
linux ip2200 deb #linux Plug dual monitor Gentoo gamera torrent #fluxbox 613b microdia mysql select * from variable=null kids in sandbox #linux #python
|
|