@marabutt Not really.. I'm on a reseller account that doesn't let me modify accounts, it's really long to contact support and ask them to change the primary domain/username. Besides, the domain needs to be changed.
Is it good idea to switch from php developer to android development and make my carrier in that(in terms of money). Currently i am working on open source technologies like magneto, wordpress, drupal, joomla, opencart but not very strong in any one.
I have "Better Wordpress Security" plugin installed, then I changed the primary domain and username (temporary url = IP/~USERNAME), and now I'm locked out of the admin
lolwut ? The plugin must use something to store it's settings right ? I guessed it must be in the Database. Look if there is such a table for that security plugin and browse the values ...
@HamZa it's different alot. Going to /admin ( should work ) takes me to wp-login.php?62cvp4t6bycl3qa23s0ui&redirect_to=/~pocket/admin/, which is good, then, when I log in I get a 406 "Not acceptable"
"An appropriate representation of the requested resource /~pocket/wp-login.php could not be found on this server."#
Will some online tool that can run two different codes several times, then calculate average execution time, memory-usage and compare them will be helpful?
and I was being redirected to ~shapes/not_found, which was to do with the plugin, so I did a find and replace in .htaccess, replaces shapes with pocket
@MadaraUchiha Yes. I've done a lot of work on tidying up the sauce yesterday, it's starting to get a bit more sane. I was thinking (initially, at least) it would be easier to manage overrides on the client side, managing it on the server side would require a whole bunch of auth crap (we can consider global overrides at a later date)
@BillyMathews It's a bit confusing, you first said Since I changed the primary domain and now you say We don't have the new domain yet.. Something must has changed. I can't help you further with that much info
We changed the domain name but the new domain name isn't pointing to our nameservers yet. that's a bit irrelevant I guess. but we changed the account username, which is reflected in the site's url.. (IP/~user)
People thoughts: php.net/manual/en/function.hash.php#112799 Is it worth it? I think it kinda makes sense, but it will be terrible to maintain. If anything it should have a separate page I think?
Knock knock! > Who is it? Warning: Cannot modify header information - headers already sent by (output started at reply:1) in /some/file.php on line 2 PHP
@BillyMathews that's not called giving up. FYI I'm guessing for an hour now. With that much info, I can't help further. Plus it's your job to fix this otherwise you would have given me access to it
@PeeHaa Add a note on that page "This function should not be used for hashing passwords. See password_hash and crypt for more details" or something similar to that
Basically, here's what I am doing: 1. Create view model object (that will contain data needed for view (mainly for rendering form elements)). 2. In view render inputs using view model object. 3. After submission create view model object again, bind user-input and pass it to action as argument for further processing.
@MadaraUchiha if you accept any other answer (>10upvotes ) here than you will get gold (Populist) badge since your answer has 69upvotes stackoverflow.com/a/12860140/1723893
My answer has 70 upvotes, I've accepted a 20 answer, let's see if it works
@DaveRandom No, but you won't get the next one if you deserve it
(I earned it, the conditions aren't met anymore, the badge won't be removed, but if I get another one, I won't get it because I already have a shadow one)
in my implementations Router primes the Request instance and router only has a list of possible Route's, which in turn hold the URL pattern .. @Rafee , it kinda depends on how you implement it
I am having issue in calling "Db\RecordExists" in Filter form class.
I want to check email exist or not during registration. I am using Zend framework form class for Registration. I have define the form class and Class Filter and calling them in Controller.
Every things is working fine except ...
@PeeHaa that code snippet caught my interest D: . I think ít is true because $var and "10" or "20" are existent.
Since || is a logical operator and you are having it in ( ) it will ignore the Operator Precedence so it gets executed first and returns either false or true. In our case it "should" only return true because its either value a || b.
Now the if clause should look like: if($var == true)
@PeeHaa also if u use "identical" === instead of "equal" == it would check if both values are of the same type, too. So it would return false because $var would be of the type integer and the ( 10 || 20 ) of the type boolean.
@NullPoiиteя I did not mean to "tell" anyone. I just added that to my message because I accidently pressed enter without shift in the previous one. Also it was merely a example.
@HamZa Thanks HamZa.. I have created Administrator with using prefix, In that front end I have to show two different sites with same functionality and the template,DB only differed
for example, The url will be sample.com/action, But this functionality will be in example.com/action. In sample directory have only .htaccess which is used to get functionality from example.com
@tereško for example, The url will be sample.com/action, But this functionality will be in example.com/action. In sample directory have only .htaccess which is used to get functionality from example.com
@HamZa for example, The url will be sample.com/action, But this functionality will be in example.com/action. In sample directory have only .htaccess which is used to get functionality from example.com
@Baba since i do not know Go , i would have used PHP in that choice .. but I would never need to face that choice since I have "working knowledge" of several languages
package main
import (
"fmt"
"time"
)
func main() {
start := time.Now();
var (
i int64 = 0
total int64 = 0
max int64 = 1000000000
)
for i = 0; i < max; i++ {
total += i
}
fmt.Println("max: ", max)
fmt.Println("Total: ", total)
t := time.Since(start);
fmt.Println(t);
}
@NullPoiиteя ^^^
@NullPoiиteя you can change it to t.Nanoseconds() to get the time in nanosec