Category Archives: PHP
How to reset a password for CPVLabs
If you have forgotten your password to CPVLabs admin, you can reset it if you have access to your database. Login to your phpMyAdmin select the database used for CPVLabs Click on browse beside the user table Edit the “admin” user account replace the the password field with “21232f297a57a5a743894a0e4a801fc3” (without the quotes) The password is …
warning: shell_exec() has been disabled for security reasons
If you get an error like this, it means that shell_exec is disabled in the php.ini file. To re-enable it, you need to do the followng SSH to the server edit the php.ini file (on cpanel it’s /usr/local/lib/php.ini) search for the line that says “disable_functions” remove shell_exec from this line Save the file, and …
Unexpected T_STRING in an Apple iWeb site.
If you have a customer using Apple IWEB, you might come across an error that looks something like this: Parse error: syntax error, unexpected T_STRING in /home/username/public_html/index.html on line 1 To correct this, you need to turn short_open_tags off in PHP. Here are 2 ways to do this: .htaccess php_flag short_open_tag off — OR …
PHP Info
Limit access to website based on referrer
We use suphp on this server and here was the solution. In the user’s public_html file we created a .htaccess with the following: SetEnv PHPRC /home/$user/public_html/php.ini Then a php.ini file with: auto_prepend_file = /home/$user/public_html/checkrefer.php checkrefer.php <?php session_start(); echo $_SESSION[‘allowme’]; //First we check to see if a valid session exists if ($_SESSION[‘allowme’]==1){ //keep going and allow …
curl disabel curl host verify
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
Hello World test script
CGI-PERL Hello World #!/usr/local/bin/perl print “Content-type: text/htmlnn”; print “Hello, world from Server Sitters!n”; ASP Hello World <HTML> <HEAD> <Title>Server Sitters Hello World! ASP Example</title> </HEAD> <BODY background=”” bgColor=#ffffff> <P>From all of the Server Sitter’s Staff we would like to say,</P> <h2> <% Response.Write (“Hello World!”) %> </h2> </BODY> </HTML> PHP Hello World <HTML> <HEAD> <Title>Server …
obfuscate PHP version
To hide your php version edit your php.ini flie: Change the following option expose_php = On to expose_php = Off or: expose_php = 1 to expose_php = 0 Then restart apache.
- English Support
- 24/7 x 365
- Branded Support
- Reduced Overhead
- Linux Experts
- Friendly Staff