@# 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



Comments:

<0> bladhasd: this is NOT a tutorial channel
<0> bladhasd: we're here as a supliment to the manual, if you'd like to learn the very basics of php, I suggest php.net/getting-started
<1> anyone?
<2> I'm having trouble doing " parse_url($HTTP_REFERER) "... my ***ociative arrray which is created is coming up empty. can somebody help me catch the domainname part of the $HTTP_REFERER using parse_url or something else that works?
<3> why on earth aren't there any Debian debs of php5 yet? Ubuntu, Mandriva and all the rest already have their packs, why not Debian, I ask?!
<3> eh
<3> oh, well, thanks and cu
<0> Chicago: $_SERVER{
<0> Chicago: $_SERVER['HTTP_REFERER']
<0> Chicago: error_reporting(E_ALL)
<2> aidan: is that gonna work with php 4.3.11 (GoDaddy shared hosting)
<0> ... is what going to work?
<0> $HTTP_REFERER doesn't exist, $_SERVER['HTTP_REFERER'] is the var you are looking for, and you should have error_reporting(E_ALL) at the top of your script
<4> is it still possible to login if one doesnt know the hostname
<0> bladhasd: no
<0> bladhasd: can you visit a website if you don't know the domain name



<5> ryushe: dotdeb.org
<5> err, the other guy's gone, nevermind
<0> bladhasd: it's more than likely your host will be 'localhost'
<5> You're momma's at localhost, and we're sharing packets.
<1> im having some difficulty with imap_get_quotaroot can anyone help me please?
<5> :P
<2> aidan: parse_url("$_SERVER['HTTP_REFERER']") should create an array.. I want to take $array[host] to get the hostname of the referer... but it keeps coming up empty.
<0> Chicago: could you learn how to do some basic debugging?
<5> Chicago: No, that would cause a parse error.
<0> Chicago: var_dump($_SERVER['HTTP_REFERER']); see if it's not empty
<2> aidam: kuja: I hope it's not empty... anyways.
<5> Hello aidam
<5> :)
<2> sorry bout that aidan
<0> $a = parse_url($_SERVER['HTTP_REFERER']); var_dump($a); there's no need for quotes around the variable, Chicago
<0> kuja; hey :)
<5> lol, I said "aidam", you should cuss me out! :P
<5> I'm going to cook some beef :P
<5> Hope I have enough rice my girlfriend cooked :S
<4> does anyone know how to make it runnable the query.html i.e. i made all the connections but wanna test if it has actually connected
<0> bladhasd: please stop
<0> bladhasd: if you want to learn basic php, then this is not the place. http://php.net/getting-started
<5> Aha, another skip-aheader!
<4> im not asking the question to u
<4> just ignore it
<5> !+u
<6> Surely you mean 'you', not 'u'? The letter 'u' is not a personal pronoun. Talking like this in ##php may get you silenced. For details, /msg php-bot aolbonics
<5> bladhasd: Now it's getting official
<2> aidan, kuja: Does this output look strange for using var_dump($a)??? array(1) { ["path"]=> string(0) "" }
<5> No, doesn't look strange.
<0> Chicago: what was the output of the previous var_dump?
<2> aidan: this is the same as I've been seeing.
<0> bladhasd: you're breaking the channel rules, and you're wasting our time. Either obey the channel rules, or leave, there's no other options.
<0> Chicago: ... how is that helpful to me?
<0> Chicago: WHAT does var_dump($_SERVER['HTTP_REFERER']); give you?
<7> http://bur.st/~mazzanet/dslr/IMGP1182-2.jpg <-- fear my new comms mast
<0> holy ****, mazzanet
<2> aidan: $a = parse_url($_SERVER['HTTP_REFERER']); echo var_dump($a);
<2> aidan: gives me array(1) { ["path"]=> string(0) "" }
<0> Chicago: WHAT IS THE OUTPUT WHEN YOU RUN THE CODE I GAVE YOU TWICE ALREADY?
<2> aidan: I'm missing something, lemme reread it again.
<0> <0> Chicago: WHAT does var_dump($_SERVER['HTTP_REFERER']); give you?
<2> aidan: I must be stupid. This is what I think is the answer to your question. "array(1) { ["path"]=> string(0) "" }"
<0> jesus ****ing christ.
<2> lol
<2> <--- having intelligence meltdown
<0> Chicago: do you see the code? can you look at it?
<2> aidan: yes, I can
<0> Chicago: then can you please put that code in a file, and run it?
<0> Chicago: is that so hard?
<2> aidan: I can
<0> Chicago: and the output of that single line is ...
<8> oi
<2> I'm slow
<2> it's coming.
<4> does anyone know where to get a free php compiler
<4> for windows
<2> bladhasd: go checkout gentoo.org and get a linux. :)
<7> aidan: 6m of gal pipe
<9> morning



<9> i'm importing text from an rss feed, but an extra char is being printed out in my html file
<2> aidan: I did what you said, and double checked. Here's a pastebin to the code I ran (the two lines you already gave me twice) http://pastebin.com/549584. The output of that single line is "array(1) { ["path"]=> string(0) "" }"
<9> ' becomes '
<2> aidan: maybe I need better directions... am I being stupid?
<10> http://flyingfrontier.com/paste/paste.php?show=10
<10> Why do I get the warning?
<2> aidan: even when I use error_reporting(E_ALL);, it just shows the array has 1 element, $data and it is a string of size zero.
<11> ciao ragazzi posso chiedervi una cosa
<10> Anyone?
<0> Chicago: yes, you are being stupid. The output of that line is NOT what you are saying it is.
<2> hehe
<2> aidan: so what am I doing wrong?
<0> I have no idea. My initial guess is being stupid.
<0> if you put this one line in a file, <?php var_dump($_SERVER['HTTP_REFERER']); ?>, what does it output?
<0> if you say "array(1) { ["path"]=> string(0) "" }" then you are NOT running that code.
<0> anyway I'm off.
<2> aidan: why is my HTTP_REFERER NULL?
<12> try $_SERVER['HTTP_REFERER'] or register_globals = on (bad idea this one :D)
<2> aidan: thanks for you help :)
<13> hi, anybody have a log reader script ?
<13> *konw of, point me to*
<14> what md5 function produces a string like this: $ircservices$07fas0fd9sa70fdsa7ds
<15> crc ?
<15> hrm
<15> @i[5..$#i] <-- anyone know how i would do the $#i in PHP ?
<14> FragtioN: is it an array?
<15> yeah
<15> $i
<15> would like to show all items from 6th onwards
<14> if you make it an array, you can use a foreach loop
<14> hrmm
<14> I don't know
<15> yeah
<15> in perl its just @i[5..$#i]
<5> FragtioN: And what does that do/
<5> If you're looking for slicing arrays, use array_slice()
<15> no
<15> how would i list items in an array from the n'th item to the total number of items in the list
<16> hello
<15> in perl
<16> cool
<15> it would be @array[n..$#array]
<16> he he
<15> where n = starting value (0 onwards)
<5> FragtioN: Like I said, use array_slice().
<5> Think about it.
<15> ok..
<15> lemme read into that
<5> If you don't want to foreach a slice (which you really shouldn't), you may use a for loop.
<15> yeah
<17> How do I say if "$_POST['integer']" is an integer, then echo 'Integer';?
<17> whatever value I put in the form, it identify it as a non integer
<5> thunder000: if (ctype_digit($_POST['integer'])) { echo 'Integer'; }
<17> kuja: can it be done with is_int($int) ?
<5> No
<5> Because PHP will stick values in $_POST as strings.
<5> It can only be done with a regex or ctype_digit()
<17> thanks kuja :)
<5> np
<18> is there any podcast dedicated to php ?
<5> vimman: http://podcast.phparch.com
<5> Might want to google next them.
<5> s/them/time/
<17> how do I say if (ctype_digit($_POST['integer'])), then increase it by 4 ?
<5> $_POST['integer'] += 4
<5> rtfm
<19> god i could of done with that function the other day didnt know it existed ;x
<20> kuja:do you manage your apache server
<5> "manage?" .. No. I setup a server, and nothing fails for me to manage anything.
<21> can anyone tell me if I can use foreach() to iterate through two arrays at the same time?
<22> $$temp <-- ($$) ?
<5> jessta: $foo = array('x', 'y'); $bar = array('y', 'z'); foreach ($foo as $k => $v) { echo "$k\n$bar[$k]"; }
<23> kuja very bad way you are showing
<23> what if the array actually is non-numerical or there is different key names?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

x200 aiglx
#ubuntu
damn nf0 viewer
#linux
1394raw kernel
#css
madwifi debian dwl-g650+
#linux
snd-via82xx unknown symbol
snd_mixer_load failure



Home  |  disclaimer  |  contact  |  submit quotes