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-07-18
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
Next >
[02:26]<grddrduvn>ack- the server is a paid host
[02:26]<dpdzj>try phpinfo()
[02:26]<dpdzj>see if its enabled that way
[02:28]<grddrduvn>ok...what am i looking for?
[02:29]<grddrduvn>all relatively new to me
[02:29]<grddrduvn>but im learning quickly
[02:30]<fsnz>hello
[02:30]<ezzjz>GD Library
[02:31]<grddrduvn>hey gimp
[02:31]<rms>Question: is there a way to get all request headers? PHP (version 5), but not running with apache
[02:31]<dpdzj>gamma, do you see a big long page of different extensions
[02:31]<drvvdaa>ads: They're held in $_SERVER.
[02:31]<grddrduvn>yup
[02:31]<dpdzj>var_dump($_REQUEST)
[02:31]<rms>mattmcc: along other stuff, yes
[02:31]<drvvdaa>ads: Anything starting with an HTTP_ is a request header.
[02:32]<grddrduvn>aha!
[02:32]<dpdzj>ok, look for GD
[02:32]<grddrduvn>GD
[02:32]<dpdzj>found it?
[02:32]<grddrduvn>found it
[02:32]<rms>hmm
[02:32]<dpdzj>cool, you have the godly powers of imaging!
[02:32]<grddrduvn>yay
[02:32]<rms>headers are case insensitive, or?
[02:32]<drvvdaa>Yeah.
[02:32]<grddrduvn>where can i find examples of gd use?
[02:32]<dpdzj>erm
[02:33]<drvvdaa>Gammamute: Countless googleable articles, I'd imagine.
[02:33]<drvvdaa>'php image manipulation' is probably a good phrase.
[02:33]<dpdzj>http://www.phpfreaks.com/tutorials/105/0.php
[02:33]<grddrduvn>sweet
[02:33]<grddrduvn>all the help's appreciated, guys
[02:33]<rms>hmmm
[02:34]<rms>mattmcc: can i be sure, that every "_" in $_REQUEST is a "-" in the header name? ;-)
[02:34]<drvvdaa>ads: Nothing in $_REQUEST is a header, that's only request data.
[02:34]<rms>mattmcc: aeh, ok, anything starting with HTTP
[02:35]<drvvdaa>In $_SERVER keys though, yes, hyphens in HTTP headers become underscores.
[02:35]<rms>s/REQUEST/SERVER/
[02:35]<rms>too long reading docu
[02:35]<rms>mattmcc: thanks, i will try
[02:35]<drvvdaa>In PHP? Why on earth?
[02:36]<drvvdaa>There are plenty of perfectly good proxies out there.
[02:36]<rms>other shoot would be C
[02:36]<dpdzj>imho, this is not what php is for
[02:36]<dpdzj>can you not use an already-written proxy?
[02:36]<rms>mattmcc: because php is already available on the box and we don't have much memory and hd space available
[02:36]<rms>beside this: i need to add some extra heders
[02:36]<dpdzj>php garbles up memory =(
[02:37]<drvvdaa>ads: Maybe a better solution would be to find a square hole for your square peg.
[02:37]<dpdzj>aye
[02:37]<dpdzj>do you want a web proxy or a proxy proxy
[02:38]<rms>ok, it is not really a (caching) proxy, it should only request some pages from a backend and deliver the content to the client, thats all
[02:38]<grddrduvn>also is there a built in function for ld5 encryption or do you have to write your own?
[02:38]<dpdzj>is it a fancy proxy or are there going to be set pages coded in that you'll be serving up
[02:38]<rms>it's working nice so long, i just want to handle all headers to the backend now
[02:38]<dpdzj>i.e. you dont have to rewrite every url for example
[02:39]<rms>DPyro: i don't have to rewrite anything (ok, except 30x responses, but thats just an url)
[02:39]<dpdzj>honestly, the best solution in the long run is just pipe the raw data to the backend
[02:39]<grddrduvn>pyro: me?
[02:39]<dpdzj>no, ads =
[02:39]<dpdzj>=)
[02:39]<grddrduvn>lol
[02:39]<dpdzj>gamma, there are hashing functions
[02:40]<grddrduvn>yeah? I was hoping so
[02:40]<rms>DPyro: ok, how to get raw header/content? ;-)
[02:40]<dpdzj>gammamute: i see md5, i dont know about ld5
[02:40]<grddrduvn>er
[02:40]<mnp2dvn>yes, first set it to not sticky and the hide it
[02:40]<dpdzj>ads: well, honestly, i dont know how to do that
[02:40]<wzzrgv>Hello. I am working on a site for a realestate agent. I want to use the mysql blob type to store images for each of his listings, then display those images on the site using the html <img> tag. Anyone have an idea how to select the blob type into the <img> tag?
[02:40]<grddrduvn>sorry doing 30 things at the same time
[02:41]<frufgdrgg>mhhh.. if i have an syntax error in my script the apache/php interpreter don't trows an warning / error ?!
[02:41]<dpdzj>imho i would have written a java program that accepts connections and pumps out the data to an output connection to your backend
[02:41]<xrwcrfjjryn>wgrant, you'll have to make a script to print the appropriate image type, then call it using <img src="getimage.php?id=whatever">
[02:41]<dpdzj>wgrant: thats a can of worms =)
[02:41]<ajfmnz>wgrant, you would need src="displayImage.php?id=1234" for example
[02:41]<rms>DPyro: ;-)
[02:41]<ajfmnz>but storing images in mysql is not a great idea
[02:41]<xrwcrfjjryn>wgrant, far better to store images as files in the agent's directory
[02:42]<dpdzj>wgrant: you have to call the header, i dont remember which one
[02:42]<wzzrgv>hawkaloogie, I want to eliminate possibility of orphaned files when records are deleted.
[02:42]<dpdzj>then you need to put out the raw data
[02:42]<rms>DPyro: so i think, i will stick with my already working solution
[02:42]<wzzrgv>right. set the mime type and print the file...
[02:42]<xrwcrfjjryn>wgrant, put a list of images in the DB, and delete those images?
[02:42]<wzzrgv>I think that will work.
[02:42]<dpdzj>ads: lol, i dont recommend rewritting what works either =)
[02:42]<rms>DPyro: hehe
[02:42]<dpdzj>ads: um, youll have to ask a higher up than me
[02:43]<dpdzj>ads: i dont know how to send the header information as you received it
[02:43]<dpdzj>ads: truthfully, that might even be up to apache
[02:43]<rms>wgrant: with real databases and triggers you could just put deleted records into another table and let a cronjob cleanup the orphaned files
[02:43]<wzzrgv>hawk,, no... when the agent deletes the record for the listing, I don't want the listing's jpg files to be possibily orphaned.
[02:43]<dpdzj>ads: or whatevre server you're runnign
[02:43]<rms>DPyro: lighttpd
[02:43]<grddrduvn>DPyro: what was that md5 function called?
[02:43]<wzzrgv>ads: good.
[02:43]<rms>apache is far to big for the box
[02:43]<dpdzj>gammamute, im pretty its caleld md5 =)







