php-windows Digest 23 Aug 2001 20:24:11 -0000 Issue 717

Topics (messages 9010 through 9024):

R: [PHP-WIN] Upload
        9010 by: Darvin Andrioli

It's just a logo..
        9011 by: Wisam

Install problems
        9012 by: Ronald Weinrich

mysql/php install on a Win2k machine
        9013 by: Wolfgang Schneider

R: [PHP-WIN] Install problems
        9014 by: Darvin Andrioli

comments not working in PHP
        9015 by: chris
        9016 by: Michael Rudel

How to get the content of a file into the value of a text column
        9017 by: Jack
        9018 by: Angie Tollerson

session and header problem
        9019 by: Angie Tollerson

Re: [PHP] How to get the content of a file into the value of a t
        9020 by: Gregor Maier

printer functions
        9021 by: Rob Cox
        9022 by: Erik H. Mathy
        9023 by: Rob Cox

PHP/VB/Byrefs
        9024 by: Ryan Marrs

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]


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


Hi Daniel

Are the file size less then the parameter "upload_max_filesize"?

Darvin

> -----Messaggio originale-----
> Da: Sichta Daniel [mailto:[EMAIL PROTECTED]]
> Inviato: giovedi 23 agosto 2001 9.23
> A: [EMAIL PROTECTED]
> Oggetto: [PHP-WIN] Upload
>
>
> Hi there,
> cfg: w2k, Apache 1.3.20, php 4.04.pl1
> I have his code:
> <form method="POST" action="<?=$PHP_SELF ?>"
> enctype="multipart/form-data">
>    <input type="file" name="media" size="40" maxlenght="150">
>    <input type="submit" value="Submit" name="upload">
> </form>
> <? if ($upload) {
>     copy ($media, "c:\tmp");
> }
> ?>
> This works fine for files with jpg and gif extensions but gives
> me error on
> mp3 or wav. Should I set something different ?
> error:
> Warning: Unable to open 'none' for reading: No such file or directory in
> upload.php on line 103 - that is copy function
>
> Thank you
>
> Ing. Daniel Šichta
> SWH s.r.o.
> Bytčická 2
> 010 01 Žilina
> tel.: +421 41 505 5855
> fax: +421 41 500 1376
> mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> http://www.swh.sk <http://www.swh.sk/>
>
>
>





Do you know What's a logo worth: PRICELESS.
Do you have a logo ?
Do you have what it takes to design one ?  To do it in Flash ?
Do you heve what it takes to put it on your website ? on your stationery & Business 
card ? On literally hundreds of products ?
Do you have what it takes to make it 3D, ANIMATED & doesn't take AGES to download ?
Do you want me to take care of that for you ?
For examples, and pricing, Contact [EMAIL PROTECTED]
Serving Individuals, Family crests,  Small Businesses, Communities, Townships and 
Corporate America.
Don't get left behind. Get graphical.
Thank you.








Hello All

I try to install php on my Notebook. I have php-4.0.6-Win32 on c:\php and 
Apache 1.3.12 on F:\Apache Group\Apache. 

My DocumentRoot is "e:/Internet/homepage/blank" and the phpScript should stay in 
"e:/internet/homepage/blank/php/"

In php.ini I have:
include_path =
doc_root =e:\internet\homepages\blank
user_dir =e:\internet\homepages\blank\php
extension_dir = c:\php 
enable_dl = On

and in httpd.conf I use 
LoadModule php4_module c:/php/sapi/php4apache.dll
DocumentRoot "e:/Internet/homepage/blank"
ScriptAlias /php/ "e:/internet/homepage/blank/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"


If I run from index.html " <a href="/php/info.php" target="main" name="info">info</a>"
I get the error:
e:/internet/homepage/blank/php/info.php is not executable; ensure interpreted scripts 
have "#!" first line
(2)No such file or directory: couldn't spawn child process: 
e:/internet/homepage/blank/php/info.php


If I run from index.html " <a href="info.php" target="main" name="info">info</a>"
It works !! 

Can anyone tell me what I’m doing wrong ??

Thank you in advance 

Ron















Hi,

as a bit of a newbie with PHP and Win2k,  I've succesfully installed
and used php on my Win2k computer for testing web pages etc locally
on my computer and not having to upload things to the server of my
ISP.  Everything runs fine ... so it seems. 
Today then, I just installed a mysql distribution under Win2K on my
machine as well, which apparently also successfully installed because
I can call up and start the mysql-nt server and have it running.  

Now ... here comes my question ...  
Could someone help me with setting things up so I can use this MySQL
to create a database and tables to use for a forum from one of my
"virtual websites" (that is one of the websites I am testing and
which has been assigned a "vitual host") ? Where do I assign a host
name to the mysql server and user and password to simulate the "real"
situation of later on? For example: The website is at www.domain01.de
(my domain), and the MySQL runs on mail.domain02.com (my ISP's mail
server, where he has the mysql server installed)

If someone could point me in the right direction and perhaps coach my
along a little bit, I would greatly appreciate it ... perhaps better
done off list.
God bless you with His grace and peace 
Wolfgang 

Looking for Biblical information? COME AND SEE! 
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ 







Hi Ronald

I suggest you to define the line
ScriptAlias /php/ "e:/internet/homepage/blank/php/"
as an alias, ( Alias /php/ "e:/internet/homepage/blank/php/" )

and then define a new scriptalias for php.exe.
I.e.
ScriptAlias /phpexe/ "c:/php/"
Action application/x-httpd-php "/phpexe/php.exe"


Greatings
Darvin
> -----Messaggio originale-----
> Da: Ronald Weinrich [mailto:[EMAIL PROTECTED]]
> Inviato: giovedì 23 agosto 2001 12.23
> A: [EMAIL PROTECTED]
> Oggetto: [PHP-WIN] Install problems
>
>
> Hello All
>
> I try to install php on my Notebook. I have php-4.0.6-Win32 on c:\php and
> Apache 1.3.12 on F:\Apache Group\Apache.
>
> My DocumentRoot is "e:/Internet/homepage/blank" and the phpScript
> should stay in "e:/internet/homepage/blank/php/"
>
> In php.ini I have:
> include_path =
> doc_root =e:\internet\homepages\blank
> user_dir =e:\internet\homepages\blank\php
> extension_dir = c:\php
> enable_dl = On
>
> and in httpd.conf I use
> LoadModule php4_module c:/php/sapi/php4apache.dll
> DocumentRoot "e:/Internet/homepage/blank"
> ScriptAlias /php/ "e:/internet/homepage/blank/php/"
> AddType application/x-httpd-php .php .phtml
> Action application/x-httpd-php "/php/php.exe"
>
>
> If I run from index.html " <a href="/php/info.php" target="main"
> name="info">info</a>"
> I get the error:
> e:/internet/homepage/blank/php/info.php is not executable; ensure
> interpreted scripts have "#!" first line
> (2)No such file or directory: couldn't spawn child process:
> e:/internet/homepage/blank/php/info.php
>
>
> If I run from index.html " <a href="info.php" target="main"
> name="info">info</a>"
> It works !!
>
> Can anyone tell me what I’m doing wrong ??
>
> Thank you in advance
>
> Ron
>
>
>
>
>
>
>
>
>
>
>
>





Bizarre problem... maybe a simple issue?  I've tried #, //, /* */ and it
simply will not comment out the phpinfo function... code looks like this:

#  // <!--  <?php phpinfo(); ?>

should it look like this?  <?php // phpinfo*(); >?
???

Thanks,
Chris








Yes, beside of the *!

Trial by Error >>8)=)

Greetinx,
  Mike

Michael Rudel
- Web-Development, Systemadministration -
_______________________________________________________________

Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________



> -----Original Message-----
> From: chris [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 23, 2001 4:45 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] comments not working in PHP
>
>
> Bizarre problem... maybe a simple issue?  I've tried #, //,
> /* */ and it
> simply will not comment out the phpinfo function... code
> looks like this:
>
> #  // <!--  <?php phpinfo(); ?>
>
> should it look like this?  <?php // phpinfo*(); >?
> ???
>
> Thanks,
> Chris
>
>
>
>
>
> --
> 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]
>





Dear all
Actually i'm trying to get the content of a file, and make it as a default
value of a input text column.
Is there anyway could do it?

Thx
jack
[EMAIL PROTECTED]






Jack,
You just need to check out the fopen and fread functions on php.net/manual

Angie Tollerson
Alliance Technologies
Web Programmer
(515)245-7628
[EMAIL PROTECTED]

>>> "Jack" <[EMAIL PROTECTED]> [EMAIL PROTECTED] 10:02AM >>>
Dear all
Actually i'm trying to get the content of a file, and make it as a default
value of a input text column.
Is there anyway could do it?

Thx
jack
[EMAIL PROTECTED] 



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






If anyone is slightly familiar with phpSecurePages (or not) I have this problem since 
I moved a site between servers.  I get this error at the top of my page:
Warning: Cannot send session cache limiter - headers already sent (output started at 
...
And then it lists a file that started ouput already.  So I opened the file it spoke of 
(lng_english.php) And the ONLY thing in there is several lines of warnings and what 
not being defined into $variables for later use in the program.  There's no other 
programming at all and certainly no echo or print statements.  And there's no newlines 
in the code either.  (Which sometimes sends headers to page..don't ask me why).  
Sooooooo any ideas? is it maybe that the warning is just dumb and giving me the wrong 
file that sending the headers? or what?
Thanks in advance,

Angie Tollerson
Alliance Technologies
Web Programmer
(515)245-7628
[EMAIL PROTECTED]






On 23-Aug-2001 Jack wrote:
> Dear all
> Actually i'm trying to get the content of a file, and make it as a default
> value of a input text column.
> Is there anyway could do it?
> 
> Thx
> jack
> [EMAIL PROTECTED]

open the file an read it. save the contents to a string.



then use:
<input name="some_field" type="text" value="<?php echo($string); ?>" />


----------------------------------
E-Mail: Gregor Maier <[EMAIL PROTECTED]>
Date: 23-Aug-2001
Time: 17:16:44
----------------------------------




I'm trying to do a printer_open but I keep on getting a warning that it
can't connect to the printer. The printer isn't local to the web server. It
exists as a network printer (shared by another system). I'm using a fully
Windows environment (I know...I know). I've tried specifying the printer
name as the share name, system name, and IP address. None of which work. Is
there a trick to making a connection? I hope that you don't need to have
only a local printer.








Hi Rob!

        I haven't had the chance to play with this set of functions yet. However, a
quick browsing of the docs found this function:

http://www.php.net/manual/en/function.printer-list.php

        Try firing that off with the PRINTER_ENUM_NETWORK or PRINTER_ENUM_REMOTE
options. See what printers if finds and how it identifies them. Just a guess
on how you might troubleshoot things a little.

- Erik


> -----Original Message-----
> From: Rob Cox [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 23, 2001 10:54 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] printer functions
>
>
> I'm trying to do a printer_open but I keep on getting a warning that it
> can't connect to the printer. The printer isn't local to the web
> server. It
> exists as a network printer (shared by another system). I'm using a fully
> Windows environment (I know...I know). I've tried specifying the printer
> name as the share name, system name, and IP address. None of
> which work. Is
> there a trick to making a connection? I hope that you don't need to have
> only a local printer.
>
>
>
>
>
> --
> 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]
>





I didn't even think of that. Thanks. I tried it and got the printer to show
up. Now I've got to figure out how to open a connection to it. The
printer_open function isn't working as I would expect.

Thanks again!!

Rob Cox


"Erik H. Mathy" <[EMAIL PROTECTED]> wrote in message
001401c12bed$aa326f00$1300020a@erik_laptop">news:001401c12bed$aa326f00$1300020a@erik_laptop...
> Hi Rob!
>
> I haven't had the chance to play with this set of functions yet. However,
a
> quick browsing of the docs found this function:
>
> http://www.php.net/manual/en/function.printer-list.php
>
> Try firing that off with the PRINTER_ENUM_NETWORK or PRINTER_ENUM_REMOTE
> options. See what printers if finds and how it identifies them. Just a
guess
> on how you might troubleshoot things a little.
>
> - Erik
>
>
> > -----Original Message-----
> > From: Rob Cox [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 23, 2001 10:54 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] printer functions
> >
> >
> > I'm trying to do a printer_open but I keep on getting a warning that it
> > can't connect to the printer. The printer isn't local to the web
> > server. It
> > exists as a network printer (shared by another system). I'm using a
fully
> > Windows environment (I know...I know). I've tried specifying the printer
> > name as the share name, system name, and IP address. None of
> > which work. Is
> > there a trick to making a connection? I hope that you don't need to have
> > only a local printer.
> >
> >
> >
> >
> >
> > --
> > 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]
> >
>






[Yes this is a repeat, but I didn't receive an answer back, and I
desperately need an answer]

Thanks!

Anybody know if PHP can handle VB ByRef's when calling a COM object?  I've
searched the documentation and the web and have found nothing on it, so I'm
going to assume it doesn't, but I just thought I'd check through the list
before I declared the topic dead.

Thanks!

Ryan


Reply via email to