php-windows Digest 19 Oct 2001 22:17:52 -0000 Issue 813

Topics (messages 9928 through 9937):

MySQL question....
        9928 by: Martin.Andrew

problem with URL
        9929 by: Harry Lau
        9932 by: Jørg V. Bryne
        9933 by: Harry Lau

PHP's XML parser doesn't work
        9930 by: G Schneider

Re: xml parsing
        9931 by: George Pitcher

Multidimensional array problem, any help is welcome!!
        9934 by: Roy van Pelt

include remote files
        9935 by: Jason Bourne

What does #IND mean?
        9936 by: Anthony

sessions
        9937 by: jax.woh.rr.com

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Just a quick question maybe someone working with PHP and MySql has already
come across it before.
Is it possible for MySQL to store specific language characters eg, japaneese
or Korean?




Suppose I have wrote the following script in a php file, "test.php":

echo("<img src=HQ" . $s . ".JPG>");

I first put the file in my win2000 + IIS server.
When I enter the URL address "test.php?$s=10",
the html output is:

<img src=HQ.JPG>

But when I put the file in many other servers,
they give the html output is what I have expected:

<img src=HQ10.JPG>

What is the problem of my server?
Thanks for advise!






Maybe php is not set to automaticly register variables on your server? check
http://www.php.net/manual/en/security.registerglobals.php

you can check your present setting in /winnt/php.ini (probably)

-Jørg

"Harry Lau" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Suppose I have wrote the following script in a php file, "test.php":
>
> echo("<img src=HQ" . $s . ".JPG>");
>
> I first put the file in my win2000 + IIS server.
> When I enter the URL address "test.php?$s=10",
> the html output is:
>
> <img src=HQ.JPG>
>
> But when I put the file in many other servers,
> they give the html output is what I have expected:
>
> <img src=HQ10.JPG>
>
> What is the problem of my server?
> Thanks for advise!
>
>






Everything runs now, thanks!

"JøRg V. Bryne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Maybe php is not set to automaticly register variables on your server?
check
> http://www.php.net/manual/en/security.registerglobals.php
>
> you can check your present setting in /winnt/php.ini (probably)
>
> -Jørg
>
> "Harry Lau" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Suppose I have wrote the following script in a php file, "test.php":
> >
> > echo("<img src=HQ" . $s . ".JPG>");
> >
> > I first put the file in my win2000 + IIS server.
> > When I enter the URL address "test.php?$s=10",
> > the html output is:
> >
> > <img src=HQ.JPG>
> >
> > But when I put the file in many other servers,
> > they give the html output is what I have expected:
> >
> > <img src=HQ10.JPG>
> >
> > What is the problem of my server?
> > Thanks for advise!
> >
> >
>
>






Hi,

I use the PHP XML parser to display various information on a page. I find
that sometimes, the XML parser will cut off the begining of words and
sentances, that are stored in my XML files.

So if I have a list of information like this:

<item>
 <name>Instructions To Build A Car</name>
</item>
<item>
 <name>Instructions To Bulild A House</name>
</item>

And I get PHP to display the contents of the <name> nodes, it will display
"Instructions To Build A Car" but then it will display "ild A House" -
missing off the first part of the second sentance.

Why is this? It's driving me nuts.

My code is bare-bones PHP XML functions, nothing fancy. And my XML document
is well-formed. Perfect in fact.

- Jefferrs

* e-mail: [EMAIL PROTECTED]
* txt msg: 07855 676 420 (UK only)
* homepage: http://geordiecitizen.co.uk

______________________________________
super cheap .com webhosting - OpenHosting
http://www.openhosting.co.uk?r=GB1500175






Jefferrs,

having spend all day yesterday on a very basic non-php xml primer, I can't
see any problem with your xml.

But I noticed that you have a spelling error in your content and that's
exactly where your text's is failing.

Don't know why though.

George

"G Schneider" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Hi,
>
> I use the PHP XML parser to display various information on a page. I find
> that sometimes, the XML parser will cut off the begining of words and
> sentances, that are stored in my XML files.
>
> So if I have a list of information like this:
>
> <item>
>  <name>Instructions To Build A Car</name>
> </item>
> <item>
>  <name>Instructions To Bulild A House</name>
> </item>
>
> And I get PHP to display the contents of the <name> nodes, it will display
> "Instructions To Build A Car" but then it will display "ild A House" -
> missing off the first part of the second sentance.
>
> Why is this? It's driving me nuts.
>
> My code is bare-bones PHP XML functions, nothing fancy. And my XML
document
> is well-formed. Perfect in fact.
>
> - Jefferrs
>
> * e-mail: [EMAIL PROTECTED]
> * txt msg: 07855 676 420 (UK only)
> * homepage: http://geordiecitizen.co.uk
>
> ______________________________________
> super cheap .com webhosting - OpenHosting
> http://www.openhosting.co.uk?r=GB1500175
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





 Hello there...

The problem is that I can only add one value into the array...
 Anyone knows what I'm doing wrong here....(First project by the way!!)
 =====================================================
 <?php
   session_start();
   session_register("offer");

 // Make a new offer if it doesn't exist yet
 if (!is_array($offer))
 {
   $offer = array(array('pid' => '', 'pname' => '', 'pqty' => ''));
   $nrItems = 0;
 }

// Get variables from products.php
 $productID=trim(${"pid"});
 $productName=trim(${"productName"});

// Add product to offer
 if ($productID!="")
 {
     $nrItems = $nrItems + 1;
     for ($i=0; $i<$nrItems; $i=$i+1)
     {
       if ($offer[$i]['pid']=="")
       {
    $productQTY = 1;
    $offer[$i]['pid'] = $productID;
    $offer[$i]['pname'] = $productName;
    $offer[$i]['pqty'] = $productQTY;
       }
     }
 }

//if there are no items in the offer, print a message
 if ($offer[0]['pid']=="")
 {
   echo "No items in the offer"."<br>\n";
   var_dump($offer)."<br>\n";
   echo "<a href=producten.php>back</a>";
 }
 //else print the contents of the offer
   else
 {
 for ($i=0; $i<$nrItems; $i=$i+1)
 {
   echo "The offer:"."<br>\n";

   var_dump($offer)."<br>\n";

   echo "The offer contains items: ";
   echo $nrItems."<br>\n";
   echo $offer[$i]['pid']."<br>\n";
   echo $offer[$i]['pname']."<br>\n";
   echo $offer[$i]['pqty']."<br>\n";
   echo "<br>\n";
   echo "<a href=producten.php>back</a>";
   echo "<br>\n";
 }
 }
 ======================================================

THNX in advance








Anyone know how you can make a work around on remote files includes on a
windows system?






I get -1.#IND as the result of a floating point equation.  What does it 
mean, have I overloaded the floating point in PHP?  I know there are no 
errors in my equation.  With certian input it works fine, but some 
numbers come out with the above notation.  What does it mean?

- Anthony





how is session.cookie_lifetime supposed to work? whats the 
syntax?
Thanks in advance


Reply via email to