@LeviMorrison I use the squizlabs/php_codesniffer just for detecting errors. I disagree with the 'problems' it detects to not want it to correct code for me.
yeah I don't do that. I have the problem detector set to run pre-commit git hook, and I have the sniffing setup for CI testing, so that pull requests have the detection done on them, (or when i work from a directory where I've forgotten to setup the pre-commit hook).
I have a weird problem regarding a order checkout form the back end section. I have a product that is not is stock.
It has 0 qty, no back-orders, and the out of stock status.
When i try to make an order with this product, surprisingly the order goes throw with no issues causing the stock qty to ...
@FélixGagnon-Grenier Full disclosure I really need to get a job, as I'm really running out of money. And although I probably will need to turn my Aws servers back on, not sure if I'm going to do that this week.
And I'm aware some of the sentences in the documentation are terrible. Apparently I am very bad at writing documentation.
@LeviMorrison I'm having a problem with autoconf's AC_TRY_RUN that you might be able to solve more quickly than I can....this program compiles, links and runs successfully:
@Danack sorry I missed your mention, I have been working on extensions igbinary my last mandatory one :)
Here is a great place to chat! Really I have been just scouring the web to get peoples opinions on named params in Python (I personally was more excited by keywords like Common Lisp)
The implementation is not going to be the hard part, but this seems to be something so many people have opinions on
The short version is that from a surprisingly troll free discussion on Reddit having functions that support named params like the Javascript ES6 functions, rather than having all functions callable by name sounded sensible to me and Andrea.
I also didn't want to really talk about it a lot until I had a working implementation (My last feature in PHP was a grind) not like bug fixes or extensions that is for sure
tbh I don't have 'teh skillz' or the time to do any internal stuff required for named param - but if you were already going to be working on it, and it sounds like Andrea is keen also, you two might be able to help each other.
Apart from possibly write the RFC text when it's time to make the case for it.
sanity check: theoritically, the user running a php call from nginx server would be the one configured in php-fpm.conf (www-data, as far as I configured it sucessfully). if that user owns var/cache, it should be allowed to write in it?
git commit -m "Totally not trying things at random now"
I think I'm going to give up on this. It was supposed to save time against having to define versions for all functions that were introduced in particular versions......but I can probably do that in about 1 minute per function.....and there's not that many to do.
Btw fyi I'm going to be moving to be using the PSR-7 request/response interface "soon". I don't have the time to finish off a separate one and the request bit of that library is good enough, and the response one can be isolated and so be good enough...
@Epodax I don't do any fireworks at all. And with each year I think more and more that people should just give the money to their city and let the city do a professional firework instead. safer. and less annoying the two days before and after NYE.
Problem:
I want to update two column of mysql table,
column1 decrement with some value and column2 multiplication with some value,
I have done about decrement like this from here
Tried:
$stock_obj->decrement('quantity_on_hand', $product_data["quantity"], array(
'total_quantity_on_hand' =>...
I have some settings which I want to use in .htaccess file. The settings are for some functionality at /admin/tool folder level .. but I want to include some settings for /admin and / locations as well.
My question is what is the best location to put this file at??
Thanks
Update
Just fyi .. ...
Problem:
I want to update two column of mysql table,
column1 decrement with some value and column2 multiplication with some value,
I have done about decrement like this from here
Tried:
$stock_obj->decrement('quantity_on_hand', $product_data["quantity"], array(
'total_quantity_on_hand' =>...
System Windows NT DELL-PC 6.1 build 7600 (Windows 7 Professional Edition) i586
Build Date Oct 29 2015 12:34:05
Compiler MSVC11 (Visual C++ 2012)
Architecture x86
I'm sending a POST request from a client (tested with curl and custom nodejs script) and don't get the response properly back. The whole thing works fine with PHP 5.6.
Environment
The whole thing is reduced as much as possible:
everything running inside Vagrant VM Ubuntu 14.04 LTS
nginx 1.9.7...
and once we've got a consistent revenue stream (ideally not "one weekend every month or two") we'll probably bring a few people onboard (remote of course)
If I install XAMPP, then, what is the communication standard between httpd.exe(web server) and the php module? Is it CGI or fastCGI or WSGI communication standard? or Does php module sit within webserver(httpd.exe)
right now on my site i am storing all info in javascript cookie , now what happns is for every ( xhr ) call that cookie is a passed with call ,, so can i store that data in to file insted of cookie
@sharath - If you get a user on one of those websites who clicks on a few pages, it'll be more requests per minute than your checking if the site is alive
good day guys. I have this problem wherein the styles and scripts are not loading when I open the page. I have a folder named portal and it contains the index.php, header.php(styles), footer.php(scripts), and folder named employee. Inside the folder employee, I have basic-info.php which I include the header and footer files. I just wonder why if I load the basic-info.php the styles and scripts are not loading
Should I use absolute or relative URLs?
If by absolute URLs you mean URLs including scheme (e.g. http / https) and the hostname (e.g. yourdomain.com) don't ever do that (for local resources) because it will be terrible to maintain and debug.
Let's say you have used absolute URL everywhere in yo...
> This prefix should be used to name your schema attributes and classes. For example: if your prefix is "Microsoft", you should name schema elements like "microsoft-Employee-ShoeSize".
Well, at least someone at MS has a sense of humour, there have been times when I've expected that to be the next question they ask me
> We have detected you are using Google Chrome and might be unable to use the Java plugin from this browser. Starting with Version 42 (released April 2015), Chrome has disabled the standard way in which browsers support plugins.
Nothing, I'm just installing java against my will because I need to use something written in the piece of crap language, that's just the message oracle gave me when I went to download it
Hey Hi Have Some problem with SHA512 Hashing in php, http://pastebin.com/inirnKQX Above is link to my code and it gives output given below: 5aadb45520dcd8726b2822a7a78bb53d794f557199d5d4abdedd2c55a4bd6ca73607605c558de3db80c8e86c3196484566163ed1327e82e8b6757d1932113cb8
where as online hash calculators give output given below: 23d9d73303507595931df44fabe5a800b7bf2d55c5044e727c60cbf1e74fbac2c7f3f2423325063b527097c96bb5018bfaaf407df28cca3cf94e125349e97896
I'm using yii framework and I'm new in yii and can't understand the problem in this code, it is giving error in this code and I just attached the image of my code
and when I just try to echo '<pre>';print_r($role);echo '</pre>'; it just print code like this
can't understand why this is givi...
@user3833682 I think in your case $role contains a boolean value yes/no.
sockets.io help please once i make a connection to my server.php script through shell do I need to run this every day to make my chat work 24/7 or one time is enough?