help on xml

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shotokan99

    help on xml

    i have this page:

    <?php
    require_once "HTTP/Request.php";
    echo 'it works';
    ?>

    now if pear is successfully installed the text "it works" should
    display, right? what im getting now is blank white page..which i
    presume it's not working, and there's an error. however i am sure that
    there's nothing wrong with my syntax. am i correct with my assumptions?

  • ZeldorBlat

    #2
    Re: help on xml

    On Jun 8, 10:24 pm, shotokan99 <soft_devj...@y ahoo.comwrote:
    i have this page:
    >
    <?php
    require_once "HTTP/Request.php";
    echo 'it works';
    ?>
    >
    now if pear is successfully installed the text "it works" should
    display, right? what im getting now is blank white page..which i
    presume it's not working, and there's an error. however i am sure that
    there's nothing wrong with my syntax. am i correct with my assumptions?
    Enable display_errors and error_reporting in php.ini. Then see what
    it says when you load the page. Also, does the file HTTP/Request.php
    exist? Can it be found? Where is PHP looking for it? The error
    message should tell you such things.

    Comment

    • Jerry Stuckle

      #3
      Re: help on xml

      shotokan99 wrote:
      i have this page:
      >
      <?php
      require_once "HTTP/Request.php";
      echo 'it works';
      ?>
      >
      now if pear is successfully installed the text "it works" should
      display, right? what im getting now is blank white page..which i
      presume it's not working, and there's an error. however i am sure that
      there's nothing wrong with my syntax. am i correct with my assumptions?
      >
      And look at the page source. See what you're really getting at the browser.

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • shotokan99

        #4
        Re: help on xml

        actually another issue to this is our hosting company wont allow us to
        edit anything on php.ini...seems they got it so secured that functions
        such as this wont work at all.

        plus the admin just admitted to me http/request.php doesnt exist
        because they are not supporting it. actually i wanted to use pear for
        the only reason that i wanted to send xml file.

        is there any workaround for this?

        Comment

        • Jerry Stuckle

          #5
          Re: help on xml

          shotokan99 wrote:
          actually another issue to this is our hosting company wont allow us to
          edit anything on php.ini...seems they got it so secured that functions
          such as this wont work at all.
          >
          plus the admin just admitted to me http/request.php doesnt exist
          because they are not supporting it. actually i wanted to use pear for
          the only reason that i wanted to send xml file.
          >
          is there any workaround for this?
          >
          Well, you don't need PEAR to create an XML file. It's just text, after
          all. PEAR does make it somewhat easier, though.

          So looks like you need to make a choice - create the XML manually with
          echo statements, or find another host.

          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstucklex@attgl obal.net
          =============== ===

          Comment

          • Moot

            #6
            Re: help on xml

            On Jun 11, 11:28 pm, shotokan99 <soft_devj...@y ahoo.comwrote:
            actually another issue to this is our hosting company wont allow us to
            edit anything on php.ini...seems they got it so secured that functions
            such as this wont work at all.
            >
            plus the admin just admitted to me http/request.php doesnt exist
            because they are not supporting it. actually i wanted to use pear for
            the only reason that i wanted to send xml file.
            >
            is there any workaround for this?
            Your host doesn't allow you to use require_once? Abandon ship at once
            and find a better host. Without the ability to include files, your
            options for well structured code are very limited.

            If you can include files, and your host doesn't have a certain PEAR
            module installed, then there's no reason you can't load it in there on
            your own. Just get the code from the PEAR site, FTP it somewhere in
            your directory structure, and use it from there. I've had to do this
            with a few modules before.

            Comment

            Working...