| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8
Comments:
<0> How is conn.php getting included? <0> Autoinclude? <0> Pastebin your header.php file. <1> require_once <1> header.php : http://pastebin.com/748946 <0> Then pastebin your conn.php file, make sure you comment out any important bits of data like your username or p***. <0> I don't see a require_once for conn.php, are you sure its not getting auto included? <0> Using a .htaccess or simular? <1> conn.php : http://pastebin.com/748949 <1> well its in compose.php <0> Well you don't need any HTML in your conn.php file. <0> So just get rid of it all. <1> compose.php: http://pastebin.com/748952 <0> http://pastebin.com/748953 <0> Just get rid of all the html in conn.php and it shoudl work fine. <1> compose works fine now:)
<1> but <1> still not the other files... <1> But removing html in conn.php made compose.php work fine <0> Are you getting the same error from other files? <1> yes <0> Whats the exact error? <1> For instance when I open admin.php <1> Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/n/nesjej/public_html/testmappe/admin.php:9) in /home/n/nesjej/public_html/testmappe/header.php on line 1 <1> Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/n/nesjej/public_html/testmappe/admin.php:9) in /home/n/nesjej/public_html/testmappe/header.php on line 1 <0> admin.php probally has the same problem conn.php did. <1> You're right:) It works now. I removed HTML <0> Basically whats happening is that session_start() is setting cookies, you can't set cookies after *any* html (even a space) has been sent. <1> Ok thanks! I still have one problem though <0> ok. <1> No.. I solved it:) Looks like all the problems are cause because I have html <0> Sounds good, I'm off to get coffee. <1> Thanks a lot:) <2> Interesting thought. <2> PDO and mysql_connect() both say that if a connection is already active with the credentials given, that a new connection attempt will return the existing connection, so as not to bog down the db server. <2> So, if I go mysql_connect(user, host, p***) and later instantiate a new PDO object with the same credentials, will I have one or two connections to the db? <0> Hey [Kaneda], do you store the results of queries/calculations in object vars or do you just return them. <0> I'm building a calculator and right now my $this->calculate() function does all the math and stores the results in $this->results so all the other methods can access them. <0> I'm wondering if I should just ditch that and just return the calc results each time they're requested. <3> [Kaneda]: two different ones <3> [Kaneda]: the connection reusing is local to each extension <2> Novell: damn <2> I know I'm late on the respond, but damn. <2> I ***ume there isn't a way to convert between a mysql_connect resource and a PDO object without deep wizardry. <2> _TaSm: sorry to respond so late <3> could maybe write an extension to convert the connection <2> _TaSm: For all the new **** I code I'm storing query results in object properties so as to minimize database queries. I'm thinking that's a better solution than to constantly poll the database. <2> Novell: Good idea, and I might persue that one in my spare time, but as far as the scope of this project is concerned, negative. <2> Novell: I can safely say that the guys I'm working for right now aren't paying enough for that kind of dedication. <2> Although, _TaSm, I'd love to hear your thoughts on the matter (on if storing database results in object properties is > requerying database) <4> so. <5> no. <6> can a server admin disable Session TimeOut? <7> depends on his knowledge <6> well. he is an idiot <7> or her knowledge <7> then he might wanna look in php.ini <6> :) <6> thanks <8> http://pastebin.com/749060 anyone? <5> I'd give up and go eat some icecream <8> Well you're a halfwit <9> yeah, but he can code better than you can Adam- <8> In PHP maybe, I doubt in much else <9> your problem isn't a php problem <9> it's that you're an idiot and the concepts of logic escape you <9> you just got pwned by a ****ing array dude <8> "pwned by a ****ing array" <8> What an idiot <10> pfft. <5> As I said, I'd go eat some icecream <9> hahaha <9> seriously, did any one look at that array of his? <10> dont even care <10> hes gone <10> get over it <10> :D
<9> well hai2u2 hajuu <9> fag <5> plz? <10> lol <10> dravine: was your mums name ragan? <5> Carl <9> hr nme iz hawt karl <5> AOL plz <9> L)A! <9> :))))))))))))))))))))))))))))) <5> cum again? <9> omfg cum! <9> so, vacationing is the uber <9> 4 solid days of liver punishment! <10> lololestonialol <9> heh <5> what+ <10> drinking is weak <5> isn't asp the same thing as php? <9> not in public :D <10> http://www.explosm.net/comics/543/ -- apparently that reminds some girl of me <9> Guy In Real Life? <10> that would mean you were born through a penis <10> ouch. <9> um <9> only if $some_girl == $your_mom; <10> actually your mum. <10> YOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUMYOURMUM <9> ok, then only if my mom told you that comic reminded her of you <9> which I find unlikely <10> she called me up. we have a private *** line <9> hah! now I have proof you're bull****ting <9> everyone knows australians don't have phones <9> you all communicate via digereedoo <9> and ****ing boomarangs <9> tcp/ip via dingo <9> * PING RESPONSE FROM Rajuu - 3 days, 11 hours, 12 minutes 22 seconds <9> hrm, is it the monsoon season or something? <9> that's some laggy dingo <2> <aussie> Oi! This dingo is bogged down right now due to fatigue! Little known fact: Dingo QoS ****s, mate. </aussie> <3> Isn't it "matey", not just "mate" ? <6> is there a php function to disable Session.Timeout <6> ? <6> (the server admin turned out to be an idiot after all) <9> Nir212, sounds like he's in good company. <6> hey. it's not my server... <6> i pay for hosting companies.. that ****head only wants to save 4$ per month <0> Welp that meeting took it out of me, time for coffee! <6> what is this ****: <6> Fatal error: Cannot redeclare rmdirr() (previously declared in /var/www/client_doc/Admin/ShowAll/Options.php:42) in /var/www/client_doc/Admin/ShowAll/Options.php on line 42 <2> Nir212: probably including the same file twice instead if include_once. <2> s/if/of using/ <6> em.. don't understand <2> if you call include('foo.php') and later call include('foo.php') or require('foo.php') again, that error results. <0> You can't delcare a function twice. <6> wired part... it's working on my server. but doesn't work on other server <0> If you want to include a file twice that has a fucntion in it, use a if(function_exists('name')) before declaring it. <2> Even if it's inside an if block that doesn't get processed. <6> ok. i'll check on it <2> include('foo.php'); if (1 != 1) { include('foo.php'); } // will cause that error as well <11> hello .. how to change directory in php ? I try chdir($dir); .... but when I try to list him it appears to be current directory not $dir <6> btw. if the function uses a inside function such as glob and the server's version doesn't support this glob function. can it be the cause? <2> No. You'd get a "undefined function" error (or similar) <2> if I call date_set_default_timezone() on a server that doesn't have that function (< PHP5) I'd get a "Undeclared fucntion: ...) error. <6> [Kaneda] <6> http://pastebin.com/749174 <6> check this please <0> [Kaneda] Getting back to teh whole storage thing, I'm starting to think keeping the data in the object is good, although it represents some weird issues. <0> Ie: When methods arn't really renturning anything but just altering object globals. <6> _TaSm, please check my link as well <0> So you have to do funky things, for instance, my $cl***->get_results(); checks to see if $this->results is empty and if so calls the $this->calculate() <0> I used to have a $this->is_calculated and set it to t/f, but figured there isn't much of a point of that being that I can simply check if $this->results is empty or not. Naturally if its empty the calculations haven't been run. <0> The same logic can be applied to DB stuff.
Return to
#php or Go to some related
logs:
#windows spuggy irc #linux how to set folder permision in linux unable to convert date-time string ubuntu #AllNiteCafe lazy condition code #MissKitten #london #london
|
|