IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-12
Pages: < Prev
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Next >
[16:05]<sugmnv>rutski89: I'm cowfused, what led you to that?
[16:05]<mnznc_>xshad, ufff :/
[16:05]<mnznc_>what about function names?
[16:05]<rcudrge>it's liek that throughout the file. For some reason it is adding blank lines after every line
[16:05]<tjufgg>what do you mean "for some reason"
[16:05]<tjufgg>There is a reason and it's clear,
[16:05]<fusxuyrr>is there a goto yet in the language?
[16:05]<zuvscyon>sundev: Home.php does a require on CM.php, CM.php does a requre on connection.php, connection.php has that if statement
[16:06]<rcudrge>yeah? why is that
[16:06]<jxyj>akumanz: how does the original file looks like?
[16:06]<tjufgg>akumanz: file() doesn't remove the newline
[16:06]<jxyj>thats it!
[16:06]<tjufgg>and you're/he is imploding with a newline as the delimiter
[16:06]<sugmnv>rutski89: that if statement is fine. if you are using sessions.
[16:06]<tjufgg>there by adding an additional newline at every line
[16:07]<rcudrge>:O
[16:07]<jxyj>replace $delim in the implode function with ""
[16:07]<rcudrge>i see
[16:07]<mnznc_>function names are NOT case-sensitive
[16:07]<tjufgg>derek_: no they aren't
[16:07]<zuvscyon>sundev: not if the backend session code is failing to save the session, which is definitely what's happeening
[16:07]<tjufgg>How many times are you going to repeat that?
[16:07]<mnznc_>I said it just once
[16:07]<sugmnv>rutski89: you may have something there. :)
[16:07]<rcudrge>repeat what
[16:08]<zuvscyon>sundev: yup :) reading the session code now
[16:08]<tjufgg>derek_: okay you are right
[16:08]<tjufgg>but why do you keep complaining about case-sensitivity? That the way php handles it (irregularly). Deal with it.
[16:08]<rcudrge>anyway that works ohio
[16:09]<rcudrge>was just delimiter
[16:09]<jxyj>fine...
[16:09]<_dugk_>I've got a question if anyone's able to help: I moved some code into a new page and then require() 'd that page. Now the color and positional information for that section seems to not work properly
[16:09]<_dugk_>any ideas?
[16:10]<rcudrge>anyway
[16:10]<rcudrge>bye
[16:10]<byre>Touqen: You don't know that...
[16:10]<rrdrdr>I do!
[16:11]<byre>enygma: PM?
[16:12]<mnznc_>You are <?php echo $_POST["age"]; ?> years old!
[16:12]<mnznc_>is that valid?
[16:12]<mnznc_>it shows blank in place of $_POST["age"]
[16:13]<czzygzzz>and what's age= in the url?
[16:13]<byre>derek_: Yeah, that's valid, though you might want to check if $_POST['age'] is set first.
[16:13]<mnznc_>set?
[16:13]<czzygzzz>or hang on
[16:13]<wsxrm>in the URL would be $_GET O.o
[16:13]<byre>derek_: Yes, set. http://php.net/isset
[16:13]<zzzj>should i use htmlentities() after I read a url that a user entered on a form ?
[16:13]<fusxuyrr>let's say a function creates the variable $socket, how will i be able to access it from the outside?
[16:13]<mnznc_>well its being pass on from a form
[16:13]<czzygzzz>yeah i just realised;)
[16:13]<byre>Fushuing: Return it.
[16:13]<fusxuyrr>how?
[16:13]<wsxrm>derek_ with an input named 'age', and form method = post ?
[16:14]<fusxuyrr>function blabla($a,$b) { $socket = blabla; }
[16:14]<mnznc_>xshad, that's right
[16:14]<byre>Fushuing: With return? heh
[16:14]<byre>http://php.net/return
[16:14]<||aw>garo: if you plan on echoing it back at the browser, yes
[16:14]<fusxuyrr><-- complete noob on OOP
[16:14]<wsxrm>derek_ where's the code ?
[16:14]<mnznc_>this is OOP?
[16:14]<wsxrm>pastebin it somewhere
[16:14]<||aw>garo: usualy better to only do it when you echo it
[16:14]<mnznc_>xshad : http://www.w3schools.com/php/php_forms.asp
[16:14]<mnznc_>xshad, the first form and the corresponding php
[16:15]<wsxrm>your code, this one at w3s works O.o
[16:15]<zzzj>||cw: I'm going to place it in a <a href="<?php echo $url;?>"
[16:15]<_dugk_>is there some sort of caveat with using require() and styles ?
[16:15]<mnznc_>xshad, its the same
[16:15]<mnznc_>I just copied it..
[16:16]<mnznc_>to test
[16:16]<_dugk_>[styles for positioning as well as fonts, etc]
[16:16]<jxyj>i want to send an email to an address with a latin1 char("ß"). and i get an request from the mail server that the mail-address is not valid, whats to do?
[16:16]<mnznc_>can email addresses have "ß"?
[16:16]<||aw>ohio: IIRC that char is not valid in an email address
[16:16]<tjufgg>email address don't support latin 1 chars
[16:16]<tjufgg>well that particular chars
[16:17]<wsxrm>derek_ well, it should work :)
[16:17]<jxyj>maybe "ß" is in utf8 ??
[16:17]<fusxuyrr>return = ends script?
[16:17]<mnznc_>xshad, not working. Could it be some setting?
[16:17]<_dugk_>my require() ignores half my styles... why?
[16:17]<wsxrm>what are you getting? "You are years old." ? or a blank page?
[16:18]<mnznc_>Welcome .
[16:18]<mnznc_>You are years old!
[16:18]<byre>okay, back.
[16:18]<svrggd>hello!
[16:18]<wsxrm>you _MUST_ submit the form, I think that you're tring to call it directly
[16:19]<byre>Fushuing: A function isn't OOP... if it's in a class, then it's a method of the class, and is OOP.
[16:19]<svrggd>Can I use return within the class's constructor?
[16:19]<byre>stanny: No.
[16:19]<mnznc_>xshad, directly? how?
[16:19]<wsxrm>http://localhost/welcome.php
[16:19]<svrggd>BigE, damn. But thank you anyway.
[16:19]<mnznc_>xshad, the code is as it is
[16:20]<mnznc_>xshad, noo.. lol
[16:20]<mnznc_>xshad, I click the submit button
[16:20]<byre>stanny: That's really bad code design if you need to return from a constructor. What are you trying to do?
[16:20]<fusxuyrr>BigE: okies







