#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    7
    Rep Power
    0
    The cal2.php3 script below from phpioneers.com works from my web server on the internet.With PWS on my machine it does not. Am I missing some modules or is there some settings in php.ini that I have to activate.I have been using PWS to test out script and it works OK in most cases.
    Thanks for any help.
    -----------
    <!--
    Date: 7/14/99
    Auth: Mike McWilliams <mikemcw@phpioneers.com.com>

    Desc: Returns a calendar for the user selected year
    //-->

    <HTML><BODY BGCOLOR=WHITE>
    <basefont face=Lucinda Console>
    <Table>
    <TR>
    <TD valign=center width=50px>
    <A href="cal2.php3?yr=1999">1999</A><BR>
    <A href="cal2.php3?yr=2000">2000</A><BR>
    <A href="cal2.php3?yr=2001">2001</A><BR>
    <A href="cal2.php3?yr=2003">2003</A><BR>
    <A href="cal2.php3?yr=2004">2004</A><BR>
    </TD>
    <TD>
    <pre>
    <?php
    $x=exec( "cal ".escapeshellcmd($yr),$a,$retVal);
    echo join($a, "<BR>");
    ?>
    </pre></TD></TR></TABLE>
    </body>
    </html>
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,645
    Rep Power
    4492
    $x=exec( "cal ".escapeshellcmd($yr),$a,$retVal);
    echo join($a, "<BR>");

    This must try to execute some command that doesn't work on windows??

    ---JH
  4. #3
  5. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,645
    Rep Power
    4492
    Also, I think you join() command is backwards. it should be

    join("<BR>",$a);

    $a is an array, right??
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    7
    Rep Power
    0
    Thanks for the replies.Switching the order in join() did not matter. I believe it is the server. I am usinf winNT and PWS to test out. My web server is linux based with a Apache server.
    ---------
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by SepodatiCreations:
    Also, I think you join() command is backwards. it should be

    join("<BR>",$a);

    $a is an array, right??
    [/quote]


Similar Threads

  1. php script won't work inside "cgi-local" directory
    By Volitics in forum PHP Development
    Replies: 5
    Last Post: April 26th, 2004, 10:50 PM
  2. Perl script converting GIF and JPG images to BMP ???
    By Deanna475 in forum Perl Programming
    Replies: 20
    Last Post: February 17th, 2004, 06:35 PM
  3. iptables changed after S10network script
    By hunt3r in forum Linux Help
    Replies: 0
    Last Post: February 11th, 2004, 03:51 AM
  4. Replies: 2
    Last Post: February 10th, 2004, 11:03 PM
  5. How can I enable a power user to run this script?
    By Yamadatroy in forum Visual Basic Programming
    Replies: 2
    Last Post: January 19th, 2004, 09:39 PM

IMN logo majestic logo threadwatch logo seochat tools logo