[PHP] PHP, C++, and LAN

2001-08-01 Thread Keith Jeffery

Hello,
I'm writing some PHP scripts that will only be used over our local
Windows NT/2000 network.  I've written a directory browser in PHP, but that
only sees the server's local directories/files whereas I would also like to
be able to see shared network directories.  Since the PHP directory
functions don't allow network connections (i.e. //harp/graphics/) I decided
that a good workaround would be to write a C++ program that listed the
directories and files (like dir or ls if you're on Unix, and I can't get dir
to work through a PHP exec command), and then I would parse the output in
PHP.  I've since written two different C++ programs to do this, one using
findfirst and findnext, and other using opendir and readdir.  They both work
by specifying the directory to be listed after the program (i.e.
"listFiles.exe d:/" or "listFiles.exe //harp/graphics/").  Both of these
programs work just as expected from the command prompt, working with both
directories local to the server and those on a shared network drive.
However, both of these programs fail using any PHP system command (exec,
passthru, system) when specifying a network drive as the arguement, although
both work when a server's local directory is given.  For some reason it can
no longer read the network drive when run through PHP.  I've double and
triple checked the arguements passed, and they command issused is exactly
that given at the command prompt.  I've even tried changing the current
working directory in the C++ program and to no avail.  Does anybody have any
insight, or perhaps another route down which to travel?  I will happily
provide PHP and/or C++ code for what I'm doing.

Thank you,
Keith Jeffery
[EMAIL PROTECTED]



-- 
PHP General 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]




[PHP] Re: PHP EDITOR 4 WINDOWS?

2001-08-01 Thread Keith Jeffery

http://www.soysal.com/PHPEd/

Although, after using it for a while I've decided that I simply like Ultra
Edit better.

www.ultraedit.com

Keith Jeffery
[EMAIL PROTECTED]

"Kyle Smith" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Does it really exist? If so could someone post some URLs for me?


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666






-- 
PHP General 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]




[PHP] Re: Hmmm?

2001-08-01 Thread Keith Jeffery

Simply indent formatting for readability.  I personally don't indent after
the  wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Whenever i get a php script off a website why is it that most of the main
parts in the script have a space from the left border. eg





-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666






-- 
PHP General 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]




[PHP] Re: fopen(fd, "w") doesn't work?

2001-08-01 Thread Keith Jeffery

for the first part, make sure that you have write permission to the
directory specified, and for the second, you can't open a file for writing
from a remote location.

Keith Jeffery
[EMAIL PROTECTED]

"Ibrahim Noor" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Dear all,
>
> I'm newbie with PHP, but it so nice for me.
>
> I tried to create file by fopen(fd, "w") function, but it didn't work.
> Permission Denied, server said.
>
> I tried with fopen("ftp://user@pass:ftp.server.com/test.txt";, "w") the
> address I changed according to my server host, but once again server said:
> Permission Denied.
>
> It host at a free web hosting, with PHP3.
>
> Can you help me to make it work.
>
> Thank you all.
>
> Ibrahim
>
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>



-- 
PHP General 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]




[PHP] Re: Hmmm?

2001-08-01 Thread Keith Jeffery

No, no, I indent my code normally, just not after the  $fileArray[$i]\n";
}
}

?>

Not indenting after the  wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I think it's impossible to read/understand my own scripts if i don't do
it.
>
> Do:
>
>if ($submit) {
> echo "Counting from 1-32";
> for ($ii = '1'; $ii <= '32' $ii++) {
>   echo $ii." ";
> }
>   }
>   echo "All done!";
> ?>
>
> instead of:
>
>  if ($submit) {
> echo "Counting from 1-32";
> for ($ii = '1'; $ii <= '32' $ii++) {
> echo $ii." ";
> }
> }
> echo "All done!";
> ?>
>
> Best Regards
> Fredrik A. Takle
>
> "Keith Jeffery" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Simply indent formatting for readability.  I personally don't indent
after
> > the  >
> >
> > "Kyle Smith" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Whenever i get a php script off a website why is it that most of the
main
> > parts in the script have a space from the left border. eg
> >
> >  > echo"spazzz";
> > ?>
> >
> > 
> >
> > -lk6-
> > http://www.StupeedStudios.f2s.com
> > Home of the burning lego man!
> >
> > ICQ: 115852509
> > MSN: [EMAIL PROTECTED]
> > AIM: legokiller666
> >
> >
> >
> >
> >
>
>



-- 
PHP General 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]




[PHP] Re: How can I make a Loading... screen?

2001-08-01 Thread Keith Jeffery

I did this myself, for the exact same reason.  First I define this
javascript in my page:

function itsThinkingOpen() {

imgWindow=window.open("thinking.htm","thinkingWindow","toolbar=no,scrollbars
=no,resizable=no,width=400,height=200");
}

function itsThinkingClose() {
 imgWindow.close();
}

and then at the beginning of the page, before the search begins, in php I
put
  echo "itsThinkingOpen()";

and after the code to search the database I put
  echo "itsThinkingClose()";

It works fine here.

Keith Jeffery
[EMAIL PROTECTED]

"Michael Champagne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a popup window that populates a table with rows from a database and
it
> normally takes about 15 to 20 seconds to load.  Does anyone know how I can
> display a 'Loading... Please Wait.' that will disappear once the data
comes
> up?
>
> Thanks in advance for any responses,
> Mike
>
>
>
> **
> This communication is for informational purposes only.  It is not
> intended as an offer or solicitation for the purchase or sale of
> any financial instrument or as an official confirmation of any
> transaction, unless specifically agreed otherwise.  All market
> prices, data and other information are not warranted as to
> completeness or accuracy and are subject to change without
> notice.  Any comments or statements made herein do not
> necessarily reflect the views or opinions of Capital Institutional
> Services, Inc.  Capital Institutional Services, Inc. accepts no
> liability for any errors or omissions arising as a result of
> transmission.  Use of this communication by other than intended
> recipients is prohibited.
> **



-- 
PHP General 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]




Re: [PHP] Re: How can I make a Loading... screen?

2001-08-01 Thread Keith Jeffery

Ahh, OK, I thought you wanted a popup window.  There is no way to "unwrite"
text on a page.  The only thing that comes to mind is using a textfield and
changing its value through javascript, but that leaves an ugly text field on
your page, unless you want to do some CSS to hide it best you can.


"Michael Champagne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks for the response.  The only problem is that the page that I'm
waiting
> on is already a popped up window, so I'd hate to open up another popup
window
> on top of that to say that the first one is loading.  Is there a way to do
> this within the same window?
>
> Thanks!
> Mike
>
> > I did this myself, for the exact same reason.  First I define this
> > javascript in my page:
> >
> > function itsThinkingOpen() {
> >
> >
imgWindow=window.open("thinking.htm","thinkingWindow","toolbar=no,scrollbars
> > =no,resizable=no,width=400,height=200");
> > }
> >
> > function itsThinkingClose() {
> >  imgWindow.close();
> > }
> >
> > and then at the beginning of the page, before the search begins, in php
I
> > put
> >   echo "itsThinkingOpen()";
> >
> > and after the code to search the database I put
> >   echo "itsThinkingClose()";
> >
> > It works fine here.
> >
> > Keith Jeffery
> > [EMAIL PROTECTED]
> >
> > "Michael Champagne" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I have a popup window that populates a table with rows from a database
and
> > it
> > > normally takes about 15 to 20 seconds to load.  Does anyone know how I
can
> > > display a 'Loading... Please Wait.' that will disappear once the data
> > comes
> > > up?
> > >
> > > Thanks in advance for any responses,
> > > Mike
> > >
> > >
> > >
> > > **
> > > This communication is for informational purposes only.  It is not
> > > intended as an offer or solicitation for the purchase or sale of
> > > any financial instrument or as an official confirmation of any
> > > transaction, unless specifically agreed otherwise.  All market
> > > prices, data and other information are not warranted as to
> > > completeness or accuracy and are subject to change without
> > > notice.  Any comments or statements made herein do not
> > > necessarily reflect the views or opinions of Capital Institutional
> > > Services, Inc.  Capital Institutional Services, Inc. accepts no
> > > liability for any errors or omissions arising as a result of
> > > transmission.  Use of this communication by other than intended
> > > recipients is prohibited.
> > > **
> >
> >
> >
> >
>
> --
> Michael Champagne, Software Engineer
> Capital Institutional Services, Inc.
> wk: [EMAIL PROTECTED]
> hm: [EMAIL PROTECTED]
>



-- 
PHP General 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]




Re: [PHP] Character newline (\n), How to

2001-08-01 Thread Keith Jeffery

My guess is that it is working, just not like you'd expect.  You're
generating HTML, so if you want a new line to be displayed in your HMTL
document you need to do
echo "Hello there";
instead of "Hello there\n";

\n will give you a pretty new line if you look at the source of the page

Keith Jeffery
[EMAIL PROTECTED]

"Ignacio Estrada" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, somebody know why the character newline \n doesn't work? .  I am using
> the combination W2K/Apache/PHP4.  I tried the newline character on print
> and echo functions but still not working.
> Maybe is a stupid cuestion but I need it.
>
> Thanks in advanced.
>
>
> Atte. Ignacio Estrada F.
> Centro Nacional de Control de Energia
> Area de Control Occidental
> 025+6463, 025+6464, 025+6469
>



-- 
PHP General 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]




[PHP] Re: PHP, C++, and LAN

2001-08-01 Thread Keith Jeffery

Why doesn't

$dir = opendir("//harp/graphics/");

work anyway?  Is this an oversite in the Win32 development of PHP?  You're
able to do this in Perl.


"Keith Jeffery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
> I'm writing some PHP scripts that will only be used over our local
> Windows NT/2000 network.  I've written a directory browser in PHP, but
that
> only sees the server's local directories/files whereas I would also like
to
> be able to see shared network directories.  Since the PHP directory
> functions don't allow network connections (i.e. //harp/graphics/) I
decided
> that a good workaround would be to write a C++ program that listed the
> directories and files (like dir or ls if you're on Unix, and I can't get
dir
> to work through a PHP exec command), and then I would parse the output in
> PHP.  I've since written two different C++ programs to do this, one using
> findfirst and findnext, and other using opendir and readdir.  They both
work
> by specifying the directory to be listed after the program (i.e.
> "listFiles.exe d:/" or "listFiles.exe //harp/graphics/").  Both of these
> programs work just as expected from the command prompt, working with both
> directories local to the server and those on a shared network drive.
> However, both of these programs fail using any PHP system command (exec,
> passthru, system) when specifying a network drive as the arguement,
although
> both work when a server's local directory is given.  For some reason it
can
> no longer read the network drive when run through PHP.  I've double and
> triple checked the arguements passed, and they command issused is exactly
> that given at the command prompt.  I've even tried changing the current
> working directory in the C++ program and to no avail.  Does anybody have
any
> insight, or perhaps another route down which to travel?  I will happily
> provide PHP and/or C++ code for what I'm doing.
>
> Thank you,
> Keith Jeffery
> [EMAIL PROTECTED]
>
>



-- 
PHP General 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]