php-windows Digest 17 Jul 2002 07:56:23 -0000 Issue 1245

Topics (messages 14801 through 14806):

Re: [PHP] Problem on file_exists()
        14801 by: Ross Fleming

Re: Forward
        14802 by: James Mclean

help for shopping cart
        14803 by: Alvin Tan

compiling with VC++
        14804 by: Marco Glatz

Re: Handling Multi-Select form lists
        14805 by: toby z

Problem on file_exists() function
        14806 by: Jack

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]


----------------------------------------------------------------------
--- Begin Message ---
You shouldn't need to escape the space (I don't in XP).  Examples of how I
use it...

$file_path = "C:\\documents\\ross\\file.mp3";

if (file_exists($file_path)) {
  echo "exists";
}
else
{
  echo "doesn't exist";
}

Ross


> -----Original Message-----
> From: Chris Hewitt [mailto:[EMAIL PROTECTED]]
> Sent: 16 July 2002 11:32
> To: Jack
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: [PHP] Problem on file_exists()
>
>
> Jack wrote:
>
> >Dear all
> >I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing
> >room\report) it stores a lot of PDF reports in there.
> >I'm trying to use the file_exists() function to detect if a specific file
> >exist in this folder, but i got a problem is :
> >It seems that php can go through (\\nedcoraa\pdf_reports) but it can't go
> >through (dealing room) folder. i had made test on it, i moved a file into
> >(\\nedcoraa\pdf_reports), then php can detect it, but if i move it to
> >(\\nedcoraa\pdf_reports\dealing room), then it can't detect the
> file! why?
> >
> >I'm using php in windows NT IIS environment!
> >
> I think you will need to escape the space, usually with a \
>
> HTH
> Chris
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hi,

> How can I forward the user to another page?

Redirecting works like this.

<?
    header("Location: http://www.somepage.com/here.htm";);
?>

full URL not needed if the file is local to the domain,

IE

<?
    header("Location: index.php");
?>

You can even pass arguments like this
<?
    header("Location: index.php?d=1&p=3");
?>

Also see http://www.php.net/header

good luck!


On Tue, 16 Jul 2002 06:39:31 -0700 (PDT)
"Joćo Paulo Batistella" <[EMAIL PROTECTED]> wrote:


 


Regards,

James Mclean

--- End Message ---
--- Begin Message ---
i found tutorial at
http://www.devarticles.com/content.php?articleId=132&page=1
can someone help me with the cart.php from this site?

alvin

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--- End Message ---
--- Begin Message ---
hi there, 

as i said yesterday, i had some problems compiling the example-code for an
extension. now i solved these probs, but now i have a new error:

test.obj : error LNK2001: no defined external symbol "__declspec(dllimport)
int __cdecl zend_parse_parameters(int,char *,...)"
(__imp_?zend_parse_parameters@@YAHHPADZZ)

now, what means this ?

greets,

Marco Glatz



Dose Maschinenbau GmbH
Industriestrasse 5
77839 Lichtenau

Fon: +49 7227 50 637
Fax: +49 7227 21 89
Mail: mailto:[EMAIL PROTECTED]
URL: http://www.dose.com 
--- End Message ---
--- Begin Message ---
ron ....

> I am using a multi-select form list...how do I go
> about retrieving the
> multiple values?  My current script only pulls the
> first value using:
> 
> $_POST['multi_select'];


echo("<select id=cat_opt name=cat_opt_name>

                <optgroup label=category>

                ");

        # use mysql_fetch_row to retrieve the results
        for ($count = 1; $row_id = mysql_fetch_row
($query_result_handle), $row_nme = mysql_fetch_row
($query_result_handle_nme); ++$count)
                {
                $tID =  $row_id[0];
                $tName = $row_nme[0];
                echo (" <option value=$tID > $tName ");


            // echo ("<br><br>");
                        
            //echo(  "'$row[0]'" );     // let this in          for ""
                    // echo ("<br><br>");

                    //echo( " $row[1]" );

                    // echo ("<br><br>");

                          //echo (" '$row[2]'" );       // leave
dis in fo row numbers or  cat idz ... :S ... i aint
sure which 1 :| ....
        
          }             

        echo("</optgroup>
                </select>

        ");


this is how you retrieve some values from ur db into
ur multi-select list

hope this helps u ....

good luck

toby .....

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--- End Message ---
--- Begin Message ---
Dear all
I had made a test.txt file which stored in the following window path :
c:\pdf_reports\dealing\test.txt,
In my page, i ask php to check the test.txt exist in foler
(c:\pdf_reports\dealing) using the following script:

if (file_exists("c:\\pdf_reports\\dealing\\test.txt"))
    {
    print ("exist");
    }
else
    {
    print ("Doesn't Exist!");
    }

It seems that php can't detect the file in such path!!!
I had made another test on this, i moved the test.txt to one level up which
is (c:\pdf_reports) and i use the following script :

if (file_exists("c:\\pdf_reports\\test.txt"))
    {
    print ("exist");
    }
else
    {
    print ("Doesn't Exist!");
    }
Then it can detect the file is there! why?


--
Thx a lot!
Jack
[EMAIL PROTECTED]


--- End Message ---

Reply via email to