« first day (912 days earlier)      last day (4262 days later) » 

 
2 hours later…
02:13
are there any free scripts out there for php that provide good statistics of server usage accross the website pages for the cpu / memory useage etc?
03:54
@OlegOrlov What are you really after with that question?
04:33
haii all
04:49
1
Q: Calculating Squared Euclidean distance

user1583647I have an exe which return an array of 16elements.I have to pass this array to Mysql using php to calculate the Euclidean distance.My table in MySQL is in the form. id |img_id | features_1|features_2|features_3|features_4|features_5|features_6|features_7|...upto features_16 1 1 ...

haii can anyone clear my doubt
do pear works on live site for uploading a file?
pear? what pear?
refernce for pear:pear.php.net
i know what pear is, but what specifically are you asking?
pear is working on my local sever bto send an email. does it for send a email from an existing website?
05:00
a base installation of pear should be available, but you need to make sure that specific modules are installed on the remote server as well.
do it effects fuctionality of website in any aspect?
it's just library code, so if anything, the use of it will make the server slower? :)
yea thank u for the suggestion
of course, as with anything, there are edge cases whereby the existence of a certain library affects another.
but this may not apply here at all.
hi can anyone tell me how to iterate through the rows of a table in mysql? I have posted my question about calculating squared Euclidean distance above
05:15
@jack You r Ryt.. and i had an other doubt
@user1929491 Content-Transfer-Encoding should be base64, not 7bit.
And afaik line endings should be CRLF, not LF
@jack i dnt get u can u plz edit it
05:34
@user1929491 why $to = $_POST['to']; ? why not check $_POST['to'] is set before use ?
peace be upon you
World woke up, finally there are online users
can i use session in htaccess file ?
i check if admin session had store view redirect files to correct locations, else redirect to authoraization wrong , sorry for my bad english
@NullCatPonyPuppyPointer yea i verified it but am receiving email as like before in encoded format
Uby
Uby
morning
05:49
When sending a mail from PHP (using phpmailer, mail or something similar), you can enter whatever address you want in the 'from' field, right? Or will it not work with addresses like gmail and hotmail?
Yes, you can enter whatever you want, however clever users, or users with clever email clients will know it's not really gmail/hotmail
I'm attempting to set up a system that allows my users to send mails to each other (we all know each other IRL so no spam danger), and i'd like to set the FROM field to the user that sent the field so that they can continue the conversation through normal mail
Mail servers digitally sign messages
Yea, i was afraid so. But will it be marked as spam?
Or is there otherwise a way to send it in a way so that if users reply, they only reply to the other recipients and not to the server?
Not always, but it's still fishy, why not use your own mailserver? You can set the Reply-To header and replies will go to another address
The header looks something like:
05:52
So FROM to your own no-reply address and the reply-to to the mail address of the user that initiated the mail should work? If someone were to 'reply' to that mail, it will only sent to the initiating user?
That would be the more 'decent' approach, I think that setting FROM will probably work too, nothing simpler than trying it
Ah, thanks :)
yea, but if they do sign nowadays (my old network communications class explained it like it still didn't happen), then i won't take the risk of being marked as spam. I just want to get it working as conveniently as possible for the users.
I wouldn't feel very comfy reading an email that originated from somewhere else. You can always just ask users to input their email/pass if you all know each-other and send mail through their mail-server instead of yours. I think reply-to is the more 'decent' approach although FROM will probably work.
Is any Magento expert here?
Please provide me active Magento chat room link.
0
Q: Magento Product Flat Data and Catalog Search Index issue

TsimtsumWe are running Magento store having 8k products. The tow indexing is not working. Throwing some errors. Product Flat Data Error Product Flat Data index process unknown error: exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1005 Can't create table './bofc_magento/#sql-f22_...

Please check this question. I did not get any suitable answer for this question.
@Tsimtsum If you feel your question has not gotten enough attention, put a bounty on it
06:06
@Gordon morning ... .. .
What a cute puppy :)
@BenjaminGruenbaum it is :P
@LeviMorrison I dislike the concept of starting to teach a language by how it integrates with another technology. I don't think PHP's "Hello World" should be in a <p> tag in an HTML page, rather it should be in a php script.
It gives the wrong impression that PHP should be used like that. While you get productive fast writing php embedded in HTML, and it's something to show to first time users, it encourages the sort of development that makes people hate php to begin with.
06:34
@BenjaminGruenbaum well said
@BenjaminGruenbaum why its good to learn ?
@uınbɐɥs may i ask why ?
@igorw does it get also get that much slower when you switch to HTML instead of echo'ing?
hiiiiiiiii
]
Hi all.
anyone help me in magento soap api
how i get my configruable product attribute info using soap api or soap_v2 api in magento
anyone solution ? thanks
Pus
Pus
06:53
Hi Friends i have a serious issue in the ssl:

I have registered the ssl previously for <https://www.mydomain.com>
and now its break and new ssl is for the mydomain.com
and my all the google results are cached in mydomain.com
if i open the mydomain.com then "the site is not secured" (SSL error) comes, Any way to redirect mydomain.com to mydomain.com
i have tried with htaccess but not work for me.. Thanks in advance
Normally you configure an SSL cert for the canonical address, i.e. including the www.
You could ask the SSL provider to reissue it.
Pus
Pus
Thanks a lot Jack, I asked to the SSL provider but he cannot give me that previous certificate he told me the reason is too late so.. can i do that redirection... am really get frustrated with this issue
109
Q: Generic htaccess redirect www to non-www

deepwellI would like to redirect www.example.com to example.com. The following htaccess code makes this happen: RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] But, is there a way to do this in a generic fashion without specifying the domain name?

Pus
Pus
Thanks @Gordon I have did this too
the .htaccess is
RewriteEngine on
RewriteEngine on
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC]
RewriteRule  ^(.*)$ mydomain.com$1 [R=301,L]

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.com$ [NC]
RewriteRule  ^(.*)$ mydomain.com$1 [R=301,L]
and the mydomain.com is not redirect to mydomain.com
@Pus yes, I have seen all that in your question. please do not repeat it here.
Pus
Pus
07:09
@Gordon is there any way to fix this ?
le monrìng
ein guten mrongen
good moron-ing
@Ocramius How is the weather there?
07:26
@Ihsan sunny. Which means I have to prepare for the assault of the plants.
@Ocramius It seems, our countries switched the traditional climate schemas... :) It's raining here.
@Ocramius The assault on or of the plants? :)
@Jack you know, their sperm is poison
@Ocramius Do you have pollen allergy?
Your plants have sperm?
07:28
@Ihsan yeap.
Ahh, that makes more sense :)
@Ocramius Tough luck! You may need a mask....
@Ihsan or a flame thrower
@Ocramius Inhalation only or touching... Eyes etc.
@Ocramius lol
I love this clip :)
07:33
@Ocramius I loved the way he sees thinngs... ROTFL....
@Ihsan there's actually an item in the game that gives you that kind of sight
makes playing it much more fun :P
@Ocramius Hahaahahaahaa :D
mornings
@Ocramius I now imagine you as the mad sciencetist determined to destroy all pollens on the planet... :)
@iroegbu You are committing a crime writing monrings that way....
@iroegbu the correct form is unknown to humankind but people here has a common sense that it is not written as you did it. :)
morning
07:41
@PeeHaa埽 Est tu Brute?
@Ihsan haha.... and PeeHaa did it correctly?
@Ihsan Idunno what language that is :P
@iroegbu No, That is why I said, "you too brutus?"
@PeeHaa埽 Latin
Google translate makes "It keeps you" out of it
@Ihsan sweet dreams
07:43
When Brutus knives Caesar with the others...
@Ocramius ?
burning all ze plants
@Ocramius hahaha
> Hello, I saw a post on stackoverflow.com where you were helping somone with soundmanager. I'm having a real hard time incorporating soundcloud links into my soundmanager. I have the exact url being generated by php, but it just keeps opening the link to the actual song not playing in my page-player for sound manager 2. Can you please help me set it up?
I should charge people for email support
Mornings
hey dave
07:45
@DaveRandom C'mon Dave, you too?
@PeeHaa埽 At least a) it's polite and b) it sounds like they have at least put a little bit of effort in
36 mins ago, by Pus
@Gordon is there any way to fix this ?
Everybody saluting like non-php chat.
@Gordon not by refusing to read any of the links I gave
@DaveRandom Yep. Too bad there isn't an actual question to go with it :P
07:47
@Ihsan It's Monday morning, anything that requires thought ain't gonna happen in the next 4-5 hours.
@DaveRandom lol
See, even typing is a stretch
E_OUT_OF_COFFEE
@PeeHaa埽 You should tell them to come in here, it might be a savable soul
@Gordon That is FATAL!!!
07:48
@Gordon set an error handler for it and bind it to a coffee dispenser
@Ihsan I'd usually agree but strangely enough I don't consider it an error today
the spirit of the developer is leaving you
@Ocramius actually, I think I'll switch to rhubarb juice now
@Gordon You obtained superpowers or what?
@Ocramius It's quite difficult to handle CoffeeDispenserOutOfCoffeeException in regular flow control when you do that
07:50
@Gordon My fav... You like fringe?
@DaveRandom speaking of Flow. I will turn off notification sounds and minimize the browser soon to get me into it.
so anything you guys need from me, you need to tell me now or wait until evening :)
@Ihsan the tv series? no
Well as always if you have any spare money lying around I can take it off your hands but aside from that I think I'm good
@Gordon I hate you
was that what you wanted?
@DaveRandom short of the spare money. sorry :)
@Ocramius any emotion is better than no emotion ;)
uhmmm... :confus:
ok, back to work :)
07:53
So it is monday, so we all have the syndrome, so listen to supertramp... from now on..
this morning's spam mail: "Ferns N Petals - FREE Delivery of Flowers, Gifts, Cake and Chocolate" - now I feel like being trolled
@DaveRandom I asked OP to give me a link to a SO question
@Ocramius I'll have free cake
@Ihsan Can you please prevent one boxing of youtube videos during working hours. tnx
Add something before or after it
tnx :)
07:56
Can someone have a look at my question. Tks
http://stackoverflow.com/questions/16009843/code-for-canvas-drawing-mode
@PeeHaa埽 wellcome, and sorry for that...
No need to be sorry :)
Listen to it while you work, words are nice and they jam good...
@Ocramius lol
@DucAnh this is the PHP chat room. Try chat.stackoverflow.com/rooms/17/javascript
@DucAnh Your mouseup calls a method on canvas and not #canvas like the rest of you code
Also don't use <script language="javascript">, do <script type="text/javascript"> (although that's not the cause of your current problem)
08:00
tks Gordon and Dave,Im going to JS room :)
@HamZaDzCyberDeV hi
How are things going ?
Good day people!:)
08:02
@DaveRandom Just drop the type entirely
@PeeHaa埽 True, I suppose canvas guarantees HTML5
Not got into that habit yet
@HamZaDzCyberDeV Rainy in Turkey, Sunny in Germany, Monday syndrome... Everybody @ work... E_LOW_SENSE_OF_HUMOR alert...
I see
Here lack of sleep :(
I stayed until 4 o clock, and woke up at 7, it 10am here xD
@HamZaDzCyberDeV Everybody typed morning correctly, that is very very uncommon and frightening..
lol
I'm happy, got 70 rep from just 2 simple answers
08:06
@HamZaDzCyberDeV Nocturnal? Or a Vampire bite?
@DaveRandom No front end whatsoever for you. Lucky biatcj
Hi guys. Whats is the proper way to implement calculators (like PSU calc or calc for some parametric product which may or may not include sub-features, like if user want a special aerography for his case he can select it from list etc). I mean is there some template of mathematical model for such things? Currenlty in my project it implemented in very retarded way - bunch of ajax responders (PHP) and JS decides what parts of form to activate.
@Ihsan I'm tired ...
tl;dr: i want to do it right, but don't know a good example.
Now this needs editing : save some data for future display and then store it later
??? http://stackoverflow.com/questions/16010371/save-and-store-operation
@HamZaDzCyberDeV Just the best way to start the week :)
@HamZaDzCyberDeV Drink programmers magic potion (coffe)
08:10
4
Q: how to Fix Pagination using PHP

Atif Azadhi everyone i am trying to create my pagination in below format Go to Page 3 [text-box] Previous 1 2 3 4 5 ....400 Next and below is my code if(isset($_REQUEST['limit_start']) && $_REQUEST['limit_start'] > 0) $limit_start = $_REQUEST['limit_start']; else $limit_start = 0 ...

Ah right, I;m gonna get some coffee
hahhahahaha
@OlegOrlov You may use images.
help guys
4
Q: how to Fix Pagination using PHP

Atif Azadhi everyone i am trying to create my pagination in below format Go to Page 3 [text-box] Previous 1 2 3 4 5 ....400 Next and below is my code if(isset($_REQUEST['limit_start']) && $_REQUEST['limit_start'] > 0) $limit_start = $_REQUEST['limit_start']; else $limit_start = 0 ...

Ur kinda confusing...
@AtifAzad Stop spamming...
08:12
ok
sorry
@OlegOrlov I really do not know...
@AtifAzad Be patient... Someone will answer your question... It is just 30min yet...
0
Q: Calculating Euclidean distance in mysql

user1583647I have an exe which return an array of 16elements.I have to pass this array to Mysql using php to calculate the Euclidean distance.My table in MySQL is in the form. id |img_id | features_1|features_2|features_3|features_4|features_5|features_6|features_7|...upto features_16 1 1 0.389 ...

@user1583647 If you are looking for someone to write your algorithm in php for you, wrong place...
If you want that you might consult a company that writes algorithms for a living.
Hi All
08:18
@dragon112 AFAIK sql stored procs are slower vs php right?
guys I have written the stored procedure I just wan to find out why isn't it working.If its too much to ask then Im sry
@dragon112 lol
I am using this query in my code, does this have any vulnerability to sql injection
'SELECT * FROM my_types WHERE id IN (' . implode( ',', $arrintMyTypesIds ) . ')';
@user1583647 Well look here for a discussion stackoverflow.com/questions/810548/…
$arrintMyTypesIds i am getting in Url
*from Url
08:21
@ScoRpion via $_GET ?
yes
@Ihsan
@ScoRpion Then you have to sanitize them before ... If you use mysqli, use mysqli_real_escape_string() function if PDO, pdo sanitizes (escapes) the data automagically.
@Benjamin I have started bounty but still not get any answer. Please check this question stackoverflow.com/questions/15951067/…
@Ihsan, I would like to know any sort of senerio how it is vulnerable ,
@ScoRpion Google SQL injection
user652649
08:25
good morning monday
See @HamZaDzCyberDeV everybody types morning correctly today... Freakingly frightening...
@Ihsan I know that, but i couldnt find a way where a user can put a sql injection to an array which i am exploding in my code later
as i mentioned in the above query
lol @Ihsan
@ScoRpion You obtain it from $_GET which can be spoofed, written and overridden by the clientside.
08:28
@Tsimtsum Not everyone is familiar with magento ...
@OlegOrlov please refer to meta.stackoverflow.com/faq to learn what type of questions are acceptable to ask on StackOverflow
@OlegOrlov Name will change from StackOverflow to TotalSystemCrash
@Ihsan I guess that depends on wether you use mysql/mssql and on what you are trying to do..
@dragon112 Thanks.
Cheer up people... listen youtube.com/watch?v=d9NF2edxy-M
That is a "multi user guitar"
@wes lol
@Ihsan Or they might rename SO to "Microsoft Questions Community Edition" =D
@Jack ROFL.
@Jack MSDN - working edition
@Jack MS was the old evil... Now it looks like a toddler with respect to sun, apple, adobe and google.... :D
08:53
Google is aiming for the evil crown now ;-)
Can someone remove that fixed stars from the left...
@Ihsan ltrim($str, '*');
What is the point of stars if I can not star the way I like?
@Jack Oh then the regex was screwing up... thaaanks... :)
@Jack (classical answer comment) I tried, but it did not work...
(classical review task) close as not a real question.
@Jack And to my surprise, they are on the right side of the page meaning that we are both dyslexic...
@Jack :D
08:58
Dyslexia doesn't work that way lol
@Jack (classical reaction to critisizm) downvote...
Facts don't criticize :)
@Jack :D Or irritable Bowel Syndrome?
haii
can we use pear without smtp
@user1929491 that's a strange question. what do you mean?
09:04
i mean without configuring smtp settings can we run pear on sever
@user1929491 what does "running pear on server" even mean?
@user1929491 Pear is not smtp dependant.
so we can use it without stting up smtp
however if you use smtp packs you will need to.
i dnt wanna use smtp with pear
09:08
Ok. you can.
@Jack This is Monday...
No doubt about it.
Its displaying a fatal error without smtp authentication " Fatal error: Call to undefined function send() "
I am living one of the funniest moments of my life....
@user1929491 Whatever you are using is using smtp. disable it.
Or configure your smtp server.
Gordon is trying out Bitbucket
@Gordon it's good for private stuff
09:13
@Ocramius which is exactly what I need it for. I didn't know they support Git. I always thought it's the Mercurial version of GitHub.
I push stuff there all the time until I cannot publish it
Then I move it to GH =D
@Gordon that is wonderfull
thx
@Ihsan thank u its done
@Ihsan you are right, but even if client has an access to the usrl, what can he do to max.. can u give me an example with the above query'
@ScoRpion no. I am working... But anyway with a ; they will end the SELECT and write another command...
09:19
@Ihsan they can only write their command to the url array and when i put that array in explode ',' comma separated, how would it effect.. eg
'SELECT * FROM my_types WHERE id IN (' . implode( ',', $arrintMyTypesIds ) . ')';
they can change the content of $arrintMyTypesIds and ultimately its gonna split , seperated
@ScoRpion Well a ";" ends a command in SQL query. And you can chain many commands. You can not beat a hacker with explode.
@ScoRpion if the IDs are user provided you might want to intval them before imploding.
Hi, can ayone help me out and show me how to write this statement in the shorthand way?
if(isset($_POST['login']) && $action === "validate"){
$content = login();
}else{
$content = getContent();
}
break;
thanks a lot!
@ScoRpion You will clearly understand how, when the site gets hacked....
@Duikboot Just use ternary operator? Not sure what you mean.
09:23
@Duikboot shorthand?
$content = (isset($_POST['login']) && $action === "validate") ? login() : getContent();
Running out of disk space?
That is exactly what I ment :)
Is it much faster to write it shorthand?
No.
It's called syntactic sugar :)
What are the advantages then?
Advantage is expressiveness I suppose.
@Duikboot The fastest coding is CORRECT coding. If you write wrong code with short notations etc. you will find yourself in a debugging chaos
09:28
@Gordon since when or SO mods also mods on meta?
@Duikboot More %80 time spent on classical projects is for debugging.
true :p
So keeping it the 'normal' way is better...
@PeeHaa埽 Probably because they don't want to have multiple mod voting rounds? :)
because it's easier to debug
So do not go classical... Write plain understandable code with comments...
09:29
@Gordon I am using this query in my code, does this have any vulnerability to sql injection
'SELECT * FROM my_types WHERE id IN (' . implode( ',', $arrintMyTypesIds ) . ')';
$arrintMyTypesIds is an array that i am getting from url

here is my Url :- scorpion.systems.lcl/?filter[mytypes]=1,2,5,3
@Duikboot In fact, imagine you want to extend this code by another condition; once you choose ternary, you'd have to break it up again.
@Jack Well +1
is it ok to put some php script in a .xhtml file?
hi
is any one know about opencart?
tell me meaning of this line
$this->redirect($this->url->link('product/category&path=57', $url));
Better add this...

for each($arrintMyTypesIds as $k => $v)$arrintMyTypesIds[$k]=(string)intval($v);
09:35
@ScoRpion Depends on what you're using underneath ... is it PDO?
@jack No
So, then ... what is it? good ol' mysql_?
mysqli
okay, good enough ... you can use filter_var($arrintMyTypesIds, FILTER_VALIDATE_INT) first.
@ScoRpion Why do you resist this much against filtering your data before querying?
09:37
the return value would be either false or an array of integer values.
@Ihsan @Jack @Gordon can anyone modify the given above url, to make it Sql - injection prone
who wants a bitbucket invitation?
@ScoRpion look above
@Gordon Do we need invitation?
@PeeHaa埽 dont know the history. i was right from the start.
@ScoRpion That's the wrong question to ask. It's like hiding the key under the doormat and asking a policeman to try and break in.
09:38
are say at least NO.
bye
@Ihsan I am not resisting, I have the piece of code with me, I think in every way, so i jsut want to know, what is that, that doesn't came to my mind
@Gordon aaaah kk
@ScoRpion yes if the IDs are provided from the outside, which would allow me to tamper them into "3' or 1=1" which is why I said you should intval them
@Gordon I wrote example above for that...
@Ihsan no but when I invite people I get three more users myself, so I figured if you are not on BB yet, then I'll invite you now
09:40
@Ihsan It would be nicer to use array_map() though.
@Jack Sure
is it ok to put some php script in a .xhtml file?
Or filter_var as mentioned before :)
So I need three people willing to sign up
@gordon if i am using implode( ',', array( "3' or 1=1" )).. and i am ofcourse using validArray() my custom function for check an array
09:41
@Gordon I am in...
ok
invite me
@ScoRpion What does validArray() do?
@Ihsan done
@Jack $boolIsValid = ( true == is_array( $arr ) && $intCount <= count( $arr ) ) ? true : false;
@jack It checks for valid array
I suppose array_map('intval', $arr) == $arr would work too :)
But I would still rather go for filter_var()
@Gordon Thank you for the invite... How do you access my email?
09:46
@Ihsan magic
@Gordon uuUUUuuuuUUUUuuu
:)
anyone else?
Lunch break... cya....
Good morning, hallo to everyone. Can someone give me a help with php and mysql?
@Mhche: Hello. Feel free to ask your question. :-)
09:50
@NiekBergman Thank you,then here i go for my question.
@Gordon If it helps you I'll do it, but I'll never use it myself (probably)
@Leigh it'll up the 5 user limit per repo by one. not that I need it, but if they already offer it …
5 people to keep track of is already hell :P
@Gordon I assume you can get my email from my SO profile. Feel free to send one if you want to :)
@Leigh done. thank you.
09:56
In my db i have some tables,in one i store the urls that i index with my crawler then i have make some scripts that take every url from the db and crawl it for emails,etc info i want and then insert them in another table. I have tested it for two sites,for the one works fine and for the other seems to work when i test one link but when i try to do what i do at the first site( parse all urls from the db) it stops.
Do you know why is this happening?
morning
@NikiC ahoy!
Bloody google... making things difficult
> All input is expected to comply with JSON, with two exceptions: the # character (not inside strings) begins a comment that lasts until the end of the line, and trailing commas are permitted at the end of list and dict contents.

« first day (912 days earlier)      last day (4262 days later) »