| |
| |
| |
|
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
Comments:
<0> sonasks: no. nothing here is magic. the coder created the arya, and echo'd it in such a way that your browser refuses to wrap it <1> ok, thanks for the help <2> database > files 99% of the time <3> thanks <4> evening all <4> I have an interesting question! <5> I have one too, but I'll let you go first. <4> I need to turn off Strict Standards on a specific file (DB.php from PEAR). is there any way to do this? <5> #pear <3> thanx, i'll use a database then <4> this is not a PEAR specific question <6> is it $PHPSELF or $PHP_SELF <7> swarmz: Um. You can change the error level before & after requiring the file, certainly. But that won't affect the error level when the code in that file is actually being used. <6> ? <5> 'mkay. then error_reporintg (e_ALL); <5> *reporting
<6> for use in forms for example <6> underscore? no underscore? <7> r0xoR: $_SERVER['PHP_SELF'] <6> mattmcc, aight, isn't there a shorthand one? i'm pretty sure that reg-globals is turned on <7> Don't trust register_globals. <6> aight <0> r0xoR: i woulnd't count in reg globals <4> Stormchaser: that won't work for errors that are evaluated at the compile time <6> k <8> hey, i was just trying out this code in a book im reading, but php is giving me an error....the code is $hDB = pg_connect("pgsql stuff..."); (\n) or die("text"); ...it gives me an error on or die <6> yeh, good idea i suppose <0> r0xoR: it's very likely to be removed in a future php version <5> swarmz: *blink* <5> !+error reporting <9> Error reporting: Add <?php error_reporting(E_ALL); ini_set('display_errors', 'on'); ?> to the top of your PHP script to display all errors, or set the display_errors to 'on' in your php.ini and error_reporting to E_ALL in your php.ini <0> swarmz: then you are screwed. <0> fix pear <10> Hey <0> bucky5: the hell is "; (\n)" <10> if I get a "Maximum execution time of 30 seconds exceeded in" from my script a various lines, can I be sure that it is a server issue? <11> if i have a date say 4/11/06 how to i turn it into the ticks number <5> ||cw: ninja on a stick. <0> tst_: no, it's probably a code issue <8> that was just to indicate that the or die part was on the next line..its not actually in the code <7> tst_: No, it could be an infinite loop. <4> tst_: it's an issue of your script taking to long to complete <11> how do i turn 4/11/06 into time() <7> phos: http://php.net/strtotime <11> k <10> swarmz and mattmcc, but it times out a line 182 then 316 then sometimes another line, etc. but always around a script <10> sorry, always around a query <0> bucky5: k, "or" needs soemthing to the left (a newline will be ignored) but a ; is not valid <0> tst_: then several parts are taking a long time, but different amounts of time on different data <12> does mcrypt come preinstalled with most php distros? <12> * most php setups <0> tst_: if ti really needs that long, increase the max exec time <13> Greetings. If I have a unix timestamp, how would I get the timestamp of "the same time next Tuesday"? <10> ||cw, it's the same page... the same data it should be processing <13> Can strtotime() handle "next Tuesday at $time"? <0> Crell42: strtotim("next tuesday", $time); <7> The manual page references information on supported formats. <10> ||cw, yeah.. I think I'll have to do that, I just wanted to see if there were other possiblities as to why it might be timing out <0> tst_: is it shared hosting? <13> ||cw: No, that gives me midnight on next tuesday. <13> I just spent several hours discovering that the hard way. :( <10> ||cw, yes <0> Crell42: ok, combine that with mktime() <13> hm. <0> tst_: ah, so sometimes you are getting fewer cpu timeslices <13> Which one on the inside? <0> Crell42: use the next tues for the date parts and the old time for the time parts <13> hrm. So get the timestamp for next tuesday, break it out with getdate(), then feed that back into mktime()? <14> hello all. i do have a problem with php and image functions. i want to add a watermark on an image. That works, but the watermark image (png) has to be transparant. it contains a small image and the rest of the image is white. when i try to make it transparant (imagegetcolor($watermark, 255, 255, 255);) it wont get transparant. does anybody has got an idea what i am doing wrong ? <0> Crell42: yeah <15> T_V: You have to use truecolor images all the way through <0> T_V: imagegetcolor isn't a php function <13> Sounds over-complicated, but if it works I'll take it. :-) Thanks. <14> ||cw: true. its a function to get the color (from php.net ;) ) <0> T_V: yeah, not there <14> TML: so i have to use for example a jpg that has true color and a white background <14> ||cw: created myself
<0> T_V: imagecreatetruecolor is not format specific <14> well the problem should be somewhere with truecolor <14> thanks <16> hi, can anyone help me? i need to somehow transform '[article=Article_Name]' into '<a href=viewArticle.php?articleName=Article_Name>Article_Name</a>' <5> Storkme: um.. explode()? <16> explode what? the = ? <17> and a bit of concatination afterwards <15> Storkme: Why not use normal BBcode and the PEAR BBcode parser? <16> TML, the pear bbcode parser is a mess <15> Storkme: BBcode is a mess <15> I fail to grasp your point <16> lol <5> Storkme: you can always fix it. <16> i'm using the punbb bbcode parser <16> Stormchaser, i'm really inept at php <12> what's the fastest way I can encrypt something? <4> md5() <12> I plan to make a file-based forum, but am not so sure if I should encrypt all the posts, etc just to be safe <15> swarmz: That's not encryption <5> Storkme: So... Um.. Learn it? <12> md5 is a hash though <15> excelblue: mcrypt <4> woops sorry <16> Stormchaser, :( <12> ah, how fast can that go for encoding maybe 10kb of data? <15> excelblue: 17 <18> does anyone know how to install the gd library into php? <5> Storkme: what? If you want to do something, LEARN! <2> why is $_REQUEST=unserialize($_REQUEST['oldRequest']); not valid? <12> TML: can it encrypt fast enough that some forums won't take forever to load? <15> joeyjones: Yes, including the PHP manual. <15> excelblue: Encrypting forum posts is probably a bad idea <18> TML: you mean read the manual, right? <7> winmutt: Well, it is syntactically valid, albiet weird. <15> joeyjones: I do indeed <12> ah... so I should just leave them in plain text? <12> and depend on stuff like .htaccess for security? <2> mattmcc: yes but $_REQUEST=null then <12> or what's the best way to secure such stuff? <18> excelblue: for it to be true encryption it's jsut 1 way encription... <12> it's not true encryption if it's one way <16> Stormchaser, yeah, that's one option :| <7> winmutt: So the value of $_REQUEST['oldRequest'] was not a properly serialized value. <12> since encryption must be reversable <15> excelblue: I don't understand what you're trying to do. Is this some forum for drug lords or arms dealers? <16> one way encryption is called a 'hashing' <12> no... it's just a gaming forum <5> Storkme: ss/one/only. <12> though there are some conversations that I'd prefer that nobody leak out on the forums <12> eg. strategy, etc. <18> cause if it can be unencrypted it aint secure <15> excelblue: Then moderate posts <16> excelblue, and moderate users <12> the thing is, there's going to be posts for only a few select people <15> joeyjones: WTF are you talking about? <16> joeyjones, lol. <2> magic quotes came from somewhere :( <12> I'm afraid that someone would like barge into the system using some exploit in the httpd <16> excelblue, as long as you have a decent httpd... <18> with php it's hard to unencrypt something securely <16> like lighttpd or apache <19> yeah, i encrypted my novel with a hash algorithm, now it's totally safe <16> Xyphoid, :P <12> should I just use .htaccess and some stuff to cover the posts up? <2> excelblue: dont use mysql's aes if you want your data to be secure <5> excelblue: aren't the posts publicly viewable? <12> I plan to leave mysql out of this completely <16> excelblue, just make it so that the posts aren't publicly viewable... <12> Stormchaser: only some are to be publicly viewable <2> there is a sploit in mysql_aes_encrypt <12> but the private forums better function fast too <16> excelblue, you're overreacting. <12> I just need as much security as plain p***word-based mysql encryption would do <2> ?
Return to
#php or Go to some related
logs:
getenforce centos3 bitchx autocomplete nick toshiba p20 xorg.conf #ubuntu centOS xinetd listening port #ai ubuntu share active desktop vnc BadMatch firefox gentoo function snd_config_hook_load_for_all_cards returned error: synaptic using broken filter to find package
|
|