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-24
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
Next >
[04:19]<cdrnjw>if its like 10-12 hours later then go ahead ... inbetween I will probably be not so responsive.
[04:19]<suzpmun>CyaNox, im better then tac help me :P
[04:19]<cdrnjw>surfdue: Your problem is usually solved by correct error handling of your mysql queries.
[04:19]<suzpmun>:|
[04:19]<suzpmun>meaning.
[04:19]<suzpmun>;P
[04:20]<dgflxygus>Hello all
[04:20]<tjufgg>surfdue: It means don't pass invalid mysql resources to your functions
[04:20]<yvzn2rf>surfdue: this is simple, whats a resource
[04:20]<yvzn2rf>surfdue: explain to me a resource
[04:20]<suzpmun>:|
[04:20]<suzpmun>what?
[04:21]<yvzn2rf>a resource is what is returned by the query, or by opening a mysql connected (its also used other places)
[04:21]<yvzn2rf>s/connected/connection/
[04:21]<suzpmun>$result = process_user($email, $pass);
[04:21]<suzpmun> if(mysql_num_rows($result) > "0") {} $result = safe_query("SELECT * FROM users WHERE email='".$email."' AND password='".$pass."'");
[04:21]<asjpv>how do I print a "#"
[04:22]<asjpv>oh.. sorted.
[04:22]<yvzn2rf>surfdue: the only way that will work, is if in there you have return mysql_query(....
[04:22]<jdddd>print "#"
[04:22]<suzpmun>itrebal sorry they are 2 lines
[04:22]<suzpmun>itrebal, the problem is that when no rows are affected it shows that error
[04:22]<dgflxygus>I'm looking to setup a LAMP box, can anyone reccommend some virtual host mangement software to put on it please?
[04:23]<suzpmun>there is a way to fix this? i even put an if does the same thing..
[04:23]<yvzn2rf>surfdue: look at the error handling of mysql errors, i cannot help past that, you're going to have to ask around for further hlep
[04:27]<cdrnjw>Delphinus: SSHD
[04:27]<tjufgg>Delphinus: ##php is not google
[04:27]<tjufgg>##PING
[04:28]<rpryc>!search php howto
[04:28]<rpryc>:(
[04:28]<rpryc>@locator php database howto
[04:28]<dgflxygus>yeah i am googling :) but thought might be some reccomendations for some good ones in here from people that actually use it
[04:28]<tjufgg>i think it's beer thirty
[04:29]<yvzn2rf>Touqen: i think its 2 beer thirty
[04:29]<yvzn2rf>afaik: what are you trying to do?
[04:29]<rpryc>bein silly
[04:29]<nnzzpznn>$mime = finfo_file(finfo_open(FILEINFO_MIME), $uploadfile); <-- that isn't working for me, $upload is a variable containing the complete path to the file i want to get info on. any ideas?
[04:29]<yvzn2rf>@locator php database howto
[04:31]<grgjvnax>what does api stand for?
[04:31]<nnzzpznn>application programming interface
[04:31]<nnzzpznn>oops program
[04:32]<vnvzr2jd>Annualy Percentage Interest
[04:33]<tjufgg>Apple-Porn Initiative
[04:33]<grgjvnax>heh
[04:33]<tjufgg>Steve Jobs now has a controlling interest in Hustler magazine
[04:34]<nnzzpznn>anyone know how i can test a file's mime type?
[04:34]<tjufgg>ezrafree: Well what is finfo_file returning?
[04:34]<cdrnjw>eXistenZ: exif is prolly what you want.
[04:34]<nnzzpznn>Touqen: i can't seem to echo it out
[04:34]<gxysvggz>CyaNox, what?
[04:34]<tjufgg>ezrafree: ?
[04:34]<tjufgg>var_dump?
[04:35]<cdrnjw>sorry meant ezrafree
[04:35]<tjufgg>exif != mime
[04:36]<rpryc>does php5 have a class method called when objects in an array get array sum called on the array?
[04:36]<tjufgg>uh what?
[04:37]<rpryc>Like the Comparable interface in java
[04:37]<lzrwys>when designing an ORM/CRUD system with prepared statements, any thoughts on dealing with being able to pass in SQL expressions? ie, not just literal values.
[04:37]<rpryc>used to compare methods and such when using collection utility methods
[04:37]<rpryc>s/methods/objects
[04:38]<rpryc>so, for example, if I have an array full of card objects, and array_sum() that array, it sums it by calling a magic method in each card object
[04:39]<tjufgg>afaik: not built in
[04:39]<tjufgg>if you want something like that you'll need to create your own array_map function which calls this shared interface
[04:40]<tjufgg>afaik: Don't get a thought out feature confused with php
[04:41]<rpryc>array_map function?
[04:41]<rpryc>sweet
[04:41]<rpryc>thanks
[04:41]<rpryc>it's close enough!
[04:45]<srfrx>my server asks me for saving the file when using: header("Content-Type: text/html; charset=ISO-8859-15"); what's wrong?
[04:54]<szzwzg>tell me the command which will change all the php files in a server having 666 permissions to 644
[04:54]<svrz[xjdn]>get a priest for that
[04:57]<cdrnjw>Sarwan: We already suggested several different methods.
[04:57]<cdrnjw>Sarwan: I don;t believe none of them work.
[05:00]<gydl_>Sarwan: stoprepeatingquestions('servernickname')
[05:06]<nm2zranm-ma>Hey, guys. This is my first time in here
[05:06]<nm2zranm-ma>Anyone around?
[05:08]<fusxuyrr>perhaps
[05:08]<gydl_>nope. noone's here. you can leave noe.
[05:08]<gydl_>now*
[05:08]<nm2zranm-ma>well I'm new to regular expressions and I'm attempting to use preg_replace
[05:08]<cdrnjw>Embraced-DC: there are 442 people in thsi channel and your asking if anyone is around?
[05:09]<nm2zranm-ma>I was in here for about 30 seconds and didn't see a single message sent.
[05:09]<nm2zranm-ma>I don't care if people are in here if they're not actually talking. So yeah, cyanox. You're correct. I did ask.
[05:09]<cdrnjw>thats because nothing was being discussed.
[05:10]<nm2zranm-ma>well I mean.. 442 people.. I would imagine someone would be talking
[05:10]<cdrnjw>besides its a pointless question.
[05:10]<wsxrm>both of you, read the guidelines
[05:10]<fusxuyrr>who? me?
[05:11]<wsxrm>Wolfpaws *poke*
[05:12]<nm2zranm-ma>So anyway - Anyone able to help me out with a basic preg_replace?
[05:12]<wsxrm>if you ask, maybe someone will help
[05:12]<grgjvnax>whats the mest way to protion a image which is to big, not manually... ?
[05:12]<nm2zranm-ma>well if no one is willing to help I might as well not type out my long question. Know what I'm saying?
[05:13]<nm2zranm-ma>nanotech - you mean automatically resize or crop an image?
[05:13]<wsxrm>!tell Embraced-DC about g1
[05:13]<grgjvnax>resizing
[05:14]<nm2zranm-ma>nanotech - You can use PHPs GD library. Google "php image resizing" or something. You'll find plenty of example code
[05:15]<nm2zranm-ma>so I need help using preg_replace. I'm trying to replace "SomeText{2}SomeText" with something else.
[05:15]<nm2zranm-ma>{2} meaning any two characters
[05:16]<nm2zranm-ma>an example string would be "SomeTextH4SomeText" or "SomeText8XSomeText"







