-
Posts
15,227 -
Joined
-
Last visited
-
Days Won
427
Everything posted by requinix
-
Using bitwise operations in the WHERE clause
requinix replied to NotionCommotion's topic in MySQL Help
You can't index on a function call. Having attempted this before (a very long time ago), bitwise isn't a good answer. It seems like the data is efficient and compact but that's not what you should be striving for with a database: what you need is a good representation of the data. Plus your PermissionEnum bits don't make sense. For example, they imply everything is public. Not that I'm exactly following along with what you're doing but everything public doesn't sound like what you want. What's probably easier than bits is a simple table of individual IDs and permissions. -
Using bitwise operations in the WHERE clause
requinix replied to NotionCommotion's topic in MySQL Help
What's the table schemas? What query(ies) are you initially thinking of running, and/or what results are you trying to get out of them? -
Changing text displayed at end of countdown in timer script
requinix replied to foxclone's topic in Javascript Help
The simplest answer would be to give the <p> an ID like the <span> does, then modify its contents... -
Changing text displayed at end of countdown in timer script
requinix replied to foxclone's topic in Javascript Help
That code has a line which changes the text (according to the amount of time left). It also has a if block that does something when the countdown ends. -
Telnet response does not output all data (using PHPTelnet Class)
requinix replied to jaybo's topic in PHP Coding Help
Any change if you lower the sleeping time(s)? -
Telnet response does not output all data (using PHPTelnet Class)
requinix replied to jaybo's topic in PHP Coding Help
How fast does the output come? Is it 500 almost instantly or do they come in over the course of a minute? Is the script stopping "normally" because it thinks there's output or because it has some sort of problem (like a timeout)? -
I can't figure out what i'm doing wrong for the life of me (PHP/SMTP)
requinix replied to emcuriah's topic in PHP Coding Help
If there's an error then it would help to know what that error says... -
Threads merged. We can try to help, but would need quite a bit more information. Like what forum software it's using. And assuming that comments were ever working, what's changed recently.
-
* means any element. div.font only applies to DIVs with a "font" class while .font applies to any type of element with a "font" class. # is for IDs. These are fairly basic CSS questions...
-
phpunit/phpunuit already provides phpunit/php-timer. Don't install it again. composer remove it, delete your vendor directory, and composer install.
-
I gave you the wrong name. The Composer package is phpunit/php-timer, therefore the files would be in vendor/phpunit/php-timer. Do you have them?
-
Try regenerating your autoload files, just in case that didn't happen properly. That class looks like it comes from sebastianbergmann/php-timer. Make sure you have that directory in your vendor/.
-
Did you install it with Composer?
-
You're not listening to me. I'm not asking you to describe what happens when you run either of these scripts. I'm asking you to actually run the URLs I'm telling you about and see what happens. Because the answer to your original question of "are there security problems here" is a very definite "yes", and I had hoped that the easiest way to tell you about it would be for you to watch it happen yourself.
-
Not what I'm saying. What if you go to https://www.mysite.net/ota/delete_ESP_data.php?file=delete_ESP_data.php
-
What's the name of your PHP file? Let's pretend it's get.php. What do you see if you go to /get.php?file=get.php
-
Variables defined outside of functions are not available inside of functions. If you didn't see PHP give you a warning about that then you probably do not have your environment set up properly for PHP development. Find your php.ini and set display_errors = on error_reporting = -1 Then restart PHP and/or your web server and try your script again.
-
Didn't notice this thread earlier. If you didn't see the answer elsewhere, there were problems with Elasticsearch staying alive: kernel kept killing it due to memory problems. Then a reindex or two. Everything seems fine and stable now.
- 1 reply
-
- 1
-
Undefined variable error but that variable has been declared
requinix replied to webdeveloper123's topic in PHP Coding Help
Something about your assumption is wrong because both messages are definitely indicating that $table is not defined. You can test it really easily: define $table as an empty array before the loop and see what happens. -
Trying to pass ${$myvar} in one function to another. Help
requinix replied to 3dron's topic in PHP Coding Help
I get you're trying to figure this out, but using "global" variables and "variables variables" (the name for this double-$ stuff) is not a good idea. They are bad features of PHP and you should do everything you can to avoid using them. -
I hate the ligatures. Especially the ≤ and triple ═══. I'd have to relearn how to scan code.
-
You need the value of #txtSearch at the time the button is clicked, not when the page loads. And if you're going to be putting arbitrary values into the URL then you need to use a function like encodeURIComponent for it.