Questions tagged as 'php'

4
answers

Is it possible to develop websites with C / C ++?

I know a bit of PHP, but I see that on content sites, sometimes it fires and so on. Researching, I have seen (very shallow) reports that it is possible to develop web applications with C / C ++, and that these, in turn, would have far more pe...
asked by 15.12.2016 / 10:15
6
answers

Do not use "{}" keys in IF in PHP can generate problems?

Generally for checks that modify only one line I have avoided the use of keys, since PHP accepts this method, but I rarely see codes from other programmers like this ... Examples My method if($thumb->SaveInDB('imagens','img')) $ok =...
asked by 11.07.2014 / 19:34
3
answers

Add days to a date

I need to add another 2 days on a date from a variable. I'm doing it this way but it's not working. $data = '17/11/2014'; echo date($data, strtotime("+2 days"));     
asked by 17.11.2014 / 14:38
2
answers

Working with websockets

I'm trying to use WebSockets in PHP and Javascript and I'm confused, it uses the ws: // and wss: // protocol and the hostgator ) do not have these protocols enabled (I think!) and I can not connect, does anyone know if I need to enable these...
asked by 05.06.2014 / 21:39
8
answers

Is it good practice to mix Php and Html?

I see that in python, there is the bottle for example that does the same thing as what I intend to do then ... I'm new to web practice, student indeed and would like to know if I can use php and html in the same place, wanted to know if this...
asked by 06.05.2015 / 01:00
4
answers

How do I know if a particular day is a weekend?

How do you know if an informed day, of the current month, fell on the weekend? For example: echo isWeekend(24) // True echo isWeekend(26) // False In the related topic below, I can know today using the date method: date('w') But...
asked by 26.07.2016 / 14:59
4
answers

API for stock exchange listing

I'm trying to get the values from the stock market, but the only API I found was this . It returns values, but rounded. Does anyone know of any other free API?     
asked by 16.05.2015 / 07:10
2
answers

How to translate a website in PHP?

I'm making a simple website with just a few PHP pages. I would like this page to be translated into Portuguese and English . I already use the gettext function in python and I saw that in PHP the syntax is very similar. Code:...
asked by 15.05.2014 / 17:41
2
answers

What is the difference between "!=" and "" in PHP? Which one to use?

What is the difference between != and <> ? Which one should I use?     
asked by 22.01.2015 / 16:12
5
answers

Use JS to relieve PHP

Well, I have a PHP file that generates a document (I get through AJAX). This document goes through some functions (that I did in PHP), for example, convert a string to code, add fields .. Well, for organization purposes, I did everything with...
asked by 09.05.2015 / 20:18