| |
| |
| |
|
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
Comments:
<0> but then again he has no idea on Storms :P <1> schapht, is there any unwritten rule for blog URLs? For instance... if I linkify my subjects and make them the subject name I'm gonna end up with a url like /posts/newcanadianpmrebuffsusenvoy ... <1> but /posts/2 isn't something memorable <2> Running PHP 5.0.4. ... why is it that this works... foreach($array as $key => $value) { $_SESSION[$key] = $value; } ... and this doesn't... $_SESSION = array_merge($_SESSION, $array); ? <3> Elazar: Em. no. <4> FenixRF: nothing I know of offhandle. You might want to check to see how some other blogs do it. You could replace spaces with _ instead, but it'd still be a little long and ugly (unless you limit your subject length or something) <4> offhand, that is. <2> Stormchaser: ? <1> schapht, thanks... :) <1> maybe I'll go bug #web <4> FenixRF: not a bad idea. Good luck! :) <1> Thanks... I'll still be here, but not here... and god... if master-o-coding pms me once more... grr <3> FenixRF: hm? <5> FenixRF: what is he PMing you? <1> ya <2> Stormchaser: What do you mean?
<5> FenixRF: ... WHAT is he PMing you? <4> FenixRF: unsolicited PMs aren't allowed here. I'm sure someone could ban him for you if that was the case. <3> Elazar: Not sure if that is actually allowed... <1> private message... master-o-coding has asked me if I'm a php script coder <1> naw... don't believe in banning the desperately timid <1> hehe <3> Well... My point exactly :) <6> Another good-programming-question: Should i rely on the __autoload() function ? I have about 15 objects wich but i do not need all of them in every script. Using the __autoload() it would only load the objects it needs. <4> Elazar: in addition, it's probably better (safer) to explicitly add things to $_SESSION <2> Stormchaser: I ask because I'm not seeing anything saying it isn't allowed in the docs. <6> Concrete question: What is faster, loading all at once or only if required ? <3> Elazar: which PHP? <2> Stormchaser: 5.0.4 <5> Elazar: well I'm sure it worked in PHP4, and I don't see why it wouldn't work, unless you have other code that might be affecting it <4> T-Start: it'll be faster to only load what you need. How you load it is up to you. <7> hi there, anyone willing to help? <3> anna2: no <2> AcidReign: Hm... *goes to check something* <4> hehe <3> !tell anna2 about ask <7> Stormchaser: ok, good. <4> glad we got that settled <2> Eh screw it... not worth it at the moment... thanks anyway. <7> i have installed php with --with-config-file-path=/opt/php/etc/ <7> i have put a php.ini file there <7> but it is not being read <7> (or it seems so) <4> anna2: phpinfo() will tell you where php is looking for php.ini <7> on the output of phpinfo() i can see path=/opt/php/etc instead of /opt/php/etc/php.ini <3> Elazar: Never tried to do something like that with a session, anyways... But php5.0.x isn't supported anyways -- Upgrade to 5.2 :) <7> and the php.ini _is_ there <4> anna2: look for the info about where php.ini actually IS <4> which is different than path <3> anna2: Have yourestarted apache? <4> also a good point. <8> can someone explain, i'm using php 4.3 and a dinosaur mysql version (v4.02) and both php and mysql are handling unicode characters fine. <3> s/5.2/5.1 <7> ofcourse. when i strace httpd i can see that apache does read php.ini <8> http://section31.us/temp/unicode.php <9> after the mysql instalation, whats are the next steps that i have to follow to put my site with the db working ?' is thery any good site explaning that <7> but php seems to ignore its existence <7> :-/ <10> Stormchaser: <space> is the big bar just before you ... <3> toggg: +q is just few keys... <10> tsk tsk ... I was just joking :) <11> how can i format a date, and output it in a different way? <4> anna2: it's really likely that it's just reading a file you're not expecting it to, or apache needs to be restarted. But if not, good luck tracking it down. <3> anna2: Just restart apache... For kicks... <7> but i have!! <7> i strace apache and it reads php.ini <12> If I starta session, add a cookie, and then delete the session, does the cookie get deleted? <3> anna2: Restart it. <7> ok... here we go.. <10> ymcx: no <13> are you a girl, anna2? <10> ymcx: they stay on different machines <4> does it matter? I didn't think apache had a gender sensor... <12> toggg: my cookies seem to get eaten when I remove the session <7> Edward123: is this a php support channel or a dating channel?? <3> anna2: :) <13> ah, confused - thought i was in #php-singles
<7> Edward123: lol <13> it just seems, over here anyway, that web scripting is a largely male-dominated arena <10> ymcx: it's related to the process , if you include the server/client exchange <14> hei toggg <12> toggg: do i need to send cookies before I starta session, or can I send them during? <7> nope, nothing changes, still not found by php, yet already read by apache <10> come stai kioto :) more php by you ? <10> ymcx: it's independant <4> anna2: you're definitely looking at "Configuration File (php.ini) Path" in phpinfo()? <7> yes, have a look: Configuration File (php.ini) Path -> /opt/php/etc/ <4> the last thing I can think then is permissions.... <15> Stormchaser: huh, I just got back and read "dewaard is always using switch statements instead of if's... Thinking they are faster :)" <7> i have already chmoded to 777 <7> but nothing.. <3> anna2: Hm... What PHP are you using? <4> and the directories? <15> Stormchaser: did you make a typo in the name? <7> 4.4.2 <10> anna2: checked upon phpinfo what actually is used ? <7> yes yes <16> should E_WARNING be fatal? <4> Narada: usually not <3> dewaard: no, I didn't... I remember, that you showed me a piece of code with switches in it, but no ifs, saying 'switch is faster'... <7> oh, and btw im using apache-1.3.34 slackware package <15> Stormchaser: oh, ok. isn't that true? <3> DeadMeat: Nope <15> hehe <3> now THAT was a typo :) <17> can you do if ($array == $array2) <16> schapht: well if i require a file that doesn't exist php gives me two E_WARNING errors instead of one so i'm trying to figure out why <3> JaredCE: yes <18> does ftp_put() function overwrite files if they already exist ? <16> schapht: that is using my custom error handler <16> anyone know why php calls the custom error handler twice when requiring a non-existent file <4> schapht: well require()if a file that doesn't exist should halt the script <16> schapht: talking to yourself again? <4> hehe <7> anyways, its a weird thing, if i find it i ll get back to you <4> that happens <19> anyone running MSIIS by any chance ? <7> thanks everyone <4> anna2: good luck <14> toggg i have let you a pvt message <16> schapht: so E_WARNING will then be fatal if it halts the script <19> I needa DirectoryIndex directive equivalent <19> I need to set a file to use which doesn't have any .extension <15> I thoughts switch was faster in cases like switch($foo) { case 1: echo "one"; break; case 2: echo "two"; break; } but if it isn't its absolutely cleaner :) <4> Narada: well, I guess so. I'm pretty sure I've gotten warnings w/o the script halting. But the point of require is to die if the file is not found. <4> dewaard: better to code the clean way than the fast way. Programmer time is much more expensive than machine time. <18> does ftp_put() function replace files if they already exist ? <3> dewaard: That is absolutely true :) <20> hi, the sessions have some limit time ? <16> schapht: hmm well got any other ways of creating a warning <4> andymaster: pretty sure they do <15> schapht: sure, but there are exceptions to that rule and I'd like to be as far in the middle as possible :) <4> error()? <20> schapht: where can i find that time ? <21> Is it possible to put "this.value" in a php $var in the following case => <input type="text" name="Euro" onKeyUp="this.form.Franc.value=this.value*6.55957"> ? <4> dewaard: probably. The important thing to think is "Will another developer understand this?" <4> andymaster: maybe php.ini. Not sure. <10> kioto: where that ? <4> or phpinfo() if it's not in php.ini <16> schapht: hmm perhaps you mean trigger_error() <4> Narada: yep, that's it <4> the downside is that that will be a E_USER_WARNING I think, but the handling should be the same <4> division by 0 might be a E_WARNING <4> yep, it is for me anyway <21> Or, for example, is it possible to change the following code (which works perfectly) so that the multiplication and the division are made using php functions ? <21> <form>Euro:<input type="text" name="Euro" onKeyUp="this.form.Franc.value=this.value*6.55957"><br>Franc:<input type="text" name="Franc" onKeyUp="this.form.Euro.value=this.value/6.55957"></form> <4> Narada: in addition, division by 0 isn't exiting the script <16> schapht: i see; <16> omg i just ended my message with a semi colon :O <15> schapht: true <20> schapt: is the value session.cache_expire or session.gc_maxlifetime, i don't understand the difference in the documentation
Return to
#php or Go to some related
logs:
equery files empty suse10 KERNELCONF ftp a symlink #css amavis-new etch php windows disable-odbc #osdev 10.1 the ncurses frontend is installed but does not work gentoo downgrade udev linux
|
|