Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Feb 2005
    Posts
    20
    Member #
    9129
    For something that's soooooo useful you'd think it would be easier to find information on this, but I searched google and came up empty.

    How can I call PHP functions from other files?

    For instance, if I have a file called library.php and a function called title(), how can I call title() in another file, say index.php

    I've tried in index.php the following:

    Code:
    include 'library.php';
    
    Title("stringtobepassed");
    And it says that the function title is undefined.

  2.  

  3. #2
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    Well, title and Title are two different functions

    The method you've mentioned above works perfectly.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:09 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com