Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About BrainPill

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I want a string input of minutes into minutes with leading zeros I use date() for this <php $time_in_min ='7'; $minutes = date("i" ,$time_in_min) ; var_dump($minutes); ?> but all I get is 00 while i according to the date() param explanation should give a leading zero. Like :07 How should this be solved?
  2. what are case insensitive CONSTANTS ? I understand what case insensitive is, but not what or when a constant is used. my questions are: can programmers cast their own constants? if so: how? Does PHP have built-in constants ? where can I find a survey of php built in constants online?
  3. I see, but the example does not lead to the desired result. its more like this: script 1: <?php include 'script2.php'; // execute code ?> script 2: <?php fictive_phpfunction_to_track_back_include(); // of course this is pseudo code, just to give an example ---------------- /* the example above will output referred from: script1.php */ // script code ?>
  4. I dont know much about AJAX and dont believe your solution is what I try to ask. Like var_dump verbose shows the location and the line number of a variable. Of course that is just an example of how PHP code can work. What I want to say is that it is certainly very useful if there was a specific PHP command that could give a list of the scripts that links towards it with either include or require. But I can't write PHP code myself. It could be people made it and that it might be scheduled for updates of PHP in the future.
  5. sorry I think its too much to place all my code here. I hope I can make a test simulation maybe in the future.
  6. Is there a function or command in php to output the backtrack of include en require. Like when you include a script in a file; the included script should be able to produce the track dump on the screen, so the programmer knows where from the include is coming. Does that exist and what is the name of that command? Or is there anyone that made an own function performing the action above and how?
  7. Not sure if the problem is a php problem. Most of the times my cookie settings work well but it seems to happen arbitrary that a cookie is read out by php and not read out. If I check 2 different settings with the link click procedure (explained in my last posting) and I do this 2 times then the first one works and instantly repeating the procedure skips the condition , the $_COOKIE dump does not show all cookies (does it the first time) .
  8. The situation is that the user 1) fills in a form and the cookie is set 2) an email is sent to the user 3) user clicks to an activation page. what do you mean with reload, is there a possibility to reload with PHP or do you mean it can be done with headers?
  9. I am trying to set a cookie that expires in 20 minutes. The cookie is set i can see it in google chrome. but when I try to read the values with var_dump($_COOKIE) the specific cookie is not shown. Only if I shut down the browser first the cookie is readable for the php script. How can I make this readable instantly? Should I change header settings and in what way?
  10. I found the location of the browser cache here C:\Users\myname\AppData\Local\Google\Chrome\User Data\Default\Cache but I cant read the content of the files . The file list goes back to end september but some remembered cache data are from over a decade ago. What kind of files are this and how 'safe' is it?
  11. My question is about autocompletion or autofill. (is there a difference between these 2 definitions?) I can't get where input names or input urls or input emails are 'stored'. Its related to forms I made in html/css but the same thing occurs when going to a forum being on multiple years ago. The username is still there often with the credentials. The main question is: Where is this stored ?
  12. But I want this to be selected from the same table found in multiple databases. Anyone got a clue how to do this?
  13. solved it by using ORDER BY person_id DESC LIMIT 6
  14. I have a query it goes like this: SELECT `person_id` , MAX(exam_score) FROM `results` GROUP BY `exam_score` exam_score is column and some values are double when using query above I get 1 result for each. So if the exam_score is 10, 8, 9 , 10, 8, 5, 3 10 , 6 it does: 10, 9, 8 , 6, 5, 3 while I would want: 10,10,10, 9, 8, 8
  • Create New...