| |
| |
| |
|
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 33 34 35 36
Comments:
<0> ... <0> so is there a solution? <0> to do something with that? <1> Owner__: lol <1> blacharz: solution to changing variables? <0> how to change one variable and not loose the rest... <1> $Object->methodForVariable($_GET['newVariableValue']); <1> $object->save(); <2> I'm converting a program that used register_globals to use on a system that has register_globals turned off. Is there any easy way to find all the variables that need changing? There's hundreds of PHP files in this piece of software. <1> xbeanx: not that i am aware of.. <3> xbean: s/software/piece of ****/g <4> hello. how can i use something like for($i=1; $i<$subnet+4; $i++) $net$i = $_POST['subnet$i']; ? <1> Owner__: you obviously didnt do PHP before v3 :P <3> xbeanx, register_globals make things more confusing as they muddy the waters <3> myconid, I didn't need to... back then we used better languages, then tried php out at version 4 to see if it was of age <1> EvilGrl: you want to use {}
<3> statics only witin functions? Nope, it wasn't ready, so I went back to python <3> php5 is halfway decent though <1> EvilGrl: something like {{$net}{$i}} .. but i dont know the exact syntax <5> is there an easy way to log fatal and parse errors to a database? <3> also, $net['subnet'.$i], not $net['subnet$i'] <6> Zyclops: No <7> Zyclops: you can't do anything with fatal and parse errors, SIMUAAR <6> Zyclops: It would be kind of pointless and stupid too. <8> hmmm? <3> or even $net[sprintf("subnet%", $i] <9> guys variables arent that expensive so why concatenate <8> set the errorhandler to a custom cl*** / function set <7> Mithrandir_: not for fatal/parse errors <5> kuja: pointless? i've got all warnings and notices logged to a database, as well as javascript errors.... makes life nice and easy, can do all sorts of additional things <6> Mithrandir_: A parse error means the script doesn't even get a chance to run. <1> EvilGrl: just use an array.. <6> Zyclops: Yes, I'm saying fatal and parse errors would be pointless. <4> i see... thanks <10> A friend gave me an subdomain with cpanel acess... How can I find out witch are the nameservers for that domain ? <8> well... you just go on and think that ;-) <6> Though, many languages will allow you to catch syntax errors, but not fatal errors. <9> do a whois to a website on your friends hosting :) <10> thanks eljack <7> Zyclops: haha how about using fopen from a different script to get the error from a failed script and then log it in the database ;-) <11> I'm thinking of making a sort of multiplayer text-game with a friend, but we have no idea how to interact with each other, we were thinking of having a mysql table for each person, but how will we be able to "fight" each other? To make sure that both of us are connected? <1> ErikHK: ajax? :P <11> myconid: yeah, we were thinking of that, but how do we interact with each other whilst "fighting"? <9> EriKHK stop playing do some serious wrok :P <7> hmmm can two objecst have the same internal object id if they are not part of the same script execution? <7> " PHP 5 allows developers to declare constructor methods for cl***es. Cl***es which have a constructor method call this method on each newly-created object, so it is suitable for any initialization that the object may need before it is used" <-- wtf? ever heard of function Cl***Name() ??? <12> php4 had that too.. <7> yeah, i know <7> :-S <7> does anyone know if the __destruct() method is called on all objects if there is a fatal error? <13> dools: however, if you change the cl***name you hav to change Cl***Name() <4> how can i declare an array as global? <13> RunKit <7> itrebal: big deal! <13> dools: SSH! <7> itrebal: ? <13> sshhhh* <7> itrebal: ahh <9> EvilGrl i dont know if this helps but if the array is smal you can try it have the indexes global ones <7> sweet!!!! http://pastebin.com/594350 <-- try that out... the destructor is called even on a fatal error <9> $GLOBALS['variable'] <13> dools: why wouldn't you have done $inst = new Cl***; $inst->functiondontexistatallw00tw00tpwnznzrg(); ? <13> dools: instead of creating a new variable <7> itrebal: i'm such a dunce... i didn't even THINK of that <7> itrebal: can you ever forgive me?! <13> dools: maybe <14> is it possible to set a default creation file permissions in PHP (umask) I need files created by all php to be group writable... <7> djo_boulo: chmod() <7> djo_boulo: just write a wrapper function createFile() that sets your permissions everytime you create a file <14> It's not my php code <7> djo_boulo: either that or change the setup on the server so that the user www/nobody is set gid or whatever it is <14> I host several websites created buyy diffrent persons <7> djo_boulo: php scripts run from the browser are run as the apache user <7> www or nobody usually <7> so change the umask of your apache user <14> yes but apache cretas files with 644 permission and there is no way to change this
<15> not even umask, djo_boulo ? <13> i *really* need to get back to my projects.... <7> djo_boulo: you need to find out what user apache is running as, which will probably be www or nobody, then change the umask of that user <13> if debian its www-data <7> djo_boulo: apache _doesn't_ create files <13> dools: oh yes it does <7> php creates files running as the user that apache runs as <14> okey thaks all :) <7> itrebal: if i do fopen('path');, it's php that creates the file <7> running as the user that apache runs as <13> dools: 3 specificly, httpd.pid, error.log, access.log <7> itrebal: you are such a nerd <13> though there are probably more that i dont know about <14> dools, the www user have no shell, how can I set the umask for this kind of users <13> mmm tasty <13> i could go for a ham/turkey sandwich on rye with light mayonnaise <7> hehe <7> djo_boulo: dunno! <9> djo_boulo : if users access their account via web browser isnt it solved? <13> dijon mustard! <7> itrebal: with turkey?? <7> :-S <13> dools: its pretty damn good, you should try it <14> eljak, users access their accounts via FTP <7> djo_boulo: <7> 01:18 < dools> my apache user has no shell, how can i set umask for this user so that all files created by <7> cgi scripts are group writeable? <7> 01:19 -!- Toyo [n=hannes@e5db.cust.vannas.net] has joined #apache <7> 01:19 -!- ZippyPinhead [n=chatzill@pool-70-109-101-22.alb.east.verizon.net] has joined #apache <7> 01:19 < |\|00c|1z> dools: Either alter your init script for apache, or try Paul's mod_umask module. <7> 01:18 < dools> my apache user has no shell, how can i set umask for this user so that all files created by <7> from a kind user in #apache <16> my boss wants our site to be diplayed in its english version if someone outside the country visits it, and in out local language otherwise. is this possible? <7> _zz: gettext() <13> _zz: i think the locale is set in an HTTP request <7> _zz: look at www.php.net/gettext and http://www.grep.be/articles/php-accept.php <14> dools, I asked the same question several hours ago on #apache in vain... <7> well, i got lucky on your behalf :-) <17> im having problems between php's mcrypt using MCRYPT_RIJNDAEL_128 and mysql's aes_encrypt, the values <17> encrypted are never the same? can someone point me to a url or something, I have googled without much luck <14> dools, :) <7> djo_boulo: it's always the way! <14> I'll take a look @ mod_umask, I think that's th way, becuse I don't need to chnage file creation on all apache files but on pecefic directories... <7> djo_boulo: yeah, you need to change the umask of the apache user, definately <14> dools, definetly no luck for me tody , mod_umask needs apache 2 :( <7> djo_boulo: time to upgrade!! <14> it's not so easy (not technically) but administratively <18> quick question on http://pastebin.com/594414 (question in commants) <7> djo_boulo: yes, these difficulties become us... <19> ajnewbold: $tmp = array_shift(file($pagedir.$file)); <18> Elazar: ah! awesome! thanks! :D <19> ajnewbold: NP. :) <20> Hey guys <20> How do I handle spaces in directory paths in windows. Like: define('varname', 'C:\Program Files\path') <20> It dies on Cannot find C:\Program <20> There needs to be an escape character <19> Shouldn't you be escaping slashes in the define? <19> i.e. define('varname', 'C:\\Program Files\\path') <12> nope <12> single quotes <12> I think <19> Doesn't matter. <19> You use slashes to escape single quotes used within strings surrounded by single quotes. <12> dont trust anything I say unless I say it as if I know it <19> ex: 'Elazar\'s test' <21> can anyone help me out with installing PDFlib 6.0.3 on FreeBSD 6.0 by using pear??? <18> hah <21> the error msg: No releases available for package "pear.php.net/pdflib" - package pecl/pdflib can be installed with "pecl install pdflib" <21> Cannot initialize 'pdflib', invalid or missing package file <21> Package "pdflib" is not valid <19> dragan: Doesn't appear to be available as a PEAR package.
Return to
#php or Go to some related
logs:
#python kasadkad
#php #web #math sql max( select Reference to default namespace not in scope gentoo dmraid+sx4 CHAP permission denied ubuntu top absolute css ie doesn't work
|
|