| |
| |
| |
|
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
Comments:
<0> can someone take a look at this? the checkExistence() and checkName() isn't working at all -_- / http://pastebin.com/641096 <1> m0o, unixshell.com is cheap <1> I've got a ton of stuff running on one of their $11.50 VM's...might need a bit more horsepower for the shoutcast streams, but worth a try. <2> stoffus: why not just check for the existence of the file, rather than getting a list of all files in the directory? <0> CryWolf, but to check for the file, you must list all the files in those dirs? <2> stoffus: why? <0> how else would I do? <2> stoffus: are you moving the file to all of those directories? <0> yes <0> there's two dirs <2> and one file gets moved to both directories? <0> no, I can see now what's wrong with the checkExistence()-function <1> I've got something I'm exploding into a list of variables...problem is sometimes there's an extra field, sometimes not. (at the end). I don't want it anyway, but it's causing a ton of undefined index errors. (and I'm currently getting hammered really, really hard) <0> but the other one should work, shouldn't it? <2> stoffus: checkName()? Apart from being poorly named, as it doesn't check anything, it should work. But you haven't said what's wrong with it. <1> is it ok to explode into a list smaller than the exploded string?
<2> kc5cqm: apparently not. Why not use an array? <1> not structured like that <1> hang on... <0> CryWolf, hehe, I know... what do you mean "it doesn't check anything" ? <2> stoffus: what about the name is it checking? <1> http://pastebin.com/641100 <1> problem is, the incoming string is sometimes 1 field longer (I don't care about this optional last field though) <2> kc5cqm: is this coming from a tab-separated file? <0> CryWolf, isn't it checking $thefile, which is a synonym to $_FILES['thefile']['name'] ? <2> stoffus: what is it checking? <1> CryWolf, yes <2> kc5cqm: why not use fgetcsv() then? <0> haha, if get_magic_quotes_gpc() is turned on <0> hmm <0> but then, if it is, it strips the slashes <0> or at least, that's what it's supposed to <2> stoffus: strip_magic_quotes() would be a far better name for the function. it has nothing to do with anything about checking the name. <1> well, it's coming from a url <0> CryWolf, well, that's a minor problem at this stage <2> kc5cqm: and? <1> can I ***ign a shorter list to an array with more elements? <2> kc5cqm: try it <0> CryWolf, the function, at it's start, was supposed to check for " " and replace it with "_", hence the name <3> how do you compare a mysql date, with php date() <3> to check if sql date is bigger as today <2> HS^: use UNIX_TIMESTAMP() in mysql <3> if ($sql > date('Y'-'m'-'d')) <3> something like that? <3> CryWolf.. i think i want php <0> CryWolf, you wouldn't mind telling me what's causing the problem rather to make complaints about my coding-style? :) <4> Bit of a cosmetic question please :) I have in our mail() function headers, where on our From: header our domain name has capitals in it, DomainName.net - but when it gets mailed it changes to lower-case domainname.net - is this normal? <5> so if I can see phpinfo.php.. shouldn't I have a php.ini somewhere? <5> wait duh <5> wait a min. so its saying I have php.ini in /etc/php5.... but that directory doesn't exist. ?? <0> create it <3> if ($sqldate > date('Y'-'m'-'d')) is that save? <3> safe <3> whatever <0> and then put the file php.ini in there <6> when a column is set index UNIQUE, and i try record an existing row by php script, how do i find out if fails ? <5> just make up a php.ini file? <0> take one from php.net/configuration <5> will do <6> when a column is set index UNIQUE, and i try record an existing row by php script, how do i find out if fails ? <7> bye everyone <3> someone?? <3> how to compare today of PHP with SQL date() <8> date () <8> just put in the string <0> be sure that you have the same format in both the script and in the DB <8> or use time() <3> it is stored like this in database <3> 2008-08-01 <3> of type date <0> then use date <1> thank guys <3> time?? <3> ehm.... <8> what exactly do you want to do? <4> Any ideas on my question please? :)
<3> i want to look if the date fromthe database, is higher as today <8> try ("Y-M-d", time ()); <0> he doesn't need time <3> i dont need time.. <8> oh <8> okay, I see <3> i need compare dates <3> one is stored in database..... and the other need to be compared with today <8> crap, just remove the hyphens then <0> well, then use date("Y-m-d") <3> i tried <0> and what error did you get? <8> and... <8> "Error 1337: stfu noob" <3> i used this <3> else if($datum != 0000-00-00 && $datum > date('Y'-'m'-'d')) <9> hi, i have a date: 04/14/2006 and i want to see if that's a monday, how can i do that? <8> no no <8> you're doing date() wrong <3> but if the date is not 0000-00-00.. it will always say $datum is bigger <8> date('Y-m-d') <0> m***ively wrong <3> ah <8> and even that's not quite right <8> not m***ively wrong <3> whats not right about it <8> I don't understand why you're keeping it like 0000-00-00 <8> that's not a proper variable to compare <8> try strtotime() <3> no still not work <8> not sure that would work though <0> else if($datum != "0000-00-00" && $datum > date('Y-m-d')) <0> isn't that proper? <0> isn't date() printed out as a string? <8> that actually would work, wouldn't it, due to the string comparison rules <3> i compare to 0000-00-00 because its the standard date <3> inserted.. <10> hey <8> it just makes me uneasy <3> lol <10> i'm trying to do a print_r on an object in PHP 4, and i can't seem to print the contents <10> any idea what to do? <8> stoffus' example should work <0> nym, need more info... <0> what object? <10> i'm doing print_r($obj, TRUE); <8> wave your magic want, nym <10> the object is made by json_decode <10> i think you mean wand <8> if you can't print the contents, there's probably no contents to print <8> the error is probably elsewhere <10> no, there's contents to print <8> how do you know? <0> are you sure? <11> as soon as someone connects to my webserver, the process uses at least 25MB of ram, is that normal? <3> well it works now.. but what is so wrong about comparing to 0000-00-00 <3> (please say nothing) <8> well, just my own comfort level I guess <0> ndee_, what webserver are you using? <8> it's generally not best practice to compare strings with > and < <11> stoffus: apache <11> 1.3 that is <0> ndee_ and what modules do you have? php? <8> but as long as it works... <12> i try to delete <title>... </title> from a html file a guy here say to me to use substr_replace, but i'm not sure that's it's a good choice, because i can't know the position of <title> and I don't know how to do with preg_replace, is someone can help me ? <11> stoffus: a couple, http://pastebin.com/641152 the problem is, I don't know for sure which ones to deactivate <3> ^Migs^ its not a string, but a date i guess.. but it works so who cares.. thank <8> you'll care when you come back to the code 3 months from now and can't figure out what you're doing, so make comments <13> I want to use a URL redirect in an if statement - would header("Location:..."); be correct to use here? <2> stoffus: did you ever say what the problem with your function is? <6> when a column is set index UNIQUE, and i try record an existing row by php script, how do i find out if fails ? <0> ndee_, I guess you'd better ask in #apache, since it's not php-related <11> stoffus: ok <6> when a column's index is set to UNIQUE, and i try to record an existing row with a php script, how do i find out if it fails ?
Return to
#php or Go to some related
logs:
libpam_mount ubuntu error 27 unrecognized command solution jatix.hu gentoo noapic Python Dijsktra #css #suse gentoo decompile python 2.4 install nforce4 driver postfix PERM_FAILURE: SMTP Error (state 9): 554
|
|