| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Comments:
<0> ill try to recreate them <1> but do note the refferer can be faked by anyone who's willing. <0> yeah <2> Quite easily <2> Does anyone know if I can use prepared statements on a SELECT * query then? I'm not seeing any way to bind the results <3> anyone use php-syslog-ng? <4> !+g10 <5> Guideline #10) We don't support script(s). We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts <3> ugh <1> anyone use php-bot? it keeps malfunctioing with the message that starts " Guideline #10) We don't support"... <4> NeoThermic: *stab* <1> *bleed* <6> are there benchmarks or opinions on how much overhead going pure OOP in PHP5 slows down a web app, if at all <2> I think I saw one that said it was as fast as java <2> let me see if I still have the link <6> that would be ideal
<6> if you can find that link, that would be great <2> Yeah, I'm looking <4> woof <2> http://www.oreillynet.com/onlamp/blog/2006/04/digg_phps_scalability_and_perf.html <2> also talks about digg, but there is also the info on java -> php performance <6> awesome, thanks <1> [04:29:03] <2> I think I saw one that said it was as fast as java <- I'm not sure if thats a good thing or a bad thing <2> Well either way, it's good for an interpretted language that isn't running from bytecode <7> NeoThermic: Java is fast, mind you. <1> Mm. I have my reservations about the language of Java though. and if it wasn't 4:40am, I would detail my reasons. Which would then be ****ted on, but hey, opinion is free :) <2> Not if the NSA has anything to say about it... <6> "The NSA would like to remind everyone to call their mothers this Mother's Day. They need to calibrate their systems." <2> lol <1> "MI5 just called the NSA and reminded them their system is a few weeks out, as mothers day was last month..." <3> what function do i use to conver unix time stamp into say.. seconds? I have a feeling im doing my calc wrong between the alarm time and the calculated end time? http://pastebin.com/716413 http://tightwork.org/bush-counter/ <8> theres probably an easier way to do it, but try something like.... <8> $diff = (strtotime(date($then_year."-".$then_month."-".$then_day." ".$then_hour.":00:00") - $now) <8> or $calculation, whatever you had <8> then do your calculations on it, then echo date("y-d-m hh:mm:ss", $result); <9> and b1n0ry definatly isn't around... <10> what would be the easiest way to get PHP syntax highlighting? <10> like with bbcode <10> like [php] in vbulletin <11> steal someone else's code, obviously <11> :p <10> that was my thought but i cant find any :P <12> highlight_string() <2> Ortzinator: GeShi <2> that too <2> Geshi does 30+ langs <10> i tried GeShi but i couldnt get it to work the way i wanted <10> that is to say i dont know how to seperate hte code from everything else to do the highlighting <12> you could use preg_replace() <3> whats the diff of using strtotime to date, or mktime? dont they both make unix time stamp? <7> stealth: Why don't you read the manual pages for them? php.net/strtotime, php.net/function.date, php.net/mktime <9> hey Kuja <3> thanks so much <7> Hey <9> whats up? <7> itrebal: Just perfecting HumanTime and adding features :) <9> kuja: good stuff, did you clean up that block of code? <7> The whole ****ton of ternaries? No not yet :P <9> lol <13> say i have an entry for zip codes, i require 5 numbers, but when people enter 00012, it still works, and it goes into my DB as 12. Can i fix this? <7> Elekchron: You can cast it to an int, for example (int)"00012" #=> int(12), or you could use trim(), such as: trim("00012", "0") #=> "12" <14> varchar vs int <14> Elekchron: what's your feild type <7> Elekchron: 00012 is in actualality 2 numbers as far as your program is concerned, no? <15> hello i seem to be having problems using apt-get install php5-gd, can anyone help me? <16> Hey there <16> Images and PHP <17> I have two require_once('foo'); in two different files included in from one php file. The define()'s in the foo file complains about constant already defined. How is this possible? <16> Does anyone know how to make php display an image? <17> what's the name of the ? operator, for ***ignments like $a = $b < $c ? $b : $c; <17> i can't find it in the docs <18> The_Ball: its the ternary operator <15> oh now i know =) <17> maskd_, thanks <19> I want an include() page to have a function that is cogniscent of which page it is called under. Eg. function do_something(){ if (this.page.is.index}($do->this ) else( $do->that ) } <19> which variable am I looking for here ? ... some enviroment variable I suppose ... ? How do I list the env vars ? <20> hey when I'm using an include inside a table it's really messing up my formatting and doing weird things to the table, is there anyway to avoid this?
<20> all that's in the include file is a simple form <20> never mind <20> :( <20> still had the html and body tags which I think was messing it up <20> nope <20> any ideas <20> ? <9> Smaxor: thats for #web, not ##php, sorry <20> hmm ok thought because it was php I'd ask in here and that it deals with includes <21> Ok, does anyone remember my problem? <21> nevermind <21> gotta go <21> bye <0> lol <22> rofl <23> Anyone up? <24> I am <23> Hey... <9> i shouldn't be <23> I have a form that posts to the same file which uses the post to do various things... but I also want to use some GET vars in the URL without losing the post... any ideas? <25> You can post to a foo.php?this=that&bar=eek url <24> <form action="page.php?get=yes baby!"> <23> Err... not exactly... <23> You see, I want to have a link on the page which adds the GET to the URI. <24> Javascript <24> change the action of your forms <23> Not from the form... it's supposed to be done AFTER the post has been sent. <23> Gah. No other way? <24> I think I am miss reading your question <24> please explain in more detail what you are trying to do <23> Someone inputs something into the form and hits "submit"... <23> It reloads the page and now $_POST var is set. <23> Now, I want to add a link which will add a $_GET flag to the URI... <23> But changing the URI makes you lose the $_POST var. <23> Do you follow? <24> yes <24> the best solution for your problem is to use sessions or cookies <23> I want to preserve the $_POST var. <23> Shadow_mil: Well, obviously $_SESSION['field'] = $_POST['field'] won't solve it... <23> Shadow_mil: Because when you reload... $_SESSION has been reset to "". <24> make sure you have your session_start();. if you do, then $_SESSION['field'] will retain its value <23> Oh, right. <24> you can use If statments to make sure you do not write over you session var with a empty post <23> Yeah. <24> Tell me what you guys think of this: http://67.141.244.39/midi/gui.php <23> Hm... <23> Not working. <24> my page? <23> Ah, nevermind. <23> :D <24> lol <23> Shadow_mil: No, the thing I wanted to do... <24> o <23> Shadow_mil: I didn't set session_start() at the very top of the file. <23> Shadow_mil: Nice... is it for a song or some such? <24> You can write your own songs <24> I still have a lot more work to do with it <23> That's really neat. <23> :D <24> but its not bad for after 3 days <24> MIDI file format take forver to learn <26> is there a good tut to learn how to maintain sessions? I use a very crude method to login / logoff. Dunno if its the right method... <24> basix: most people save the p*** and user name in sessions then vaildate the user on each page <24> well save the md5 p*** <9> i did that once <9> then i realised it was dumb <24> and why is that dumb? <9> i now just store the username <9> one less query call per page <24> true. <9> validation of the username and p***word isn't necessary, unless its gotten from the cookie <24> but if you need to bad the user or something, as long as he stays loged in, nothing you can do about it <9> sure there is <24> ban*
Return to
#php or Go to some related
logs:
check for empty list python #mysql gentoo unmerge everything WARN Please initialize the log4j system properly ubuntu #css #gaim nvidia setenforce Permissive gentoo #php #perl #linux
|
|