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.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-28
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
Next >
[00:00]<mzzcz9q>Krunk: I mean, do ls | wc or something to count them
[00:00]<mzzcz9q>How many are there, right now?
[00:00]<wdfndzr22yv>What do you guys (and gals) use and recommend for a shopping cart? I need to have approximately 300 skus in various categories.
[00:00]<czugc>MarkR42: Well, since the site's been up on the other IP for nearly four years w/o probs, can't be that . . .
[00:00]<mzzcz9q>You say "the other IP", do you mean that you simply changed the IP address of the server for some administrative reason?
[00:01]<czugc>MarkR42: well there are many more recent bug reporrts: PHP says it's not a bug -- hmmm . . don't think so . .
[00:02]<luacds__>Wolfpaws, thanks, got it working, will take my dinner now :( [01:01 AM]
[00:03]<czugc>MarkR42: output of ls | wc: 390 390 6628
[00:03]<mzzcz9q>hmm that's quite a lot
[00:03]<mzzcz9q>But not too many
[00:03]<mzzcz9q>390 should be well within any reasonable limits
[00:05]<czugc>MarkR42: Correction. That was for local. Production site: ls | wc: 764 764 13168
[00:05]<cgggdv>anyone know of a library to parse algebraic expressions?
[00:05]<mzzcz9q>Still that's not too many. I'd expect 10k before any real problems happen (and even then, it should still work)
[00:06]<mzzcz9q>Krunk: There is a php sessions parameter which controls how often it cleans up its old sessions. Have you changed that at all?
[00:07]<czugc>MarkR42: Nope last time I checked there were 98 sessions in tmp
[00:07]<mzzcz9q>It's possible that that error is caused by the cleanup code being triggered- that would explain why it's random, as it is (by design)
[00:10]<czugc>MarkR$2: nope still set on standard dist paramters.
[00:10]<mzzcz9q>Krunk: AS far as I can tell, that error message doesn't exist at all in PHP 5.1
[00:10]<mzzcz9q>Which would be why it doesn't happen in 5.1 - rather, they've refined the session error handling to give more detailed messages
[00:11]<czugc>MarkR42: Well, I'm hoping that's the case. Otherwise I'll have to dump the new IP and go back to the old one. I'm grateful they've kept all my files/database intact.
[00:11]<wdfndzr22yv>can anyone recommend a good shopping cart?
[00:12]<mzzcz9q>Wyleyrabbit: Not really, I can not-recommend several poor ones though
[00:12]<wdfndzr22yv>MarkR42, that's been my problem
[00:13]<wdfndzr22yv>and there are SO many of them now, it's like a minefield.
[00:13]<wdfndzr22yv>I suppose I could roll my own, but dang that's a lot of work
[00:13]<mzzcz9q>I think the people who made oscommerce thought it was easy, and they made a really bad job of it, but didn't realise, and kept making it worse by adding more features that didn't work right
[00:13]<mzzcz9q>I actually made an entire ecommerce system
[00:13]<wdfndzr22yv>heh
[00:13]<mzzcz9q>on the grounds that all the OS ones were sooo terrible
[00:13]<czugc>Mark42: Thanks for your suggestions. Will do more research now. Ciao
[00:13]<mzzcz9q>it's not open source yet, but might be eventually
[00:14]<wdfndzr22yv>MarkR42, that's EXACTLY my experience with OSCommerce (and CRELOADED)
[00:14]<mzzcz9q>Oscommerce does lots and lots of things very badly wrong and they've not realised
[00:14]<mzzcz9q>and never fixed them, but kept adding new features
[00:15]<wdfndzr22yv>and it has been abandoned. People will argue that, but they haven't released a new version since 2003 (I think)
[00:15]<mzzcz9q>Ours has a lot fewer features
[00:15]<mzzcz9q>There was an update to oscommerce in December
[00:15]<mzzcz9q>It was minor and mostly fixed glaring security holes
[00:15]<wdfndzr22yv>yes, exactly
[00:16]<mzzcz9q>Our shop was designed to run a real shop
[00:16]<mzzcz9q>And also works with quite a lot of payment systems, which oscommerce was really bad at. Also our modules are 1000x easier to write and make more sense
[00:19]<2funfjvus>If you create an array outside of a function and you want to use it in the function, do you set it to global outside of the function or inside of the function or both?
[00:19]<wjlllrws>MarkR42: Well.. OSC is okay... If you rewrite session management, SQL stuff and dependency on register_globals from scratch :)
[00:19]<jdddd>bluelotus you can just pass the array to the function
[00:19]<wdfndzr22yv>Wolfpaws, yeah, but it's bad
[00:19]<wjlllrws>Wyleyrabbit: That's my point.
[00:20]<2funfjvus>Jymmm: you mean as an argument? Would there be any other way? the function allready has 12 arguments and the array is used in multiple functions.
[00:20]<wdfndzr22yv>Wolfpaws, yup. I concur.
[00:21]<fnzfscy>hey guys, I have a script that I wrote to test mail sending using phpmailer. This is the error I get: PHP Warning: fsockopen(): unable to connect to localhost.localdomain.com:25 (Connection timed out) in /var/www/php/class.smtp.php on line 105
[00:21]<fnzfscy>mail sent failed!
[00:21]<fnzfscy>Any ideas?
[00:21]<jdddd>bluelotus 12 args?! Tha'ts not a function, that's a full course meal!
[00:21]<mzzcz9q>Wolfpaws: There are a lot of major design errors, like the way it doesn't use templates. The way it's got a hard-coded non-negotiable html-table system. The way it doesn't allocate order IDs until after the order it (notionally) paid
[00:21]<wjlllrws>Wyleyrabbit: The only codebase I've seen worse was of phpnuke... Had to add the SOAP support to the core.. Ouch.
[00:21]<wdfndzr22yv>Wolfpaws, the big question is though, what isn't inheritly bad? I need to have 300 skus across 10 categories. One little imaginary guy on my shoulder is telling me to write my own. Argh, I don't wanna!
[00:21]<vuwvxrlrrruyr>I need some help, i am transfering my site to another server but on the server I am getting this message in my forums directory: "This PHP environment doesn't have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance." I tried to change some things in my php.ini file but did not work, any suggestions
[00:22]<wjlllrws>MarkR42: I never got that far...
[00:22]<jdddd>bluelotus: http://www.php.net/global
[00:22]<2funfjvus>Jymmm: thanks
[00:22]<mzzcz9q>perlski: Just use mail() to send mail. If you are on a win32 box, either run a local MTA or point it at one which will definitely relay for you
[00:22]<mzzcz9q>I wish everyone would stop writing their own smtp clients or using PEAR smtp, phpmailer etc
[00:22]<wjlllrws>Wyleyrabbit: Google for cpcommerce... Never tried it, but I hear it's the real thing...
[00:23]<wdfndzr22yv>I also find things like PHPCart entertaining. "PhpCart™ is a popular free shopping cart system" then "order now" and get out your credit card. Free??? Bah!
[00:23]<fnzfscy>MarkR42: I'm on a linux machine and the mails will have attachments in the future
[00:23]<wjlllrws>MarkR42: Oh, to hell with it... LEt's just stop using SMTP protocol.
[00:24]<mzzcz9q>Wyleyrabbit: The difficult thing is, you will probably only really know whether it's any good atfer you do the integration work
[00:24]<jdddd>sounds like a plan to me
[00:24]<wjlllrws>:)
[00:24]<mzzcz9q>Wolfpaws: I really do believe we should. PHP has its own method of putting mails into the MTA, and it's not (necessarily) by smtp. Certainly we shouldn't rely on using a (probably broken) SMTP implementation that's not even part of PHP
[00:24]<mzzcz9q>You can still send attachments with mail() provided you use somethign to make a MIME message first
[00:25]<fnzfscy>i've googled this and a lot of hits come up but nothing really solves the issue
[00:25]<wjlllrws>MarkR42: Yes, but if you want to use any other mail server other than localhost on Linux, you're screwed.
[00:26]<mzzcz9q>Wolfpaws: No, you're not, you simply get the local MTA to relay on to that smart host. It's not difficult. Plus then you get the benefit of having the mails automatically queued in case it's down
[00:27]<wjlllrws>MarkR42: In every case you need a local MTA... Or some kind of wrapper for it...
[00:27]<mzzcz9q>Having a local MTA is not a major hassle, plus also, you can then use it from things other than PHP
[00:27]<mzzcz9q>for example, the output from cron jobs etc
[00:28]<wjlllrws>MarkR42: But what is so bad with principle of phpmailer?
[00:29]<mzzcz9q>Using a PHP-implementation of SMTP, when you don't need to; relying on SMTP to send to localhost
[00:29]<mzzcz9q>I guess if it gives a "connection timed out" it may be firewalled
[00:29]<wjlllrws>MarkR42: not necessary... phpmailer can use php's mail() as well...
[00:29]<mzzcz9q>Not everyone creates a firewall rule to allow everything from localhost
[00:29]<mzzcz9q>In which case, that's the ideal solution, get phpmailer to use mail()
[00:30]<wjlllrws>MarkR42: So we basically came to the starting point...
[00:30]<wdfndzr22yv>thanks for the tip about cpCommerce. Reading up on it now
[00:30]<fnzfscy>I don't think my firewall is blocking port 25
[00:31]<wjlllrws>mine does.
[00:31]<dzvvxgwrzzgg>hey room a million bucks to the person who can solvemy mystery script first, www.spacerenovation.org.uk/html/contact.php http://pastebin.com/741847 is the validator code
[00:31]<[rp]vrrrgrv>hey guys
[00:31]<dzvvxgwrzzgg>the problem is on submit the redirect doesnt work
[00:31]<[rp]vrrrgrv>I'm having trouble with getting PHP and MySQL to work together
[00:31]<wjlllrws>!+doesn't work
[00:31]<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:32]<[rp]vrrrgrv>well you see
[00:32]<[rp]vrrrgrv>I've installed php5 and MySQL
[00:32]<fnzfscy>is there any disadvantage to not using smtp
[00:32]<[rp]vrrrgrv>and the stuff that should make them work together
[00:32]<wjlllrws>[NP]Tangent: What are you using? Screwdrives and screwes or welding machine?
[00:32]<[rp]vrrrgrv>but I keep getting this when I run my script
[00:32]<mzzcz9q>perlski: Well, it's more likely to work, even in the event that the mail server is down







