Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 5th, 2006, 05:37 AM
Registered User
Join Date: Oct 2006
Location: Almora, uttaranchal, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to skip from one page to other

Hi dear can anbody tell me how i can jump from one page to other after sometime.
Foe ex. if we hev two pages and the first page cotains link for second page.But what i want is that if anybody doesn't clicks on this link then after sometime it will autometically open the second page.

Reply With Quote
  #2 (permalink)  
Old December 8th, 2006, 04:29 AM
Friend of Wrox
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 481
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran

Write this code in your head section
<meta http-equiv="refresh" content="2;URL=page.php">

(Anything is Possible)
Reply With Quote
  #3 (permalink)  
Old December 8th, 2006, 05:20 AM
Registered User
Join Date: Oct 2006
Location: Almora, uttaranchal, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Thank a lot dear,i got the same code in google search & solved my problem.

Now i hev one moer prob pls help me if u can
I m elaborating my prob.

  we hev following LINUX version:-
          "Red Hat Enterprise Linux AS release 3 (Taroon Update 2)
           Kernel 2.4.21-15.ELsmp on an i686"

I download mysql-5.0.27.tar.gz for it and i m performing following steps:-
(I m also sending u this page which i m following as an att.)
(pls see this page up tp last,as last of this contains d problem i m facing)

MySQL Configuration and Installation - Installing MySQL on UNIX from a Binary Tarball Distribution
(Page 3 of 7 )

In case you’re using a Linux distribution that doesn’t support RPM, you can also install MySQL using a binary tarball from the MySQL web site.

Installing from a binary distribution essentially means that you need to perform the installation steps manually rather than letting RPM automatically take care of it for you. Here’s how you go about doing it:

1. Ensure that you’re logged in as root:

    [user@host]# su - root

2. Extract the content of the tarball to an appropriate directory
    on your system—I’ll assume this location is /usr/local/.
    Remember to replace the file name in italics with the file name
    of your tarball.

   [root@host]# cd /usr/local
   [root@host]# tar -xzvf

  The MySQL files should get extracted into a directory named
  according to the format mysql-version-os-architecture—for
  example, mysql-standard-4.0.9-gamma-pc-linux-i686.

3. Now you’ll notice that the directory created in the previous
    step has a somewhat long and cumbersome directory name—
    something like mysql-standard-4.0.9-gamma-pc-linux-i686.
    For ease of use, create a soft link to this directory named
    mysql in the same location.

  [root@host]# ln -s mysql-standard-4.0.9-gamma-pc-linux-i686 mysql
4. Change into this directory, and take a look at how the files are
    arranged. You should see something like Figure 3-3. (Take a
    look at the sidebar entitled “Up a Tree” for more information
    on what each directory contains.)

Figure 3-3. The directory structure obtained on unpackaging of a MySQL binary tarball on Linux

Up a Tree
If you have the time (and the inclination), you might find it instructive to explore
the MySQL directory structure to help you better understand where the important files are located.

For a binary distribution, the directory structure for a typical MySQL installation looks like this:

|-- bin [client and server binaries]
|-- data [databases and error log]
|-- include [header files]
|-- lib [compiled libraries]
|-- man [manual pages]
|-- mysql-test [test suite]
|-- share [error messages in different
|-- scripts [startup, shutdown and
                  initialization scripts]
|-- sql-bench [queries and data files for
                  benchmark tests]
|-- support-files[sample configuration files]
|-- tests [test cases]

For a source distribution, the directory structure for a typical MySQL installation looks like this:

|-- bin [client binaries]
|-- libexec [server binaries]
|-- var [databases and error log]
|-- lib [compiled libraries]
|-- include [header files]
|-- info [info pages]
|-- man [manual pages]
|-- mysql-test [test suite]
|-- share [error messages in
                   different languages]
|-- sql-bench [queries and data files
                   for benchmark tests]

Take a look at the documentation that ships with the MySQL distribution for a more detailed discussion of this directory structure.

5. The MySQL database server can run as either the system root
    user or any other user on the system. From the security point
    of view, it’s considered a bad idea to run the MySQL database
    server as root ; hence, it becomes necessary for you to create
    a special mysql user and group for this purpose.

    You can accomplish this using the groupadd and useradd

   [root@host]# groupadd mysql
   [root@host]# useradd –g mysql mysql

6. Run the initialization script, mysql_install_db, that ships with
     the program:

      [root@host] # /usr/local/mysql/scripts/mysql_install_db

     Figure 3-4 demonstrates what you should see when you do

    As you can see from the output in the figure, this initialization
    script prepares and installs the various MySQL base tables and
    also sets up default access permissions for MySQL.

7. Alter the ownership of the MySQL binaries so that they are
    owned by root:

   [root@host]# chown -R root /usr/local/mysql
8. Now ensure that the newly-minted mysql user has read/write
    access to the MySQL data directories:

  [root@host]# chown -R mysql /usr/local/mysql/data
  [root@host]# chgrp -R mysql /usr/local/mysql

9. Start the MySQL server by manually running the mysqld

 [root@host]# /usr/local/mysql/bin/mysqld_safe
  –user=mysql &

   MySQL should start up normally, reading the base tables
   created in /usr/local/mysql/data.

My Problem is :--
When i m performing 5/6 i m getting command not found error.
Like this
[root@gbpihed mysql]# groupadd mysql
bash: groupadd: command not found
[root@gbpihed mysql]# useradd -g mysql mysql
bash: useradd: command not found
& in 6 step i m getting:--
[root@gbpihed /]# /usr/local/mysql/scripts/mysql_install_db
bash: /usr/local/mysql/scripts/mysql_install_db: No such file or directory

Upls help me what can b d prob.
Waiting for soon reply.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to skip errors absu ADO.NET 1 October 6th, 2008 09:56 AM
skip first field gilgalbiblewheel Classic ASP Databases 1 July 7th, 2007 05:10 PM
Why would this skip record #1? dep XSLT 8 November 1st, 2006 02:57 PM
Skip On Refresh Prabhakar_dt Classic ASP Basics 9 September 2nd, 2004 11:44 PM

All times are GMT -4. The time now is 05:56 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.