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.29 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-21
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
Next >
[00:00]<lzysdrg>-hmm
[00:00]<lzysdrg>-sth changed....
[00:00]<wjlllrws>+It's the Matrix
[00:00]<zdzxzzmfdgzx>+xshad: I thought the whole point of short_tags OFF was to play nice with <?xml
[00:00]<jnnnc>-im trying to stretch an image but it doesnt seem to be working
[00:00]<jnnnc>-http://www.cristelmedia.com/previews/titanspeed/ibox/?w=200
[00:00]<lzysdrg>-the page is loading, BUT not importing style.css at all
[00:00]<wsxrm>+richardlynch sure ;)
[00:01]<jnnnc>-http://www.cristelmedia.com/previews/titanspeed/ibox/index.phps
[00:01]<zdzxzzmfdgzx>+So are you saying <?xml with short_tags OFF gives that error?
[00:01]<vqqf>+Hey all, I am regex stupid, I need a if statment that says if($a) and if $a has a space in it, then return true
[00:01]<vqqf>+Can someone give me such a regex
[00:01]<wjlllrws>+!+mre
[00:01]<lxl-2jv>+[MRE] 'Meal, Ready to Eat' used by the military in the field and others during a disaster as they have a long shelf life. But you probably wanted 'MRE - Mastering Regular Expressions' the bible of regex http://www.oreilly.com/catalog/regex2/ Use this utility for learning/understanding/troubleshooting your RegEx --> http://www.weitz.de/regex-coach/
[00:01]<lzysdrg>-richardlynch: /me? yes
[00:02]<jnnnc>-its only displaying one pixel of the image
[00:02]<zdzxzzmfdgzx>+t22l: if (strstr($a, ' '))
[00:02]<vqqf>+Thank you
[00:02]<wsxrm>+richardlynch I've just pointed duckx0r's way
[00:02]<zdzxzzmfdgzx>+ACTION is lost
[00:03]<jnnnc>-is there another way I should be doing it?
[00:03]<zdzxzzmfdgzx>+Jezek: error_log("w1 is $w1"); in the middle there and see what number you are using for $w1
[00:04]<jnnnc>-in the middle..
[00:04]<jnnnc>-like. .anywhre in the middle?
[00:04]<jnnnc>-ok i put it in..
[00:05]<wsxrm>+ACTION lagging :'(
[00:05]<zdzxzzmfdgzx>+Jezek: So now in your Apache error log, what is $w1?
[00:06]<jnnnc>-this is the last error I got
[00:06]<jnnnc>-PHP Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/cristel6/public_html/previews/titanspeed/ibox/index.php on line 13
[00:06]<jnnnc>-16:54
[00:06]<yvzn2rf>+ Davey__: whats with the lack of Davey|*s?
[00:06]<jnnnc>-i didnt get a new error when i reloaded
[00:07]<zdzxzzmfdgzx>+Jezek: So maybe imagecreatetruecolor is not working... take out the header line, temporarily, and see PHP errors in line, along with the gobbledy-gook that is the JPEG output.
[00:07]<znjzznw>-what is the best script for converting html to pdf, i want to give PDF link for many brocure pages that marketing created
[00:07]<jnnnc>-ok
[00:07]<jnnnc>-mmm goobledy-gook
[00:08]<jnnnc>-you're making me hungry
[00:08]<muzmjaqc7>+hi can someone please explain to me why I got "Cannot modify header information - header already sent by (output started at E:\php\common.php:16) on line 24" error? This is my link http://hashphp.org/pastebin?pid=7097
[00:08]<jnnnc>-http://www.cristelmedia.com/previews/titanspeed/ibox/?w=200
[00:08]<yvzn2rf>+!tell Murdoc2k6 about headers
[00:08]<zdzxzzmfdgzx>+!tell Murdoc2k6 about headers
[00:09]<jnnnc>-i see a lot of goobledy-gook
[00:09]<zdzxzzmfdgzx>+Jezek: What do you see before all that?... Like any PHP error messages, or a value for $w1
[00:09]<jnnnc>-err no
[00:10]<||aw>+CREATOR: gd-jpeg v1.0 (using IJG JPEG v62)
[00:10]<zdzxzzmfdgzx>+Jezek: Change the error_log to echo, sorry.
[00:11]<||aw>+Jezek: try sending a content-type header
[00:11]<jnnnc>-..
[00:11]<jnnnc>-richardlynch told me to remove it..
[00:11]<zdzxzzmfdgzx>+||cw: I've asked him to take that out until we find out why his image is only 1 pixel...
[00:11]<||aw>+ah ok
[00:11]<||aw>+missed that bit
[00:11]<||aw>+looks like no error, and it is a jpeg
[00:11]<zdzxzzmfdgzx>+Debugging is an Art Form :-)
[00:12]<zdzxzzmfdgzx>+It is a valid jpeg, just not the one he wants. :-)
[00:12]<jnnnc>-bah what is this
[00:12]<jnnnc>-w1 is
[00:12]<jnnnc>-thats all it says
[00:12]<zdzxzzmfdgzx>+Jezek: That's telling you that $w1 is blank, and is not what you want, and that is why you have a 1-pixel imagecopyresample'd
[00:13]<jnnnc>-but i put ?w=200 :(
[00:13]<zdzxzzmfdgzx>+Didja forget the ?w=42 bit?
[00:13]<jnnnc>-no
[00:13]<||aw>+Jezek: $w = $GET['w'] ?
[00:13]<jnnnc>-i removed like everything and it worked
[00:14]<muzmjaqc7>+itrebal: I did not have any header () tags or start any sessions. I don't understand why I would have this error. (link: http://hashphp.org/pastebin?pid=7098)
[00:14]<jnnnc>-imagejpeg($image_p, null, 100); is like clearing the value or something
[00:14]<drvvdaa>+Murdoc2k6: You're calling setcookie.
[00:15]<jnnnc>-i remove it and w1 shows as 42. put it back in and it shows as blank
[00:15]<yvzn2rf>+Murdoc2k6: cookies have to be sent before header
[00:15]<yvzn2rf>+s
[00:15]<drvvdaa>+Murdoc2k6: The error in question is the single most verbose error message PHP has. It tells you both where the error occured, where the cause of the error is, and the reason for the error.
[00:15]<zdzxzzmfdgzx>+Jezek,||wc: I'm getting different result every time I reload... Sometimes $w1 is 200, sometimes it's blank. This is whack.
[00:15]<jnnnc>-well im changing the page
[00:16]<dzzznzdjusn>+mattmcc: haha
[00:16]<jnnnc>-it only shows up when I remove imagejpeg($image_p, null, 100);
[00:16]<zdzxzzmfdgzx>+mattmcc: And you can blame me for it knowing in what line the output first started :-) One of my first "Feature Requests" to bugs.php.net, oh so long ago.
[00:16]<gyrayg>+Is there an easy way to get apache to run php exec commands under a certain user?
[00:16]<anaa>+what would a "\\1" mean?
[00:16]<gyrayg>+i guess suexec ?
[00:17]<dzzznzdjusn>+cekc: in preg_* function?
[00:17]<zdzxzzmfdgzx>+Niacin: suexec and easy do not go together.
[00:17]<jnnnc>-bbah
[00:17]<anaa>+Dangermouse: sure
[00:17]<jnnnc>-i removed the null, and 100 and it works
[00:17]<gyrayg>+richardlynch: cut a long story short. Trying to have php run gpg and encrypt a file
[00:17]<anaa>+Dangermouse: I am not sure of the context yet, just knowing preg uses it helps
[00:17]<zdzxzzmfdgzx>+Niacin: One quick hack is to write a shell script as that user, with the suid bit set (see man chmod) and then you can exec that as any user. But be DAMN sure that script only does what you want it to do, and has no holes.
[00:18]<gyrayg>+yea this is what i was thinking
[00:18]<jnnnc>-how would that afffect it
[00:18]<yvzn2rf>+"and if you walk away, who's gunna stay."
[00:18]<gyrayg>+well thanks richardlynch
[00:18]<zdzxzzmfdgzx>+Jezek: Maybe instead of NULL, you want ''
[00:18]<muzmjaqc7>+mattmcc: so then where can I set the cookie? what do you mean by "after the headers"?? cause in the script I never sent any headers except for setcookie which i must do = /
[00:18]<dzzznzdjusn>+cekc: Don't know how to explain it but if you had the expression: (.+)(.+) \\1 would be what was matched in the first group, \\2 in the second
[00:18]<yvzn2rf>+ Murdoc2k6a blank line is probably being sent
[00:18]<jnnnc>-nope
[00:18]<jnnnc>-w is blank
[00:19]<dzzznzdjusn>+cekc: http://www.php.net/preg-replace for more info
[00:19]<wnzyw>-Hey, I was wondering if anyone has an idea how to replace a row within an array like a MySQL update instead of having to re-create the array.
[00:19]<zdzxzzmfdgzx>+Jezek: It is crazy that w changes back and forth on you...







