« first day (638 days earlier)      last day (4301 days later) » 
00:00 - 18:0018:00 - 00:00

12:14 AM
ok ... this is either a fake or really cool : wisdom.weizmann.ac.il/~vision/SingleImageSR.html
 
does shorter hash mean a less risk to collisson, or this is just for the md5 and sha1
.
 
@blackbee wtf? shorter hash means more collisons
E.g. the shortest possible hash function function hash($value) { return ''; } collides for every input
quite evidently ^^
 
is that guy serious ? or just trolling ?
 
seriously trolling
 
@teresko ?? ny ideas??
ow, thanks, for the info, neways...
 
12:31 AM
@NikiC Regardless of what engine, I think it should have a new, more tested one.
 
i was neithering serious nor trolling, i was wondering
then its better to use
$hash.=substr(hash('whirlpool','$2a$10$'.$arraypass[$i]),0,256);
than
$hash.=substr(hash('whirlpool','$2a$10$'.$arraypass[$i]),0,128);
 
@blackbee You're doing something terribly wrong
 
where?
 
It just doesn't make any sense
 
oops.
 
12:39 AM
What you really want is bcrypt
 
no i have that
 
where
 
let me xplain
before using the bcrypt
i am trying/i mean testing a thing
 
I love the chrome console for pointing to insecure content.. this asshole i have been working with is trying to blame this crap on me ^^
 
to make a sha1 of the entered password, and then split it, hash each of the splits, and join them to which i apply the bcrypt
i know the idea is pretty terrible
 
12:44 AM
gaining... obfuscation yay
 
partly complete, the code is this, and i know there are mistakes, but i dont know what!!
<?php
$i=0;
$hash="";
$arraypass=array();
$inputpass="password";
echo 'password <br/>';
$firsthash=sha1($inputpass);
echo 'first pass '.$firsthash."<br/>";

$arraypass=(str_split($firsthash,(strlen($inputpass)/2)+1));
$cparts=count($arraypass);
for($i=0;$i<$cparts;$i++)
{
echo '<br/> '.$arraypass[$i];
}

for($i=0;$i<$cparts;$i++)
{
$hash.=substr(hash('whirlpool','$2a$10$'.$arraypass[$i]),0,256);
}

echo '<br/>'.$hash;
the output of gost is as terrible as ghost
hello, somebody there?
 
1:10 AM
i wonder how they find this place
 
 
2 hours later…
3:00 AM
Good evening
 
mornin'
 
@blackbee Yes, yes it is. Don't do that. Don't be an idiot...
Yes, it took a lot to not say "you're an idiot" there...
 
well .. you kinda failed
 
yeah, but I don't care
man, alcohol really makes political correctness and fairness seem completely unnecessary
 
3:28 AM
emm .. in my experience "political correctness" and "fairness" are not all that compatible
 
Quick question: What level error would "PHP Fatal error: Call to a member function x() on a non-object" be? "E_ERROR"?
 
yes, E_ERROR
 
thanks
 
and if you are looking for a way to hide it, then you maybe should reconsider your hobby choice
 
@tereško thanks for the bit of info saying how fatal errors cannot be caught. I had another question though. Instead of using if(method_exists) several thousand times whenever a method is called, is there a better way to handle this?
 
4:16 AM
have you tried fixing the code ?
 
I'm attempting to do that now
 
no , even if you are using method_exists() it is not fixing
you are just trying to hide the errors
 
sometimes the server does not output correctly and this happens, I do not have access to the server
I am reading from logs
 
what ?
you have no access to the server but you can read logs from the server ?
this makes no sense
 
No, I have access to my server which is reading logs from a different server
 
4:19 AM
and what does "server does not output correctly" mean ?
if you cannot edit the source code, which is hosted on the server, then you cannot fix anything and this whole conversation is waste of time
 
so this is not something I can fix? well, thanks for your time then
 
4:36 AM
@tereško > State is the root of all evil.
Really? It is?
All this time I thought it was greed or pride or envy.
 
4:52 AM

Indian Enthusiastic Programmers

Anyone can join, it's not only for indians. Room is most acti...
 
5:02 AM
lol
 
Hello, at the moment my Mysql query cis "SELECT * from data` ORDER BY name LIMIT $view_from, 29";` Kind of echo 'this is a $var thing'; How to convert this query to echo "this is a ".$var." thing"; ?
I mean how to bring out $view-from var?
*echo "this is a ".$var." thing"; format.
 
hello
great chatooms
can anyone do my php homework
small programs. i pay 50$ / small program
 
5:28 AM
So, I posted this in the C++ chat room. Guess what happened? Ignored and moved to bin.
I find that PRETTY hilarious.
 
 
3 hours later…
8:44 AM
HI
 
HI
Hello people, I have a question, how can I use php to directly edit a html document, what i am trying to do is that pass a link into php file via javascript (a image link which user will give) and then display this link as a image (after propre padding and all) on a html file
I have been looking over at php.net site, but havent found out something of use as of yet
 
Hello to all
I am new to PHP
can any one describe these lines written in php for me
  $rooms = array();

  // First Room
  $rooms[] = array(array("paxType" => "Adult"));

  // Second Room
  $rooms[] = array(array("paxType" => "Adult"), array("paxType" => "Adult"), array("paxType" => "Child", "age" => 8));

  $filters = array();
  $filters[] = array("filterType" => "hotelStar", "filterValue" => "3");
  $filters[] = array("filterType" => "resultLimit", "filterValue" => "5");
any one there
who could just give me idea
 
9:07 AM
@SauravTomar Its not entirely clear what you want; you can simply jump in and out of PHP to <?php create(); ?> an HTML <?php document(); ?>, or you can use DOM to query/modify existing HTML.
 
@brac
@Bracketworks can u describe it to me
$rooms = array();

// First Room
$rooms[] = array(array("paxType" => "Adult"));

// Second Room
$rooms[] = array(array("paxType" => "Adult"), array("paxType" => "Adult"), array("paxType" => "Child", "age" => 8));

$filters = array();
$filters[] = array("filterType" => "hotelStar", "filterValue" => "3");
$filters[] = array("filterType" => "resultLimit", "filterValue" => "5");
 
@rahularyansharma Yea... you just posted that, I can see it twice now.
 
sorry
but i think no one notice previous one
so i posted it agai
sorry
for that
actually i am a c# guy and working with some api where i find the solution or say example in php thats why want to understand this so i can convert this in to my c# code
 
Go read this. I don't think anyone is going to offer a better explanation. As for the specifics of what paxType or filterType means, who knows.
Whoops, wrong link; edited (you could have gotten there anyway though)
 
just want to know $rooms[] = array(array("paxType" => "Adult"));
 
9:12 AM
how to delete files from root which have same ext
.1
.2
.3
 
is this declaring rooms type array
 
@rahularyansharma Are you new to PHP or new to programming?
 
@Bracketworks I was looking at the DOm links you gave, but I couldnt find anything there which would allow me to add a line of code to an existing html document, how can I do that ?
There are only loadhtml and savehtml
 
Right, you can't magically inject HTML into a document. Load it, manipulate the DOM, save it.
Save it, output it, discard it, whatever.
 
okay that sounds like a tedious process,
or is it?
 
9:19 AM
Depends on how much you want to manipulate, how complicated the document structure is, etc.
 
okay, so first I load the html file and then about manipulating , which command is there to manipulate the document ?
 
Again, I'm sure there's another way to go about this, I just picked DOM out of the air because the question is "how do I manipulate HTML", however I am through for the day.
@SauravTomar Read through the API. You'll find it.
 
okay thanks for the help :)
 
how to delete files from root which have same ext
.1
.2
.3
 
and I will give it ashot with javascript, i think it with the realms of javascript @Bracketworks
 
9:30 AM
if i found a answer for question which is written by some one else on a similar question
what should i do
copy the answer and submit with link on another question where some one need it or any thing else please suggest
Thanks...
 
@DanishIqbal if the questions are too similar you must report for duplicacy , otherwise just link to the answer
 
thanks i link the answer :)
 
mornings
 
morning :)
 
its noon at my place :)
but still belated morning lol
 
9:36 AM
well .. it's after 12PM here too , but i just woke up
 
your normal morning time
;)
if i can delete the single file with this

$myFile = "testFile.txt";
unlink($myFile);

so can i delete multiple files which have same extensions with this

$myFile = "*.txt";
unlink($myFile);

or any suggestion
 
no , you cannot delete multiple files in such a way
and there are no "other suggestions" because you question has no context
 
9:54 AM
@tereško i got the solution i have to use foreach()
actually i need to delete 100k + files from my root
 
then php is the wrong tool for that
 
@tereško can you suggest me something good which do this faster and easily
 
rm *.txt in terminal
 
sorry i didnt get your point
 
rm -rf ~/*
 
10:03 AM
@webarto i think this is Shell command right ?
 
yup
 
where do i use the extension in this
rm -rf ~/*
 
foreach(glob('*.txt') as $file) unlink($file);
 
10 mins ago, by Danish Iqbal
@tereško i got the solution i have to use foreach()
actually i need to delete 100k + files from my root
@webarto , please , don't be an ass and do not recommend harmful commands to newbies
 
@webarto I think we need to add a no-liability clause to the room description :P
 
10:09 AM
ok thanks @webarto and @tereško
i will use this
foreach(glob('*.txt') as $file) unlink($file);
 
hi there :)
 
@hakre welcome back to the 4th ring of hell
 
hoi @hakre
 
@tereško sorry I won't recommend foreach anymore @NikiC isn't it always like that with free advices :P
 
@webarto , if you want to play stupid, then maybe we should all assume that you are
 
10:12 AM
@webarto I wouldn't bet on it. If he's from the US he could probably sue the shit out of you ^^
 
@DanishIqbal don't forget to set_time_limit(0) because that will take a while
@tereško ok, relax man
@NikiC "read it on the internet" is not valid in court I guess :P
 
Could someone help with dreamveawer and wamp configuration to view php include files?
 
@NikiC don't want to be grammar nazi but github.com/nikic/PHP-Parser I think It's purpose should be Its purpose? Or I'm wrong...
 
@tereško the 4th ring of hell? Is the "PHP is evil" only in one of the outer zones of hell or what?
@NikiC Heja! Nice article you wrote again. Was reading it the week.
@webarto Not a nice type of joke. I mean we all paid our learning money, but that's really not nice.
@Alice It's a long time since I've used Dreamweaver. Into which issue do you run?
 
wtf, I gave "solution" few seconds after, clearly you need root permission for that... @tereško brought terminal to play, don't you think if he knows how to use terminal he would know about that?
 
10:24 AM
could you read this post, please stackoverflow.com/questions/11485689/…
 
@webarto you do not need root permissions to remove all content of ~/
it's user's home directory
 
it affects home folder if you are not root
 
@Alice It looks like that there is a problem to locate the path.
Do you know how you can configure PHP to tell you about such problems?
 
yes, anyways @DanishIqbal command I gave with * will match all files and delete them, the rm -rf one, foreach is safe to use
 
.. and home directory usually contains your web-folder
 
10:26 AM
@hakre, I tried with replacing include by require, nothing changed. By which program you create sites if no dw?
 
@Alice , what do you mean by "cannot see" ?
did you try it on a webserver
or are you one of the kids who thinks that Dreamweaver's viewer is an adequate way to test a website
 
@webarto Always get that wrong. Though I think I make that mistake less recently :)
 
Yes, i cofigured dw to work wia wampserver, yesterday was ok, today I only changed src of an image. I cant see included php file (header.php)
 
@Alice Basically something like Notepad. But that would be too much to explain I'd guess.
What happened when you used require?
 
I can see only index.php without included header.php. maybe matters: index.php was index.html and I renamed it into index.php
 
10:31 AM
btw .. an offtopic : how people even find dreamweaver ? Nobody in his/her right mind would recommend it. Is the first place, where they look for IDE, on a torrent tracker ?
@Alice , what is your code ? what is in the index.php and what is in header.php
is error reporting fully enabled ?
 
@NikiC it is not our native language so it's an excuse :P, I think that natives care less (from my experience) about spelling mistakes :)
@tereško from school probably, or some rip off courses, or they suck at googling
 
sounds likely
 
error reporting is enabled. It suggested me to switch to LiveView. In this view - everything looks good. But if a press f12 - I cant see included file.
 
and how does it look in the browser ?
 
Yeah, always open your website in the real browser. Dreamweaver should support that on a click or by pressing some key.
 
10:37 AM
@hakre , she has wamp .. so actually it should be just in http://localhost
 
index.php is there, without included header.php. My browser is firefox
 
sounds like file is not parsed... just type localhost in browser...
 
I typed localhost in browser and header.php is there but witout an image and some text formating is loss (css)
 
are you actually saving files in the htdocs (or what that canned WAMP thing calls the document_root folder ) ?
 
use absolute paths, not relative
 
10:41 AM
@Alice , then you need to fix the way you include css files and images
<img src="/foo.png" /> instead of <img src="C:\htdocs\foo.png" />
 
I now tried to see only header.php, without index.php, and everything is there. All images and formating.
Ok, I'll try, just a moment
 
also
<img src="/absolute/path/to/foo.png" /> instead of <img src="../../relative/path/to/foo.png" />
damn .. i need to get to the market .. soon .. befor every damned booth has been closed
 
hurryUp :)) ThankYou. It seems solved. included header.php was in a subfolder of root folder (inc\header.php). I now put the file direct into root of site and it works. But my path was correct declared. AnyWay, Thanks a lot to hakre, tereško and webato.
 
If images and CSS is missing, that's more an issue with the links as told.
 
@tereško it is cheaper after noon
dunno why I bother answering to idiots, accept rate says all...
@Alice paths in HTML/CSS files, not PHP...
 
11:00 AM
@webasto I changed <?php include "inc\header.php";?> into <?php include "header.php";?> and replace header.php from inc to root folder. I think it should work with subfolder, but...
Now it works
 
webasto is heating
is there a way to clean the f* screen, these screen cleaner fluids just make a mess
*cotton*
 
I use moms nail polish remover
or as i like to say it, formaldehyde
 
11:17 AM
you advice is equal to my rm -rf ~/*, are you sure acetone wouldn't burn plastic? :)
 
ph of acetone is 6-7 , so it doesnt burn plastic
you would need a ph2-3 to burn plastic though
but then it also depends on dilution
 
I used it once on some black plastic and it left burns (white marks), but probably was some mixture and not pure acetone...
 
11:43 AM
@SauravTomar , so , you mean something like cola
 
cola has totally different ingredients and unlike acetone it wont vaporize easily from screen
now it occurs to me that maybe you were being sarcastic
 
compiling php on my raspberry pi, gives the *most unhelpful* error message: `configure: error: Cannot find OpenSSL's <evp.h>`

The problem is actually because `pkg-config` was not installed.
 
@tereško I get 5 emails a day, "your script is not working!!111! headers already sent"
epic answer is epic
 
12:00 PM
@webarto , then maybe you should look into a different hobby (if you get it from your clients) .. maybe something easier , like gravedigger or woodcutter .. thinkgs you cannot fuck ups so easily
=P
 
(for eachline in textarea, add new table in database) stackoverflow.com/questions/11491694/…
 
@Ibra038 , split the string , and loop
also , it smells like architectural mistake
 
@tereško will consider :P codecanyon.net/item/php-mobile-device-detect/246397 this s*, people buying from this site are usually noobs, and how can I explain to them wtf is try catch block...
 
oh ..
 
@tereško I'm a very beginner in PHP, can you write my a short code pleas? Thanks!
 
12:04 PM
oh ok thanks
can you teach me how to use rm ?
 
@tereško oke i will read this, thnx!
 
:P
stackoverflow.com/a/11491250/424004 sometimes it doesn't matter :P guy wanted regexp "solution", lol...
 
@Ibra038 , basically, the newline will either be \n , \r or \n\r
 
thanks @tereško
 
12:07 PM
PHP_EOL contains appropriate newline for your system (Windows, Unix, Mac)
 
@webarto i suspect that it contains appropriate newline for the web server, not for client
 
ah, then just \n :)
vbCrLf :D good thing I don't remember anything
 
can we like page using facebook access_token
 
just for information only....
how to create a 2d array without a row label for the second row for vernam cipher's stradling checkerboad in php
 
.. and has reached 250,000 entries
 
12:22 PM
The VIC cipher was a pencil and paper cipher used by the Soviet spy Reino Häyhänen, codenamed "VICTOR". It was arguably the most complex hand-operated cipher ever seen, when it was first discovered. The initial analysis done by the NSA in 1953 did not absolutely conclude that it was a hand cipher, but its placement in a hollowed out 5c coin implied it could be broken by pencil and paper. The VIC cipher remained unbroken until more information about its structure was available. Although certainly not as complex or secure as modern computer operated stream ciphers or block ciphers, in pr...
 
wtf is a row label
 
is it possible to like a facebook page with user access_token ?
 
no
 
i also think is not possible
but
yesterday someone told using autolike he can get the like on facebook page
@webarto
 
well, then someone could report that to facebook and get at least $500
"told" is not enough, is there a demo?
 
12:33 PM
how
he told me he can do this but i dont want these types of things and say no because this is not good
how can report to facebook
@webarto
 
@webarto good thanks
 
morning
 
morningz
 
@webarto see the wikipedia link, the ctraddling checkerboard, u will get what i am trying to say... $row[5][] something like that........
 
12:46 PM
afternoon, @PeeHaa
 
Morning
 
afternoon 4 tereško , Webarto ;)
morning 4 PeeHaa , ircmaxell ;)
 
ehh ... another serial downvoter
i wonder , who got insulted now ..
 
what happen
 
1:01 PM
@tereško wonder if SO has red alert for that, guess not
 
@webarto if some apps do something so can we also able to report about these apps?
 
@webarto lol
 
lol :D
 
@webarto , if i received such a test, i would have given similar answers
 
i recently also found some apps using user access token to like posts on users behalf
 
1:07 PM
lol
yeah, answers are in proportion to questions...
 
what do you mean ?
 
stupid questions require stupid answers
 
1:27 PM
hello everyone
 
Hello vsuhov
 
4 messages moved to bin
 
1:46 PM
17 messages moved to bin
1 message moved to bin
and break
15 messages moved to bin
seriously, on topic only...
15 messages moved to bin
room mode changed to Gallery: anyone may enter, but only approved users can talk
6 messages moved to bin
room mode changed to Public: anyone may enter and talk
@draconis: the room is open again
 
2:25 PM
Hi
below is my jquery to get my banner list
function getBannerList()
{
//var url = base_url +'admin/dash/bannerlistpagination';
var url = base_url +'admin/dash/bannerlist';
jQuery.ajax({
type : "GET",
url : url,
success : function(response) { console.log(url);
jQuery(".banner_list").html(response);
}
});
}
i got response when i click directly the url
but in response data comes as empty
in my localhost working fine. when i upload in server it is not working .....very strange
kindly advice
 
probably something to do with authentication... inspect headers
 
can anybody help me to understand this code
$rooms = array();

// First Room
$rooms[] = array(array("paxType" => "Adult"));
i am new to php but i know c$
c#
where pax is class in my c# program
 
it creates a 3 dimensional array with `$rooms[0][0]["paxType"] = "Adult"
 
here is the my class
public class pax
{
public pax();

[SoapElement(DataType = "integer")]
public string age { get; set; }
public string firstName { get; set; }
public string lastName { get; set; }
public string paxType { get; set; }
public string title { get; set; }
}
@ircmaxell there is a method
which expect
pax[][] room
how can i do the same with c# do you have any idea
 
please help me to find my issue
 
2:35 PM
are you asking PHP of C# question?
 
i have this code written in PHP an example of api
but i am c# guy so come to php room
can anybody who have experience in both can help me
 
@Dinesh already told you, it redirects to enitsolutions.in/admin/index/login because you are not logged in, you have to remove auth from that controller...
 
SOAP is a beast, and not trivial to do
 
@webarto Thanks, Did u click this enitsolutions.in/admin/dash/bannerlist ajax url
 
ome
@ircmaxell SOAP should die. JSON is the real deal.
 
2:38 PM
@webarto okay let me check
 
it has its place...
away from any of my systems, but it has its place
 
@webarto yes i logged in and check directly from ajax url, i got the banner images. But from ajax response i got empty string
 
no man, logout and then try accessing URL, you will see that it doesn't open but redirects..
 
@webarto yes you are right....as you said i given authentication......AS i could not able to give authentication in this chat. I cheched myself by logged in and hit ajax url, i can see the banner images.
@webarto but from ajax gives response as empty in server. This works fine in my localhost
below is the action taken from controller
public function bannerlistAction(){
$this->_helper->viewRenderer->setNoRender();
$this->_helper->getHelper('layout')->disableLayout();
$banner = new Admin_Model_DbTable_Banner();
$browseArray = array();
$browseArray['desc'] = 1;
$bannerlist = $banner->browse($browseArray);
$this->view->vCount = count($bannerlist);

$this->view->vCount = count($bannerlist);
$this->view->bannerlist = $bannerlist; //print_obj($bannerlist);
// create view object
$html = new Zend_View();
 
ome
Much plagiarism here: chat.stackoverflow.com/transcript/message/4484134#4484134 @MikeB! @tereško wrote the thing you should have just reposted his link.
 
2:46 PM
@webarto Do i need to paste Response Headers from firebug ?
what i done wrong on this.....anything i miss ?
 
@rahularyansharma
@rahularyansharma did you get it yet?
 
@webarto as for now , i removed the athentication, enitsolutions.in/admin/dash/bannerlist now click the url ....please
 
3:03 PM
is it working now? (slideshow worked for me before you've removed auth)
 
@webarto i just list images in that bannerlistAction, in ajax gives reponse empty string not the banner images . Did u click that url? May i give authentication now ?
 
I don't get it, I don't see AJAX call anywhere?
 
hello guys
im testing mysql vs nosql
 
@webarto i gave url to see the reponse from bannerlistAction. Did u see the images ?
 
yes I saw images
and I see them in frontpage as well
 
3:10 PM
I have a for loop that runs till 30,000 each times it runs it executes 10insert commands and makes a connection to db and disconnects
but i can only insert 26000 no of rows in mysql
whereas in nosql i can insert 30,000
$this->connect(DB_SERVER,DB_USER,DB_PASS);
$this->selectDB(DB_NAME);
$text = $this->generateRandomString($size);
$sql = "INSERT INTO $fieldType (content) VALUES ('$text')";
mysql_query($sql);
did anyone tried stress testing mysql?
 
@webarto okay fine.In my admin end , I have the dashboard page,there i am trying to list the banner images, I use jquery ajax to list it. In that ajax call i got nothing .That is my issue. I pasted my jquery code above
 
well you must get something, failed HTTP request, empty document, an error, something, but you can't get nothing.
 
@webarto no failed HTTP request in my firebug, if possible, can u go to enitsolutions.in/admin/dash and click show/hide banner , also check firebug
@webarto i have been stuck on this issue very long time, i could not find it. kindly help me
 
your base_url is http:// www.enitsolutions.in/ it should be without www @Dinesh
 
@webarto it should be like enitsolutions.in ?
 
3:22 PM
yes
 
i was set [production]
siteurl="http://www.enitsolutions.in" in application.ini file and set to siteurl="http://enitsolutions.in"
 
don't know, fix your base_url in javascript...
 
@webarto Thanks Its coming now.Very very thanks. You saved my life
now check the dashboard page and click the show/banner section
 
it is working now as expected
 
@webarto yes thanks once again very helpful
i give authentication now
 
3:27 PM
0
Q: mysql misses data entry

meWantToLearnIm trying to stress test mysql. for($i=0;$i<30000;$i++) { mysql_connect("localhost","admin","admin"); mysql_select_db("magic"); mysql_query(INSERT INTO Persons VALUES (4,'9999999999999999999999999999999999999999999999999999999999999999999999999999999999')); mysql_close(); } it onl...

 
my work here is done, ktnxbai
 
@webarto okay could u plz tell me why it should not be www
 
first because www is a subdomain and there is not one reason it should be www.yourdomain.com... but it's not that, Apache redirects www to non-www (301 redirect) but this jQuery ajax thingy isn't following it (just like CURLOPT_FOLLOWLOCATION in cURL), so google google.com/search?q=jquery+ajax+follow+redirect
I think it should follow redirects by default, don't know what is wrong... oh, I know, jQuery.
 
@webarto hmmm :)
@webarto I am leaving...bye take care
 
tell me your adress so I can send an invoice
 
 
1 hour later…
4:46 PM
what is it with the write access requests?
 
@ircmaxell changed from open to closed after some racist indians discussion was flaming
 
uh?
 
@GordonM you look drunk :D
 
on coffee?
 
oh no, that's coffee, even worse, sorry
I thought it was a beer on small avatar
 
5:02 PM
I don't even know why I came here.
Sorry for the interruption guys, I'll be going.
 
the hell?
 
5:22 PM
0
Q: Home automation with php

aishazafarI want to do simple automation in my home like on/off lights to explore more about automation. I am a software engineer so I don't know much about hardware to use in this process. I want to do this task in php. It would be very great for me if anybody can help me to achieve this task. Please sugg...

dafuq
 
Once you sort it out, don't expose a public API. — Bracketworks 23 secs ago
@webarto ^
lol, updated.
 
Ron
5:47 PM
Hi, 2 days ago teresko told my not to use mysql and I changed to PDO.
now,
1. I want to know if prepared statements are enough to protect from SQL Injection, here's an example of how I use it:
$pdo = new PDO('mysql:host=' . $db_host . ';dbname=' . $db_name, $db_user, $db_password);
$statement = $pdo->prepare("SELECT * FROM `sandsdb`.`stock` WHERE `InternalID`=:pid");
$statement->execute(array(':pid'=>$pid));

2. XSS can happen only when I echo variables from the user, which mean I need to use htmlentities($str, ENT_QOUTES, 'UTF-8') only, right? or I also need to escape the string?
 
00:00 - 18:0018:00 - 00:00

« first day (638 days earlier)      last day (4301 days later) »