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-07-15
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
Next >
[00:00]<jdddd>||cw: love your "mobile home"
[00:00]<||aw>Jymmm: heh
[00:00]<srujf>i have the var defined in the base class. i want to override it in the subclass.
[00:01]<kvzjg|wjw>for example, the string "Blackdog_Divers@WBS001320D359F8" was truncated to "Blackdog_Divers@WBS001320D359F"
[00:01]<jdddd>||cw: Man, didn't that floor want to make you puke at first site?!
[00:01]<eyzau>Ktron|wow: i would consult your mssql documentation
[00:02]<yvzn2rf>||cw: i like my desk that messy too
[00:02]<kvzjg|wjw>Looks like a 32 character limit for database names... I'll double check them zircu, thanks
[00:02]<||aw>Jymmm: the green stuff?
[00:02]<kvzjg|wjw>And ||cw as always
[00:02]<tjufgg>Ktron|wow: You should be able to tell by what the sysdatabases table's format is
[00:02]<srujf>overriding the function in the child seems ridiculous as it is the same function, just referring to a different variable.
[00:02]<jdddd>||cw: no , the puke looking laminate under the carpet
[00:02]<tjufgg>It might be defined as varchar(32)
[00:03]<||aw>Jymmm: it's more tan, I didn't color correct the photos
[00:03]<mrg__v>thanks, TheRandomAvenger.
[00:03]<jdddd>||cw: still...
[00:03]<||aw>Jymmm: there were a lot fo things about that house that made me want to puke
[00:04]<kvzjg|wjw>The only odd thing Touqen and others, is that if I simply output the names I get out of the master db rather than trying to connect to them, the correct, full length versions are used
[00:04]<srujf>TML: the whole base class is abstract. It's a static function though... no reason not to implement it in the base.
[00:04]<||aw>Jymmm: except the price I paid for it
[00:04]<fglygg9w>Hi everyone
[00:04]<jdddd>||cw: paint is cheap =)
[00:04]<kvzjg|wjw>The truncation problem only seems to emerge when I try to mssql_connect("to the string that goes here",...)
[00:04]<||aw>Jymmm: yeah, and I painted most everything
[00:04]<mrg__v>so TheRandomAvenger, this will allow me to process PHP from within files with an extension of .htm?
[00:04]<mrg__v>er, .html
[00:05]<jdddd>||cw: =)
[00:05]<tjufgg>Ktron|wow: What's the error that you get when you try to connect with the "truncated" db?
[00:05]<||aw>Jymmm: what wasn't cheap was having the old fuse bases electrical system replaced so that I could sell it
[00:05]<fglygg9w>I have a little problem ... i transfered some website to a new server. All is fine. Except one thing. All my php cron jobs which i run using php CLI ... are returning me some headers
[00:05]<fglygg9w>X-Powered-By: PHP/4.4.2
[00:05]<fglygg9w>Content-Type: text/plain
[00:05]<fglygg9w>i run cron ALOT
[00:05]<jdddd>||cw: couldn't be more than what $800 ?
[00:05]<kvzjg|wjw>Warning: mssql_select_db() [function.mssql-select-db]: message: Could not locate entry in sysdatabases for database 'Blackdog_Divers@WBS001320D359F'. No entry found with that name. Make sure that the name is entered correctly. (severity 16) in ....
[00:05]<jufyzg|wjzc>http://compsoc.dur.ac.uk/whitespace/ <- best programming language ever
[00:05]<fglygg9w>most of my scripts succeed silently
[00:06]<||aw>lepine41: thats not cli, that's cgi
[00:06]<fglygg9w>but now i've got headers, so the cron daemon sends them to me ...
[00:06]<fglygg9w>so i got 4000 messages today!
[00:06]<kvzjg|wjw>(The correct Database name it should have pulled and used is "Blackdog_Divers@WBS001320D359F8")
[00:06]<fglygg9w>and crashed my outlook
[00:06]<fglygg9w>how can i deactivate the headers ?
[00:06]<jufyzg|wjzc>I suggest you deactivate Outlook first.
[00:06]<wg2dzrrjg>voila. thanks Touqen
[00:07]<tjufgg>lepine41: Your server is running the cgi exe instead of the cli
[00:07]<fglygg9w>what does that mean? i just have to change the path to the php executable in my cron tabs ?
[00:07]<tjufgg>lepine41: Do you know how php was installed on this server?
[00:07]<rvjfvfrr>has anyone experienced problems where fsockopen will insert random characters into the stream? here is my code to download a url and write it to a file, but when i do i get a few random chars every couple thousand bytes
[00:07]<rvjfvfrr>http://pastebin.ca/88378
[00:08]<fglygg9w>it was installed with WHM/Cpanel ... so, confirmed CGI
[00:08]<rvjfvfrr>here is the output of a download test: http://www.mtlc.net/new/rendered/products/1445.html
[00:08]<tjufgg>Ktron|wow: what if you var_dump($row[0]) right before connecting?
[00:08]<zzxgzzsnlx2zaxyz>anyone have any idea why a command will succeed at the command line but fail when run with exec(), when they are running as the same user?
[00:08]<tjufgg>johnjosephbachir: different environments
[00:08]<||aw>lepine41: add -q to your shebang
[00:09]<fglygg9w>eg, php -q /path/to/script.php ?
[00:09]<tjufgg>lepine41: yes
[00:09]<zzxgzzsnlx2zaxyz>Touqen: hmmm well, i am using the full path to the binary
[00:09]<fglygg9w>cool, doing so now
[00:09]<zzxgzzsnlx2zaxyz>i can't think of anything else that would be different
[00:09]<tjufgg>johnjosephbachir: environment variables?
[00:09]<eyzau>johnjosephbachir: how does it fail?
[00:09]<zzxgzzsnlx2zaxyz>silently...
[00:09]<tjufgg>johnjosephbachir: nothing fails silently
[00:10]<zzxgzzsnlx2zaxyz>: )
[00:10]<tjufgg>if it does it's broken
[00:10]<eyzau>johnjosephbachir: how are you executing it via exec()?
[00:10]<zzxgzzsnlx2zaxyz>well
[00:10]<zzxgzzsnlx2zaxyz>zircu: what do you mean how
[00:11]<zzxgzzsnlx2zaxyz>zircu: $newlistcommand = "/usr/sbin/newlist -q $listname $listadmin $listpass";
[00:11]<eyzau>johnjosephbachir: ok that was what i was looking for
[00:11]<z0wjz>i've got a rewrite rule such as: RewriteRule ^News/Product_Name/Index$ News/Product_Name/Index.html
[00:11]<||aw>lepine41: update your outlook too, I know for a fact that 4000 message is not a problem
[00:11]<sxzzypp>Hi there
[00:11]<zzxgzzsnlx2zaxyz>zircu: the 3 paramaters have single quote around them because i am running them through escapeshellarg
[00:11]<z0wjz>crap, wrong cahn
[00:12]<||aw>johnjosephbachir: also try shell_exec
[00:12]<zzxgzzsnlx2zaxyz>||cw, zircu: and then i am executing like this exec("$newlistcommand", $output, $return);
[00:13]<zzxgzzsnlx2zaxyz>$output is an empty array, and nothing ever goes into it : (
[00:13]<||aw>why the quotes
[00:13]<eyzau>johnjosephbachir: 1) check exec persions on the file, 2) what is your first line of the script 3) can you output something on line 2?
[00:14]<zzxgzzsnlx2zaxyz>zircu: the first line of the script i am trying to execute?
[00:14]<eyzau>johnjosephbachir: yes
[00:14]<zzxgzzsnlx2zaxyz>zircu: this is an admin tool for mailman
[00:14]<zzxgzzsnlx2zaxyz>zircu: also, i successfull used exec to run command line 'cp'
[00:14]<zzxgzzsnlx2zaxyz>in the same environment
[00:14]<zzxgzzsnlx2zaxyz>does that give any help?
[00:14]<eyzau>the firstline of 'new'list'
[00:14]<zzxgzzsnlx2zaxyz>i think it's a binaryt
[00:14]<zzxgzzsnlx2zaxyz>maybe not let's see...
[00:15]<zzxgzzsnlx2zaxyz>zircu: #! /usr/bin/python :-D
[00:15]<eyzau>johnjosephbachir: oh, if you think so, do a 'file /usr/sbin/newlist'
[00:15]<||aw>johnjosephbachir: shell_exec will probably work
[00:15]<eyzau>johnjosephbachir: and the permissions on the file? -rwxr-x-r-x?
[00:16]<zzxgzzsnlx2zaxyz>i just realized that this file is a symbolic link
[00:16]<zzxgzzsnlx2zaxyz>perhaps that is the problem?
[00:16]<eyzau>johnjosephbachir: mabey, what are the perms on the file it is linked to?
[00:16]<mzgmzya>i would like to echo a string after every 4th element (4,8,12 ...) in a loop. is fmod the right function for this?







