Display the crtime


I have a script that organized data entries by the date submitted through the crtime function. How do I display the crtime. What would be the php code to display the date that the item was created ?

crtime is not a built in php function.

try just echo / vardump crtime and show what the value is.

that sounds like it could be a custom function with the script and not a regular PHP function. you should dig through the code and find other examples of how they used crtime.

I noticed that it uses the .time(). to store the date added and when stored in the database it looks like this: 1164408499
how would i make that a date like: 11/11/2006 ? or whatever date that may be.

if u use a timestamp is stored in $row[‘crtime’], then it would be:

Code:

$dateadded = date("m/d/Y",$row['crtime']);

DNS records and service DNS zones


i want to manage the DNS records and service DNS zones. plz. help

DNS Manager in the Admin panel is used to create and manage:

1. service DNS zones
2. instant alias templates
3. DNS records

how cam we add a DNS zone ?

Before adding a DNS zone, You must have at least one DNS zone in your system and make sure that u have added the DNS servers with Service IPs.

To add a DNS zone:

1. Select DNS Manager in the E.Manager menu:
2. Click the Add DNS Zone link
3. Enter zone name and zone administrator e-mail and choose whether to allow third level domain hosting in this zone
4. After you submit the form, the new zone appears in the DNS Manager table
5. Click the EDIT icon to go to the DNS zone management page. Here you can add instant alias templates, custom DNS records to your DNS zone

DNS servers refreshing


hi,
i want to refresh DNS servers but in this period my site will be down. is there is any way to up my site in this refreshing period

Instant Alias Templates can help u.

Instant Alias Templates are used to generate Instant Aliases, temporary addresses providing immediate access to users’ domains from the Internet. They are usually helpful when the DNS servers worldwide are being refreshed and the site is temporarily unavailable at the regular domain name.

how can we Add Instant Alias Templates ?

for Adding Instant Alias Templates

  1. Select DNS Manager in the E.Manager menu.
  2. Click the EDIT icon to go to the DNS zone management page. in this page
  3. To add an instant alias template, click the Add instant alias link. This will open the form to fill out

Prefix
Shared IP tag

  1. Click Submit. You will be taken back to the list of instant aliases with the new instant alias template added to the list

can we Edit Instant Alias Templates and how

yes, u can edit it.

Once an Instant Alias is created, the system adds all necessary A DNS records to this DNS zone.To view these DNS records, cilck the Edit button near the necessary Instant Aliases

The upper part of the table lists the existing DNS A records in the selected DNS zone. To delete DNS records, click the Trash icon.

The lower part of the table appears only when the DNS zone does not contain A records for some logical servers. It lists these logical servers with their IP’s.

To add a logical server to the DNS zone, click the Add button. You can add all these servers to the DNS zone by clicking the Add records to all listed logical servers link at the bottom of the table.

To delete Instant Alias Template, click the Trash icon next to the corresponding alias.

Resource id #3 error


I’m trying to write a simple login script but I’m getting the resource id #3 error.
code is

Code:

<?php
$host="localhost";
$user="root";
$password="";
$db="admin";
$tableadmin="admin1";

$adminuser= $_POST["adminuser"];
$adminpass= $_POST["adminpass"];

$link = mysql_connect($host,$user,$password)
or die ("couldn't connect to server");
$db = mysql_select_db($db,$link)
or die ("Couldn't select database");

 $result = "SELECT * FROM admin1 WHERE adminuser='$adminuser'  AND adminpass='$adminpass'";   
    $query = mysql_query($result)
    or die ("Couldn't execute query."); 
    echo "<br><br>$query<br><br>";
    //heres the problem
if (mysql_num_rows($result) > 0)   
{
$_SESSION["authenticatedUser"]= $adminuser;
header("Location: loggedon.php");
}
else
{
$_SESSION["message"]="could not connect to database as  $adminuser";
header("Location: loginform.php");
}
?>

Hope someone can help

why wouldnt the SQL statement be called $query and
 the mysql_query be stored as the result?

try this
Code:
$query = "SELECT COUNT(*) as cnt FROM admin1 WHERE adminuser='$adminuser'  AND adminpass='$adminpass'";   

$result = mysql_query($query) or die ("Couldn't execute query."); 

$row = mysql_fetch_array($result);

if ($row['cnt'] > 0)   
{
$_SESSION["authenticatedUser"]= $adminuser;
header("Location: loggedon.php");
}

thanks for your help but Still not working

putt @ before mysql_query like this

Code:
$result = @mysql_query($query) or die ("Couldn't execute query.");

still have a problem
I think u Check your HTML for blank lines

Adding Credit Card Brands


hi,
i want to add some new Credit Card Brands, which are not provided with H-Sphere.advance thanks for any help

To add support for a credit card brand (vendor) that is not provided with H-Sphere

1. Find a credit card processing center that automatically processes payments with this credit card brand.

2. Go to your admin control panel and select CC Brands in the Settings menu
3. On the page that opens, enter the full name and the short name of the custom credit card brand
4. Now you can associate your credit card with this merchant gateway

Plan Creation help


hi,
i have a Reseller web hosting account from cpwebhosting.net with H-Sphere control panel . i want to create some plans, how can i do it.

In H-Sphere, plans are created with Plan Creation Wizards. To start a plan creation wizard:

  1. Select Plan Creation Wizards in the Info menu:
  2. On the page that appears, choose the type of the plan.
  3. Go through the wizard following the instructions below.
  4. Newly created plans are disabled by default. Toggling the ON/OFF button in the Signup column next to the hosting plan, you allow or prohibit signups under this plan.

can we edit the plans?

yes, with the use of Plan Edit Wizards u can edit the plan .

To start a plan edit wizard:

  1. Select Plans in the Info menu.
  2. In the list of plans that appears, click the name of the plan you would like to edit.
  3. Go through the wizard following the instructions

thanks getpfunky, can we create Admin Plans with the use of Plan Creation Wizards

yes, Plan Creation Wizards also used for Creating Admin Plans

To create an admin plan:

  1. Go to Plan Creation Wizards in the INFO menu.
  2. Select Administrator plan wizard. Allow admins to do the following:
    Plan name: enter admin plan name.
    Signup Admin: sign up new users.
    Compatible Plan Groups: arrange compatible plans in groups.

  3. Click Next to complete plan creation.

  4. Once the plan is created, turn this plan ON in the Signup Access section on the plans page in order to allow signups

Use this plan to create administrative plans for all purposes.

Admin Plans are edited with the use of Plan Edit Wizard

To edit admin plan:

  1. Go to the Plans page and select necessary plan.
  2. On the Plan Edit Wizard, make necessary changes by checking/uncheking resources.
  3. Click Next to confirm changes.

hsphere.properties


The H-Sphere Configuration File is hsphere.properties

The H-Sphere configuration file can be located at ~cpanel/shiva/psoft_config/hsphere.properties

H-sphere is called by CP URL configuration
CP_HOST = cp.domain.com — host name
CP_PORT = 8443 — port
CP_PROTOCOL=https:// — protocol
CP_URI = /psoft/servlet/psoft.hsphere.CP

It should be noted that:
– This is not the only place where those settings have to be altered.
– URI cannot be changed here at the moment.
– Make sure that DNS is properly configured if you want to change domain.
– Make sure to alter apache if you want to change domain and port.

2) Database settings

3) Log file:
log4j.appender.A1.File=/var/log/hsphere/hsphere.log – location of the log file.

Animated gifs with php


Hello,

I have a form where people can upload images. The problem is that if an animated gif is uploaded via the form and displayed on a page later on, the gif is not animated anymore.
Is there a special procedure to handle animated gifs with php ?

Thanks in advance.

From which u are uploading via http or ftp?

download the phpThumb script, run it. If it works, check out the coding and see what it does that you are not doing.

uploading via http

there are many pre-made script, which can fulfill your requirement.

Control Panel Apache Server Configuration


CP Apache home directory is

/hsphere/local/home/cpanel/apache.

All CP Apache server configurations are placed into the
etc/jserv
subdirectory of the Apache home directory: /hsphere/local/home/cpanel/apache/etc/jserv.

This directory also has its symlink:
/hsphere/local/home/cpanel/apache/conf.