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: 1952.35 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-31
Pages: 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
51
52
53
Next >
[00:00]<wjlllrws>and turn the warnings to E_ALL!
[00:00]<cjdluvnzwzzd>oh never noticed the typo ty
[00:00]<cjdluvnzwzzd>k
[00:00]<yvzn2rf>ComputerWarm: its alright if you spell poorly, you just have to spell poorly consistantly :)
[00:01]<cjdluvnzwzzd>lol not normally but today is one of those days. its to freaking hot
[00:01]<jdddd>lol
[00:02]<vnaaus>i am using a php to display some text on my website .. i'm not sure if i should use echo or print?
[00:02]<yvzn2rf>Jymmm: did you get the little joke?
[00:02]<wjlllrws>teccus: echo
[00:02]<vnaaus>Wolf: ok thanks.. how come though?
[00:03]<yvzn2rf>there really isn't much of a difference
[00:03]<wjlllrws>bceause echo is slighly faster than print
[00:03]<vnaaus>ok thanks
[00:03]<yvzn2rf>and echo can take multiple parameters
[00:03]<yvzn2rf>or not
[00:03]<sggsgy>What can print do that echo can't ?
[00:03]<txnjzd>print returns a value
[00:03]<txnjzd>it's a function, so you can use it in expressions
[00:03]<sggsgy>Ah
[00:03]<zgmznacw>Hey guys. I was messing with PHP sockets, and I ran into this problem. For some reason FireFox POST information gets seperated from the HEADER. This however doesn't seem to happen with IE. Is there anything I can do to overcome this?
[00:03]<txnjzd>e.g. $foo && print("something");
[00:03]<drvvdaa>Which is nice trivia to know, but practically irrelevant.
[00:04]<wjlllrws>no, print is language construcl like echo
[00:04]<zxnzvnz>i thought print was a construct while echo wasn't
[00:04]<txnjzd>ok, "behaves like a function"
[00:04]<wjlllrws>lol
[00:06]<wjlllrws>huwwo
[00:06]<vnaaus>wolf, what chars do i have to escape when using echo?
[00:07]<wjlllrws>huh?
[00:07]<wjlllrws>Wha do you mean ":what characters to escape"?
[00:07]<vnaaus>whooops
[00:07]<sggsgy>I suppose he want a list á la " \
[00:07]<vnaaus>what chars do i need to excape
[00:07]<vnaaus>i know of " but not sure what else
[00:07]<wjlllrws>!+enter
[00:07]<lxl-2jv>Don't use the enter key as punctuation. Think in complete thoughts, then type.
[00:08]<wjlllrws>teccus: RTFM
[00:09]<vnaaus>wolf, i am on the php.net echo page and i went there before asking the question
[00:09]<vnaaus>it doesn't list them
[00:10]<wjlllrws>o.O
[00:10]<sggsgy>pwned :)
[00:10]<wjlllrws>teccus: Maybe there's a reason for that: They don't need escaping.
[00:11]<afnwnffyjvv>Are you echoing user input?
[00:11]<vnaaus>well its basically a html tag like:
[00:11]<afnwnffyjvv>In which case htmlspecialchars may be what you want?
[00:11]<vnaaus>echo "<img src=\"test.jpg\" />
[00:11]<vnaaus>";
[00:11]<vnaaus>but its not working
[00:11]<wjlllrws>!+enter
[00:11]<lxl-2jv>Don't use the enter key as punctuation. Think in complete thoughts, then type.
[00:11]<wjlllrws>teccus: Works fine for me
[00:12]<tml>teccus: What do you mean by "its not working"? What is it doing?
[00:13]<sggsgy>Is there a +!doesnotwork ? Becaus there really should be one.. and preferably include some kind of physical harm to the target person
[00:13]<vnaaus>one sec i'll copy it
[00:13]<wjlllrws>!+doesn't work
[00:13]<sggsgy>!+
[00:13]<lxl-2jv>Look buddy, doesn't work is a strong statement. Does it sit on the couch all day? Does it want more money? Is it on IRC all the time? Please be specific! Examples of what doesn't work tend to help too. Finally, showing us the code is helpful (after you've explained your problem). /msg php-bot pastebin for more information
[00:13]<afnwnffyjvv>Does <img src="test.jpg" /> appear in the source of the page you are outputting? If it's just that the image isn't loading php isn't the problem
[00:14]<sggsgy>Ah
[00:14]<vnaaus>echo ("\"Peter“);
[00:14]<vnaaus>?>
[00:14]<vnaaus>let me show u the code:
[00:14]<wjlllrws>!+u
[00:14]<lxl-2jv>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
[00:15]<czzznzz>hi
[00:15]<vnaaus>echo ("<img class=\"wrapleft\" src=\"test.jpg\" alt=\"Peter & Jake\" />");
[00:15]<vnaaus>do i haev to escape & somehow?
[00:15]<tml>No
[00:15]<d2g_wo>i want to parse html docs and get out some information ( data mining ). i thought of using tidy but its seems to be deficult under Debian. any other sujestions ?
[00:15]<tml>teccus: What is it doing?
[00:16]<afnwnffyjvv>Only HTML complains about & as opposed to & for standards sake
[00:16]<vnaaus>well on my site: in the html it is just displaying: echo ("\"Peter"); ?>
[00:16]<rrvrnjrj>teccus: why aren't you using single quotes for that string? e.g. echo '<img class="wrapleft" src="test.jpg" alt="Peter & Jake" />'; instead...
[00:16]<tml>teccus: Did you forget '<?php' ?
[00:17]<vnaaus>Ant, the php manual always used "
[00:17]<rrvrnjrj>The php manual also covers single quotes, but alas...
[00:17]<vnaaus>TML, nah i've got that
[00:17]<vnaaus>i'll try single quotes
[00:17]<wjlllrws>!tell teccus about strings
[00:18]<wjlllrws>you might want to look and read that
[00:18]<tml>teccus: The fact that you're seeing the word 'echo' in the browser tells me you're doing something very, very wrong -- and it has NOTHING to do with quotes.
[00:18]<vnaaus>now with the single quotes its displaying in the html: echo ('\"Peter');
[00:19]<vnaaus>why is it displaying at that point?
[00:19]<afnwnffyjvv>Are you sure you haven't broken out of PHP?
[00:19]<wjlllrws>teccus: Um... Do you have webserver installed?
[00:19]<afnwnffyjvv>And is it being parsed by PHP
[00:19]<vnaaus>Wolf, i don't.. but i use webhosting i pay for
[00:19]<wjlllrws>o.O
[00:19]<wjlllrws>teccus: is your page .php or .html?
[00:19]<tml>teccus: Where is your page located?
[00:20]<vnaaus>.php
[00:20]<tml>teccus: Give us the URL to your page
[00:20]<vnaaus>i can't, its a company site which has sensitive info on it, employee only thing
[00:20]<wjlllrws>O.O
[00:20]<afnwnffyjvv>Can you post the full source in a pastebin somewhere? of that page
[00:21]<tml>I'm so sick and tired of that answer
[00:21]<jlvye0z>What is the easiest/best way of disabling magic_quotes_gpc without access to php.ini?
[00:21]<rrvrnjrj>teccus: create a new file, call it test.php. Inside it put only this code: <?php phpinfo(); ?>
[00:21]<wjlllrws>optiz0r: IIRC, you can disable it in .htaccess







