Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

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

BrainPill's Achievements


Member (2/7)



  1. Until now I worked mainly with wamp. I am looking for setting up a good server online, other than wamp. Most likely it will be Managed VPS. Having full control I would like to choose the right admin software. Plesk, Cpanel or Webmin. But the most important thing I would take into account is which admin software is best for managing htaccess/mod_rewrite ? Is there a GUI built in Plesk, Cpanel or Webmin? Or is there additional software in specific Linux distributions? I would like to receive some info or valuable links online to read if possible ?
  2. I have quite a challenge for php + mysql query I would like to solve. I want to add a row to the database table, but this entry should be done only every 10 minutes; I want mysql to handle this with date_add(now() interval. snippet of the code: $stmt = $conn->prepare("INSERT INTO test.test_tab (uid, email, col) VALUES (?, ?, ?, date_add(now(), interval 5 MINUTE) ) ; "); $stmt->bind_param("sss", $uid, $email_f , $col ); $stmt->execute(); the browser output gives a call to a member function bind_param error What is the best way to add a row every 5 minutes while using php ? Can someone help me out?
  3. Is it possible to see the PHP errors and notices from someone else's site? I saw a website online giving me loads of PHP errors, but I always understood it was only possible for the people running the server to see the PHP errors. Is there another way to show the PHP errors?
  4. I work localhost wamp windows 10 with the DIVI builder in Wordpress . Regardless of whether the colors are adjusted with the customized menu or the visual page builder module; the colors are not visible when logged out. Other layout changes are visible. (height / width) I tested all the web browser and cleared the cache. WAMP apache has rules for caching, but does a caching plugin within WP affect the colors?
  5. Hi all I have an uncommon problem I cant really solve . I have a script that uses require and calls for a new php script. If I comment the line and check what happens in the browser then I have different results . Chrome and Edge: nothing happens, the old require routine is executed; even after clearing browser cache in Chrome. In the Brave Browser is the commented require line not executed and is shown nothing in the browser. Does this mean that there is also a server cache and should I empty it? If so then how should it be made empty?
  6. okay, if you say so. As I have tried numerous thing I start to suspect it might be due to other settings in for instance virtual hosts or httpd.conf Are there more things that should be heeded at?
  7. Is it possible to still execute the $_GET php code and have a clean url ? I find it EXTREMELY hard to solve my problem written in the OP.
  8. Ok well I removed the code but this did not give any other result. I use $_GET to process a variable. When I test this in an html form I see the output I want. When I use $_GET in the same script but with a link it does not work. (btw you say that using RewriteEngine On and RewriteBase / in this way is not needed, but it worked in the form script for me) Is there a reason that apache processes this different and how can I change these settings?
  9. I have a htaccess file. The first lines (#preceding code) work well From #problem code I get problems. The idea is a php menu set up (simulation) with an < a href ""> link where all the query code is sent back to the page while the URL only shows the index6 (as a directory) This worked while using a form with $_GET But for the a href link it does not work properly what happens is that the $_GET input is not parsed by PHP anymore. The URL though stays 'clean' or 'tidy' or whatever; in any case without the query part. index6.php page: <?php //var_dump($_SERVER); var_dump($_SERVER['HTTP_HOST']); ?> <html> <body style=" "> <div style="margin-left: 600px; margin-top: 200px; width: 800px; height: 400px; border: 2px solid brown;"> <br><br> <p style="font-size: 20px;"> TEST </p><br><br> Index page. Execute at a virtual (test) host <br><br> <br><br> <a href="http://<?php echo $_SERVER['HTTP_HOST'] ?>/index6.php?mvalu=home">Home</a> <?php if(isset($_GET['mvalu'])) { var_dump($_GET['mvalu']); } ?> </div> </body> </html> the .htaccess file ################## # preceding code RewriteEngine On RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC] RewriteRule ^ /%1 [NC,L,R] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [R=301,L] ####################################### # problem code from here : RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/index6.php [NC] RewriteCond %{QUERY_STRING} \bmvalu=home\b [NC] RewriteRule ^index6\.php$ /index6/%1/? [NC,R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^index6/(\bmvalu=home\b)/?$ /index6.php/$1 [QSA,L] I hope someone here can help me with solving how to get a tidy url and processing the $_GET data correct.
  10. I have this direction placed in the vhosts file Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted Could it be any other script that still overrides this ? I tried the same ones in the httpd.conf file but I am not sure how to do it. Is the httpd directive more determining for instance ? What else could it be?
  11. I tried to put this in the htaccess file AllowOverride All RewriteEngine On RewriteRule ^([^\.]+)$ $1.php [NC,L] But this makes the request crash the apache error logs tells: Why is this error showing up?
  12. it is enabled. I can see it in php_info() in the list under apache2handler : loaded modules Other directives do work in the .htaccess file, but this one doesn't. Are there additional requirements?
  • Create New...