Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


wdvltalk Roundup May 2002 - Page 21

June 4, 2002

A load of sites now supply a custom icon which is displayed in the IE favourites menu. Any ideas on how to do it?

Suppose I have a variable $sv_date that contains "3/6/2002". Using <?php echo ?>, how can I display this date as June, 03, 2002?

  • With European-style dates, you can't use strtotime() but you can make your own function to parse your dates and use the date() function to reformat.
    function datetotime($mydate)
    {
        $tmp = split("/",$mydate);
        $day = $tmp[0];
        $mo = $tmp[1];
        $yr = $tmp[2];
        return mktime(0,0,0,$mo,$day,$yr);
    }
    
    function convertDate($mydate)
    {
        $mytime = datetotime($mydate);
        return date("F d, Y",$mytime);
    }
    
  • See: http://www.php.net/manual/en/ref.datetime.php
  • Grab your favourite irc client and hop on to irc.openprojects.net on port 6667. Then join #vanpug. Also they have a forum for the chat challenged at: http://vancouver.php.net/forum that is starting to pick up speed too.

Does anyone know where I could find a script which will place a div at the bottom of the browser window, even when scrolled or re-sized?

How do I upload the database that I created with MySQL using the CREATE DATABASE command at the MySQL prompt?

  • There are two ways to admin MySQL. 1. If you have telnet/SSH access to your server, you can upload the file you want to import, start the MySQL command prompt, and enter a query along the lines of
    mysql> LOAD DATA INFILE "myFile.txt" INTO TABLE myDatabase.myTable
    
    (I might be wrong on the syntax, check the MySQL docs for confirmation, there's a *lot* of options for LOAD DATA :-)

    2. Alternatively, you only have FTP access. In this case, you'll need web-based admin screens, phpMyAdmin, (http://sourceforge.net/projects/phpmyadmin/) Download it, play around with config.inc.php, and FTP it to your server. You now have web-based MySQL admin which thoroughly rocks. There is a textarea into which you can paste a SQL statement, and there are facilities for importing/exporting to/from a text file, CSV, MS Excel, etc etc.

    One note of warning: *password-protect your phpMyAdmin directory*.
  • go here: http://anse.de/mysqlfront/ and get mySQL-Front. :) It's fantastic, lets you connect to local and remote mySQL servers (Proxy/Firewall/Permissions permitting, of course) and do wonderful things.

Does anyone have a CMYK to RGB conversion chart, etc.? I have done a search, but haven't come up with any type of Conversion Chart.

What's the PHP equivalent of <% response.redirect "URL" %> in ASP?

  •  
    echo" <script> window.location=\"http://sitename/test.php\"
        </script>";
    
  • I use this:
    $strRedirectURL = "http://www.site.com/page.html
    header("Location: $strRedirectURL");
    
  • One more method is header("Location: url"). But make sure you didn't use any echo() statement or print statement(). If so u will be getting error say header already sent.
  • header ("Location: http://mysite.com/test.php");
    

    wdvltalk Roundup May 2002 - Page 20
    wdvltalk Roundup
    wdvltalk Roundup May 2002 - Page 22


  • Up to => Home / WDVL / Forum / Roundup




    Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

    Jupitermedia Corporate Info


    Legal Notices, Licensing, & Permissions, Privacy Policy.

    Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers