« first day (1071 days earlier)      last day (4105 days later) » 

@Charles emm ... is move_uploaded_file() is nto about to be deprecated ... AFAIK
@MarkBaker Please check the link, I just installed all libraries "sudo apt-get install libapache2-mod-php5" correctly but still continuing getting this error : paste.ubuntu.com/6138634
@tereško True.
@joschua011 not sure which you're thinking of, but you might enjoy this: esolangs.org/wiki/Category:Nondeterministic
@Amir that made no sense and has no context
22:02
@tereško You mean the error?
how exactly did you get that error ?
@Amir did you restart apache ("sudo service apache2 reload ")?
and wasn't Postfix a mail service and not a php application
@tereško yeah, that's what I thought; I guess somebody just picked a real bad name
I suspect that it's made by Microsoft .. judging my naming policy
22:06
oh, unless it's actually an admin tool for controlling postfix somehow for some reason
Alright
I want to do this one right :P
to my PPA list
@IMSoP I just killed it and start it using these two commands : 1-sudo kill -TERM cat /usr/local/apache2/logs/httpd.pid 2-sudo /usr/local/apache2/bin/apachectl -f /usr/local/apache2/conf/httpd.conf
I'm going to uninstall php5.4 and install php5.5
@Amir that sounds like a really bad idea
Is there a better way/something I need to know before I continue?
22:08
@amir let the OS deal with how to start/stop services
@tereško I followed these steps and Blocked at step 4 paste.ubuntu.com/6138653
@IMSoP I did it and it's still the same
If it wasn't finding PHP, you'd see a message "Unable to check for PHP version. (missing function: phpversion())"
Suggests that it's finding a PHP <5
i think it's not even running the PHP - he's still just seeing the source code echoed by the web server
If it wasn't able to find php, then it would spit out the SOURCE
:P
which seems to be exactly what's happening
@IMSoP exactly, I'm still just seeing the source code echoed by the web server
22:13
ok .. did you try to restart the whole server
maybe you messed up something
@tereško You mean the whole OS?
yeah
just to be safe
@tereško Ok. I do it now
of course if it is an available option and the box is not running the core mainenance for a nuclear power station
hah, that reminds me of the disclaimer on the Java demo source
22:16
next step would be to verify that PHP extension has been added to apache's configuration
 * This software is not designed or intended for use in on-line control of
 * aircraft, air traffic, aircraft navigation or aircraft communications; or in
 * the design, construction, operation or maintenance of any nuclear
 * facility. Licensee represents and warrants that it will not use or
 * redistribute the Software for such purposes.
yay patch working :D
user1598019
Hi folks
@tereško restarted and still getting that error when try to open setup.php
@Amir do you know where to find apache's configuration file ?
user1598019
22:23
anybody here ever written a custom php module to speed up things?
user1598019
/join test
@tereško /usr/local/apache2/conf/httpd.conf?
@tereško Correct??
@tereško I thought you were writing code?
@Amir open that file and looks for something PHP-related in LoadModule entries
@tereško Seems there is nothing PHP-related in that
22:28
well .. then that's what you are missing
@tereško Where do I have to get php.ini??
usually in /etc/, /etc/php/, /usr/local/etc/ or /usr/local/etc/php/
and there will be no php.ini file
only php.ini-development and php.ini-production
you have to copy one of them to "php.ini"
Where's your github again @tereško?
@Fabien currently here: 192.30.252.131
-_-
22:31
and no, I have not pushed anything new there for more then a week
@tereško I did it, but still the same page
did what
@tereško I mean copy one of those file to "php.ini"
16 mins ago, by tereško
basically, step 6+ from http://www.php.net/manual/en/install.unix.apache2.php
@tereško Now continuing with step 7. Thanks a lot for your help
22:43
it looks like ubuntu's installation script failed at some point
all this configuration should have been done automatically ... now you have to do it manually, step-by-step instead
@tereško After following step 7 I restarted the server but can't start it. I got this error for restarting it : httpd: Syntax error on line 67 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
try locating the libphp5.so file
@tereško I did as same as the link you sent it
start by looking in /usr/local/apache2/modules
@tereško Doesn't exist in /usr/local/apache2/modules
22:49
hmm ... you sure taht you installed php ?
1 hour ago, by Mark Baker
sudo apt-get install libapache2-mod-php5
right, i gotta go get me some sleep, and maybe do something productive with my sunday!
see you all around :)
@tereško Yes, when I do php --version it says that i have php 5.3.10
did you run that command ?
@tereško Yes yes, It says it's already the newest version
did you look in /usr/local/apache2/modules ?
was there anything vaguely php-related in it ?
22:53
Yuck! Rasmus is using Heredoc in his MVC blog.
@tereško yes yes, I check it
I checked it
@tereško No.....Can't believe it!!
can you pastebin the list of files that you found there ?
huh ?!
@Fabien You know rasmus cannot write PHP right?
@tereško sure
@PeeHaa So I am told but I am reading around...
22:54
wait a secound
For LamePHP it'd be nice to not have it be a sack of shit.
Of course that's subjective.
@tereško Here is the list of them : paste.ubuntu.com/6138857
You guys ever use the auto_prepend_file function?
try running: sudo apt-get install --reinstall libapache2-mod-php5
and see if something new ends up in that directory
@tereško ok
22:59
@Fabien nope
@Fabien first time hearing of it
Here is an example of it.
@Fabien Don't do that please
@PeeHaa I don't plan on it. Just thought it was an interesting function no one would ever really use.
*should
sounds like a "fix" for people who suck at writing php
23:02
@Fabien MY EYES! THEY BLEED
@MadaraUchiha You used amaterasu on the function? ;)
@tereško I tried it but it gives me the same errors .
@Fabien I wish I could :X
what "same error"
were there errors when you executed apt-get ?
@tereško I mean I'm still seeing the source code and nothing changed in /usr/local/apache2/modules
23:04
Know any good places I can view good implementation(s) of the MVC pattern for PHP?
@tereško No, I executed apt-get completely
hire an admin
59 mins ago, by Madara Uchiha
Is there a better way/something I need to know before I continue?
@Amir Does just HTML work fine?
@Fabien Yes , it seems fine
23:09
source of the problem is that magical Kubuntu is not installing libphp5.so file
@tereško Why you no have an MVC blog post?
@Fabien you mean aside from "not having a blog" ?
@tereško Do you have any suggestion on an simple application that i can use it with PostgreSQL
@tereško Well one problem at a time I guess.
@tereško That was a question out of our disscisuion
23:11
wut
@tereško Can i take libphp5.so from somewhere on the net and just copy it?
@tereško can you give your 2 cents here?
no, nr2
=(
I promise I'll get them back
23:13
I think that ubuntu is a worst thing that has happened to opensource since wordpress
This just was @tereško multi-ping spam^^
@bwoebi What do you mean? Who else pinged @tereško?
fuck you too
@tereško this wasn't nice^^
I could probably rally enough abusive flags to ban him from chat :D
user652649
23:17
@bwoebi has @tereško ever been nice? xD
user652649
evening
He helps a lot of people, myself included.
user652649
didn't he suggested you that you have to find another job? xD
He said I wasn't a developer. :P
Doesn't stop him helping me become one though.
Plus I can't complain about the price.
23:27
@JoeWatkins well… would require a RFC now…
@JoeWatkins I think a more useful technique in a similar vein would be:
(function($data) {
    echo $data;
})();
I sometimes try to do that.
@JoeWatkins and well, doesn't it collide with a class named Class1?
user652649
i think IIFE and anonymous classes are two different things... but i would like to see them both in php
@LeviMorrison a fcall on a parenthesis_expr… yes. Very good question why nobody already tried to implement that.
@JoeWatkins I can think of only one time I would want this: to hide inner classes like LinkedNode in a LinkedList.
In that specific case I really think the better enhancement would be a way to really make inner classes.
Did you have a specific use-case in mind when you made it?
23:35
no I'm not so good at use-case ...
thought it'd be cool ...
@bwoebi (new class { public function method() { return __METHOD__; } })->method(); does work ... is that what you mean by parenthesis_expr fcall ?
@JoeWatkins yes this, but just for closures (I was referring to @LeviMorrison)
user652649
i would like the ability to create sub classes, classes that can be instanced only inside the class where they are defined in, and in its descendants. not the same thing of anonymous classes, but i think that could be achieved with @JoeWatkins ' proposal, right?
@Wes In a round about sort of way, yes.
in a round about way, yeah ... return new class implements|extends MyShit {}
user652649
@JoeWatkins what happens if i do `$this->someclass = (new class { public function test(){} });`
and from another scope `$x = new ($instance->someclass())->test();`
23:42
class LinkedList {
    private function makeNode($data, $next) {
        return new class{
            public $value;
            public $next;
            function __construct($data, $next) {
                $this->data = $data;
                $this->next = $next;
            }
        } ($data, $next);
    }
}
new class {} returns an object not a class, so @Wes that won't really work ... see what levi has done there ...
btw, on somewhat related subject
which is better for implementing a tree in: array or objects ?
@bwoebi It's one of the things on the need-to-write-an-RFC list. It's already implemented
@JoeWatkins Isn't it basically just an alternative way to write this: $class = (object)["public_prop" => 123, "\0*\0protected_prop" => 456, "\0stdClass\0private_prop" => 789, "public_method" => function () { /* ... */ }, "\0*\0protected_method" => function () { /* ... */ }, "\0stdClass\0private_method" => function () { /* ... */ }]; foreach ($class as $prop) if ($prop instanceof Closure) $prop->bindTo($class);
23:46
@tereško I cannot see how an array would ever be the preferred way to do that particular task.
@NikiC did you implement this?
@bwoebi no, laruence implemented the fcall on parens part. I only implemented (...)[], (...)->..., (...)->...(). We decided to make one RFC for everything as (...)() is very similar to that
@LeviMorrison the question assumes that you know how to implement tree in an array
=D
@JoeWatkins I'd recommend you to test a bit with nesting those (and using inside normal classes). I'm pretty sure that some of our compiler code currently assumes that class declarations can't be nested ;)
bugger
user652649
23:50
ok @JoeWatkins so they are immediately-instanced classes... aren't these two features? i mean first one is the ability to store an anonymous class in a variable, the other one is the ability to instance in the same expression an anonymous class
yeah so @Levi you can't actually do that ...
@NikiC /s/some/all
@JoeWatkins gist.github.com/bwoebi/6655377 this is how you could do it without the syntactic sugar (just without __magic_methods())

« first day (1071 days earlier)      last day (4105 days later) »