| |
| |
| |
|
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
Comments:
<0> I've reached the memory limit of 16MB. Is it possible that too many required() files are making this happen because the site isn't doing a lot yet? <1> Narada: Yeah, it's possible <1> Narada: If you also have a lot of large db result sets that can cause it too if you don't use mysql_free_result() as the result set is stored in memory until the script ends <2> $allnodes = $this->dom->getElementsByTagName("/form"); -- will this find me </form> tag? i tryed it and it didnt worked out.. how can i find this tag? <3> can anyone help me to compile php 5.1.4 into redhat 9 or FC5? <0> is there a way to see php's memory usage fluctuating <1> idan: $this->dom->getElementsByTagName('form'); will get you the <form tag <1> Narada: Use something like XDebug http://www.xdebug.org/ <0> MarkL: already got it turned on <1> Narada: Doesn't that tell you about memory allocation? <0> MarkL: well i sort of wanted to see actual usage rather than a limit <1> Narada: Using an xdebug trace you should be able to see the memory usage of each function call <1> Narada: Or according to http://www.xdebug.org/docs-functions.php#tracing you can :o <0> k <0> thanks <4> How to use correctly Pear::Log object in my project ? I must create new instance for each cl*** or one Log cl*** instance for all my project ?
<5> hey guys, sorry for asking this here... but anyone can recommand me a webhost/domain registration that is not too expensive and allow me ~50mb php and mysql? <5> and not a lot of transfer <5> bandwiddth <6> hi <6> is is possible to use spredasheet doc's with php, like posting a form to it,and getting th values ? <7> hi guyz <8> if an included file die()s will the parent also quit? <7> can any body tell me how to check my php is working with apache <7> i had installed php5.1.3 <7> module enable==so for apache <7> any body can help me? <9> what could this possibly mean? <9> Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /homepages/34/d162582622/htdocs/train/train.php on line 148 <9> sorry i am very new to php <6> rKR245, phpinfo(); <8> post line 148 <7> o.k <1> zid: Yes <1> Fr0zen: What are lines 147 and 148? <8> MarkL: is there a way to stop executing and return to the parent? <9> sec i will paste bin <1> zid: Yeah, use return; <7> mesut:nothing i can see <8> heh just like C <8> cool <9> here is my php/html <9> http://pastebin.com/720267 <9> this is my error <9> Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /homepages/34/d162582622/htdocs/train/train.php on line 148 <1> There's only 67 lines on pastebin <10> Can anyone suggest any better "themeable" ideas instead of a defalt form dropdown box for my theme selector @ Http://lanceslife.com <1> You only needed to paste 147 and 148 :o <9> errrrr <11> hi <1> Fr0zen: echo "<img src="img src=\"" . $temp['pictureurl'] . "\" alt="" />"; <-- your quotes are a bit messed up <9> http://pastebin.com/720269 <9> markL <9> how should it be? <1> Fr0zen: Your quotes are all over the place actually :o <11> i need to get a file from an ftp server. do I have to do fsockopen or is there something easier <1> echo "<ul id="riderslist">"; <-- there too :o <1> Fr0zen: Should be echo '<ul id="riderslist">'; <9> ahhh <9> is that on every <9> echo.. <9> or just the first at the start <9> right after php? <1> Fr0zen: It's on a few of them throughout the file <1> Some are ok, some are not <9> k let me look thru it <12> Fr0zen: wow! at your code lol <8> some escaped, some not, fun :D <8> that $code **** is weeeird <12> yeah you could have just used 1 $code with a single quote <12> and then your could would actually be indented <9> thats not my code <9> it's a myspace train script i converted into css <9> tableless <9> it was all font tags and junk <9> im just imputting the php back in
<13> hi all <9> obviosly with much trouble because i know nothing about php <9> Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /homepages/34/d162582622/htdocs/train/train.php on line 192 <9> hmmmm <14> !tell Fr0zen about guidelines <13> if i send mails over mail() function.. in the mailserver log is following ctladdr=<apache@host.domain.ch>.. how to chanche this ctladdr? <14> *DOH* I knew it was g10, but I wasn't sure. :/ <9> packages? <14> Yes. <9> this isnt really a package <14> Well, you didn't make the script, that's why. And you have probably forgotten the ending ';' on line 192. <9> i see, thanks eml <9> and i understand the guide lines <15> how can i check if $result = my_sqlquery returned no match <15> if (!$result ) ... ? <14> ocx32, if (!$result) { no match } <15> whats the type of result <14> ocx32, Or well, I don't think that's the proper way, mysql_num_rows perhaps. <15> array? <14> if (mysql_num_rows($result) < 1) { noMatch; } <0> you have to do two checks <15> ? <0> (1) you have to check a valid result was returned (2) you have to check if more than zero rows were returned <0> is_resource(), mysql_num_rows() <15> what do you mean by valid? <15> why should i <14> So that's basically the two ways I wrote for you. if (!$result || mysql_num_rows($result) < 1) <0> no <14> Narada, Isn't !is_resource($result) the same as !$result? <0> yes both would work <0> it's a matter of preference <0> but you shouldn't check for rows on an invalid result <0> invalid resource i mean <15> its returning 0 always <0> what's returning zero <15> if (!result) ... <8> what's the thing to grab the current page name <0> zid: PHP_SELF, SCRIPT_NAME in $_SERVER <0> ocx32: mysql_query() returns 0? <8> thanks <15> yea' <13> if i send mails over mail() function.. in the mailserver log is following ctladdr=<apache@host.domain.ch>.. how to chanche this ctladdr? <16> hi. Do you more experienced guys/girls have some good readings (like articles) about "good coding techniques" that you can share? <0> well that means there's a problem with the query; the reasons why it might return false are outlined on php.net/mysql_query <0> ocx32: ^^ <15> http://pastebin.com/720286 <17> anyone good with CURL, im trying to scan to make sure a URL is valid using $response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); the URL is a tracking URL and does some redirection, the response code im getting is 0 and not a 302 or anything and wondering why, i've triple checked the URL and it is valid <14> mm2000, Well, it depends. What do you need? <15> ok thanks working.. <16> eml: everything of intrests! <14> mm2000, Well, I don't know really, I guess there's a lot of articles if you search for "coding techniques" on google, both good and bad ones. :P <16> eml: PHP is one language that can solve the same problem in many many ways... I am so-so satisfied with my coding-style at the moment, but its always good to take part of other styles <16> eml: hehe, usually it gives the "bad ones" ;) <14> mm2000, Well, I thought so too, but I've changed my style a lot since I introduced myself to OOP, and I've read a few articles myself. <14> mm2000, I don't have any links now though, but maybe I could hook you up with a few when I get home. <16> eml: well, OOP is one tech i also use, it is one major difference though from other OOP-language. And that is... the objects dies almost directly. <16> Cannto figure out if it is good or bad to use OOP in PHP really. <16> *Cannot <8> I've never used oop <8> not entirely sure of the point <17> nevermind, forgot i added a validation and had $safeurl instead of $url ;) <8> oops seems to be cat.kick() from kick(cat) <16> zid: In PHP i am starting to hesitate too. <14> Well, when I learned OOP in PHP I read a lot of articles, which probably affected me, so I guess it doesn't have to be OOP itself, just the fact that I studied a lot of code. <8> beh school in 2 hours <8> I wish I had someone to design my site <8> i'm going to have to recode lots of bits so that I can insert html into places I bet <14> zid, Luckily I found a designer for my site -.- <16> eml: Yeah, studying others code is a great source of information. Even though i never find "the ultimate coding tech". <17> if ($response_code != '200' || $response_code != '302') { code is 302 and exiting $*$&@&@? <8> I'm making a nice 'no layout' version atm <17> why am in in '' <14> zid, The MVC-approach then I guess? <8> And that is?
Return to
#php or Go to some related
logs:
#css ProFTPD no such user found
evolution repair ubuntu #linux firestarter autostart ubuntu #linux #lisp #physics #math gnomebake
|
|