I didn't really expect you'd get a good answer there (though there's of course proper support if you're using a paid product) - I'm just saying that it's not very likely someone can find what the problem is from that little information (and what else is relevant is probably not an easy question either)
I won't pretend I've never used pirated software (quite the contrary), but the mindset that involves you must pirate software is really rather tiresome (and a good one?)
I have a unique problem, and wasn't sure where to go with it. I am attempting to decrypt 3DES encrypted data, given the key and IV, however I am not having much luck. I figured PHP people might have experience with this encryption method.
Oh, for sure. I just hate dual-booting, and VM'ing off my machine has been reasonable for awhile now. I just grabbed an SSD, so I'm taking it for a spin.
Windows for my .NET work; nix for ... everything else?
IIS is pooey, sometimes. It plays well with ASP.NET though (obviously) and unfortunately, I obtain much of my eating and drinking money from a company that runs .NET.
similar. I use windows for fun/coding/etc ... and Linux to serve it all up. I gave up on ASP after getting through the initial ropes of PHP. I find that where ASP is limited -- PHP has like 10 different ways it can be done.
All that is missing from PHP .... is a nice GUI for development that hooks jQuery/Bootstrap/HTML5 objects into events (like the developer suites for .NET are)
As slick as my code is, I have very little experience in developing IDE's. Best I have done is multi-tabbed syntax code editor with custom language support. Really would like to see something written for website development that hooks PHP like .NET does.
Yes, but it was written in the era of M$ where copying text from a word doc produced tonnes of gibberish that was not necessary. I believe this could be accomplished without the junk code.
However the demand is there ... aka, Web based form builders ..... just need something so you can place your code hooks. Think of it like a VB6 form .... but more a combination between a modern drag&drop web based designer. Now combine them. The product ends up being something where you can define and create backend code, while hooking what is needed like selected menu item, logged in user, and so on.
It is, to a point, web forms adds a tonne of stuff that isn't necessary, including DLL's and other things... aka... it doesn't just execute certain code -- it COMPILES it, and then it's required to be registered and in certain paths and such for it to function
baiscally, microsoft's way of trying to obfuscate and make it more of a proprietary code for sale type scenario --- rather than open source.
This is one of the areas where PHP truly shines --- and it can be run from console. Compiled code isn't the problem if it can be reversed. The problem is with dependancies, versioning, etc.
Maybe I am doing something wrong, but in my experience, I couldn't simply copy a folder from my dev box to a clean install of windows+iis, and have it just work
unless the project is badly coded requiring something to be custom compiled into the PHP binaries or linked on compile of PHP itself.... then no. but generally speaking, everything I need is there.
I have a mysql table (innoDb) having 71 Lakhs+ rows in it, my problem is when I open my DB it displays total number of rows count in some randomly manner, for ex. ~6,802,003 , ~6,906,828 , ~6,953,417, ~7,034,948 ... and all. How can i get exact number of rows count of that table
for the record --- i don't generally downvote as I feel that system is not balanced. (aka, person downvoting loses only 1 rep, while the person who posted loses 2 rep )
not ONE answer combines all the techniques required for true sanitization of variables to prevent SQL Injection ---- no wonder so many sites get hacked
filter_input + conditioned variables + validation + prepared statements == sanitization !! .... the one example up-voted almost 2500 times, only uses PDO .... it does not account for the fact that the variable may contain executable code.
@Achrome - love the quote on bash.org ... that does seem to be the common mentality. Problem with regex, is php will execute code in preg_match statements.
@HamZa That's ugly as hell. :) Stuff like that should be implemented at language implementation level. In another words, it should be the language feature, not the hack on the userland. :)
@mAsT3RpEE Well, I know that that modifier exists, but is there an answer somewhere ? That's the initial "commit", so it's far from complete. I need to add other modifiers too
Hi guys, I have been struggling with an issue for the past few days, and I thought to myself, hey, two heads think better than one, so I decided to try my luck and ask around
@mAsT3RpEE You don't need to answer it completely, just pick up some that you know. For example, does the e modifier exist in any other language than php ? Here you go :)
I have a web based app (backend in Zend) that generates multiple pdf files which have to be printed/stored on the client's device. I have created a simple java program making simple http requests to do that and all is working just dandy. However, the web application requires login and the java application also requires login in order to know which files are accessible. Is there a way besides external protocols to link them, so when the the user logs in the web app, the java app is auth too?
@mAsT3RpEE oh also, you don't need to write an answer unless it's not there on stackoverflow. I suspect that there is already some answers on lookbehind, modifiers etc... I just didn't search well enough
I know that is a better solution, but I am dealing with invoices, orders, etc. and there might be multiple things to be printed, furthermore there are some settings that allow the user to say, hey I want those file to be saved in this directory every time without me having to download it.
@HamZa I really don't wanna search SE for questions. There's so much spam / duplicates / wrong or incomplete answers. Its annoying. I think that's about the whole problem. Wouldn't it simply be useful to create a new questions / answers then focus on linking those to existing ones until they become popular enough to stand out of the crowd?
If you have a bunch of settings that could be important for the IRS or a similar body, but is often clicked away (next, next, next, next style), hide them by default, and allow "advanced" users to show them.
I really doubt whether the people enthousiastically shouting "HTTP Authentication" ever tried making a browser-based application (instead of a machine-to-machine web service) with REST. (no offense intended - I just don't think they ever faced the complications)
Problems I found with using HTTP ...
@MGE i don't know the details... but it might be that there is some opcode caching going on in the background and it hasn't picked up your changes yet. let it run for a while. but this is just a guess
if that litespeed thing has one^^ really just a guess
anyways... your snippet should cost you practically zero. it must be something in your env. maybe the access to the env var might come at a cost, or the opcache is not yet rebuilt and it has to compile the bytecode every time... but from this side it is really hard to tell
A lot of people practice "one assertion per test case", but some of my tests need to pass a few assertions for me to know that it worked (integration tests)... but best practice dictates the former. Gahhhh
@Leri Well, they don't need to pass a few assertions, it's just an extra added assertion to know it 100% worked. Like (1) success notification displayed. Great, that's at least a signal that some AJAX worked... then (2) on a list page that shows everything that succeeded, the most recent thing appears there so I know it worked. Perhaps I'll just miss out the notification then
But I don't want an entirely new test duplicated with two lines less code to check whether or not the notification displayed
@Jimbo When it comes to integration testing I tend to create semi-automated application that automatically emulates basic stuff and immediately reports everything. Edge cases are tested manually. Basically, no assertion in integration tests for me. :)
@AbdouTahiri If you production system is 64-bit *nix, then you don't have a problem. If your production system isn't 64-bit *nix, you have more problems than just this one ;-)