| |
| |
| |
|
Page: 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
Comments:
<0> locate says this: <1> im gonna go out on a limb here <0> -rwxr-xr-x 1 root root 87256 2006-03-28 12:24 /usr/local/lib/php_accelerator_1.3.3r2.php4.3.so* <1> and say it cant open it <0> does anyone have any idea why it can't open a file that is obviously there? <0> can anyone help me out here? <2> yereth: is it a link only ? <2> yereth: ind is the link's target not valid anymore? <0> fumanchi: I used 'cp' to put it there <2> ok... <2> is your apache chrooting? <0> sorry, what do you mean? <2> hmm.. you know what chroot does? <2> "change root" <2> the php's "/" probably isnt your system root <0> not sure.. isn't this a question whether apache may go outside it's own dir?
<2> where are your other exts lieing? <0> fumanchi: /usr/lib64/apache2 <0> but these are normal extensions <0> should I put it there? <3> Hope there are some logic-thining minds here.. because mine is too tired <2> what is "normal" for you? <4> I'll try and thine for you :-) <3> I'm writing a check-in system for an application (think licensing).. if the check fails the script has to die <0> fumanchi: er.. well.. modules.. php_accelerator is a zend extension <2> hmm.. check google for its correct path :) <4> sean: So it reaches out to your system and does a check; if the check fails, the remote app stops ? <5> is it good to set global registers on <0> there's no correct path, according to php accelerator <3> wobbles; yes, but the problem is.. where to store that data <3> in an SQL database.. or something? <4> Up to you, really - databse, text file, whatever. <3> yeah, but it has to be secure.. so they can't disable it or something <6> roar <3> because I need to store the last check-in time and if the license has expired or not <3> if I put it in a file.. they can use a cron to duplicate the info <3> I was thinking.. write an own encryption method.. and encrypt a string liek LICENSE_KEY**LICENSE_VALID**CUR_DATE <3> encrypt that.. store it in the database after each check in <2> yereth: there must be any default... <3> at each page we pull that out of the database.. decrypt it.. check if the CUR_DATE has been p***ed by 24 hours.. and execute the check-in again <3> if the license has expired.. update db with LICENSE_KEY**0**CUR_DATE <0> fumanchi: no there is not <0> but the error is not about that <2> is the module not loadable or is the file unreadable? <0> and besides, I put it in the default directory now (default extension directory) and it still doesn't work <3> ofcourse I will use a diff format.. because I can't trust any of you :p <0> server:/usr/local/lib # file /usr/lib64/apache2/php_accelerator_1.3.3r2.php4.3.so <0> /usr/lib64/apache2/php_accelerator_1.3.3r2.php4.3.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped <2> yereth: perhaps the accelerator's extension doesnt match the zend/php-version <0> well there are only extensions for 4.3 and 4.4 <0> I've 4.3.8 <2> hmm... <7> what was the character that kills warning on variable ***ignment? was it &? ie $blue .= $blue when $blue isn't declared yet <2> aec27: "@" ? <8> Um <9> is it so hard to check whether a variable exists? <8> Just don't concatenate to a variable that doesn't exist <7> is that what i'm asking? <8> Or set it to an empty string first <9> you should initialise all variables anyway <8> Ignoring error messages just leads to broken code and security problems <7> yes, i don't disagree, but that's not what i need to know! <9> no, it's not what you're asking. what you're asking is "I'm a sloppy coder. How can I validate this?" <8> Yes it is <8> You're asking how to ignore errors instead of fixing the problem <8> And we're telling you how to fix the problem, so there won't be any errors to ignore <9> Dragnslcr, could you p*** some black masking tape? I need to cover up this annoying red light on my car dashboard <8> Hehe <7> right or i'm trying to figure out how to parse someone elses code so i can see the errors <10> Hello <10> i got problem in my board :( <8> Um, you can't supress parse errors anyway <10> Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\vhosts\uimlcollege.com\httpdocs\board\db\mysql4.php on line 330 <10> this is error <8> Muneeb- probably means the connection to the database failed <8> Use mysql_error after mysql_connect to find out why <10> how is can able to connect with database ?
<4> Muneeb: php.net/mysql_error will return you something useful <10> okay let me find it then :( <7> Dragnslcr, Um, i was goingt o replace all $[CharacterImLookingFor]Variable with $Variable, with find and replace, you've misunderstood if you thought i was trying to supress parse errors <11> hi <11> I want to logical OR and array <11> like if both arrays have same keys, and values take this offset, but if one of them missing leave it <11> logical AND <11> is that possible/ <11> ? <11> without a code block I mean, is tehre any function for that? <12> hey guys <12> can i do php with out a webserver? <12> i just want to test small scripts <9> yes, you can use the command line <12> with out having to upload all the time <12> reall? <12> show how much i know about it <9> but installing apache on your home computer is always an option <11> array_diff is what I'm lookign for I think, sorry for noise <9> and not a bad option either <12> yeah <12> to lazy <9> because server variables etc aren't available in PHP CLI <12> true <9> but look for CLI in the PHP manual <12> ill just make an online editor <9> it's easier to install apache :-/ <9> there are Apache/PHP/MySQL bundles which install ready-to-go <4> But possibly without the options you might want - if using Linux the way to go is compiling your own... <12> yeah <12> i know <12> ill just use my server <12> hmm, lamp with out the m? <13> how can i put a reference to a function in a variable and then call this function? <14> Is it possible to break out of PHP in a conditional? <9> yes <9> break; <9> oh, in a conditional? <15> MicW: $func = 'foo'; $func(); <14> I'm sorry, I was unclear, let me type up a sample <15> MicW: Alternatively, call_user_func($func); <13> thx <15> np <13> but that's not really a reference (i.e. i cannot p*** $this->myfunction()) to a differnt object <13> but works for my case <14> like, if (1 != 2) { ?> <p> I'm still sane! \o/ </p> <?php } else { ?> <p> wtf. </p> <?php } ?> <4> toresba: continue or break, depending <9> oh <9> the answer is 'yes' then <14> That's legal? <9> yep <14> yay. <16> uh, sorry. wrong chan. <7> l <17> how would you addslashes automatically to all $_POST and $_GET's , with magic_quotes_gpc setting off ? <18> array_map? sounds a bit pointless to me <18> $_POST = array_map("addslashes", $_POST); <18> its a nasty thing to do though, it's better to deal with the data as you need it <17> yeah Cheez , thanks.. I saw some examples with that on php.net/addslashes , but it doesn't seem to work <17> probably yes, maybe it's better I do it right in all scripts <18> as the old addage goes, if it's worth doing, it's worth doing well. :) <17> but the application must be portable to be used on both gpc settings on and off <1> usually in that case <1> you write it the other way around <18> i write it ***uming its on and strip slashes :) <19> hi all <17> and then add them again, Cheez ? <18> depends on what im using the data for <17> database queries I'm using it for <18> if its going into mysql i use mysql_real_escape_string() if its going into other rdbms's then i've got my own escape function <8> Don't use addslashes for database queries <8> Use the escape function for your database <15> Dragnslcr is unwise, he is trying to make your code a little bit more secure. Hang him, now! <17> what do you mean kuja ? ;)
Return to
#php or Go to some related
logs:
Ubuntu spca5xx adjust gamma #lisp fedora graphical diff utility #debian #css Broken runlevel entry libxfixes-dev ubuntu depends installed #web #linuxhelp zynsubaddfx
|
|