-
Posts
1,041 -
Joined
-
Last visited
-
Days Won
17
Everything posted by gw1500se
-
want to send URL but get cut // from my string
gw1500se replied to nitiphone2021's topic in PHP Coding Help
Sounds like a syntax issue. Post your code. -
Share info between 2 Apps in the same server
gw1500se replied to DanteDantas's topic in PHP Coding Help
For that you would need to use a database (e.g. MySQL). -
Don't use $_REQUEST. It has been deprecated. Use $_POST or $_GET depending on your form, which you did not post. Be sure to turn on error reporting. You don't do any error checking of your database query either.
-
PHP Need nested user array values to dump into html table cell
gw1500se replied to Thomas_L's topic in PHP Coding Help
It is not clear what you want displayed in that cell. Post the code you tried and tell us what is not working or what error you get. -
Not sure I understand the question but it sounds like you need to use JavaScript/Ajax on the new page. That code would itself be static but the result would be dynamic.
-
get GitHub Secret (ENV) variable value in PHP
gw1500se replied to abhishekchess1's topic in PHP Coding Help
Passwords should be stored securely in a database (MySQL). -
Reading the manual is a good place to start.
-
After a debian upgrade my php doesn't seem to work :S
gw1500se replied to Fishcakes's topic in PHP Coding Help
Post the actual code and the actual error message. Be sure to use the code icon (<>) in the top menu and specify PHP. -
roman numerals to decimal conversion question
gw1500se replied to jodunno's topic in PHP Coding Help
Why the restriction of subtraction only up to V? How would you process MCM? -
You are probably not getting any reply because you did not post your code here. Few people will go to a 3rd party web site to see your code and ever fewer will download zipped code. Post you code here using the code icon (<>) on the to menu and specify PHP. You will be more likely to get a response.
-
Don't post images. Post your actual code using the code icon (<>) on the top menu then select PHP. Also enable error reporting and post any errors. error_reporting(E_ALL);
-
roman numerals to decimal conversion question
gw1500se replied to jodunno's topic in PHP Coding Help
Not sure if this will work for you but I found this regex for validating Roman numerals: ^M{0,3}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$ -
roman numerals to decimal conversion question
gw1500se replied to jodunno's topic in PHP Coding Help
I'm not sure but the only way I think that can be accomplished is with the Zend Frame work and 'zend_measure_number'. -
roman numerals to decimal conversion question
gw1500se replied to jodunno's topic in PHP Coding Help
Sorry. I misread your OP and got it backwards. How about this? -
roman numerals to decimal conversion question
gw1500se replied to jodunno's topic in PHP Coding Help
Search engines are your friend. https://www.hashbangcode.com/article/php-function-turn-integer-roman-numerals -
if(!isset($_SESSION['user']) || $_SESSION['user'] !== 'SiteOwner') { exit; }
-
<a href="\"index.php?id=".<?php echo $data['id']; ?>."\">"
-
Nope. A<B is true if A is less than B and A>B is true if A is greater than B.
-
It would be helpful if you post the HTML form. I suspect by fixing your form the looping can be made easier.
-
Comparing whether files are identical
gw1500se replied to NotionCommotion's topic in PHP Coding Help
It is possible to have an MD5 collision however it is remote. Something like 1:2^64/2. It is not possible to have the same SHA-1 sum too. If you get a matching MD5 hash then calculate the SHA-1 sum to see if they are the same as well. Then you would be safe rejecting the file if it is that critical. -
The first 'isset' in the if is unnecessary. That will always be set to something. Did you 'echo' the other parameters to be sure they contain what you expect? Do you have errors turned on? error_reporting(E_ALL);
-
The path is relative to your document root and cannot go outside. If your absolute path is outside of document root then you need to check permissions. That path must give read permission to whatever user is running httpd. Which is likely different than the user doing the development which may have r/w permissions.
-
Poor programing practice. The funtion should be: function clean_names($dirty_name) { $clean_name = strip_tags($dirty_name); $clean_name = str_replace(' ', '', $clean_name); $clean_name = ucfirst(strtolower($clean_name)); return $clean_name; }
-
How do yo know it is not going through that function, since it returns nothing?