@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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> caffinated: I don't think thats fair
<1> You'd have to have a hell of a lot of dl's to get that mess... :-)
<2> richardlynch: or one very nasty loop
<0> Tomorrow will make a year before newbie and I marry hehehe
<2> piera: which?
<2> piera: can i make "you're marrying a noob!" jokes? ;)
<0> caffinated: bope i didn't see anything i just happened to login about the time you said you side with richard.. just hadda put my 2 cents
<0> caffinated: can I smack you upside the head? :)
<2> oh, ok
<2> piera: you'd have to come a lot closer for that
<0> hah
<2> i'll be in chicago next week though. it'll cut down on your ***asination time
<1> adughep: Check all of the above. php.ini extensions_dir, a bunch of extenstions both built-in and loading in php.ini, and similar settings in .htaccess, or, possible, a lot of http://php.net/dl calls. None of these are showing us the word "segfault" which you used in relation to your guestbook, however. Do you actually have segfault, or were you just confused.
<3> TML .htaccess it's you opp ?
<3> i can edit php.ini but i cant find the ##*&^#(ing error
<1> Hey! There's a PHP User group meeting in Chicago next week... http://chiphpug.php.net



<2> richardlynch: perfectly timed with rubyconf, which is where i'll be
<3> TML: htaccess wouldnt cause a segfault/restart
<1> Excellent! The meeting location may (probably will) change, though.
<4> Would anyone know any good human readable documentation that describes ForeEach because I've been doing PHP for some time and use them and honestly I don't have any clue how they work.
<2> TheNinthCut: http://php.net/foreach
<5> adughep: What makes you think the error on that URL is even remotely related to a segfault?
<1> TheNinthCut: You've already tried http://php.net/foreach, right?...
<5> adughep: Forget I asked. Let's just establish this as fact: The errors on the URL you've provided have NOTHING WHATSOEVER to do with any segfault issues you may be seeing.
<2> richardlynch: I doubt I will have time to attend both. the company is sending people from my department, and generally the conference is about 10 hours or so a day (including dinner/lunch/etc)
<6> on one server is complains if i try to use a unset variable (which i understand is correct behavor) but on my local development system it does not. Does anyone know what i accendently enabled on my machine it activate this incorrect behavior? (and how i can correct it)
<4> richardlynch, yes.
<4> richardlynch, I've read PHPnet and Tizag which is very human readable and it just sounded like crackheaded-ness to me.
<5> oninoshiko: What do you mean "is complains if i try to use a unset variable"?
<1> Ah well. If you have a chance for a beer somewhere, call me. You can find my number on my resume l-i-e.com/resume.htm
<6> err and index in a varible that hasnt been set... like this:
<6> $test['one'];
<2> yeah, there is usually some excessive drinking at rubyconf
<1> TheNinthCut: You could just ignore foreach for now, and use while(list() = each()) instead...
<6> then try to echo $test['two']
<5> TheNinthCut: foreach() iterates over an array. There are two forms of foreach(), one which just gives the value of the current iteration, and one which gives both the key and the value.
<2> i was hung over after day 1, it kinda ****ed
<2> well, the hangover ****ed, the conference was good
<3> ok TML
<1> Yeah, you really gotta pace yourself at a conference.
<3> looking
<6> i SOULD be getting something to the effect of "Notice: Undefined index: two in whatever.php on line 3
<1> oninoshiko: You should use http://php.net/isset to decide if the element is set before you do ANYTHING with it.
<5> oninoshiko: What *ARE* you getting?
<6> nothing... it seems to be using it as if it were null
<7> I'm trying to make a simple random image generator script, i have this code and it isn't giving the desired output
<7> http://pastebin.com/711769
<7> all files have the extension .jpg in the /random folder
<5> oninoshiko: So your question is "Why don't I get a 'Notice' when trying to unset a variable which doesn't exist?"
<8> richardlynch, i added an array label like $tasks_array["time"][timehere] and used ksort($tasks_array["time"]) and it worked perfectly. Thanks for the hep.
<7> i can't see why the code isn't parsing properly
<9> Home, Home on the range... where the Deer and TML play...
<5> avi: Look at line 2
<6> TML: yes, on i difffernt machine i DO get it, so im alittle curious as to why i dont on this one
<5> avi: Keep looking until you see your mistake.
<10> I have an array variable that has values in it, how do i reset it?
<10> Or free memory something like that...
<5> oninoshiko: error_reporting level or possibly display_errors
<6> opCoder unset()
<1> opCoder32xz: You can unset individual elements, or the whole array.
<5> opCoder32xz: You can't really free memory, but you can ***ign a new value or unset() the variable.
<5> Then you just cross your fingers and hope GC will find it.
<10> Okay, thanks
<7> hehe on line 2
<7> i still don't see it i'm not much of a coder, maybe == instead of = ?
<5> avi: No. Keep looking.
<11> I have php4.4 installed on windows. I would like to upgrade to php5. Do I need to do a new install and decommission the old one or can I install over/upgrade?
<1> avi: Look at the END of the line. <--- Hint, hint
<5> avi: Do you also tend to write code in another language such as Lisp, Python, or Javascript?
<3> TML but logs say it is
<7> oh nice thanks guys
<7> terminating ;)
<7> i'm an idiot
<3> cant find the ext dir
<5> adughep: Your webserver does not segfault because it can't find the ext dir.
<12> having a pickel of a time trying to use a dynamic variable to use with Post variables, in short, say I want to do for $i = 1 to 5, $myvar = "Item" . $i; echo $_REQUEST[$myvar] the request variable contains nothing using my example



<5> adughep: You're misreading the logs.
<7> it
<5> Kerry_G: Just a guess, but you might want to go take a look at how to use Arrays in your HTML at php.net/faq.html
<7> it's still not parsing * =/
<3> errr
<3> yup
<7> i added terminator
<1> !tell avi about enter
<1> avi: pastebin it again, the new version...
<3> no i dont know WHERE the ext dir is
<7> http://pastebin.com/711787
<3> well well well...plenty of extensions...
<3> now to see if i can just remove a few...
<5> avi: What makes you say it's not parsing?
<7> the images aren't displayed
<12> TML, that is a very simplified example of something i am trying to knock out quickly, but yes arrays are another way
<7> http://lotus-design.org/wercscomm/
<7> this is the output
<7> the header image is the one I want to ramdomize
<6> thank you TML, you were correct, i hadnt noticed the tilde
<4> avi, Avinash > You
<1> avi: You need to put that in a .php file, or configure your server to use PHP to parse the file you have.
<7> server has php installed
<1> adughep: If you don't have that directory on your computer, then PHP can't find it... And that would produce those messagess.
<1> avi: Yes, php may be installed, but it only kicks in for files named "....php"
<4> Ok I understand the first part of For each but the part with the => stuff I don't understand what, "The second form does the same thing, except that the current element's key will be ***igned to the variable $key on each loop." that doesn't make much sense to me.
<1> avi: Unless you configure the server to specifically kick in for other files.
<7> the extension is html
<1> TheNinthCut: PHP arrays have "keys" and "values" $array['key'] = 'value';
<7> other pages with php embedded are also on the same server
<1> avi: You can use .htaccess and Files with ForceType to force index.html to be application/x-httpd-php mime type, and then PHP kicks in.
<3> richardlynch :oh you're right you son of a ... !
<3> thanks
<1> avi: Or you can rename it to index.php and configure your DocumentIndex to be index.htm index.php index.html
<7> ok
<3> i looked ... and the directory is there
<3> i just need to figure out how to safely remove the modules
<7> same results with a .php extension
<1> adughep: Find out where your php.ini is, edit it, and add ; in front of the modules you do not need to load.
<1> avi: Then php is not installed/configured correctly...
<7> i think i know maybe the problem
<7> http://lotus-design.org/wercscomm/index.php
<7> it's showing 1.jpg 2.jpg 3.jpg etc..
<7> which there are no files named such
<1> avi: No, I lied. Your script is now 'working' it's just not doing what you want.
<13> !+enter
<14> Don't use the enter key as punctuation. Think in complete thoughts, then type.
<7> ;)
<1> http://lotus-design.org/wercscomm/images/random/2.jpg is a 404.
<1> avi: where are the images, really?
<3> in php.ini, there IS no load section for php modules
<7> correct
<1> adughep: Are you looking at the same php.ini that is referenced in <?php phpinfo();?> run on your machine?
<15> hi there... I am creating a cl*** in PHP5 for handling mySQL functions... The cl*** is okay, but I want to know as to use 'hostname', 'user', 'p***word' and 'database' from a file and not defining it as internal attributes... (and definitely I am not interested in use Pear::DB cl*** =] )
<7> the images are not named like that
<7> one is called header.jpg, header2.jpg, header3.jpg
<1> avi: You have to get the HTML to be the names of the images. The computer cannot read your mind. :-)
<13> arf
<13> avi: Stop abusing enter
<1> foxkid: So just put them in a file <?php $username = 'whatever';?>
<7> Warning: mt_rand() expects parameter 1 to be long, string given in /home/mike/public_html/wercscomm/index.php on line 21
<7> .jpg
<15> richardlynch: yes i tried it.. but when I included them.. the cl*** could not see them...
<15> (sorry for not so good english) =]
<13> avi: Does that tell you something?
<2> $this->attribue = 'value';
<2> that's how you want to refine them in the include
<2> *define
<1> foxkid: You mean the method/function could not see them, because of scope issues.
<1> avi: Go back to using $start = 1; but then cram the 'header' into your print/echo statement.
<7> negative I don't understand "expects parameter 1 to be long"
<15> caffinated: i use it in the external file?
<15> richardlynch: i am understanding you...
<15> I am moving from procedural programming to OOP =/ it is driving me crazy lol =)


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#perl
gst gnomevfssink gentoo
#debian
gentoo Please Recompile with USE
kdetv xgl problems
oowriter2 nfs
#php
flightgear libplibfnt.so
AttributeError getCodecId
css cutlines



Home  |  disclaimer  |  contact  |  submit quotes