| |
| |
| |
|
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 34 35 36
Comments:
<0> so for every method I am gonna do this $xml = $this->xml; <0> i will make it to null after I use it <1> Hi there is there anyway if i had $date = date("Y-m-d"); that i could make it go back a day? eg $date = $date - 1 day <2> $date = date('Y-m-d', time() - 86400); <1> thanks pollita :) <2> That'll break slightly during DST witching hours, but that's a minor price to pay <3> strtotime() could handle that i believe <3> strtotime( <3> -1 day'); <2> sure.... $date = date('Y-m-d', strtotime('yesterday')); <2> but that's a little slower <4> Can someone take a look at this for me? <4> I have a file called process_session_start.php: http://hashphp.org/pastebin.php?pid=6902 <4> in my index.php file i have included it like so: include ('includes/process_session_start.php'); <4> Then why is it that this doesn't return a value: echo ($_SESSION['aln_session_username']; <4> :(
<5> http://kanotix.pastebin.com/750444 anyone help please i get a doubled linefeed in my mail from my mailform... <3> AmyS3: my guess is you have \r\n lines in the $test, which are getting converted to \n\n somewhere or \r\n\r\n <5> zircu: i dont used any \r\n <6> Is there anyone to detect if $var is all CAPS and if so leave be, and if not convert to first letter uppercase, rest lowercase? <5> zircu: the code i posted is the pure code... <3> the content from the input is being sent in that format <3> AmyS3: evaluate var_dump($kommentar); <5> zircu: ah... hmm... huh? "evaluate var_dump($kommentar);" how do i use that?? <3> i've seen this happen when \r\n's are mixed with \n's <3> issue a var_dump($kommentar) and view the source in an editor that can display the line endings, or a strlen($kommentar); should reveal it as well <7> jbrimble: where are you setting $_SESSION['aln_session_username'] ? <6> Hmmm well how about this, is there a fuction that will convert first letter of every word in a string to uppercase? <3> mugger: strtoupper() <5> zircu: sry but im a beginner.. how do i make a var_dump or where do i get it? <6> zircu: I believe that converts the entire string to uppercase doesn't it? not the first letter? <8> ucwords() <3> AmyS3: before you define $text <9> var_dump($variable); <10> anyone here could help with a is_dir problem? <6> Xyphoid: excellent, thanks mate <3> mugger: correct, but you want to know if the word you are comparing to is all upper or not right? <11> mugger check if therE's a function strtoproper() first letter of each word capitalized is called "Proper" <6> StaZ[home]: I believe ucwords() does the job <12> Oh... Cool... <3> mugger: $var = strtoupper($var) != 'UPPER CASE'? ucfirst($var): $var; <11> mugger well i was giving you google keywords :P <5> zircu: this is what i get: string(28) "line1 line2 line3 line4 " <5> seems fine.. <10> anyone in here could help me with if (is_dir($file)) statement? <3> mugger: i'm lagging behind, i didn't see your last comment before giving the first answer <3> Cheryl: what is the problem <7> jbrimble: the whole thing looks kinda jacked up since your checking the user and p***word with mysql and returning a row if it matches then your checked the row mysql returned again aginst the username and p***word that seems kinda pointless. Either way though i don't see anywhere where your setting the $_SESSION vars your using <3> AmyS3: so the question is how many chars are in that string now <3> AmyS3: lineX == 5, so 5 * 4 = 20 <5> zircu: ????? huh? <3> AmyS3: it would be save to ***ume that each of those spaces you see is \r\n since that would make it 4 * 2 = 8 thus 28 <13> win32, apache2, php5.1.4, https support for fopen(); i don't got it and i want it. Manual == unhelpful. Hints? <3> so my guess appears to be correct so far, if you are mixing \r\n's and \n's in your content it is causing the double lines <3> CloCkWeRX: contact your hosting server <13> i am my hosting server -> local machine,l installation <3> CloCkWeRX: i've never heard of a win32 install not have fopen <3> AmyS3: so, if you followed my math, the question is how do i get rid of those \r\n's in the string <5> zircu: well i typed "line1" hit enter "line2" and so on... and the string above showes every time i hit enter in the textarea as space.. but wheres the problem? i just dont get it... if the spaces are converted in a \r\n it should be ok or not? but it seems the spaces are converted to \r\n\r\n.?!? <3> AmyS3: something like that, it could be your email client getting confused on what to do with the different line endings <3> so it just does it automatically <13> zircu: it's got fopen, stream_get_wrappers() just doesn't have https enabled / available, and i'm curious about getting it <3> AmyS3: try do do $kommentar = str_replace("\r\n", "\n", $kommentar); just before you ***ign $text <5> zircu: is there a way to get rid of it? maybe a other textfield code or so? or first getting the string, converting it and deliver as new $blablub? <3> CloCkWeRX: that is a different issue <5> zircu: ah good idea! ill try this <3> CloCkWeRX: https support for fopen(); i don't got it and i want it. Manual == unhelpful. Hints <3> it would be concise if it was in better english perhaps <5> zircu: IT works! thx ure the greatest!! now i can sleep well tonight.. oh its already 4:45 am ^^ <13> "https support for fopen(). I don't have it. I want it. manual is not helpful. hints, anyone?" <13> nevermind <13> openssl <14> hey <3> CloCkWeRX: and how do you know you dont have https? errr.. and how did you realized it was openssl? <4> Sorry for the late response.. I still can't figure this out, maybe I should make a zip and send it to one of you guys <14> i have an upload website at orbno.com, i need to run a script that if an image is over 30 days old to remove it, how can i do this?
<7> jbrimble: did you read what i wrote to you ? <13> print_r(stream_get_wrappers()); / phpinfo(); as well as fopen / file_get_contents doing strange things <5> im out thx again zircu <4> yes, bullr[a]ge helped me write the code, but he's offline now.. The sessions are set by authcheck.php <3> AmyS3: np <13> i finally found it as a very small note buried half way down the wrappers manual page (rather than fopen, file_get_contents, streams, etc pages): Note: HTTPS is supported starting from PHP 4.3.0, if you have compiled in support for OpenSSL. <4> After the data is sent via POST from the login.htm form <5> ^^ beware i'll come often now ^^ <4> This is the code that he sent me: http://hashphp.org/pastebin.php?pid=6901 <4> I've modified it to meet my needs, but just cannot get it working <14> like i have the time its a time() in the database that was inserted when the image was created, but how can i say if time() > 30 days insert delete function <14> i dont know? <14> time()-30 ? <4> it works up until it tries to access the sessions <3> time() is in seconds <14> i have the time string when the image was uploaded, how do i check is its 45 days old <3> you might want to look at some of the functions the database supports for calcuating date_diffs <14> for say? <14> i wanna do it in php <15> surfdue: rtfm on www.php.net/date <16> surfdue: where DATE_SUB(CURDATE(),INTERVAL 30 DAY) something like that <14> k ty <16> surfdue: let the database do the work for you <14> k <3> so time() * 60 * 60 * 24 * 45 == 45 days <14> and if that shows a table <14> then prosed with the deletion <17> out to lunch. bbl <14> procced <3> hb <10> can someone help me with a is_dir problem? <3> since youre having troubles calculating days from time(), you should make sure your delete statement is using and index as well <3> Cheryl: what kind of problem? <10> http://24.117.96.59/upload/opendirectory.txt is the code, and http://24.117.96.59/upload/opendirectory.php is the output <14> $check = safe_query("SELECT time FROM files WHERE DATE_SUB(CURDATE(),INTERVAL 45 DAY)") ? <10> i want the directories to have a different output than the files <10> but its not recognizing them <18> guys i know this isn't php, but i would like your comments as feed back, my wife is taking a basic web design cl*** using dreamweaver, (her first web programming introduction), she would like to get opinions on this http://erica.trells.com/Arts_Hmts_Web/ <3> Cheryl: what does eccho $file; say before the condition? <14> looks nice <19> weird.... I made a typo looking for the man page for file... typed in filke... the function that came up was flock o.O <20> nice <3> Cheryl: i'm guessing it is just the filename not the filename with the path your are reading from, so is_dir('files/' . $file); <18> butt? <18> opps, but? <10> ohhhh <10> thats probably it <10> thanks, let me try <3> trell: i'd say the sorse thing i've seen in about 3 months <18> sorse? <3> worse* <18> worse* <18> lol <18> honest? <3> well, for html yea <18> she is a beginner, first cl*** she has take for html <18> what about the graphic and color scheme <3> the site is required to be 1260 wide to view <3> the bcc needs some work <3> and the little arch <18> she cant touch the bcc logo :( <3> text colors are decent, but doesn' flow with the image on the right <18> arch? on the main pic <3> the arch around the bcc.. <18> yea we know <18> but the logo they provided ****s and she can't redo it <21> hm <18> she would like to she is good with photoshop but BCC will not allow it to be modified <3> besides the html issues i'd say it is way to wide for displaying and the art on the right side doesn't match the text <22> Anyone in here have any experience with Qcodo? I'm just curious to see what the general opinion is. <23> Elazar: give it a shot, looks cool <3> i bet if you turn the background white the bcc and the thumbnail moon thing will work <3> Elazar: Qco? <23> woops
Return to
#php or Go to some related
logs:
gwget apt-get install #kde gentoo use flags yellow #javascript #math wine ie6 no panel debian Broadcom 5721 openbsd upgrade-perl #perl non-chanop eggdrop
|
|