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-06-27
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
47
Next >
[00:00]<zdzxzzmfdgzx>I could probably get some "names" to come, so long as it wasn't, like, the same time as OSCON, PHP Conference in Frankfurt, etc...
[00:00]<eyzau>HS^: you have permission problems
[00:00]<zdzxzzmfdgzx>HS^: Using the same username/password ???
[00:00]<zdzxzzmfdgzx>It "should work"...
[00:00]<rdvxzrwff>try 'localhost' not localhost
[00:01]<rdvxzrwff>:D
[00:01]<eyzau>i'm guessing $username and
[00:01]<eyzau>$password are blank
[00:01]<eyzau>yes
[00:02]<zdzxzzmfdgzx>It's not directly related to your problem, but if PHP is not bitching about localhost, turn up error_reprorting to E_ALL
[00:02]<eyzau>HS^: i can only tell you what is guessable from what you've given us
[00:02]<svjzc_>||cw, help! the connection_status() thing doesn't work :(
[00:02]<zdzxzzmfdgzx>HS^: That only guaranteees that *A* password is being sent, not that you are sending the RIGHT password... echo out the $password in the line before mysql_connect
[00:02]<eyzau>if($foo) { echo 'yes'; } else { echo 'no'} why does my script always say 'no'?
[00:03]<zdzxzzmfdgzx>Stork_: I'm not gonna say "I told you so", but... Well, I did...
[00:07]<cxjfs`fjgmjg>richardlynch - i cant work out what i should be using...
[00:07]<zdzxzzmfdgzx>HS^: http://php.net/mysql_query The data "lives" in MySQL until you fetch it, but you should only SELECT the rows you need.
[00:07]<rdvxzrwff>it won't be the whole DB, it would just be the result set that selected
[00:07]<lugaauv>mattmcc : i think phpinfo is lying to me somehow.
[00:07]<zdzxzzmfdgzx>punkcut: phpinfo() is not lying.
[00:07]<svjzc_>richardlynch, that's not the problem.. the issue is, i need to see when users are downloading so i can limit downloads (server has poor bandwidth)
[00:08]<rdvxzrwff>then have a huge ass swap
[00:08]<lugaauv>richardlynch : Configuration File (php.ini) Path => /etc/php.d/php.ini
[00:08]<rdvxzrwff>add more ram
[00:08]<zdzxzzmfdgzx>punkcut: That is where it was compiled to look. Put your php.ini in that dir.
[00:08]<rdvxzrwff>not really
[00:08]<rdvxzrwff>think about it
[00:08]<rdvxzrwff>your hardware cannot reasonably support the software
[00:09]<zzaxyvysv>HS^ there is a streaming mode in mysql for that situation
[00:09]<rdvxzrwff>for what you need it to do
[00:09]<zdzxzzmfdgzx>HS^: Get one pageful at a time.
[00:09]<svjzc_>richardlynch, ??
[00:09]<lugaauv>richardlynch : it is in there. the issue im having is that I raised the memory_limit to 24M in /etc/php.d/php.ini - yet phpinfo still returns the memory_limit as 8MB, and i still get memory allocation errors when I try to run my app.
[00:09]<zzaxyvysv>cant remember exactly but its in there
[00:09]<zdzxzzmfdgzx>punkcut: Did you re-start Apache? Apache only reads php.ini when it starts up.
[00:09]<lugaauv>richardlynch : apachectl restart a couple of times now.
[00:10]<2funrrv>i have a string, $string = ",hello,my,name,is,Ben"; how can I remove the , at the start of the string using php?
[00:10]<eyzau>punkcut: do you have it set in an apache.conf or .htaccess?
[00:10]<rdvxzrwff>Blue-Steel use strreplace and strpos
[00:10]<zdzxzzmfdgzx>Stork_: take the size of the file and a reasonable amount of time that "should" take and compute bandwidth from that with a single INSERT at the top of the script.
[00:10]<eyzau>punkcut: and also does master/local say 8M? then you are probably editing the wrong php.ini
[00:10]<tza_wjzc>What do people use for project management in here..... work wants me to implement something .... closest thing I can see to what I would want is dotproject....
[00:11]<lugaauv>zircu : i just checked the .htaccess, no i dont, and its not set in apache.conf
[00:11]<rdvxzrwff>or preg_replace
[00:11]<lugaauv>zircu : master/local? yes that is what I am thinking, but i cant figure out where I should be looking for php.ini - the instance i placed is the only instance on the box
[00:11]<fdzrsgg>he all... I'm actually trying to install pear for php5.0 on ubuntu. I downloaded the latest pear .deb and got the pear prog installed. Thing is, php dosen't seems to load any modules related to pear. If I run pear show-config, it tells me pear is installed in usr/share/pear which is empty...
[00:12]<rdvxzrwff>punkcut check phpinfo()
[00:12]<eyzau>punkcut: what does the 'Configuration File' section say of phpinfo()?
[00:12]<zdzxzzmfdgzx>punkcut: It's possible your apachectl isn't actually working right... Do a ps auxwwww | grep httpd and see how long httpd has been running.
[00:14]<lugaauv>richardlynch : ive restarted using /etc/init.d/httpd too
[00:14]<dggjvudg>TML: thx much for the runkit info, it's working for me. A little problem importing properties, but i can get around it :)
[00:14]<svjzc_>richardlynch, is there honestly not a better way :((( ?
[00:14]<rdvxzrwff>that is the better way?
[00:15]<lugaauv>richardlynch zircu cythrawll : http://pastebin.ca/72443
[00:15]<svjzc_>cythrawll, yeah but it's just guesswork
[00:16]<rdvxzrwff>maybe your not familiar with the http protocol
[00:16]<svjzc_>how not
[00:17]<svjzc_>php can know when the tcp socket is closed
[00:17]<rdvxzrwff>true but think what your asking php to do
[00:17]<yvzn2rf>Stork_/cythrawll may i be filled in?
[00:17]<yvzn2rf>i've used sockets extensivly with PHP
[00:18]<rdvxzrwff>hold on he had a post of what he is trying to do ...
[00:18]<svjzc_>itrebal, http://codewalkers.com/forum/index.php?action=displaythread&forum=phpcoding&id=17898&realm=default
[00:18]<rdvxzrwff>beat me to it
[00:18]<yvzn2rf>i'm text-only atm, can you summarize it?
[00:18]<svjzc_>errm
[00:19]<yvzn2rf>any code samples put on a server and i'll wget them
[00:19]<rdvxzrwff>he's trying to track a download of a file
[00:19]<rdvxzrwff>when it begins, and when it ends....
[00:19]<rdvxzrwff>if i understand correctly
[00:19]<||aw>Stork_: I thought we settled this: use connection_status() and register_shutdown_function
[00:20]<svjzc_>||cw, how do you mean?
[00:20]<dggjvudg>Stork_: can you get your current PID before the fork, and do something like if ($currentPID != $originalPID) { UPDATE} ?
[00:20]<||aw>Stork_: you didn't read any of the url's ai posted?
[00:20]<yvzn2rf>Stork_ ||cw: the issue i see here is that the moment the user is prompted with anything, PHP is already done
[00:20]<svjzc_>||cw, what url?!
[00:20]<svjzc_>itrebal, yeah, i think you're right.
[00:21]<lugaauv>richardlynch : ok ive killalld http and restarted it that way. compiled the config path in, and grepped/find to hell my entire system trying to figure this out.
[00:21]<yvzn2rf>so there is no way to do a SQL insert with only PHP, maybe mixing javascript in here - but i cant help you with that
[00:21]<||aw>*sigh*
[00:21]<yvzn2rf>||cw: am i wrong?
[00:22]<||aw>itrebal: generaly, sort of. you can ignore_user_abort()
[00:22]<svjzc_>itrebal, i understand register_shutdown_function, but where does connection_status come into it?
[00:22]<||aw>Stork_: this is the general idea, play with it http://us2.php.net/manual/en/features.connection-handling.php
[00:22]<yvzn2rf>Stork_: i never brought them to the table
[00:22]<lugaauv>richardlynch : ok now ive tried putting php.ini in $PREFIX/lib - by default this should be /usr/local/lib/php.ini right?
[00:22]<lugaauv>richardlynch : still nothing.
[00:23]<svjzc_>itrebal, sorry, wrong name :|
[00:23]<yvzn2rf>no worries
[00:25]<rdvxzrwff>you know what i'd freaking do
[00:25]<rdvxzrwff>i'd use an applet
[00:25]<rdvxzrwff>that's right i said it
[00:27]<dggjvudg>Stork_: sry, my suggestion won't work. maybe pcntl functions ?
[00:27]<lugaauv>ok im having serious issues. php is not acknowledging the changes I make in php.ini. It was compiled with a specific path to the php.ini and its still not obeying it. im using php5
[00:28]<wjjnfn>has anyone had a problem with php not resetting a cookie correctly, the cookie reset is at the top of the page. I have another page that sets the cookie and then redirects to the page that resets it but it doesn't seem to
[00:28]<yvzn2rf>punkcut: restart apache?
[00:28]<zyzwzvn>hey guys, I've been trying to research PHP with Java functionalitity for two days now, but I'm stumped...how do i get it to work? do I just ./configure it with --with-java? Has anyone done this??
[00:28]<lugaauv>itrebal : been there. been there multiple times.
[00:28]<wjjnfn>I end up have to refresh the page again to get it to reset correctly
[00:28]<drvvdaa>airwave: That extension is pretty well bit rotted.







