| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Comments:
<0> Fushuing: yep, paid 30 grand to run cable to his neighborhood then 6 months later let the guy they ran it for go. <1> you mean fired him <0> Fushuing: "laid off" !== fired (though often enough, it ends up that way) <1> for some reason i am willing to believe the 30 grand came out of his paycheck... <2> b1n0ry, what was he selling? <3> my php tells me that socket_create doesn't exist... is that normal ? <0> Fushuing: no, it didn't. company decision. <2> absentia, fsockopen <0> tempest_: plastic <1> o.o <1> i am paying 300USD a month for 128kbit/32kbit <2> ouch <1> and 2000USD extra for the replaced antenna <4> hi anyone french here ? <1> AND 1200USD installation costs! <0> Fushuing: he was on an ISDN line in his home office but no local telephones in his neighborhood (at all, even calling neighbors) so he was on an ISDN line across state boarders for 10 hours+ per day.
<3> anyone ? <0> Fushuing: after two $2,000 phone bills, they called the cable company and had them run cable. <3> the examples from the manual on www.php.net/sockets just don't work. <3> gives error: socket_create ... no such function <1> 2 * 6 = 12000$ <5> well there isn't anything that contains just the file name, so i compared the full path+name to getcwd()."/".[filename] <0> Fushuing: at the time, they weren't anticipating the lay-offs. <3> PHP Fatal error: Call to undefined function socket_create() <1> heh <1> so now that neighbourhood has cable? <0> Fushuing: yeah, his neighbors loved him <1> :D <6> how can I put information triggered by system(), and put it into a variable, for example: system("progie.exe"); progie.exe prints information I need PHP to handle, I tryed ob_start with ob_get_clean, but it didn't work, any pointers? <1> i HATE islands and monopolies :@ <0> Fushuing: worst thing was the company told him to "just pay the phone bills and file an expense report" a $2,000 bill! <1> esspecially if those 2 are in the same spot <3> do I have to turn on sockets in the php.ini ? <1> back to rewriting my school stuff <0> absentia: perhaps, socket support is provided by an extension <3> ah. :-< <0> from www.php.net/sockets: "The socket -extension- implements a low-level interface..." <3> I didn't know if that meant it was added to the language.. or you had to add it yourself... as an extra. <0> also must be compiled into php <3> I guess "extension" means that it's not in there. <3> :-< <0> "...must be enabled at compile time by giving the --enable-sockets option..." <3> crap. <6> nvm, I found the anwser <3> ok <3> thanks <0> no prob <0> absentia: you can see what configure options were used from phpinfo(); <0> absentia: that will let you know if sockets were enabled on your installation <3> ah! you're right. thanks. I'll email the sysadmin and request the recompilation of php on all 60 dev machines :-) <3> looks like I can play with fwrite and other f* functions until then. <0> try to anticipate any other options you'll need, lol (like --with-mssql or something) otherwise, he might get a bit miffed. <3> thanks again <3> true. <1> **** <0> Fushuing: no thank you <1> he said other F* functions :D <7> imagettfbbox gives me the bounding box of text printed in a given font at a given angle. i need to go back the other way, ie start with boundary conditions and obtain the appropriate font size. the only ways i can think of its to start at 1pt and increase until it exceeds the boundaries (slow) or create an image with a ridiculously large font size then resample it down... any suggestions? <8> dools: thats generally what you have to do. the incremental thing. it's not as slow as it sounds ;o <8> unless you were slightly competent in math and could predict the size from another reading ;o <7> Smirker_L: i don't think it's possible to tell the bounds for font X based on point size <7> Smirker_L: but thanks, i'll just increment <8> you do one bound check and use the result from that to predict other bounds <8> i dont know if its a linear relationship or not, but it wouldnt be hard to find out <9> Can anyone help with a PHP 5 error? I have no idea what's wrong. <7> Smirker_L: cheers <9> Here's my problem: http://www.sourcenode.net/forums/index.php?showtopic=48&pid=235&st=0&#entry235 <10> dent2- obviously $database isn't an object <10> var_dump($database); will tell you exactly what it is <9> Dragnslcr: object(database)#2 (4) { ["db_connected"]=> bool(true) ["affected_rows"]=> int(0) ["queries"]=> int(0) ["link"]=> resource(2) of type (mysql link) } <10> And you did that right before the line that causes the error? <1> Why the hell am i doing this? <9> Uh. no. :\ <10> Just because $database is an object in some part of your code, that doesn't mean it's an object everywhere in your code <8> is $database in scope? ;o <10> Probably not <11> anyone know what im doing wrong here? if ($_POST['act'] != '1') || ($_POST['act'] != '2') ($_POST['act'] || != '3') {
<9> It just gives me 'NULL' if I do it before the error line :( <11> oh yeah i missed a || <10> dent2- then that's your problem <8> DogWater: looks like a few problems actually. <10> DogWater- er, besides the fact that that will always be true? <10> After fixing the syntax errors, that is <11> Dragnslcr: why would it be drew? <11> err true? <12> || != '3'?!? <8> DogWater: you should learn more about boolean evaluation ;o <11> yeah ok i'm a little tired <1> my thoughts <10> DogWater- if $_POST['act'] is 1, the second and third conditions would be true <10> Any value has to be not equal to at least two of your three test values <8> change || to && and whack a () around the whole lot <13> Anyone knows why i am trying to load a .php page on a new server and the phpinfo() is being displayed rather than "interpreted / rendered" <10> Yancho- probably missing an AddType line in httpd.conf <1> because the server isn't setup right? <13> Fushuing hehe i know its not set up right - problem what to do :P <13> trying to find the addtype <1> evil lord... <1> something is telling me to reupload the tutorial videos on how to install php on apache... <1> complete with surround sound <11> Actually I'm not entirely sure what you're refering to, its pretty simple; if act isn't 1, 2, or 3; it should do something, otherwise it shouldnt, why is that odd code? <8> rrw <10> DogWater- read what I said <8> ffs DogWater! <8> change || to && and whack a () around the whole lot <10> [19:59] <10> Any value has to be not equal to at least two of your three test values <13> Dragnslcr there are 2 lines in the <IfModule mod_php5.c> <13> Fushuing would help alot hehe :) <10> "isn't 1, 2, or 3" means "isn't 1 and isn't 2 and isn't 3" <10> "isn't 1 or isn't 2 or isn't 3" will always be true, unless you can come up with some magical value that equals all three of them at once <10> And no Schrondinger jokes <11> sorry, or to me, means or, not and; my bad that my grasp of the english language doesnt coincide with whats going on there ;-) <14> 'programming language' != 'natural language' <8> 'competent programmer' != 'DogWater' <14> and looks like your language skills don't transfer to logic skills ;) <15> which version of php has the pty support for proc_open? <15> the manual says 5.0.0 has the support for it, but 5.0.2 doesn't seem to have it <8> :P <8> he's finished now <8> i think ;o <15> i downloaded 5.1.2 and tried a configure --help and it doesn't show any --enable-pty or anything like that <16> anyone awake? <1> no <17> no <16> Hi, I'm using cPanel for my webbserver and in the panel I have "add new user", but i want to add a new user from a php page of mine, and I could use the same form names and all that and use same POST but to enter that page it requires some weblogin with certificats.. how to do that? <18> chillyd: ... thats not the brightest idea <19> someone around? <18> no one <17> no <16> what is a bright idea then?, cuz Id like to add a user via a php page.. <19> i got this simple example of a login screen to work that uses a database ----> http://www.phpeasystep.com/workshopview.php?id=6 , Is there an easy way to change that example so it works with a .mdb file instead of just using a query? <18> Kingsy101: windows host? <17> ODBC <19> yea windows <18> Setup a system DSN <15> from my understanding on the way cpanel works, you cannot add a user using your own code, because the database is seperate and you don't have access to it <18> and open it via ODBC <18> Nam: he wants to use the interface and trigger it himself <18> nam: which is certainly possible <19> i have been messing around with no real luck does anyone have a example of a site that uses a mdb for logins? or something like that? <15> i have used cpanel, and i never saw any way to add a user to cpanel through automation, it always had to be done manually, unless it's something new or something <16> ye the thing is, im on a reseller account, and I want to create a reseller possibility for that.. and I cant add a reseller account in cpanel so I tought via php i do the user add there and setup some levels <18> Kingsy101: you really dont want to do that. <19> why? <15> hahaha <18> Kingsy101: why on earth do you want to read user/p***words entries from a MDB file? <18> Kingsy101: did you put the round thing in the square hole as a child? <17> A text file would be more conventional in absence of a database <15> anyone know about my pty support question? <19> yea i suppose but i wanted a automated method and all the examples involves running querys before the site works
Return to
#php or Go to some related
logs:
#perl #ubuntu #perl #web eth0: PACKET SNIFFER(/sbin/dhclient3 #css #css #web xine export symbols #ai
|
|