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: 1988.34 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-07
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
Next >
[00:00]<kjr>Wolfpaws: he's asking my opinion on why he was trolling
[00:00]<wjlllrws>heh
[00:00]<2dgzzd>Does php have thread support and if it does would it show up in phpinfo()
[00:00]<kjr>Wolfpaws: he raises some interesting questions, but explaining trolling to people never goes well...
[00:00]<jd>queuetue, zend studio has one but it costs $$$
[00:00]<ryddygxrgssjg>Let's have the congress look at that at next years meeting
[00:00]<kjr>it's like the supreme court and porn - you know it when you see it
[00:00]<wjlllrws>binary: no, it doesn't... PHP can be thread-safe, but it's not threaded environment
[00:00]<fununvun>Jy, Is there a free one available?
[00:01]<fununvun>(free as in beer)
[00:01]<mzzc-cfjum>I would make an array with two entries. The first would be "/(?i)<%n21([^\%n21]+?)media_id=\"([^\%n21]+?)\"/i" and the second "/(?i)<%n21([^\%n21]+?)media_id=\"([^\%n21]+?)\" align=\"([^\%n21]+?\"/i"
[00:01]<jd>if there is i don't know of one
[00:01]<kjr>Wolfpaws: doesn't php have a pthread lib?
[00:01]<fununvun>How do people trace execution, then? Guess? :)
[00:01]<2dgzzd>so for smp cpu's it would be up to the operating system to handle loads
[00:02]<pzggjgg1000>I have a site, where I want to restrict access to some folders based on the date (a mysql query). How would I go about implementing this, if each one can have arbitrary code?
[00:02]<mzgmzya>Dark-Cloud: goodness
[00:02]<wjlllrws>Kog: no
[00:02]<kjr>hm
[00:02]<mzzc-cfjum>Use a foreach that uses that array, and in that foreach use something like $Tag = preg_match($Pattern, $Subject, $TagMatches);
[00:02]<kjr>might have been some third party voodoo
[00:03]<wjlllrws>Xiphoris: Please stop spamming me, or I'll remove you from this channel.
[00:03]<mzzc-cfjum>I was just editing a regex I used for my link extractor =P
[00:03]<wjlllrws>Kog: The closes thing that comes natively in PHP to threading is pcntl_fork()
[00:04]<wjlllrws>*closest
[00:04]<kjr>Wolfpaws: neh... I shoulda read the article more closely
[00:04]<wjlllrws>lol
[00:05]<kjr>but my boss is seriously going to start beating me if I don't get this tool done :(
[00:05]<mzgmzya>Dark-Cloud: thanks
[00:05]<mzzc-cfjum>Np.
[00:05]<tml>Crescendo: Did someone else help you out yet?
[00:06]<azgsaggmj>TML, not really.
[00:06]<azgsaggmj>TML, scroll up for my recent suggestions and such.
[00:06]<tml>Crescendo: $GLOBALS['cm_posting'] is never created
[00:06]<tml>Crescendo: But you try to access it as though it were an object
[00:07]<azgsaggmj>TML, it's defined in another file, included by the parent file THIS file's included by.
[00:07]<azgsaggmj>TML, you want a pastebin of all three?
[00:07]<tml>Crescendo: It's not being created correctly. That's what PHP is telling you. $GLOBALS['cm_posting'] is not an object.
[00:08]<azgsaggmj>TML, how would I go about figuring out how to define it properly, and then doing so?
[00:08]<mzgmzya>Dark-Cloud: ([^\%n21]+?) the ? at the end is for non-greedy?
[00:08]<tml>Crescendo: What I want is the simplest possible script that demonstrates your problem, preferably less than 15 lines of code. Most people actually find that trying to create a reproducible test-case helps them identify the mistake they made.
[00:09]<azgsaggmj>TML, hrm, a test script isn't exactly possible here. There's a lot of dependent variables and updates and circumstances... and... well.. it just isn't happening.
[00:09]<zjznz>I'm trying to add a new user to the overview but i got the following error? #1045 - Access denied for user: 'phpmyadmin@localhost' (Using password: YES)
[00:10]<zjznz>how can I resolve this?
[00:10]<mzzc-cfjum>Probably.
[00:10]<mzzc-cfjum>>.>
[00:10]<tml>Crescendo: *shrug* The bug is somewhere in those "dependent variables and updates and circumstances". You're going to have to go through them one by one, line by line.
[00:10]<wjlllrws>Roger: Put in the right password?
[00:10]<mzzc-cfjum>I believe so, mandric.
[00:10]<mzzc-cfjum>^.^'
[00:10]<azgsaggmj>TML, yay. That's what I was trying to avoid. Thanks, though.
[00:10]<tml>Crescendo: Which is why we ask you to create a test-script. Doing that is the same set of steps as you'd take to debug.
[00:11]<zjznz>Wolfpaws: not generating a new password for the new DB that was copied over?
[00:11]<wjlllrws>Roger: #mysql is a better place for it
[00:12]<zjznz>ok thanks
[00:12]<ajyf>ok, now that i know i CAN use mysql query results in a php <select> form, could someone please give me an idea of how, or where i can find info on this please?
[00:12]<ryddygxrgssjg>Crescendo, you might actually save yourself quite some time, actually at most cases, to build a small test unit and reproduce the error using the same code structure and dependancy you currently have, otherwise there certainly is 1300 lines of code to walk through
[00:12]<pzvzyq7qow>hey, guys, I was wondering under what conditions would a file not be found in a directory that's a part of the include_path?
[00:13]<azgsaggmj>jimmiehansson, thanks for the suggestion, but unfortunately I don't think I even have the skillz necessary to reproduce this. =\
[00:13]<azgsaggmj>Yay for being a complete n00b.
[00:13]<azgsaggmj>~_~
[00:13]<wjlllrws>Patri26281: Um... non-existing file? :)
[00:13]<ajyf>Patri26281, if the user doesnt have read permissions
[00:13]<pzvzyq7qow>php can open other files in that directory, just not this one file
[00:13]<pzggjgg1000>I have a site, where I want to restrict access to some folders based on the date (a mysql query). How would I go about implementing this, if each one can have arbitrary code?
[00:13]<pzvzyq7qow>wolfpaws: the file is there
[00:14]<ryddygxrgssjg>coil, grab the data, return it in a loop as <option> items in your <select>
[00:14]<pzvzyq7qow>coil: the file has 777 permissions
[00:14]<pzvzyq7qow>I'm using include_once to open the files
[00:14]<ajyf>jimmiehansson, this is what im trying to figure out how to do :S
[00:14]<tml>Crescendo: You have the skill to write the code, but not to debug it? o.O
[00:14]<ryddygxrgssjg>coil, have some example code?
[00:15]<rrvrnjrj>Crescendo's code looks like a modified phpBB file
[00:15]<ryddygxrgssjg>Antaeogo, i believe it says copyright phpbbgroup in the main comment, yeah :)
[00:15]<azgsaggmj>TML, I'm still playing around with loops, having just learned all the if () else () elseif() s.
[00:16]<azgsaggmj>TML, so I'm struggling here, having troubleshot my way through a bunch of MODs to phpBB.
[00:16]<azgsaggmj>TML, an example of something I coded by hand would be http://gwing.net/damage.phps
[00:16]<azgsaggmj>That's about the extend of my coding skill right now.
[00:16]<azgsaggmj>Minus the s for the executeable.
[00:17]<ajyf>jimmiehansson, well sorta but its very incomplete tho... http://pastebin.ca/80827
[00:18]<kjr>Crescendo: why are you using GET and not POST on that form?
[00:18]<2zyrgmrg>Can you use function_exists to check whether or not a class exists?
[00:19]<rrvrnjrj>Use class_exists
[00:19]<ceredtuw>brian, is_class ()
[00:19]<ceredtuw>or yea ^
[00:19]<ceredtuw>lol
[00:19]<2zyrgmrg>k
[00:19]<crrdjss>I always use POST]
[00:19]<azgsaggmj>Because I had a bad round of problems with post, and it needed to be able to be linked to.
[00:19]<crrdjss>unless of course I use GET
[00:19]<rf2j>if session.cookie_domain is in php.ini, how can i run multiple sites off one webserver
[00:19]<kjr>Crescendo: problems with post but not get...?
[00:20]<2zyrgmrg>You can require_once/include_once inside functions right?
[00:20]<rrvrnjrj>yes
[00:20]<syzgzvuznw7>can i mix php and xhmtl?
[00:20]<kjr>brianMan: you gonna fake a factory?
[00:20]<azgsaggmj>Kog, I don't remember, couldn't figure out how to make it work.
[00:20]<kjr>$_POST ;)
[00:20]<azgsaggmj>Kog, but it needed to be linked to, regardless.
[00:20]<azgsaggmj>=D







