Results 1 to 4 of 4

Thread: Problem with Include

  1. #1
    limj1005 is offline Senior Member
    Join Date
    Mar 2010
    Posts
    20

    Default Problem with Include

    Hi, i have created 2 simple php code to test out the require_once but everytime i load the page i got the following error

    Warning: require_once(_Testing/include.php) [function.require-once]: failed to open stream: No such file or directory in C:\Domains\masoncom1\mason.com.my\wwwroot\mason_cr m_dev\_Testing\mason_new.php on line 3

    Fatal error: require_once() [function.require]: Failed opening required '_Testing/include.php' (include_path='.;C:\php\pear') in C:\Domains\masoncom1\mason.com.my\wwwroot\mason_cr m_dev\_Testing\mason_new.php on line 3

    any idea how?

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Problem with Include

    Let us know the script containing the require_once command, and also the full path of the file you want to pass as argument of require_once.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: Problem with Include

    Can you show URL for mason_new.php?
    Letrium ltd. - Only high quality service
    http://letrium.com

  4. #4
    limj1005 is offline Senior Member
    Join Date
    Mar 2010
    Posts
    20

    Default Re: Problem with Include

    k i'll check everything first and let u all know

    but i have one quick question in mind. the c/php/pear thingy is it becuz of the hosting side problem ?

    ok. i kinda change the files so the 1st file is ABC.php

    ABC.php
    ================================================== =====
    <html>
    <head></head>
    <body>

    <?php

    $name = 'John Locke';
    $objective = 'ask everyone back to the island';


    ?>

    </body>
    </html>

    DEF.php
    ================================
    <html>
    <head></head>
    <body>

    <?php
    require_once('_PassingParameters/ABC.php');

    // print output
    echo "Hi. I am $name. I am here to $objective";
    ?>

    </body>
    </html>


    the full path for ABC.php is http://www.mason.com.my/mason_crm_de...meters/ABD.php

    is this all the information u all need? i m kinda new into this so let me know if i gave the wrong thing. thx
    Last edited by limj1005; 2010-03-10 at 01:07 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 2009-05-05, 07:21 AM
  2. Replies: 1
    Last Post: 2009-05-04, 05:41 PM
  3. Bug? rebuild_all doesn't include Ext/include
    By SugarDev.net in forum Developer Help
    Replies: 2
    Last Post: 2008-06-18, 09:31 AM
  4. Bug in include\
    By kenlyle in forum Help
    Replies: 2
    Last Post: 2007-11-30, 06:20 PM
  5. Where to include JavaScript?
    By tbivans in forum Developer Help
    Replies: 1
    Last Post: 2007-03-27, 07:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •