/etc/rc.d/init.d/httpd restart
Thursday, September 30, 2010
Tuesday, September 28, 2010
How to include files in php from /usr/share/php/ (ubuntu - Hardy Heron)
How to install Pear in ubuntu
sudo apt-get install php-pear
Checking if PEAR works - http://pear.php.net/manual/en/installation.checking.php
save files to - /usr/share/php
access the file in your code using:
require_once 'the_file_stored_in_usr';
sudo apt-get install php-pear
Checking if PEAR works - http://pear.php.net/manual/en/installation.checking.php
save files to - /usr/share/php
access the file in your code using:
require_once 'the_file_stored_in_usr';
PHP SESSION variables
file1.php
session_register('variable1');
$variable1 = 'sample value';
file2.php
echo $_SESSION['variable1']; // displays: sample value
note:
Be sure that "register_globals = On " in php.ini
session_register('variable1');
$variable1 = 'sample value';
file2.php
session_start();
echo $variable1; // displays: sample valueecho $_SESSION['variable1']; // displays: sample value
note:
Be sure that "register_globals = On " in php.ini
Sunday, September 26, 2010
database bin files location in ubuntu 8.04
/var/lib/mysql/
It is important to note that when exporting/importing large db file or sql it is always best to access it via bin files.
It is important to note that when exporting/importing large db file or sql it is always best to access it via bin files.
Friday, September 24, 2010
How to Install Entrust SSL certificate in cPanel/WHM
1. Open the WebHost Manager and click Install an SSL Certificate in the SSL/TLS menu.
2. In the first box, paste in the "Server Certificate" provided by Entrust.
3. In the second box, paste in your private key which was generated when you created the CSR.
4. In the third box, paste in both the "Chain Certificate" and then the "Root Certificate".
5. At the top of the page click "Submit".
2. In the first box, paste in the "Server Certificate" provided by Entrust.
3. In the second box, paste in your private key which was generated when you created the CSR.
4. In the third box, paste in both the "Chain Certificate" and then the "Root Certificate".
5. At the top of the page click "Submit".
Sunday, September 19, 2010
Dump just the table structure to a file in MySQL
mysqldump -d -h localhost -u root -pmypassword databasename > dumpfile.sql
The only option that is different than creating an entire backup is the -d switch, which tells mysqldump not to output the data.
The only option that is different than creating an entire backup is the -d switch, which tells mysqldump not to output the data.
Monday, September 13, 2010
Subscribe to:
Comments (Atom)