| |
| |
| |
|
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> lol.. <0> you're breing NOSY then <1> !+g14 <2> Guideline 14) never argue with the guidelines or an Op [See Also: Patriot Act] <0> Jymmm, I know you've been here *forever* & volunteer a lot of time giving sound advice.. but sometimes you don't see through abstractions.. ie. $this-is-an-incorrect-syntax-variable-trying-to-explain-a-point ... you don't see the "point"/idea .. but rather freak out @ hyphens in a variable <3> hey <4> Can anyone tell me why I can't store a DOMDocument in a session? This nice little example dosn't work (two files) : http://pastebin.com/663561 <3> is there any function that I can use to see if a value is in an array or do I have to go throug all of the array using a for <0> Acs, in_array() <3> thanks <4> Acs: http://dk.php.net/manual/en/function.in-array.php <3> thanks again :) <4> :) <5> bricecube: There are SO SO MANY that come in here asking things they have nfc about. 80% don't even know there is a manual, much less where it is. So, when I can see someone is being evasive, they are usually up to something in one form or another. This is when I'll ask what the is the basis for their inquiry, and either find out they're 100 miles off track or just slightly off-track and looking for direction. Now, when someone asks for help and is a sma <3> I see that there is an array_push function, but in the Array page it says I can do like bla[] = "ble"; and it will add to the end of the array <3> it's the same thing right?
<3> yes it does <3> just read it :P <6> php.net/array-push says <6> heh <0> Acs, same thing <5> bricecube: Now, I do NOT have to explain myself every ****ig time just becasue you or anyone else doens't "understand". If they don't like it, there's nothing keeping them here. <3> I saw the function but just now opened the page <3> lol <3> thanks again for the help <4> Acs: Well, push can be used to insert a new element any where in the array. $arr[] just appends the element <3> Jemt doesn't it just add to the end? <0> Jemt, pushing always appends <4> Acs: Yes - that is Append :) <4> bricecube: Hm, let me just check :) <6> good idea ;) <3> array_push() treats array as a stack, and pushes the p***ed variables onto the end of array <4> Yes, sorry. bricecube is right <7> HI! <4> Anyways - anyone have a clue why I can't add a DOMDocument to a session? http://pastebin.com/663561 <0> Jemt, maybe serializew it first? <0> Jemt, serialize() unserialize() -- though I haven't dealt w/ DOMDocs <8> Anyone in here good at making webtemplates in photoshop? <4> bricecube: I though what was done automatically. What about custom objects? MyCl*** or what ever <5> Lucias_O`Neil : ##php is for help with learning php language itself, you are WAY out of the ballpark, closest would be #web <4> Hm, seems that it is always a good idea to serialize objects <4> bricecube: "It is not possible to serialize PHP built-in objects." <4> bricecube: Bugger <9> Jemt: I've never dealt with DOMDocument, but I'd try var_dump($_SESSION) and make sure that the DOMDocument cl*** exists in Test2.php. <0> Jemt, var_dump the _SESSION to see if something's up ? <4> Checking var_dump out <4> var_dump result : object(DOMDocument)#1 (0) { } <9> Jemt: what about in Test1.php? Does it look correct in there, or look like it has a type which may not be serializable? <4> CryWolf: Test1.php works great. saveXML outputs the content of my XML file fine <9> Jemt: what does $_SESSION look like, though? <4> CryWolf: var_dump result from test1.php : object(DOMDocument)#1 (0) { } <4> Is that sufficient? <9> Jemt: I'd say. <4> CryWolf: Oh, you want var_dump($_SESSION) ? Or var_dump($_SESSION["xml") which I just did <4> ] <10> hey, bit of a weird question, havn't been able to find an answer on php.net - is there an environment variable i can set that php will use as the include path? <6> parappa: no, but set include_path via ini_set() <6> so i guess in some way the answer is yes too :) <11> http://us3.php.net/manual/en/function.set-include-path.php <12> that's even better <10> yeah, not ideal for the situation im in <9> Jemt: either way...it is restoring exactly what it's saving. <11> parappa: See my link <4> CryWolf: Makes the 'warning' even more weird <10> Cody` - looking now, thanks <12> why does that not work parappa? <12> it's even better since it gives you the flexibility of changing the include path at will <10> it just that im trying to get php-fcgi to use different include paths based on hosts defined in my lighttpd.conf <12> oh <10> i tried the -d option, but it seems to ignore it <6> can't you just set them in lighttpd.conf under virtual hosts <10> phillip - you cant p*** it through from there <10> its got a path to set for the binary that the fastcgi server uses <6> you can in apache, i'm not familiar with php-fcgi :) <6> lighttpd rather <10> but if i add the -d it ignores it <10> ok, i can set different php.ini's for each host
<10> is there anyway to include settings from another file in a php.ini? <10> like one global php.ini and then .inis named by host with just the include_path setting in them <6> too bad you can't just use php_admin_value <10> i can if i use htscanner and .htaccess files, but thats messy imho <6> since you can include multiple ini files, i would ***ume you can <10> you can include multiple ones? cool <13> if i want to use PHP with SSL support, does Apache need to support SSL too? <14> um... Yes? <13> ...**** <15> i know this is a sql question but how can i see the databases i have, this is for mysql <14> !+g8 <2> 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. <6> parappa: not sure if --with-config-file-scan-dir will help, perhaps <10> philip - thanks, i'll check it out and do some googleing <10> thanks for giving me a direction to look in <6> np, good luck, if you find a solution please feel free to let me know, i'm curios :) <10> ok, will do <10> l8r guys, thanks for the help <16> can anyone help me with compiling php? <14> TML: Are you around? <16> main.obj : error LNK2001: unresolved external symbol _ts_free_worker_threads <5> Stormchaser: he said he made had made you a webpage (nfc what that means) <14> Jymmm: I'll ask him about it... Right now I'm interested in more-up-to-date php-bot's XML file... <5> Stormchaser: That's what I told him you wanted, and that's when he said he had made you a webpage <10> philip - found some more info, if your interested check out this page: http://uk.php.net/php_ini_scanned_files <14> Jymmm: okay. <4> Grr, I just can't make it work. Have anyone experience with storing a DOMDocument in a session? This dosn't work : http://pastebin.com/663561 <17> what happened to pear channel-discover, how do I add a channel? <10> Jemt - have you tried serializing the object? <4> parappa: Yep, same problem. Besides, PHP's build-in objects should not be serialized <6> parappa: how does that help you? <4> Hm, maybe that's the problem. Could it be that the object is being serialized automatically? <10> philip - i think it might help, although - i dont want to have to compile a different php bin for each host <10> it just give some more info about that directive <10> anyway, l8rz <6> ah <6> gl :) <10> thanks :P <18> http://pastebin.com/663621 <18> anyone know why <18> i get that error <14> what error? <18> look at that bottom <18> a bunch of warnings <18> but <18> it doesnt output anything <18> =S <14> !+enter <2> Don't use the enter key as puncuation. Think in complete thoughts, then type. <14> and have you READ, what the warning says? <18> yes <14> and? <18> and? i dont know how to fix it <9> Tm218: there's an error in your query. I don't know what it is, that's for you to look at. <6> one of them is as follows, let's take a closerr look :) <6> # <6> Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/tm218/public_html/ggx/config.php on line 15 <6> so, what are you p***ing to mysql_numrows() here? <6> $result. where does $result come from? <6> mysql_query(). what does mysql_query() return on failure? <18> i dont know, im just starting php <14> !+mysql_error <2> Handle SQL Errors! For MySQL, always check if mysql_query() returned false; if so, print mysql_error(). I.e. $result = mysql_query($query); if (!$result) { echo $query.'<br>'.mysql_error(); exit(1); } <6> false. and false is not a valid mysql result resource :) <14> I know, I'm bastard :) <5> Stormchaser: no argument here on that <14> Jymmm: :) <6> Tm218: the manual talks about it, read php.net/mysql-query for example although I think you should take a close look at the example at php.net/mysql-fetch-***oc <6> always ***ume everything fails!!! <14> Includinh "hello, world"! :) <6> wow, i was proud of my descriptive reply, oh well <9> Trying to educate some people always fails.
Return to
#php or Go to some related
logs:
#perl x-httpd-asp
#oe microdia webcam driver setup ubuntu vncserver 1024 #linux #perl jmax build dapper #perl #sql
|
|