« first day (998 days earlier)      last day (3964 days later) » 

12:00 AM
@MikeKormendy ...aaaand I'm out :-P
 
@DaveRandom I've explained. they said it can only be done programatically.
 
@DaveRandom lol
 
@rogcg It's not possible to do it completely programmatically, the server cannot route domains it doesn't know about. It's fairly trivial to have your site work with any domain - you may not even have to change anything in the PHP code - but if the server doesn't know it needs to route requests for both domains to your app it will never get that far.
 
@DaveRandom thats what I think.
 
You need to point the A record for the other domain to your site (that's pretty simple) and you need to explain to the webserver that requests for that domain belong to your site's vhost. That has to be done at the server level, there is no other way. The only other option is redirection, which will change the URL in the user's browser.
Essentially what I'm saying is: get a better host
 
12:04 AM
@rdlowrey I still have my PHP 5.4.14 make folder from April (I left it be in my archive for config purposes) .. and I see a scripts directory in it .. in there is a phpize that came with 5.4.14 .. do you think I can simply copy the phpize from there, and overwrite the one in my /usr/bin/ where the bad-reporting one is?
 
@DaveRandom AGHHHH
 
@DaveRandom which post?
 
user895378
@MikeKormendy (1) backup whatever binary or symlink you have at /usr/bin/phpize currently (2) try anything you like :)
 
user895378
12:07 AM
Personally I find it's way to much trouble to use package managers for php installation.
 
user895378
Manually compiling them is far less troublesome.
 
@rogcg Basically the whole site. A lot of people a surprised by the fact that they can get a whole VPS for a lot less that what many shared hosts charge
Although you do have to be half-way competent at server admin for it to be a viable option
 
@DaveRandom indeed. I hate this hosts that doesnt let me do "whatever I want" to the machine. linode is a good one. I've already used it and liked a lot.
 
@MikeKormendy It should be a symlink rather than the script actually being in /usr/bin, because it will most likely be looking for the headers in a relative path so it will expect to be left where it currently is (I think)
 
* Full ssh and root access
* Guaranteed Resources
* 8 processor Xen instances
* Out of band console shell
* Dedicated IP address, premium bw
* Six datacenters in the US, Europe, and Asia-Pacific
* HA and Clustering Support
* Transfer pooling
* Managed DNS with API
 
12:11 AM
@rdlowrey it's to install xdebug and I'm just following the steps there .. I still have to make and make install after . but phpizing sets up xdebug
@DaveRandom makes sense .. I'm gonna try and run phpize from the 5.4.14 folder with a ./path/to/php5414/scripts/phpize
 
@rogcg I'm paying $12/mo to vpscorner.co.uk at the moment, it's working well for me (100% uptime for 5 mths, touch wood).
 
user895378
@MikeKormendy what do you get from running $ whereis phpize ???
 
Do the 3 question marks help the command execute?
I like the sense of urgency they lend
 
user895378
Yes. It lets the console know you really need its cooperation.
 
whereis phpize ffs
 
12:13 AM
lmao
one sec
 
I might alias ffs to sudo yum
ffs install php
 
user895378
hehe
 
says /usr/bin/phpize
 
user895378
And that's the only one?
 
oddly enough .. yeah
it doesn't recognize the other one ..
 
12:15 AM
It's not in $PATH so it wouldn't
 
that is here: /path/to/php5414/scripts/phpize
yeah
just realized that
 
user895378
So just run /path/to/php5414/scripts/phpize then.
 
permission denied!!!!! uno momento .....
 
user895378
sudo /path/to/php5414/scripts/phpize
 
user895378
or:
 
user895378
12:17 AM
su -
/path/to/php5414/scripts/phpize
 
@DaveRandom interesting!! i might check it..
 
says command not found
LOL
omg .. and then I did su ...
all it said was su: Sorry
 
That's an error message of Microsoft proportions
 
user895378
@MikeKormendy lol ... and you're sure you have root access or are a sudoer on this box?
 
user895378
12:20 AM
Because you'll need to be ...
 
yes .. it's my old macbook pro
LOL
 
user895378
are you logged in as root?
 
NO. :-)
 
user895378
well that's an easy fix.
 
but sudo should work
it does and has for everything else
something's not right with the directory I think
 
12:23 AM
I've just spent 10 minutes trying to work out why this was a syntax error:
foreach ($schema->getFieldDescriptors() as $name -> $fieldDescriptor) {
 
I'm going to try something .. be back in a couple mins
 
I think I need to go to bed
 
user895378
@DaveRandom nice :)
 
stackoverflow.com/questions/17554339/… - self duplicator (previous one was too broad, this one looks also not much focussed)
 
morning
 
Uhmm
0
A: How to get a a property value by reference using reflection in PHP?

OcramiusSince PHP 5.4 you can do this without reflection: class Kitchen { private $yummy = 'cake'; } $reader = function & ($object, $property) { $value = & Closure::bind(function & () use ($property) { return $this->$property; }, $object, $object)->__invoke(); return $value; ...

 
@Ocramius hmm, OP actually asks about a public property and about reflection specifically. AFAIK it's not possible with reflection.
 
@hakre yes, I'm providing the way of doing it without reflection... so far it's the only one I am aware of
Also needed the same thing with reflection ;)
 
@Ocramius but yours is about private I guess and OP asks about public :)
 
O_o
well, works for public too
 
12:46 AM
But anyway, yours is nice. I retweeted it today :)
@Ocramius then top!
 
eh, preparing blogpost for it
so OOP purists can finally yell at me again :D
@rdlowrey ROFL
 
user895378
@Ocramius I thought about getting grumpy about your accessor post from earlier then decided against it because that sort of magic is pretty standard in the ORM world and it's kind of necessary for your Doctrine use case. That doesn't mean I have to like it :)
 
user895378
Summary: it is a nifty hack, but too magical for my tastes.
 
@rdlowrey oh, I don't like it either, but I'm lately playing with object internal state because that's what the components I write are doing
The next one on the list is ChangeSet: transactions at application level =D
 
user895378
Join us next week for Papa @Ocramius's latest series: The Ruby-ization of PHP objects
 
12:50 AM
ROFLMAO
 
user895378
I kinda like it and hate it at the same time :)
 
Well, it's quite cool to see that a shit language like PHP can still kick ass with such tricks when needed
 
user895378
Agreed.
 
user895378
@Baba I've just duplicated the file upload problems locally ... The transfer screams along and does the first ~10MB in about 0.2 seconds and then slows to a crawl after that. I should be able to remedy the situation with some creative resource shuffling, though.
 
Is the person working on the new php.net templates still about?
@LeviMorrison The voting buttons don't seem to work on the new php.net templates. How will I vote for all the recursive implementations of the array functions?
 
12:58 AM
Voting buttons don't seem to work for me on main site either
I don't know what's up with that
 
I am potentially entertaining. Without going deeper, if you're interested my email is my twitter handle at gmail...
 
1:20 AM
0
Q: Point subdomain to root folder and keep url

rogcgI want to make the subdomains point to the root folder of my FTP server. My FTP structure looks like this: www | |--- subdomain1/ |--- subdomain2/ |--- login/ |--- register/ |--- ... I want to do this, so no matter which subdomain I access it will use the same application code, instead of rep...

 
Good Morning
 
Morning
 
1:51 AM
how do I make a rewrite on htaccess but keep the url
RewriteEngine On
RewriteCond %{HTTP_HOST} ^subdomain1.domain.com
RewriteCond %{REQUEST_URI} !^http://www.domain.com
RewriteRule ^(.*)/(.*)? http://www.domain.com/$2 [L]
when I access subdomain1.domain.com, it still writes domain.com
 
2:03 AM
CodeIgniter is basically homeless. What ever will we do?!
8
 
any help?
 
2:21 AM
Probably something more like:
RewriteCond %{HTTP_HOST} ^subdomain.domain.com [NC]
RewriteRule ^(.*)$ domain.com$1 [L,R=301]
 
@LeviMorrison still changing it.
 
Wait, what do you want, exactly?
Give me some url examples.
 
@LeviMorrison here it is.. I made a question.
0
Q: Point subdomain to root folder and keep url

rogcgI want to make the subdomains point to the root folder of my FTP server. My goal is to get the same result when accessing domain.com/login but accessing subdomain1.domain.com/login or subdomain2.domain.com/login. No matter which subdomain I access, it will always consume the code on root folde...

so any idea?
@LeviMorrison since I'm using the L flag, it shouldnt change the address url? correct?
 
2:47 AM
. . . I'm not sure exactly.
 
@Danack Yeah, would have been nicer if it could work with plain ol' wrappers or http extension even.
 
3:24 AM
Yay! regexp badge baby! =D
 
3:49 AM
I get this immediate error with the Xdebug when it is loaded by php:

---

Xdebug requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later
version of Xdebug.

---

My php -i CLI output says this:

---

PHP Version => 5.4.14

System => Darwin Something-Interactive-Server 11.4.2 Darwin Kernel
Version 11.4.2: Thu Aug 23 16:26:45 PDT 2012;
root:xnu-1699.32.7~1/RELEASE_I386 i386
 
@MikeKormendy Use pastebin for those swathes of text.
Also, the error is quite self explaining.
 
@Jack ^^^
 
Sorry for the swath of text. The self explaining error doesn't explain why phpize is reporting an incorrect header.
 
@NullPoiиteя Why does that look flagged? lol
 
Because I flagged it as unproductive.
I don't want to have an argument .. I just want help. If you can't help beyond stating something already obvious when it's apparent that I'm looking for more help than that, it's best not to say anything.
 
4:02 AM
@MikeKormendy why ?
@MikeKormendy those long message is really bad ... and annoying
 
What is the purpose of programmers.stackexchange.com ?
 
4:20 AM
@MikeKormendy You shouldn't flag things you don't like, flags are visible outside of this chatroom so they bother others; flag if things are offensive, this is not the same as a downvote on SO.
 
morning all dudes. :)
 
hi all!
 
4:35 AM
morning
 
Morning.
any one good at SQL Query
 
bring it on.
 
http://stackoverflow.com/questions/17562588/get-and-post-form-method-uses-scenario may be there is any dupe of this
 
how can i get day in column of a month
in SQL Query..
I am using MySQL
I am trying with while loop
SET gStart = 1;
@no_days := DAY(LAST_DAY('2013-07-01')) AS `noofDays`,

WHILE gStart <= @no_days
gStart;
gStart = gStart + 1;
END WHILE;
I am writing these stuff in Stored Procedure.
 
4:57 AM
@NullPoiиteя the only redeeming thing is the username
 
@marabutt lol....
@marabutt thinking to answer that question ... just waiting for others answer ...
 
Morning
I want to write a php script for sending sms from my website to customers. How can I do that?
 
do you have any SMS api.
 
morning
 
Hello @Mr.Alien
how are you?
 
5:04 AM
@Rafee ayy I am fyn bro.. hwz u.
 
I am doing good..
@AkbarShaikh Then there is no way. you cant send sms to your customer.
 
I don't have any sms api. I want to build that api
 
cool, then build one.
why build if already available
 
@Rafee why we need facebook when we had orkut? :p
 
5:06 AM
hmm got that..
 
I think, I can develop more flexible
 
@AkbarShaikh You need purchase some package from Telecom companies
 
@Mr.Alien Orkut ? ROFL
 
@Rafee ok. Thank you for your suggestion
 
regarding the bulk sms.. along with that.. you will receive some documentation and api readily available.. rather than wasting time on creating new one.
any how you need to buy a SMS Gateway.
 
5:10 AM
@Mr.Alien why you use ORKUT ...come on ... and use hi5 instaead :P
 
0
Q: Insert php variable in database on trigger event

KarimkhanYou might say that this question already asked many time! You right, but those dont give me solution. I am trying to insert inserted data and two var into database using trigger on insert event, code is here: < html > <body > <?php $s = $_POST['sent']; echo "Entered sentence : $s"; $a = array...

 
@NullPoiиteя any good work on sql queries.
 
Morning ..
 
@Rafee means ?
 
do you have good knowlege on sql queries.
can you check this
24 mins ago, by Rafee
how can i get day in column of a month
 
5:15 AM
@NullPoiиteя Arey @Rafee told to @AkbarShaikh that why you develop something else when somethng is already built so I said that if we build the same thing again but with a better features, it's surely going to be awesome
@NullPoiиteя go a new domain, mast name mil gaya decodingweb.com ;)
 
@Mr.Alien yeyey
 
cool, get that one soon.
 
@Mr.Alien Thanks for your comment.
 
I already bought that
I don't know how it was still available
@Rafee drupal is so noob in few things, ho do I switch off the titles of a block
 
@Mr.Alien why it shows registered
 
5:21 AM
@NullPoiиteя Cuz I've registered
 
@Mr.Alien not for me .... drupal is boring thing i never used ...
 
drupal is actually better than joomla
 
@Mr.Alien i have no experience of any cms
 
joomla 3 is so fcked up, bootstrap ruined it
 
put none in title of the block.
 
5:22 AM
@Mr.Alien again no idea about joomla 3 :P xD
 
if you use a pro template, files reaches upto 10000...
 
@Mr.Alien put <none> in title of the block
 
@Rafee great, let me try
@Rafee you are the man, thanks dude
few things I didn't liked about drupal if compared to joomla is .. 1 interface, 2nd usability..3rd if you want a block on a particular page, you need to specify the names, like <front>, page name etc... in joomla you just select them from the list and you are done
 
IF $x and $y is int then $sql2 = "CREATE TRIGGER MysqlTrigger AFTER INSERT ON table1 FOR EACH ROW BEGIN INSERT INTO temp VALUES (NEW.sent,'".$x."','".$p."');";
mysqli_query($con,$sql2); would not insert x and y into database?
 
0
Q: get days in column mysql

RafeeI wrote a Stored Procedure in MySQL. I am trying to get days in column of any month respectively. below is the sql query DELIMITER $$ DROP PROCEDURE IF EXISTS `GenerateReport`$$ CREATE DEFINER = `FreeUser`@`localhost` PROCEDURE `databasename`.`GenerateReport`( IN gDate DATE, ...

may not be correct room to post sql query.. wondering if anyone knows sql
 
5:40 AM
0
A: Get and post form method uses scenario

NullPoiиteяUnfortunately there is a lot misuse of GET over POST and vice versa. Both HTTP methods can achieve the same goals, but an incorrect choice between them can lead to unexpected and potentially harmful outcomes. The HTML specifications technically define the difference between GET and POST is that ...

@Mr.Alien @YogeshSuthar check this ^
 
good lengthy answer
 
You've earned the "Fanatic" badge. See your profile.

hm. now I don't need to be online on consecutive days? … or maybe an high number there might be nice…^^
 
@Rafee ty
 
@NullPoiиteя, can you comment this: 'POST requests have no restrictions on data length'?
 
ecr
5:55 AM
Hello, gents. Has anybody worked with the server-side php library of OpenTok WebRTC?
 
>> $password = substr(md5(sha1(md5(sha1($_POST['password'])."somesalt"))), 1, 30);
 
@crypticツ lol
 
@ircmaxell cat in the bag
 
5:58 AM
@NullPoiиteя , so it's depends on browsers and servers.
 
6:09 AM
> Lamborghini Cars Were A Result Of A Tractor Company Owner Being Insulted by the Founder of Ferrari
 
Why you deleted?
 
@Mr.Alien its dupe
 
So what if you provide a better answer
 
@Mr.Alien another question already have bunch of answers
http://stackoverflow.com/a/4812816/1723893
 
'POST is used for sending unlimited data.' -- where you got this?
 
6:21 AM
@sectus ? i didnot wrote this
 
@NullPoiиteя The linked article comes from a site that prepares people for interview? Noice!
 
@sectus then replace it with large data
 
Oh my, that article is a gem, read it :)
 
@NullPoiиteя , 'POST requests have no restrictions on data length' -- it's from your deleted answer.
 
> Get is not Secure information appear in browser, Post is secure.
 
6:23 AM
@Jack if you use ssl .. the post is secure then get .. i mean you can send data in encrypted form
 
@NullPoiиteя If you use SSL, you don't need to send data in encrypted form ;)
That's taken care of by the SSL layer itself.
Or, is that what you meant?
It's still not more secure than GET though.
Anyone can look into their browser's request history.
 
@NullPoiиteя :With ssl connection everthing encrypted
 
^^ and that! :)
 
@Jack ya i know from the point of security view both get and post are same
 
Good morning.
 
6:30 AM
So sad, just found out that JavaScript doesn't compare arrays like PHP does :(
 
Seems like Yogesh Suthar's cousin stackoverflow.com/questions/17563823/…
What a number for my profile views... 3333
 
What's @$ in PHP?
 
@udaysagar Nothing.
 
@Jack I guess it suppresses warnings right?
 
@Mr.Alien Nope, that's a parse error right there.
 
6:36 AM
hmmm
 
@Jack nothing? How can that ever be?
 
@udaysagar Have you tried running a script with <?php @$? Does it do anything?
 
but, I have some variables besides @$
let me give you the context
 
@udaysagar @$ is not a variable.
 
i have an array
say $options
and my code calls
$type = @$options['array_key'];
 
6:39 AM
@udaysagar Don't do that.
 
$type = @$options['array_key'];
 
@udaysagar , you want to read this: stackoverflow.com/questions/3737139/…
 
It hides the error that 'array_key' is not present in the array.
 
@Jack See, that's what I told you ;)
 
@Mr.Alien He should be more exact in his wording, that's basically the take-away.
 
6:41 AM
$options = array('hey'=>'hello');
$value = @$options['hey'];
$values is same
 
Of course I could tell from a mile away what he meant lol
 
ha ha ha
 
when i give @ or without @
 
@udaysagar that's a bad practice, just ignore that
 
@udaysagar Yeah, so don't use it.
 
6:42 AM
k
let me give a reading of what @sectus has given
 
is it possible to set a EXPIRY for a file written using fopen.?
 
@vincent What do you mean? Like a cache file?
What kind of expiry?
 
like it deletes itself after some time.
@Jack
 
@vincent What kind of thing are you writing into that file?
 
@Jack it's a log that i only need for a week.
 
6:46 AM
@vincent I think it would be easier to run a clean-up script afterwards :)
 
@Jack it's not possible using without cron? :D
 
@vincent , just write simple script for cron.
 
@sectos @Jack thanks :)
 
@vincent , use pseudo cron : )
like session GC.
 
@sectus noted :)
 
6:53 AM
@vincent How you run the cleanup is up to you of course.
 
7:08 AM
monignier
 
hi dudes
i got a LONGTEXT field in db mysql, value is a string 67,78,89,9 of IDs
now how do i count all these field that contains for example 67 ?
do i need FIND_IN_SET() ?
 
hola gringo~ :)
 
@sbaaaang , count fields or rows?
 
Hi all ! anyone here knows how to use HybridAuth properly?
 
sectus sorry count rows
 
7:22 AM
@NullPoiиteя Checked, it is deleted. :)
 
@Tredged Great question ;-)
Forgot the == instead of = huh? :)
 
@sbaaaang , of course you need to use FIND_IN_SET
 
@sectus yeah why so many LIKE in answers can't understand :/
i think i'll accept your dude
 
7:32 AM
What's this? A legit use-case of SET? :)
 
@Jack lolzzz he deleted that as well.
 
@sbaaaang , i do not know...
 
ok np ;)
 
4
Q: MySQL search in comma list

FloI have a MySQL field with a reference to another table where ids are saved as comma seperated list, eg: 12,13,14,16 which stand for values in another table. I know this is very bad and wrong, but this comes from above and I cant do anything about that. The problem now is that i want to search ...

@sbaaaang It works like outlined in Mysql manual. From your question it's not clear to me you wonder how COUNT() works dev.mysql.com/doc/refman/5.1/en/counting-rows.html or how you search in a comma separated list.
Perhaps it's just your question can be closed against that one as duplicate?
 
@hakre thanks :)
i'm actually searching how to use find in set with multiple values like IN(56,67) @sectus @hakre
 
7:36 AM
@sbaaaang , use AND
 
sectu
no other way?
 
@sbaaaang sure after one part of your answer is answered, you extend it to the next one.
 
0
Q: PHP cURL - View page for x seconds

Vii SystemsFor a customer, I have to develop a system that automatically clicks PTC (pay-to-click) links. I figured out I'd do this with a cron-job, that runs a script every 24 hours and clicks all adverts. The problem is that I managed to log in, fetch the ads, open them already, but the page needs to sta...

Shady question.
 
@sbaaaang , what is wrong with it?
 
yeah AND is the only one solution :(
ufff
@sectus that i coded like i have to do a IN() query
so i need to refactor some code :P
@sectus i accepted your answer thanks a lot dude
 
7:39 AM
@sbaaaang , you need some sqlcodegeneration.
 
@sectus tells me more if you can please
i'm not so good on sql
@sectus when i query i have a string to pass to query which is for example "56,67,89"
so actually i was passing trough IN(string)
now i have to explode and run a loop for FINd_IN_SET
i don't like kind of things but it's the only solution i guess
 
@sbaaaang , why don't you use many-to-many relation?
 
@sectus what you mean?
 
> For a customer, I have to develop a system that automatically clicks PTC (pay-to-click) links.
 
7:41 AM
can't catch you about many-to-many ...
 
hr hr hr.
 
hi guys, is it possible to load php code with a <script> like js?? I don't want my file to have .php extension, so is it possible to load external code?
 
@QuinDa not possible to load php via js if you mean load a php script, you can take php output with js in ajax
 
@sbaaaang , something like this: tonymarston.net/php-mysql/many-to-many.html
 
@sbaaaang sounds difficult
 
7:45 AM
@QuinDa , : )
 
@QuinDa not so difficult just google and watch some tutorial ;)
@sectus can't understand the document :( do you mean normalize schema?
i'm trying keeping save disk space
 
@sbaaaang , do not do it.
 
@sectus what to do not ? :D
 
@hakre lol i'm wondering how using jquery to make a php include/require would help
 
@sbaaaang , this is not a point of optimization.
 
@sectus do you mean not to normalize?
or to normalize?
:D
 
@sbaaaang , yes, normalize...
 
de-normalized saves almost 40% of space in my case
from 40mb to 80mb and counting
normalizing
 
> User must demonstrate a minimal understanding of the problem being solved.
 
7:51 AM
@sbaaaang , and?
 
need to think about if to normalize or not
sure it will get more HD space many more :D
 
@sbaaaang , do you have no enough space?
 
@sectus i mean, space is ok, but if i can save 40% of that in each case would not be better? :)
it's a growing up db, probably next month i'll reach more and more records
 
Compiled new version of php, it keeps all apache processes in R state ... grrreat!
 
but i think i'll go for normalizing i just take care on hd space cause it costs imo :D
 
7:55 AM
@sbaaaang , with this case you cannot use indexes... : )
 
@sectus right indeed i'm scared about denormalizing
but i love to save disk space so i have internal mind hell :D
confusion + dubts
i can ormalize and denormalize once i got disk space full :D
 
@sbaaaang , change your paradigma...
 
@sectus ok i need a reset :D
 
@sbaaaang , you could use less number fields... use smallint
 
7:57 AM
@sectus normalizing ?
smallint how much chars?
i have long IDs
 
can a mod see who flagged a message?
IIRC they can right?
 
@sbaaaang , 2 bytes
 
@sectus to be more specific i'm storing followers in db
user's followers
so i do id_user + longtext (67,78,89,8,9 etc)
normalizing will be id_user | 67 + id_user | 9 + id_user | 78 etc ..
anyway i think the best way should be going for a mongodb collection damn ufff
i'm confused about :D
 
@sbaaaang , how many users do you have?
 

« first day (998 days earlier)      last day (3964 days later) »