+ Reply to Thread
Results 1 to 2 of 2

Thread: Use "USE" in php

  1. #1
    mindos4 is offline x10Hosting Member mindos4 is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    22

    Use "USE" in php

    Hello, is there a way that I can use the command use in php like I can in perl?
    Example:
    PHP Code:
    <?php
         
    use file;
         echo 
    $file::$foo;
    ?>
    Please reply, and if there isn't a way, please tell me so.
    Last edited by mindos4; 03-31-2010 at 09:35 PM.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Use "USE" in php

    In PHP, you use include, include_once, require or require_once. However, PHP doesn't have packages as Perl does. Read the PHP manual pages or search the web for more.
    Last edited by misson; 04-01-2010 at 05:43 AM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 12-17-2009, 10:27 AM
  2. Unsuspension Status "Unknown" account "jchevin"
    By 200206695 in forum Free Hosting
    Replies: 8
    Last Post: 10-03-2009, 06:37 PM
  3. Replies: 7
    Last Post: 10-01-2009, 05:16 PM
  4. Replies: 2
    Last Post: 11-30-2008, 04:49 PM
  5. Replies: 3
    Last Post: 11-28-2007, 05:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers