• Re: include no work for some filenames

    From =?UTF-8?B?SMOkcnJhIFJhYm1v?=@21:1/5 to All on Fri Jul 8 06:45:45 2022
    HEY !!!!!!!!!!!!!!!! WANT TO TALK WITH SOMEONE ???????????????????
    CALL MY NUMBER THEN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



    ******************************************************* *******************************************************
    ✆☎☏📱📞 : 372 53900660

    Martin kirjutas Kolmapäev, 24. juuni 2020 kl 22:28:45 UTC+2:
    OK, this one is driving me nuts.

    I have a PHP file called "muck.php" containing the following:
    <?php
    $localBase = 'C:\Documents and Settings\name\My Documents\Web Pages'; include "$localBase\PHP\head.php";

    <?php include "$localBase\PHP\boot.php"; ?>
    <?php include "$localBase\PHP\foot.php"; ?>
    <?php include "$localBase\PHP\tail.php"; ?>

    All of the four include files exist and are identical
    (apart from the filenames) containing:
    <?php
    // This PHP file does very little.


    The first two includes succeed while the last two fail
    with the warnings:
    Warning: include(C:\Documents and Settings\name\My Documents\Web
    Pages\PHP oot.php): failed to open stream: Invalid argument in
    C:\Documents and Settings\name\My Documents\Web Pages\muck.php on line 6

    Warning: include(): Failed opening 'C:\Documents and Settings\name\My Documents\Web Pages\PHP oot.php' for inclusion (include_path='.;C:\php\pear') in C:\Documents and Settings\name\My Documents\Web Pages\muck.php on line 6

    Warning: include(C:\Documents and Settings\name\My Documents\Web
    Pages\PHP ail.php): failed to open stream: Invalid argument in
    C:\Documents and Settings\name\My Documents\Web Pages\muck.php on line 7

    Warning: include(): Failed opening 'C:\Documents and Settings\name\My Documents\Web Pages\PHP ail.php' for inclusion (include_path='.;C:\php\pear') in C:\Documents and Settings\name\My Documents\Web Pages\muck.php on line 7

    I am using PHP as a static file generator, and am using the command:
    php -n -f "muck.php" > "muck.html"

    This is using PHP 5.4.9 under Windows XP.

    The problem is obviously the filenames, but why? What is going on?
    Many thanks for any help you can give.

    --
    Regards,
    Martin Leese
    E-mail: ple...@see.Web.for.e-mail.INVALID
    Web: http://members.tripod.com/martin_leese/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From He, who travels time to time@21:1/5 to All on Thu Sep 22 07:12:19 2022
    Hey... Want to talk? Call me.... My telephone number >>>>

    (+372) 56330687



    Martin kirjutas Kolmapäev, 24. juuni 2020 kl 23:28:45 UTC+3:
    OK, this one is driving me nuts.

    I have a PHP file called "muck.php" containing the following:
    <?php
    $localBase = 'C:\Documents and Settings\name\My Documents\Web Pages'; include "$localBase\PHP\head.php";

    <?php include "$localBase\PHP\boot.php"; ?>
    <?php include "$localBase\PHP\foot.php"; ?>
    <?php include "$localBase\PHP\tail.php"; ?>

    All of the four include files exist and are identical
    (apart from the filenames) containing:
    <?php
    // This PHP file does very little.


    The first two includes succeed while the last two fail
    with the warnings:
    Warning: include(C:\Documents and Settings\name\My Documents\Web
    Pages\PHP oot.php): failed to open stream: Invalid argument in
    C:\Documents and Settings\name\My Documents\Web Pages\muck.php on line 6

    Warning: include(): Failed opening 'C:\Documents and Settings\name\My Documents\Web Pages\PHP oot.php' for inclusion (include_path='.;C:\php\pear') in C:\Documents and Settings\name\My Documents\Web Pages\muck.php on line 6

    Warning: include(C:\Documents and Settings\name\My Documents\Web
    Pages\PHP ail.php): failed to open stream: Invalid argument in
    C:\Documents and Settings\name\My Documents\Web Pages\muck.php on line 7

    Warning: include(): Failed opening 'C:\Documents and Settings\name\My Documents\Web Pages\PHP ail.php' for inclusion (include_path='.;C:\php\pear') in C:\Documents and Settings\name\My Documents\Web Pages\muck.php on line 7

    I am using PHP as a static file generator, and am using the command:
    php -n -f "muck.php" > "muck.html"

    This is using PHP 5.4.9 under Windows XP.

    The problem is obviously the filenames, but why? What is going on?
    Many thanks for any help you can give.

    --
    Regards,
    Martin Leese
    E-mail: ple...@see.Web.for.e-mail.INVALID
    Web: http://members.tripod.com/martin_leese/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)