| |
| |
| |
|
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
Comments:
<0> i just need to open remote sqlite file for reading/writing <1> [cz]MiCHi : here something that might be useful -> http://php.inspire.net.nz/manual/en/function.sqlite-open.php <1> Sorry abou the nz link, it picks the mirror closest to me <0> there's no problem with local file, but i'd apperciate if there's a way to open remote file (like http://....) <1> ahh <0> Voxii: thx for link, i know how to open it, but i'd like to open it remotely :((( <0> Voxii: i do not solve the problem with opening files but i solve problem to open remote files ;) can you help? <1> [cz]MiCHi : excuse my ignorance, but is a sqlite database kept in a single file? <2> hi people <2> anyone here <3> Yes, SQLite databaes are just a single file. If there ever is a need you need to read/write to an SQLite database remotely, then you may want to consider other options, such as MySQL or PostreSQL. <0> Voxii: yep, sqlite database is one file there are tables with data in it <2> how can I decrpypte files encrypted by ioncube <3> PostgreSQL, even. <0> kuja: postgresql stores data like sqlite? <3> No.
<4> kuja is bad to use lock/unlock system on sqlite <3> PostgreSQL is a server and client. <0> kuja: :( <3> [cz]MiCHi: You are misunderstanding the concept here. You can't just open a remote file via HTTP and attempt to write to it. <5> I'm running apache and have installed php, but when attempting to retrieve a php-file it doesn't get parsed it just asks where to download - any ideas what could be causing this? <1> [cz]MiCHi : Whats made you want to go over to sqlite if you have greater knowledge of mysql? <1> weedar : Done phpinfo()? <0> kuja: thx, i thought it :((( <5> Voxii, that is pretty difficult, as I said - every time i try to access a php-file I get a download-window <3> php-bot: tell weedar about at <1> weedar : Sorry, blank moment <0> Voxii: i made a script for Miranda which stores history from ICQ/Jabber remotely. but i don't know about free accessable mysql server <0> Voxii: i thought there some way to do it through sqlite :( <1> weedar : Have you edited the httpd.conf file to use the libphp.so module? <4> weedar you have configured this in httpd.conf: AddType application/x-httpd-php .php <5> Voxii / kioto - yes I have <1> hmmm <5> also restarted apache, of course :) <1> weedar : Wow, I was just about to ask <1> weedar : Looked over the apache logs? <5> Voxii, not really.. <5> d'oh. nevermind, I am a moron :) <1> sigh, I have to turn the net off now <1> Goodbyw all <5> I'd be fairly irritated if you actually turned off the Internet <6> Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16440 bytes) <6> PHP5 is a memory guzzling monster, that's an _insane_ amount of memory <6> it's a tiny script too <7> depends on what the script does... <8> aidan: size of the script doesn't make much difference <8> aidan: if it's for (;;) { $i[] = new HugelyInsaneObject(); } <7> does it read a 200 meg log file with file() ? <6> it manipulates a 2mb image <7> it must do it veyr wastefully <6> resizes and frees <6> SpComb: yes, I'll say <7> not php, the script... <9> paste the script if you want help aidan <6> it's not using anything other than the GD bindings, so it must be PHP <7> I've never seen php use 134 MB of memory, even if Gallery2 manipulates 2mb image <6> well, must be GD <8> aidan: if it has the .php suffix it must be php... <8> oh, right, sorry <7> hmm, it's only 800 some KB <6> http://rafb.net/paste/results/K3Xmdg79.html <6> The first image is converted, it chokes on the second one <6> the first image is 2.4mb and the second is 2.9mb <5> Now this is just weird, the libphp5.so is loaded by apache, I've added AddType and restarted apache with no errors - still php files are downloaded instad of parsed <6> weedar: put an error at the top of your apache file, restart, do you get an error? <6> if not, you're editing the wrong apache config file <5> thanks for the tip aidan, I'll do that :) <10> aidan: what's the memory usage after the first iteration? <6> the memory every iteration is given as 100432 <6> I've bumped the memory limit to 256 and it doesn't complain, but the script doesn't seem to be using any of that <6> the memory before it's freed is 43293184 <5> Ok so this is weirder :) I discovered it actually does parse php files, just not the ones named index.php - Isn't that odd? <6> weedar: yes <6> weedar: that is very odd <6> weedar: try #apache they're good for quirks
<5> will do! <11> I'm having a strange issue. I have a php mail script set to send mail from a contact form to info@mydomain. However, php is running in safemode and its trying to send it to a different email address. What is the behavior of mail when in safe mode and how can I override this? <11> the email address it is trying to send it do is admin@mydomain that is set in the httpd.conf in the ServerAdmin directive <12> hello <12> i want to open the page contact in all the page without the sidebar i have this code <h2><a href="<?php dcInfo('url'); ?>?contact" onclick="window.open(this.href); return false;" > Me Contacter </a></h2 what should i do ??? <12> please <13> you want to open that page in all the pages without the sidebar? <12> yes <12> what his the balise <13> which sidebar are you talking about? <12> it s here http://1866.free.fr/dotclear on the right there is "me contacter" <13> well in your code, put an if statement around all of the sidebar's html, and say that if the request string isnt contact, display the sidebar <12> ouch ok i will try to see that but i don(t know php and html .... <12> the function use is <12> elseif ($mode == 'contact') : /* Si le mode est 'contact' affichage du formulaire */ <12> include dirname(__FILE__).'/../../ecrire/tools/Contact/contact.php'; <12> perhaps i could change maskd ??? <12> but what i should write i really don't know <13> mm <12> it s not here i use the cms dotclear and this is a plugin a have ask question on the forum but no answer ... <12> not " it s not here" but is it here ?? ^_^ <12> excuse me i m french guy <14> hi all <15> hey <16> Hey <14> I7ve got a question concerning php.ini <14> I get a strange behavior <17> Hey, <14> if I specific my mysql.sock, then the mysql connection doesn't work anymore <17> If a constant name is stored in a var, how can I then echo that var to display the value of the constant, and not the name? <14> but if I set nothing, and create a link from /tmp/mysql.sock to my mysql.sock then that works <2> anyone knows how to decode ioncube codes <15> AlexC_: you need to escape the echo command and include the constant name <15> eg $var = 'hello '.WORLD; <16> antminds, as aidan said if you're the owner of the script, mail ioncube and they'll decode it for you <2> Andrew64: I am not <16> then, I guess the answer is no <17> maskd_, Aye I know that but what I mean is I have an array, and each of the values of it contains a constant name - I was hoping that when I echod each it would display the value of the constant - but instead of echos the name <15> AlexC_: when populating the array, your not just making them strings are you? <14> AlexC_ how about echo $varname[name1][0]; ? <17> maskd_, I think I am yes, let me upload code <17> http://pastebin.com/715105 <17> maskd_, what i'm doing is looping a template file, and I get all of the {TAGS} in to an array, I then replace the {TAG} with a constant called _TAGNAME <15> mm <17> maskd_, do you understand it? <15> sorta <17> there's no way to change it from a string to constant is there? <15> i cant see you defining any constants in that code thoug <17> they are defined early on, <15> you cant redefine constants <17> i'm not <17> i'm not trying to re-define them, im trying to call them <15> oh <15> try constant() <17> say for example, one of the tags in the template file is {_WEBTITLE} I was expected that it would replace {_WEBTITLE} with the constant value of _WEBTITLE <17> wont constant() re-define them though? <17> oh no, sorry - let me try that <15> constant() is useful if you need to retrieve the value of a constant, but do not know its name. I.e. it is stored in a variable or returned by a function. <15> so pretty much what you want to do <17> yep, thats the one - works now <17> thanks for your help maskd_ <15> no worries <18> Hey <18> Anyone know how I can dynamically call a constructor with a parameter array much like with call_user_method_array but for object construction? <19> bubblenut <19> in which language btw ? <15> im guessing php seeming as we are in ##php ;) <18> Yea, PHP <18> I would normally use $obj = new $cl***($param1, $param2); but in this case I don't know how many parameters the constructor's going to have <18> Oooh, I've just seen the first comment on call_user_func_array :blush: guess I should have done a bit more investigating <18> If anyone's interested apparently the solution is call_user_func_array(array(new ReflectionCl***($cl***), 'newInstance'), $params); <19> bubblenut heh ok <20> hello everybody <21> ansimation, can you help me with a js syntexs case?
Return to
#php or Go to some related
logs:
nielslensink /etc/localtime gentoo #ubuntu audacity alsa gentoo #kde xmlrpclib segfault #math nvidia-glx no match yum disable anvil postfix suse ipaq boot
|
|