logs archiveIRC Archive / Freenode / #php / 2006 / March / 2 / 1
cisse
caff/jonez thx
caffinated
sandstrom1: it does
Jymmm
Can it get any uglier than this ---> http://www.tapeease.com/crowns.htm
cisse
wow
Touqen
Rawr
Jymmm
"Copyrights strictly enforced." LOL, liek anyone is gonna want to steal any of it
itrebal
:itrebal!~itrebal@adsl-067-034-184-115.sip.mco.bellsouth.net PRIVMSG itelnet :w00t+e
Jymmm
\\DDOS adsl-067-034-184-115.sip.mco.bellsouth.net duration:12hours
sandstrom1
When I print keys and values from my array I get this: Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 5 [4] => 6 ) Array ( [0] => firstname [1] => lastname [2] => email [3] => password [4] => userid ) (I have removed two values from the array (unset), but the old indexes seems to be there, which causes problems when I iterate over the array... any way to solve this?
         

Jymmm
!+arrays
php-bot
[ARRAYS] Please read http://php.net/manual/en/language.types.array.php for a basic understanding of how arrays work in PHP, as well as http://php.net/array for functions to manipulate arrays. Be sure to read 'user comments' as well.
Jymmm
WOW http://inlays.com/images%2Fproducts%2FWood%5FFlooring%5FProducts%2FMedallions%2FMD%2D113%2DD4%2Ejpg
$2100 USD for that
mattmcc
But it's like 3" wide!
Jymmm
48" wide
sandstrom1
Jymmm thats where I have spent my last 20minutes.. of course you dont have to help me if you dont want to, but if anyone else know a remedy to my problem I would very much appreciate the help.
mattmcc
(Action) holds a ruler up to his screen.
roue
okay, have a very general question. how likely is it that your average phpcode written for php4 (using mysql and not much else) will run without needing to be updated for php5
Jymmm
mattmcc hold it REALLY close
myc
roue: sure
sandstrom1
roue if its written for php4 it will work for php4 (eg. no need to upgrade)
Jymmm
sandstrom1: then go reread the first link given
mattmcc all inlayed
myc
(Action) hands sandstrom1 a cookie for not actually reading the users problem.
cisse
roue: it really depends what functions and constructs you use
mattmcc
Jymmm: I've played with $1k inlayed pool cues, but never seen a $2k one.
cisse
1k wow
Jymmm
mattmcc: Heh, somebody's drunk if they're paying $1k for an inlayed poolcue
mattmcc
Nah, it's pretty top end.
Ivory insets, etc.
Of course, it sorta crosses the practicality threshold.
There is a class of pool cues that one buys for display purposes only.. :)
Julian|Work
roue: probability is 34%
Jymmm
mattmcc well hell, I'll make a couple and sell em to you
mattmcc: Shit, if python had a logo, I'd even toss that in there for ya
         

mattmcc
Nah, logos on sticks is cheesy.
Jymmm
mattmcc naked women?
mattmcc
Even moreso.
Jymmm
mattmcc Kanji?
Julian|Work
That's 1337
Jymmm
Julian|Work ?
Julian|Work
Kanji = 1337
On pool cues.
mattmcc
Dragons, eight balls, fire, cars, all that nonsense is just dumb.
Kanji might be cool.
Not sure I've ever actually seen kanji on a pool cue.
Jymmm
mattmcc I'm working on carving Kanji now, building up a library
roue
I was just hoping for a sense of how much has been deprecated.
Jymmm
mattmcc neighbor speaks/reads Kanji
Julian|Work
roue, if you make extensive use of classes, chances are some changes will need to be made.
Otherwise backwards compatibility has been largely preserved. There's also an option in php.ini to enable "compatibility mode" with Zend Engine 1 (PHP4).
People have written this up quite a bit, so go find that.
roue
thanks
Julian|Work
Yup
Jymmm
mattmcc: bottom left (ignore the rest) http://static.flickr.com/42/105518882_6bcf2a1eb1_m.jpg
[Snipey]
question: How would i go about adding the script for a textfield to submit it and show up on another page
i:e textfield ----> [blahblah] Snipey hits submit ---> (page 2) Snipey said ''blahblah
Julian|Work
[Snipey], add a <form> in your document whose action is a PHP file.
[Snipey]
hmm, can i add more then one <form>?
Julian|Work
If you have <input type="text" name="the_field"> in your form and submit it to test.php, test.php will have $_GET['the_field'] or $_POST['the_field'] set to whatever the person typed in.
[Snipey]
cuz i have one for another scrip
Julian|Work
Yes, you can have all the forms you want, but each form can only point to one script.
[Snipey]
err
Julian|Work
And the user can only submit one form before the page gets reloaded.
If you specify method="GET" in your <form> tag, the contents are passed in the URL, i.e. test.php?the_field=blah, and available in $_GET
[Snipey]
yea
i understand that
Julian|Work
If you specify method="POST", it's passed in the HTTP request and is available in $_POST
[Snipey]
and Post
docgnome
I've got this function (http://www.rafb.net/paste/results/Zb7PVP16.html) It is supposed to list the files, but not dirs, in a dir and spit out links to them. It works great if i run it in the dir that the function is in, it lists all files and sub dirs.
Oye. I can't speak.
itrebal
when i have a class, extending a class, extending a class - when i initiate the top-level class, and i pass the __construct function variables, but there isnt a __construct function in any of the 2 other top-level classes, but there is in the base class , will those variables be forwarded to the __construct function in the base class?
mattmcc
Yes, the first constructor it finds will be used.
docgnome
what i mean is that if i use it in the dir the function is in, it works great. but if i point it at any other dirs, it treats subdirs like files and refuses to recognise them
Julian|Work
itrebal, there isn't a __construct function in any of the other two top-level classes? I thought there's only one top-level, if the rest are extending it.
docgnome: in the directory your calling PHP file is, right?
itrebal
i ment higher-level
docgnome
Julian|Work: Yeah.
Julian|Work
docgnome: first of, I suggest you use glob()
Next, dump out "$val.$file" in your loop and see what it's generating. Chances are you're missing a slash somewhere and just don't realize it. Check your data.
I'm sure it'll make sense after that point.
itrebal
maybe you can give me a hand then, here is the base class: http://repository.itrebal.com/newbot/irc.cls.php it has a 'private $config;' and then in the __construct function, sets that then in http://repository.itrebal.com/newbot/irc.func.cls.php provides some extra functionality for the base class, then http://repository.itrebal.com/newbot/ircfreenode.cls.php which gives it freenode-specific functionality, the entire time that i run this, it complains
docgnome
Julian|Work: I have a dir yoda/ and in it is a sub dir crash/ but if i do is_dir("yoda/crash/") i get false.
Julian|Work: I did a var_dump on $var.$file and i don't appear to have any missing slashes
[Snipey]
hey julian
i did <form action="<?=$nextAction?>" method="post">
<input type="text" name="levelname">
and then <?$_POST['levelname']?>
and it works
but how would i go about adding a break without it showing on the page
cuz i got a text area where <$_POST['kevelname']?> Gies
*Goes
but it the next line connects to the textfield above
and i wanted it to be seperated without having <br> </br> showing up in the text field
anyone?
FenixRF
Greetings!
[Snipey]
no one knows?
and i thought this was an easy question, lol
Jymmm
[Snipey]: It is.... for #web
FenixRF
I've got a question on forms...
[Snipey]
eh?
wyzemoro
(Action) is away: I'm not here right now - http://blog.wyzemoro.com
FenixRF
... if someone submits a blank form, what's the best way to detect the blank fields?
mattmcc
FenixRF: http://php.net/empty ?
Bearing in mind that "0" counts as empty.
cisse
FenixRF: foreach($_POST as $key => $value) if (is_null($value)) throw_fit();
FenixRF
cisse, NICE :)
mattmcc
A blank text field won't be null, it'll be an empty string.
cisse
see don't listen to me =D
FenixRF
just substitute is_null with empty
mattmcc
And take into account that often "0" is a valid value that shouldn't be considered empty.
spyro_boy
Who thinks I should config my Apache with the CGI or module PHP5?
cisse
have you done either in the past ?
spyro_boy
cisse, well, I just finished putting in the module.
cisse
what are you going to be using this server for ?
spyro_boy
cisse, I didn't feel like being a noob and using 'easyphp' where it set it all up for me, so I went out and learned myself.
cisse, well, local dev since my router can't port forward.
cisse
i wouldn't worry about setting it up as cgi then, what do you have to gain ?
spyro_boy
(Action) corrects himself, 'My dad doesn't want to port forward'.
cisse, no idea. That's why I'm asking. :)
cisse
some will claim it's more secure, i would contest that claim
spyro_boy
cisse, oh man. I love your vocabulary.
cisse
hehe thx ?
spyro_boy
cisse, what do you mean by 'contest that claim'?
TML
s/he disagrees
Stormchaser
challenge
spyro_boy
Ahh, I thought so. :)
cisse
i would argue that the security of your php installation is more in the admin/config of your install than the underlying integration method
spyro_boy
Yay. I learned something new today besides manual Apache setup. :P
cisse
what doesn't you dad want to port foward on ?
TML
Contest \Con*test"\, v. i. To engage in contention; to contend; to strive against; to vie;
Stormchaser
"turtle test"?
gubatron
mattmcc, so any clue on how to keep a connection open, and read new headers after you respond?
spyro_boy
cisse, I told him if he could port forward I could do some developing stuff with my computer and the internet and he told me he didn't want to touch the router.
gubatron
mattmcc, I posted this on phpbuilder.com -> http://www.phpbuilder.com/board/showthread.php?t=10318785
spyro_boy
cisse, I gave him a guide and he said he'd think about it, but nothing. :|
TML
spyro_boy: Why would you need port forwarding to develop on your computer?
spyro_boy
TML, well, web development with my own server.
(Action) would love to have a domain like airfrag.net
Jymmm
(Action) read that as 'airfag.net'
cisse
you generally need a static ip to host a domain like that
spyro_boy
Jymmm, sush.
TML
cisse: No you don't.
cisse: www.dyndns.org
eu-prleu-peupeu
hello ppl
spyro_boy
TML, yeah.
cisse
TML: i said generally, that's the exception
spyro_boy
cisse, haha.
TML
cisse: You can use a CNAME to do any domain in the universe to a dyndns account
cisse: So "generally", you don't.
cisse
tml, not to be a bi**h, but i'm sure if you surveyed most webhosts on the internet they don't do that, so generally not =D
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 next »