« first day (472 days earlier)      last day (4494 days later) » 
04:00 - 18:0018:00 - 00:00

4:17 AM
grrr...I hate the way set_error_handler() works. It could return null if its just the first callback set OR if there was an error setting the callback. How are you supposed to tell if a valid callback is set the first time?
 
structured exception handling
 
@Anfurny What does that have to do with setting an error handler? Just because your application might use exceptions doesn't mean you should just not set an error handler at all; they're still gonna be triggered by internal PHP functions.
 
I guess.
So here's the solution to your problem:
Set your error handler twice in a row.
If the second one returns null then there was a problem.
 
4:51 AM
Anyone know if it is at all possible to break out of an if block?
 
if ($firstLevel)
{
   // Do Stuff

   if ($youWantToBreak === false)
  {
      // do all of the stuff you want to do when not breaking here.
  }

   // Don't do anything here
}
 
so in other words, "no, just restructure it"
 
yes, I think so. Because it really is just more conditional logic.
 
ok, thanks.
cheers
 
5:05 AM
@Anfurny I thought about this but man its ugly. Oh well, just something else to add to the list of things I don't like about PHP
 
@CharlesSprayberry You know what you did last summer... (bad movie reference)
(I mean, aren't you in a position to know if you have already set an error handler? If not, why aren't you in control of that?)
 
@Paul This is a good point but doesn't explain why the same return value for 2 distinct states; doesn't make much sense to me.
 
@CharlesSprayberry Yes, NULL is a horrible return for an invalid callback, I agree.
 
0
Q: warning about Pick() while send push notification from PHP

SitenI am sending Push notification from PHP to IPHONE. Connection was established successfully but it will give error me like: Connection Established Warning: pack() [function.pack]: Type i: too few arguments in C:\xampp\htdocs\BiiMe\checkAvailableProduct.php on line 68 M{"aps":{"alert":"BiiMe fin...

 
5:20 AM
@root Please do not spam the chat. Your question is posted on the site and you linked it earlier; if somebody can/will help you they will.
 
5:38 AM
ok
 
hi root what is error message when send pushnotification
 
Hello nice to meet you :0
 
6:01 AM
Hi @sandfox
 
6:27 AM
posted on January 30, 2012 by Alan Knowles

Article originally from rooJSolutions blog Since we have been very busy already this year, I have now almost completed the process of migrating from a Sole Proprietor into a Limited Company. Roo J Solutions Limited is now a registered Hong Kong Company. We are now looking for full or part-time staff (based in Hong Kong).  Please read the full post for details. 

 
6:37 AM
Hello :)
 
6:51 AM
:)
 
7:21 AM
hi friends.. ;)
I got a problem with chmod() umask()
0
Q: PHP chmod() and umask() not functioning

pbvamsi$url = 'http://gdata.youtube.com/feeds/api/playlists/blabla'; $fp = fopen($url, 'r'); $buffer=''; if ($fp) { while (!feof($fp)) $buffer .= fgets($fp, 1024); fclose($fp); $buff=stripslashes($buffer); $old = umask(0); file_put_contents("si.xml", $buff); chmod("si.xml", 0777); umask($old); The w...

 
8:19 AM
Hi there
 
is there a single line by which safe mode will be off for that particular script
 
@pbvamsi Uh...no? Safe mode was specifically made to not allow to turn itself off.
 
hi everyone
 
Otherwise there wouldn't be any point having safe mode in the first place.
 
Do you think its Possible to intergrate for example groveshark.com and pandora.com with joomla platform
Not much use of Ajax with Joomla only in menu and slider
 
8:49 AM
test
anyone is reading there?
 
posted on January 31, 2012 by Stuart Herbert

Phix v0.15 is now available from pear.phix-project.org. This release is dedicated to my Dad, Leslie Herbert, who passed away in December 2011 whilst I was recovering from surgery. He was always encouraging me to spend as much time as possible working on my own software, and I’m sure he’d be happy that his PC has become my new dev box for working on things like Phix. What’s New In This Releas

 
@Gopesh hi
 
hi pbvamsi
 
i need a small help
 
ok..i will try
 
8:59 AM
pls find my question above in the chat and try to reply
 
k...will try
 
@Gordon thanks for your help on my previous post
 
@pbvamsi np
 
could you please try to address my current question
I got a problem with chmod() umask()
 
9:29 AM
http://stackoverflow.com/questions/9072069/php-problems-using-singleton-pattern-and-understanding-clone-method, http://stackoverflow.com/questions/9068719/parse-error-syntax-error-unexpected-t-variable-in-on-line-7, http://stackoverflow.com/questions/9067771/accessing-content-of-child-nodes-from-simplexml, http://stackoverflow.com/questions/9064291/how-to-use-jscharts-with-php-and-mysql-data, http://stackoverflow.com/questions/9061759/function-file-get-contents-failed-to-open-stream, http://stackoverflow.com/questions/9031635/get-last-saturday-or-sunday-of-a-particular-month, http://stackov
see above
 
408 Request Time-out
 
@tereško yeah, getting that as well atm
 
10:02 AM
hi
 
hi
 
@pbvamsi did my answer stackoverflow.com/a/9034557/208809 solve your problem?
 
@Gordon to be honest I got problem solved by myself so not cross checked with other possibilities, as am running out of time
I'd be much more thankful if you can address my current issue
its last leap of launching the project and am completely struck
 
10:19 AM
@pbvamsi why should i invest time solving your problems when you are not even going to look at the help i offer?
 
stripslashes(); did the job for last question
thats this helped for refinement of the code, by reducing the length of code
@Gordon now could you please let me know how i may include umask or chmod
I just run ur code on server & I got error like Warning: copy(si.xml) [function.copy]: failed to open stream: Permission denied
 
@pbvamsi What are you trying to solve your own problem?
 
english , please
 
@Paul well sir, I have given file permissions to 700, 777 but neither worked
like $old = umask(0);
file_put_contents("si.xml", $buff);
chmod("si.xml", 0777);
umask($old);
I've even manually set entire directory file permissions to 777, but no use.
Am using filezilla on windows
 
@pbvamsi What about the directories above that one?
 
10:34 AM
@pbvamsi what does filezilla have to do with it? thats an ftp program.
 
for the whole directory I've given 777, the one which carries every code and script
@Gordon many 've suggested my to use some commands like ls -ald and an ls -al
 
you are referring to "si.xml" without a full path on it, so are you sure it is where you expect?
 
where as I'm using windows, I mean you people to address the way which i know
 
i don't understand your last line
 
@paul yes, its okay
 
10:36 AM
@pbvamsi ah. ok. now i understand. you are using filezilla to set the permissions instead of the built-in windows ui
 
I upload files on to server using filezilla, I mean
 
@pbvamsi and the server is windows or linux?
 
@gordon let know know that way too
windows
server is godaddy
am not sure what they are using
 
@pbvamsi where are you changing the permissions? on the server or on your computer?
 
not on server, using my program...I want only this script to get that permission
 
10:40 AM
@pbvamsi ok, just so that I understand this: you have a script. it gives you permission denied errors. you changed the permission on your computer, then uploaded it to the server. you did not change permissions on the server. right?
 
on filezilla I've changed the entire file permission to 777, and on programming approach $old = umask(0);
file_put_contents("si.xml", $buff);
chmod("si.xml", 0777);
umask($old);
excatly
 
@pbvamsi change permissions on the server
 
exactly
but how, on filezilla?....but i want that permission temporarily only to create si.xml
 
in filezilla you have that split pane. one showing your local folders/files and one showing the remote folders/files
 
I've approached godaddy people they asked me to register a complain...it may be a lengthy process so i thought to get it solved myself
yes it is
there itself i've given 777 to entire directory
 
10:44 AM
you have to change the permissions in the one showing the remote folder/files
not in the local one
 
yes, i did
but it seems like its not retaining the changes
 
err, you just said you changed the local ones only and then uploaded it
 
once i hit ok and again open it to check it shows its default value, xxx
i did both way...i've added umask, chmod on script and also given 777 on remote directory
 
@pbvamsi contact godaddy please and ask them to fix it for you
 
1
Q: Chat FAQ multiple lines of text in a message

PaulI struggled to work out how to write multi-line messages in chat (I can't remember where I learnt it, but I can't find it in the Chat FAQ). It would've been easier if I had read something like this in the Chat FAQ: To write a multi-line message press Shift+Enter at the end of the line. This ...

 
10:48 AM
@Gordon you mean we cant fix it, is there no way from our side to fix it
 
That is my first meta question, I have a feeling it might fall into nothingness though.
 
morning
 
@pbvamsi i dont know
@NikiC morning
can someone find me the duplicate for stackoverflow.com/questions/8856755/…. i know we have answered this before
 
Warning: chmod() [function.chmod]: No error ...means
@Gordon may i know the way how windows ui can be used to set permissions
 
@pbvamsi you dont need that when the problem is on the server and you dont even know what operating system the server has.
 
11:02 AM
but let me understand this...Warning: chmod() [function.chmod]: No error ...means
 
@Gordon I can find a general question on singleton, but the question was very vague and mentioned Eclipse (which none of the answers have referenced).
 
@Paul yeah, its pretty poor.
 
@Gordon I justed checked with my boss, our server is running on windows
 
well, then check encrypted.google.com/… to learn how to change file and folder permissions without filezilla. you need access to the server though
 
okay
I wish this should work....$src = 'http://gdata.youtube.com/feeds/api/playlists/blabla';
chmod("si.xml", 0750);
copy($src, 'si.xml');
but no
 
11:22 AM
@pbvamsi You are only guessing at solutions, you either need to understand your server environment or get godaddy to fix it for you.
 
........hmmm
yep am newbie...very new...but someway its better to try till they revert back,
(by this way i may learn something from people like you)
 
I'm not trying to discourage you, only in this case the solution can only come from you having a better understanding of your server (or having godaddy fix it for you). Personally I like to have a very good understanding of my server.
 
anyhow thanks for your support, but let me know if there is a way by which i can fix it, if possible
 
If I were you i'd be looking into all of the ways I could access my server and the things I could learn about it.
 
11:38 AM
@Gordon @Paul thanks a ton...you may follow my post at stack over flow (dot) com/ questions / 9075487, if u thought u can share something
 
@pbvamsi ok, good luck
 
a last word
$src = 'http://gdata.youtube.com/feeds/api/playlists/blabla';
chmod("si.xml", 0750);
copy($src, 'si.xml');
is that right way to write a file on server
my from side, client
 
php runs on the server (whether it is your development server or your godaddy one), so if you are running that on your server I think it should work. if it works on your development server then it should work on your godaddy server when you have it there
 
posted on January 31, 2012 by Qafoo - PHP

It's time for something big: Qafoo goes JavaScript and from now on provides expert consulting, training and engineering for the full stack of your web application. We warmly welcome Jakob Westhoff, a well-known expert for PHP and JavaScript, in our team.

 
its aptly running on localhost..bt nt on the godaddy
 
11:50 AM
Yes, so the only answer is for you to learn about your server
 
hi everyone ...
i need to ask something ... can i get the sitemap of a website in the form of an organization chart ?
 
12:09 PM
PHP frameworks suck equally as much as PHP itself, according to the stars.
 
12:22 PM
offtopic : "my discovery of 2011" website - tvtropes.org
best way to find answer to "is there any movie/series/game/manga/book which is like .."
@salathe naah ... its just that most of people, who admit that php itself sucks, also understand how and why php frameworks suck
 
12:49 PM
hello guys
Need some expert advice
never worked before with php pdf libraries. stackoverflow.com/questions/9072999/…
 
Hey guys are any of u fermilar with mvc?
 
@StephenWolfe im sure most of us are :)
 
1:07 PM
@hussain given the discussions we had here in the past and based on what the "popular" frameworks claim MVC is, I doubt that
 
My question is,

I have a header on my site, and in the header is the login form,

I want to have the login for as a separate view that is included when the header is loaded.
how do i include a view within a page?
 
@StephenWolfe just include the template for the form.
 
Then, it wont be in a view folder right?
 
@StephenWolfe why not? and why does it matter where it is located?
ah, now i remember where i knew your name from
0
Q: How to add QBE filters to SQL statement

Stephen WolfeI have been happy just adding an if statement here and there to a page on my site to produce a data list but now its in the 000's of lines of code and its messy. I'm sure there is a better logic to what I am doing so any help would be good. This is my logic (or how is should work) check access...

I've put a comment on that question asking you to either point out why none of the answers solved your problem or accept one. never got a response to that :(
 
1:24 PM
file_put_contents("filelist.txt", ""); it will clear the content of file?
 
2
Q: PHP: Is there a command that can delete the contents of a file without opening it?

RachelIs there any way to remove the contents of an file in php, do we have any php command that does that, I know unlink but I do not want to delete the file instead I just want to remove the contents of that file. I have an file which I pass while called a getCurrentDBSnap function, it takes in the...

 
@Gordon great, thanks
 
@pbvamsi but to answer your question: yes
> If filename does not exist, the file is created. Otherwise, the existing file is overwritten, unless the FILE_APPEND flag is set.
 
@Gordon lol i didnt know i asked that question but now i can see some on renamed it
 
Hey guys
 
1:35 PM
any new suggestions to stack over flow (dot) com/questions/9075487
 
@StephenWolfe thanks for finally accepting an answer. on a sidenote, your accept rate is pretty low in general (42% accept rate). you are encouraged to accept more answers. it shows appreciation and also indicated a problem is solved.
 
@pbvamsi The last advice i gave you still stands, learn about your server.
@pbvamsi Sometimes the only person who can help you is yourself.
 
@Paul yep...experience/life teaches us lessons...am just about to sit upon it by my own
 
posted on January 31, 2012 by Ian Barber

I had a great time at the recent PHP Benelux Conference in Belgium. There was a real mix of very interesting people to talk to, and I came away from it buzzing with new ideas (and a ridiculously long todo list). Some of the conversations I had during the weekend were around technical presenting at conferences and usergroups, so I thought I'd collect a handful of the tips that were discussed int

 
> The whole process takes 18 hours, but the last straw was one query taking 5 hours.
>
> I may have pinned down the problem: an eight-column primary key. In tests on another server, I removed all indexes and the primary key and replace it with an autoincrement, and the time went from five hours to 36 seconds.

Ahahaha, wow.
Awww, no qoting.
 
Are there any studies regarding backtrace-friendly software development?
 
@Gordon That's a pebkac, not a cv. /shrug
 
@Charles pebkac, so answer is rhetorical -> narq
 
For example, $db->queryAndLoad('select * from bah'); is more friendly than $db->query('select * from bah'); $db->load();
 
2:09 PM
Eh, it's a real question. The question is "why am I an idiot?" And the answer is valid. /shrug
@ChristianSciberras Can you define "backtrace friendly"?
 
@Charles cv as too localized then
 
That has merit.
 
@Charles In my second example, if an error occurred in $db->load(), you would lose vital debug information ($query)
of course, in practice you could... if(!$db->load())log_the_error($query);
But I'm talking hypothetically at this point...
 
Yeah, without manually adding debug information there, that's a pain. At that level is when real debuggers really shine.
 
@salathe added one of the remaining -1s
 
2:13 PM
@Gordon yay
 
posted on January 31, 2012 by Gaylord Aulke

Heise and the university of Berlin just announced the next iteration of the Plat_Forms programming contest. This time, the task all teams need to implement will be more "cloudy", not that frontend-heavy. Hopefully, PHP will perform better than in 2011 this time. If you have a team of 3 PHP developers and if you think you can compete with Ruby and Java: registration is open!

 
@Charles So, my real question is, are there any recommendations/studies into debugger-friendly coding? The kind of we get about singletons are all bad 'n stuff.
 
I mean if it's not possible to decrement
How to know if value is already 0?
Guys, please help. I'm using query like that: UPDATE forum SET replies=replies-1 WHERE fid = ?
 
@Feeds pointless contest is pointless
 
@ChristianSciberras I've never encountered debugger-unfriendly code, as long as the IDE with the debugger installed can safely interoperate with it...
@trl13 I suggest you put on the thinking cap. UPDATE table SET replies = replies - 1 WHERE fid = ? AND replies > 0
 
2:18 PM
@Charles OK, at this point I may have switched terms badly (debugger vs logger)...
 
I'm talking about xdebug and friends. xdebug.org/docs/remote
They're useful when logging tools aren't.
 
Debugger works on a frozen state, or at least in realtime. Logger works at runtime taking as much info as someone deemed important.
@Charles Yes, I'm more concerned about logging than debugging, again my apologies.
 
aha
 
good morning
 
@ChristianSciberras do you have a pencil ?
 
2:21 PM
Hello @ircmaxell
@tereško Pen an' paper :)
 
sup?
 
'mornin
 
@ChristianSciberras , pen will do : place it beween 3rd and 4th winger ( down by the palm ) and then squeeze your wingers wit other hand
and repeat this every time you want to use wildcard symbol in SQL
 
@tereško sigh :D
 
2:24 PM
it is a quite bad practice
 
Let me guess, and I need to get a month's leave every time I name my table 'bah'? :D
 
@tereško sigh
@tereško Out of all the bad practices that we see, you pick that one? That's not a bad practice at all. Sure, it can be abused, but it's not bad...
 
with a potential to shoot yourself in a feet ( while taking off whole leg )
@ircmaxell , because i have this hope that @ChristianSciberras's level is somewhat above your average drooling php "developer"
 
does anyone here have a working portable texstudio/miktext installation and can confirm that all i have to do for that is adjusting the command in the options to point to the appropriate miktex binaries
 
@tereško all the more reason to avoid comments like your prior. I use wildcards all the time, when appropriate for the problem at hand...
 
2:27 PM
note to mental self: look up if there is something like chat tourette
 
dunno .. i use wildcard symbol only when exploring DB with some external tool
not in the code
 
I'm semi-proud and semi-scared of this system I built for one of my current projects. It does runtime-composing of objects using injected dependencies and an XML mapper to determine which properties and methods should get mapped to which object. So basically XML configured mixins...
 
@Gordon i didnt relise i hadnt accepted them, + alot of the times i found a diffrent solution
 
you are proud because it works
and scared because someone might ask to add a feature ?
 
I don't know what to say tbh. I only use it where it is needed, such as when I need to pull a whole row from db. Can't see any reason to constrain this unless some future genius decides to add half-a-dozen more columns...
 
2:30 PM
No, I'm proud because it works really well. And scared because I can see the abomination that I've created
 
wait three month .. you will get over the semi-proud part
 
@tereško I'd be scared with anything that has 'xml' in its name. Reminds me of chaos. Magentojoomlachaoskindofthing.
 
any expert familiar with ldap?
 
I'm not scared of XML. Used properly it can be quite powerful and easy to use.
 
2:31 PM
@user459690 I am familiar with LDAP but am not an expert. My advice is to run.
 
@user459690 , on the which side of the fence ?
( and you suck at usernames )
 
let me find a way to change it.
m new here
 
private function _initialize($configPath) {
    $xml = simplexml_load_file($configPath);
    foreach ($xml->xpath('//group[@type="user"]/gateway') as $gateway) {
        $this->_loadGateway((string) $gateway['class']);
        $class = $gateway['class'] . 'Gateway';
        $obj = new $class(array(
                'username' => $this->_id,
                'location' => null
            ));
        if (isset($gateway['default']) && $gateway['default']) {
            $this->_defaultGateway = $obj;
 
nevermind , what exactly you need to do with ldap ?
 
that's part of the yuck part. It works, but eiw
 
2:33 PM
use it with samba based domain controller ?
 
...
wait a second. brb with good username :p
check..
 
@ircmaxell how many XML files do you have there and if many: how do you manage changes to the XML structure, e.g. elements being discarded or added?
 
...
:( how to change username?
 
@user459690 you better start explaining what you want to do with the LDAP
 
@Gordon Right now 1, but in the future 15 to 20, and most will be identical...
 
2:36 PM
kool
actually I am trying to make an script that will be used to access Active Directory
I am using windows XP with XAMPP 1.6.4 - php 5.2.4 with LDAP enabled
 
@ircmaxell im having several hundreds and find it painful when i have to change the structure. right now im hand writing xml code to apply such changes to all the documents. think migrations for xml files. wondered if you knew a better approach.
 
trying this script :
$server = 'localhost';
$user = 'Salman@$server';
$pass = '123';

$con = ldap_connect($server);

ldap_set_option($con, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($con, LDAP_OPT_REFERRALS, 0);

var_dump(ldap_bind($con, $user, $pass));
but ldap_bind always returns this error :
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't contact LDAP server in D:\xampp\htdocs\test.php on line 11
bool(false)
 
@Gordon hrm... You mean in the accessing code? Well, I would do two things:
 
$user = 'Salman@$server'; <-- $server in single quotes is not getting interpolated.
 
1. avoid changing structure (adding to it is ok, but don't change what's already there if you can help it)
2. If you must change it, include a schema version number in the root tag, so that the reader can figure out which schema they are reading
 
2:40 PM
@Charles ok m changing it to double quotes
@Charles No, still same error
hello. anybody there?
 
Hm. Are you sure that your username should be in that format? I've never worked with AD before. Other LDAP implementations require that the "user" connecting is a valid dn, like uid=SOMETHING,dc=example,dc=com
 
try ldap_connect( 'ldap://127.0.0.1/' );
 
@ircmaxell mhmm, imagine you add some new feature in your php code that is linked to an element. not all xml files have this element yet. how do you add this element to the existing files then?
 
@Gordon OHHHH, in that you're maintaining the XML files, not maintaining the readers... I got you
 
@tereško tried with no success :(
 
2:44 PM
@ircmaxell :)
 
damn .. hate windows machines
 
@Charles I got this example from google
 
Well, versioning could be of use there as well. That way you can build a "v2_to_v3" converter, which then would add the appropriate structure to the file. Then just iterate over the files, and apply as many converters as necessary to get it up (so yes, basically migrations)
 
if you were running it in linux/bsd , i would recommend you to try connection manually from command line
 
@user459690 Unfortunately then I know as little as you do about connecting to AD. Sorry. :/
 
2:45 PM
to check if connection is even possible
 
@tereško Aww, I wish if u would know it for windows :)
 
there was some way to do it
 
@Charles its ok charles. Atleast u responded :) Thanks
@tereško I need that SOME way badly :P
 
@ircmaxell ok, thanks. thats what im doing right now, too. just feels awkward.
 
is line 11 this one ? var_dump(ldap_bind($con, $user, $pass));
if so , then check the server access logs ( there should be something like that on windows too ) .. you might be trying to connect with wrong credentials
in any case , your first goal should be to make sure that your script actually can reach LDAP , then check if you are providing the correct credentials
 
2:53 PM
fair enough
 
anyone which binary dvipdf %.dvi will call in a miktex installation? there doesnt seem to be a dvipdf binary, only dvipdfm and dvipdfmx and dvipdft
hmm, seems to be dvipdfm
 
too studpid of me that i cant find error log files in my xampp dir
 
Neo
hey guys I have directory I upload php files to, I am not sure if my security check for uploaded mime types is right or not, so can I just make the directory readable and writeable and not executeable or does that not work?
 
maybe [cv-pls] to programmers? stackoverflow.com/questions/9081675/…
 
@user459690 I wrote a ldap class which seems to work for me
 
3:04 PM
@fragmint really? can u please send it to me?
 
@user459690 zend framework has an ldap component
 
@fragmint I am trying on my localhost host XAMPP
 
@user459690 can i mail it to you?
 
yeah sure
 
@user459690 i connect to the company ldap for this
@user459690 let me see if i can send you the class and usage example
 
3:05 PM
is there any private messaging that I can send u my email?
 
@user459690 maybe you can make sense of it
good question
 
@fragmint how can I send my my email?
 
there is no private messaging option
 
ok. God save my email from spammers then
hey, actually I have posted question too. can u please reply there? @fragmint
 
cool
 
3:08 PM
@fragmint have u tried that with your localhost?
@user459690 test
 
Neo
if I set the permision to a folder of images to chown 733 can I still view the images? my box is acting up and it says forbidden
 
Do you mean chmod?
 
@user459690 no just connecting to an existing AD
 
If so, you wouldn't have read access and you couldn't. I'm pretty sure at least
 
@fragmint I haved posted in thread. still getting same error
@fragmint do u have sample ldap url, user and pass so that I can test your class?
any help for LDAP on XAMPP??
 
Neo
3:21 PM
@CiffeeRain yes I meant chmod
so I cant set it to be read, write
but not execute
the way I want
 
@user459690 $ldapObj = new Ldap("pdc.rtf", 389, "pdc" . "\\pdc/fragmint", "mypassword", "OU=pdc,DC=pdc,DC=rtf", "(mailnickname=fragmint)", array("*"));
do you have AD setup locally?
 
Neo
@CoffeeRain yes I meant chmod
so I cant set it to be read, write
but not execute
the way I want???
 
@fragmint AD !! whats this?
 
Active directory
 
@fragmint I found some resources on internet to enable ldap on XAMPP and create a dir in my C:
 
3:25 PM
could you link me that resources?
 
@fragmint C:\OpenLDAP\sysconf\ldap.conf
 
just want to see what it is about
 
@fragmint let me get that.
 
thanks you are pointing me to your local machine (rofl)
have you setup openldap as a service
 
@fragmint No, actually this is the way it was written in resource to create AD
 
3:27 PM
ill need some time with it sorry. im unfamiliar with it
 
@fragmint that was link..
 
91
A: Find first character that is different between two strings

ircmaxellYou can use a nice property of bitwise XOR (^) to achieve this: Basically, when you xor two strings together, the characters that are the same will become null bytes ("\0"). So if we xor the two strings, we just need to find the position of the first non-null byte using strspn: $position = str...

only 9 more to go...
 
i saw.. it seems different than MS Active Directory service
for which my class works just swell
 
@fragmint ok
@fragmint even i dont find proper way to install AD with xampp
 
:-S
 
3:42 PM
@fragment I wonder why there is no help for XAMPP with AD in windows XP.
@fragmint anyway, thanks for being helpful. I will look into this later on
@do u know codeigniter?
@fragmint see u laterz tc.
 
@user459690 cool
 
4:23 PM
Hi everyone
I know you're all fans of global-state-is-evil so I got a question for you ;)
I load some constants into my scripts through an ini file.
Is there a nice way to reference the path to that INI file other than through a global constant?
(I'm going to think about my question about 10 minutes and probably realize it's stupid)
The thing that's bugging me is that I can store all external paths in my config file... except for the path to my config file ><
 
@BenjaminBrizzi I'm not sure how "nice" it is but my solution to this problem is having an object that is used to generate absolute paths for me. I call something like $Directory->getConfigPath('setup.xml'); and I get back the complete path to setup.xml in the config directory. Then its just injecting that object into the parts of the system that need to create paths to the filesystem.
 
@CharlesSprayberry Thanks, so does your Directory class use things like _SERVER vars and hard coded default paths to generate the absolute path to your config files?
 
@BenjaminBrizzi you might be able to adapt parts of stackoverflow.com/questions/8298701/… for that purpose
 
@BenjaminBrizzi It does. The initial index file has all the paths set using __DIR__ . '/dir' style variables. A bootstrap object is actually responsible for building the Directory object using the values set. I consider it part of the configuration.
 
Thanks, one of my constraints is that I (obviously) want my config.ini out of my htdocs folder and probably in different locations depending on the platform (Windows/Linux). I could always hardcode something like /opt/myappname/config/config.ini and with some conditional code depending on the OS.
 
4:47 PM
Another option I'm considering is keeping the ini file in htdocs anyways and disabling access to it through Apache... it's not a lot better but at least allows consistency between OSes.
 
5:00 PM
So I know it's a bug to get the contradictory error message failed to open stream: Success[...] but what does it mean?
 
@stevether Google gave me this: bugs.php.net/bug.php?id=45130
 
Zar
Might be somewhat in the wrong room; but any suggestion on this database-design? dl.dropbox.com/u/16088211/Luffarschack%20databas.png
 
5:16 PM
@Zar Cyclic relations are bad :)
@Zar If Moves have relations to the player and to the game, link them to the GamePlayer object instead of to both the game and the player. That's also mainly what your gameplayer object is good for.
 
Zar
@BenjaminBrizzi Hmm, thanks! I completely agree with you that a double relation isn't needed. Is there any special reason why a cyclic relation is bad "in practice"? :-)
 
hi all
Anybody has an idea how to get rid of Thanks posts?
0
Q: Can we please do something about Thanks / signing of posts

PeeHaaCan we pretty please do something about Thanks / signing of posts? Or at least come up with something so that less people do it. I know it's already kinda in the faq, but people tend to not read it. Related (among others): Should 'Hi', 'thanks,' taglines, and salutations be remov...

 
@PeeHaa Edit :)
 
04:00 - 18:0018:00 - 00:00

« first day (472 days earlier)      last day (4494 days later) »