Jump to content
xisto Community

jebriggsy

Members
  • Content Count

    14
  • Joined

  • Last visited

Posts posted by jebriggsy


  1. The OM Mantra is a roadmap for sadhana, spiritual practices (written as either AUM or OM). It is not for the person who seeks only the shallow waters of spiritual life, but rather for those who strive to realize in direct experience the depth of the Absolute Reality. There are four main levels of consciousness outlined in the OM Mantra, along with three transition levels, which is a total of seven levels. Each of these is experienced on the inner journey of meditation and contemplation.

    Source: http://www.swamij.com/om.htm

  2. Or you could've just renamed the file.html to file.php and added the php script :lol: As long as the output HTML is good it won't affect anything whatsoever... The only useful thing I can thing of that comes out of this is hiding the fact that you're using PHP. But I don't see the point because if you know PHP that means you're more skilled than someone who just knows HTML...Now if you're doing that to get rid of file.php?this=that&that=this, I can see what you're getting at with SEO. But why not just use mod_rewrite instead?


  3. In PHP, there are multiple ways to get an IP address.$_SERVER['REMOTE_ADDR'] is the super global variable which holds the current viewer's IP address. A function: $ip = getenv('REMOTE_ADDR');You can even get their host: $host = gethostbyaddr($_SERVER['REMOTE_ADDR']);To get their IP from email:In Outlook Express: File -> Properties -> Details tabIn Thunderbird: View->Headers->AllI don't know any C or Java, so I can't help you there. And you can't use HTML to get an IP address, but you might be able to use JavaScript or VBscript...


  4. I suppose you could use an fopen("xml.xml" "r"); statement and then use some explodes to get the numbers...

    <?phpif(!$handle = fopen("file.xml", "w")){echo "Could not open the file.";exit;}if (!is_readable("file.xml")){echo "The file is not readable!";exit;}$contents = fread($handle, filesize($filename));$getarash = explode($contents, "<arash>");$getarash2 = explode($arash[1], "</arash");$arash = $getarash2[0];fclose($handle);?>


    But, it is easier to just update the xml file from the database through PHP automatically with a cron job or something...

    <?phpif(!$handle = fopen("somefile.xml", "w")){echo "Can't open the file";}if (!is_writable("somefile.xml")){echo "The file is not writable!";}$xml .= <<<EOF<?xml version="1.0"?><numbers> EOF;$conn = mysql_connect('localhost, 'dbuser', 'dbpass');mysql_select_db('dbname');$query = @mysql_query("SELECT number FROM `arash`");$arash = @mysql_fetch_assoc($query);$xml .= <<<EOF<arash>{$arash['number']}</arash>EOF;//Etc for kiarash$xml .= <<<EOF</numbers>EOF;if (fputs($handle, $xml) === FALSE)  {	echo "Cannot write to xml file";	exit; }fclose($handle);mysql_close($conn);?>


  5. Hello, I joined Xisto because they are better than my paid host, Bluehost. I must admit that I am not exactly new here, but since I have forgotten my old name and email, I have to start over...

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.