@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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> into month day and year then convert back with mktime?
<1> lietu- and 0 is equivalent false
<2> TML
<2> http://uk2.php.net/manual/en/function.preg-replace.php#61411
<3> Dragnslcr: so you're saying I need !=== instead of !== ?
<2> is that a good example?
<3> I thought ! just replaces one =
<4> dan_: You need it back as a unix timestamp?
<0> yes
<4> dan_: Then probably, yes.
<0> to compare with other timestamps
<1> lietu- !=== doesn't exist. !== checks value and type
<1> lietu- read the manual page for strpos
<0> thats what i was thinking, didn't know if there was an easier way
<3> um, right
<3> thanks



<5> TML, when my php site is served in windows server using foxserv (apache+mysql+blah blah), i have a problem with special characters, as i described before
<4> lisan: You're seeing different results between "foxserv" and a LAMP box?
<5> yes
<4> lisan: Did you setup the LAMP solution by hand, or use some sort of package?
<5> the lamp solution runs ok
<6> hey, where can i learn how to do streaming video, and stuff like that.
<5> foxserv has problems
<4> lisan: That's not what I asked, is it?
<4> lisan: Did you setup the LAMP solution by hand, or use some sort of package?
<5> right now i am using a lampp solution called xampp
<4> Davey: Did you ever get a chance to look at the changes I made to hashphp.org and add them to the repo?
<7> is there a PHP variable that has your home directory?
<1> fleckz- if so, it would be in $_SERVER or $_ENV
<4> lisan: So basically, you don't really know how either system is setup to any degree of detail?
<4> fleckz: Take a look at php.net/posix_getpwnam
<8> teeheee pwn.
<5> TML, i did some tunning in the setup, but mostly for MySQL stuff and some php basic config
<9> TML: no, sorry. can you e-mail me about it?
<4> lisan: Well, it's almost certainly a configuration setting, but without you having a pretty good grasp of how stuff is configured, it's incredibly difficult to help you. I suggest seeking help from foxserv, as they're the most likely to know what's going on with their config.
<5> it's ok. just wondering if the problem was in my stuff or in the server side. i will use lampp for hosting, so i do not care about foxserv now that i know the reason of my problems
<10> echo $file; echo "<li><a href='?p=reviews/view&amp;view='$file'>$name</a></li>";
<10> Does anyone see anything wrong with that?
<10> when I echo $file, I see the value, but when I insert it into the link, it doesn't appear.
<7> is there a standard/default directory PHP has set to search for libraries at the user level?
<11> remove the ' ' before/aft the $file
<10> K\sd, hm, alright.
<4> spyro_boy: You have what amounts to: <a href="?p=reviews/view&amp;view=">
<4> '?p=reviews/view&amp;view=' $file '
<10> Oh! I see what I did
<10> TML, I just noticed that! O_o
<10> Sorry for the newbness.
<11> :)
<11> the most common errors are the simplest
<10> K\sd, hah, yeah.
<11> ones that take the most time debugging too most of the time
<11> lol
<10> K\sd, as they say, two sets of eyes are better than one. :)
<10> K\sd, lmfao, sad because it's true.
<4> Anyone know what the GMT offset is for .ie?
<10> I've been on this error for the p***ed 15 mins.
<10> TML, .ie?
<11> see :P
<12> TML: might be -1
<1> Might be -1, if not 0
<4> That was as close as I could get, too. :)
<13> TML: http://www.timeanddate.com/worldclock/city.html?n=78
<1> If you want to trust the Windows time zone settings, Dublin is +0
<12> 0
<4> CryWolf: That's handy little site
<13> first result for "ireland timezone offset"
<13> I've used it before, for setting daylight savings time in a device that understands DST but doesn't have the start and end days.
<14> hallo
<15> i'm running php on a windows machine, and i just put phpmyadmin on and enabled php_mcrypt, but i get warnings in phpmyadmin saying that c:\php\extensions\php_mcrypt.dll could not be found, when that file is there
<16> night all!
<15> and i'm using IIS, incase that matters
<15> how do i get php to recognize the mcrypt extension?
<4> |splat|: That error generally means that it couldn't load some dependency. Try looking at php_mcrypt.dll in dependency walker
<15> ok
<14> phpontrax is silly
<1> I like SQL On Rails
<4> *blink*



<8> *blink*
<1> *blink*
<4> "SQL On Rails"?
<13> browser.blink_allowed = false
<8> http://developers.slashdot.org/article.pl?sid=06/04/01/1547251&from=rss
<4> Isn't that self-defeating?
<14> I could care less about railsishness..I just got done looking at phpontrax's active record implementation...there is hardly any attention made at trying to prevent SQL injection at that level.
<1> http://www.sqlonrails.org I think
<1> Was a joke site from Saturday
<13> they announced that on Saturday, didn't they?
<4> Oh
<4> This is why I stayed away from the Internet all day Friday, Saturday, and most of Sunday
<13> It shoulda been called SQL on Ponies.
<14> I almost burned my computer after looking at slashdot
<1> I hear they made it pink
<4> The whole April Fool's Day thing is probably the LEAST funny thing I've ever been involved in
<1> I was on a crappy laptop, going through Remote Desktop, and I'm red-green color blind
<1> I didn't really notice
<13> I just wish everyone a happy near year, and leave it at that.
<1> Google always has great stuff
<1> They're usually the only ones though
<7> I want to get all the files in a certain directory in an array like the function scandir(), but lets say I want only *.php files... anyone know a clever way of doing it?
<8> fleckz: glob('*.php');
<7> ok thanks, let me test that out
<7> itrebal: sweet, works perfectly
<17> sweet - finally got my analytics membership
<8> lokkju: ?
<17> google analytics
<8> ah
<18> me too
<18> yay
<17> took like 3 months
<7> how is it?
<17> eh, only just set it up, so we will see
<8> what *is* it?
<7> is all the data kept on your host or is it something google keeps track of with a javascript include?
<1> Google keeps the data
<1> You use a Javascript include
<17> any suggestions on anything (besides a logo and som styling) to add to this: http://www.gmprice.com - it gives you a simple way to find the aggregate sold price of a type of item on ebay
<1> itrebal- it basically does site statistics. It's pretty neat
<17> fleckz, javascript include
<19> Does anyone know a lot about cURL?
<7> itrebal: it's like a crazy webalizer
<8> gotchya
<7> although webalizer just parses logs
<8> MihewaCANADA: i made a proxy with cURL, does that count?
<19> Maybe. :)
<19> I've got a simple problem.
<8> just ask
<19> How would I go about manipulating cURL returned data?
<19> For example, how would I use htmlspecialchars() on returned cURL data?
<8> sure curl_setopt to make CURLOPT_RETURNTRANSFER true, when you do curl_exec, it returns the HTML
<8> as a string
<19> Yes.
<19> I've set $data to curl_exec($ch).
<19> I can echo that string.
<19> However, using htmlspecialchars() or any function on the data does not affect it.
<8> echo htmlspecialchars($data); ?
<1> You are ***igning it back to a variable, right?
<19> Nevermind, may I ask a different question?
<19> :)
<8> no
<19> I am familiar with dir functions, however, would it be possible for me to use dir functions to list all the files in a non-local directory?
<4> No
<19> That is, on a directory that is on a different website? (public directory).
<4> MihewaCANADA: The answer remains "No"
<4> The directory functions only work on the local filesystem
<19> TML: Can you think of any other way?
<20> If I have a new array, and I want to ***ign a value to it. eg, $key = 25;, $myarr[$key] = 'blah'; - why does that result in a key of 0, rather than 25? I seem to need to add a letter to make it consider the key a string.
<4> MihewaCANADA: No.
<19> TML: How about somehow getting the HTML of the Apache file-listing directory page (that is, directories with no index file.)
<4> MihewaCANADA: What about it?
<4> Are you asking if it can be done? Sure. file_get_contents() could do that.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#mysql
discard double bounces
mkvfatfs
ubuntu apt-get install nfs-utils
Non Java Bittorrent client
ubuntu cannot access windows shares over smb
#linux
#perl
#linux
xine .dob



Home  |  disclaimer  |  contact  |  submit quotes