php-windows Digest 19 Feb 2003 00:22:53 -0000 Issue 1594
Topics (messages 18573 through 18586):
A table question
18573 by: Ferzan
Re: [PHP WIN] Executing cvs commands in PHP (newbie)
18574 by: Bobby Rahman
Visual C++ with PHP
18575 by: Christine Gonzalez
18576 by: Jill.Ramonsky.Aculab.com
18577 by: Christine Gonzalez
Problems installation of Apache 2.0.44
18578 by: Moses Johnson
18580 by: Per Lundberg
18581 by: Luis Ferro
18585 by: Chris Kranz
PHP & MySQL
18579 by: Dean Hayes
Problems installation of Apache 2.0.44 on Win2K
18582 by: Moses Johnson
Problem with file upload!!
18583 by: Palli
18584 by: Matt Hillebrand
18586 by: Palli
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 ---
Hi,
this is my first post. I'am a newbie in both newsgroups and php.I wrote the
following code to pick picture names from the database and then
insert them in a table.But unfortunately I could not manage to make rows
equal. I mean I want to have four <td></td> regardless of how many
pictures are there(there can be maximum 4 in a row). In other words I want
is just to have four <td></td> to make my table look normal.
<?
for( $i = 0; $row = mysql_fetch_array($viewpic); $i++ )
{
if( $i % 4 == 0 && $i != 0 && $i != mysql_num_rows( $viewpic ) - 1 ) echo "</tr><tr>";
$tekharf = strtolower($row["BandName"]);
echo "<td><a
href='http://mysite/Bands/viewfull.php?PicID={$row[PicID]}&BandID={$row[BandID]}'><img
class='link' src='http://mysite/pics/thumbnail/{$tekharf{0}}/{$row[PName]}.jpg'
border=1></a></td>";
}
?>
--- End Message ---
--- Begin Message ---
hiya
I have cvs running on my Win98 machine. I want to call cvs log, cvs diff
functions within an html page via php. Has anyone got any suggestions how to
call these external functions.
I am having troubles getting exec() working so am now trying with
system()....any traps waiting for me?
Thanks
Bobby
_________________________________________________________________
Express yourself with cool emoticons http://messenger.msn.co.uk
--- End Message ---
--- Begin Message ---
Does anyone know how to start a PHP application through Visual C++ or C++, I
can start it from Javascript, but now I need to start it from either Visual
C++ or C++, or I could possibly use Java
Thanks
Christine
--- End Message ---
--- Begin Message ---
I don't think you actually NEED anything fancy.
Just run it from the command line, surely?
> php -q filename.php
You can configure many good text editors to run commands like that. (TextPad
can do it for at start), so you can click on a menu item to run the command
instead of needing a DOS box, but ultimately, you're still just running a
command line command.
I wouldn't be surprised if Visual C++ can't do it at all.
(I can imagine that one day in the future there will be Micro$oft Visual
PHP, which is loosely based on PHP but completely incompatible with it).
Jill
-----Original Message-----
From: Christine Gonzalez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 1:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Visual C++ with PHP
Does anyone know how to start a PHP application through Visual C++ or C++, I
can start it from Javascript, but now I need to start it from either Visual
C++ or C++, or I could possibly use Java
Thanks
Christine
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
This actually is a little more complicated, javascript calls a function
thart is unbder php therefore it is starting php which is running under
apache, I need a way to start a function that can only be run by php, but
this needs to be started by an application written in Visual C++, it not
only needs to start php but needs to give it a name to the function and also
start
Instead of passing parameters, I need to call a function
Hope that makes sense
"Jill Ramonsky" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I don't think you actually NEED anything fancy.
> Just run it from the command line, surely?
>
> > php -q filename.php
>
> You can configure many good text editors to run commands like that.
(TextPad
> can do it for at start), so you can click on a menu item to run the
command
> instead of needing a DOS box, but ultimately, you're still just running a
> command line command.
>
> I wouldn't be surprised if Visual C++ can't do it at all.
>
> (I can imagine that one day in the future there will be Micro$oft Visual
> PHP, which is loosely based on PHP but completely incompatible with it).
>
> Jill
>
>
>
> -----Original Message-----
> From: Christine Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 18, 2003 1:27 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Visual C++ with PHP
>
>
> Does anyone know how to start a PHP application through Visual C++ or C++,
I
> can start it from Javascript, but now I need to start it from either
Visual
> C++ or C++, or I could possibly use Java
> Thanks
> Christine
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello,
I would be gratefull if someone could point me in the right direction. I have sent
hours trying to resolve
this and even had to reinstall my operating system - windows 2000.
I seem to followed all the instructions,in terms of moving the php.ini file to the
C:/winnt folder and
php4ts.dll file to the c:/winnt/system32 folder.
when I add LoadModule php4_module c:/php-4.3.0-win32/sapi/php4apache.php in the apache
configuration file and tried to start apache
I get this error message on starting apache " syntax error on line 173 of c:/ Program
File/Apache Group/Apache2/conf/
httpd.conf:
cannot load c:/php-4.3.0-win32/sapi/php4apache.php into serve: the specificied module
cannot be found."
but if the line c:/php-4.3.0-win32/sapi/php4apache.php is removed I am able to start
apache and connect to the local host
but unable to get my phpinfo.php script going. Please Help.
Regards
Moses
--- End Message ---
--- Begin Message ---
On Sun, 2003-02-16 at 18:24, Moses Johnson wrote:
> when I add LoadModule php4_module c:/php-4.3.0-win32/sapi/php4apache.php in the
>apache configuration file and tried to start apache
> I get this error message on starting apache " syntax error on line 173 of c:/
>Program File/Apache Group/Apache2/conf/
> httpd.conf:
> cannot load c:/php-4.3.0-win32/sapi/php4apache.php into serve: the specificied
>module cannot be found."
The file is called php4apache.dll, not .php
--
Best regards,
Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.capio.com
--- End Message ---
--- Begin Message ---
And for using with Apache 2, it must be:
php4apache2.dll
Cheers,
Luis Ferro
Teladigital.net
Per Lundberg wrote:
On Sun, 2003-02-16 at 18:24, Moses Johnson wrote:
when I add LoadModule php4_module c:/php-4.3.0-win32/sapi/php4apache.php in the apache configuration file and tried to start apache
I get this error message on starting apache " syntax error on line 173 of c:/ Program File/Apache Group/Apache2/conf/
httpd.conf:
cannot load c:/php-4.3.0-win32/sapi/php4apache.php into serve: the specificied module cannot be found."
The file is called php4apache.dll, not .php
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
You also need the file php4ts.dll in either the apache directory, the
windows root, or in the path directive...
chris kranz
fatcuban.com
-----Original Message-----
From: Luis Ferro [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 15:07
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Problems installation of Apache 2.0.44
And for using with Apache 2, it must be:
php4apache2.dll
Cheers,
Luis Ferro
Teladigital.net
Per Lundberg wrote:
>On Sun, 2003-02-16 at 18:24, Moses Johnson wrote:
>
>
>>when I add LoadModule php4_module
c:/php-4.3.0-win32/sapi/php4apache.php in the apache configuration file
and tried to start apache
>>I get this error message on starting apache " syntax error on line 173
of c:/ Program File/Apache Group/Apache2/conf/
>>httpd.conf:
>>cannot load c:/php-4.3.0-win32/sapi/php4apache.php into serve: the
specificied module cannot be found."
>>
>>
>
>The file is called php4apache.dll, not .php
>
>
>
---
[This E-mail scanned for viruses by Declude Virus]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I installed MySQL and was able to create one database. The next time i tried
to create a new database i tried to use a underscore (_) in the table name
and it came back with an error that mysql_query() was not a function of
mysql. I was able to change this by asigning the CREATE TABLE to $create the
next error i got was can not create table. Does anyone know why this is goin
on as it only happens when i do it via a php script but if i use php myadmin
or the program in mysql it works
thanks
Dean "The Insane Guy" Hayes
Mystical Web Designs
<-- I design and i redesign but still i never designed true beauty like you
-->
_________________________________________________________________
Hotmail now available on Australian mobile phones. Go to
http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp
--- End Message ---
--- Begin Message ---
Hello,
I would be gratefull if someone could point me in the right direction. I have sent
hours trying to resolve
this and even had to reinstall my operating system - windows 2000.
I seem to followed all the instructions,in terms of moving the php.ini file to the
C:/winnt folder and
php4ts.dll file to the c:/winnt/system32 folder.
when I add LoadModule php4_module c:/php-4.3.0-win32/sapi/php4apache.php in the apache
configuration file and tried to start apache
I get this error message on starting apache " syntax error on line 173 of c:/ Program
File/Apache Group/Apache2/conf/
httpd.conf:
cannot load c:/php-4.3.0-win32/sapi/php4apache.php into serve: the specificied module
cannot be found."
but if the line c:/php-4.3.0-win32/sapi/php4apache.php is removed I am able to start
apache and connect to the local host
but unable to get my phpinfo.php script going. Please Help.
Regards
Moses
--- End Message ---
--- Begin Message ---
Hello I'm wondering what is wrong whit my code. I´m trying to upload an
image but I keep getting
this error message??
Notice: Undefined index: NewsPicture in
C:\riddarinn\Process.php on line 17
This is my code :
<form name="New" action="Process.php" method="post">
...
<input type=file name="NewsPicture" size=43>
<input type=hidden name=MAX_FILE_SIZE value=10240>
<input type=Submit value=Skrá-frétt>
...
</form>
// my process site
...
if (move_uploaded_file($_FILES['NewsPicture']['tmp_name'], $udir .
$_FILES['NewsPicture']['name']))
...
THX
Palli
--- End Message ---
--- Begin Message ---
You need to write:
<form enctype="multipart/form-data" action="Process.php" method=post>
Matt
|-----Original Message-----
|From: Palli [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, February 18, 2003 3:21 PM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] Problem with file upload!!
|
|
|Hello I'm wondering what is wrong whit my code. I´m trying to
|upload an image but I keep getting this error message??
|
|Notice: Undefined index: NewsPicture in
|C:\riddarinn\Process.php on line 17
|
|This is my code :
|
|<form name="New" action="Process.php" method="post">
|...
|<input type=file name="NewsPicture" size=43>
|<input type=hidden name=MAX_FILE_SIZE value=10240>
|<input type=Submit value=Skrá-frétt>
|...
|</form>
|
|// my process site
|...
|if (move_uploaded_file($_FILES['NewsPicture']['tmp_name'], $udir .
|$_FILES['NewsPicture']['name']))
|...
|
|THX
|Palli
|
|
|
|
|
|--
|PHP Windows Mailing List (http://www.php.net/)
|To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|
--- End Message ---
--- Begin Message ---
Hello again!
now I get another error;
Warning: move_uploaded_file(/frettamyndir/fastfood.jpg)
[function.move-uploaded-file]: failed to create stream: No such file or
directory in C:\riddarinn\Process.php on line 16
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move
'C:\PHP\uploadtemp\php98.tmp' to '/frettamyndir/fastfood.jpg' in
C:\riddarinn\Process.php on line 16
Can anyone tell me what this means?
thx
Palli
"Matt Hillebrand" <[EMAIL PROTECTED]> wrote in message
002501c2d794$1541a330$0100a8c0@beast">news:002501c2d794$1541a330$0100a8c0@beast...
You need to write:
<form enctype="multipart/form-data" action="Process.php" method=post>
Matt
|-----Original Message-----
|From: Palli [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, February 18, 2003 3:21 PM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] Problem with file upload!!
|
|
|Hello I'm wondering what is wrong whit my code. I´m trying to
|upload an image but I keep getting this error message??
|
|Notice: Undefined index: NewsPicture in
|C:\riddarinn\Process.php on line 17
|
|This is my code :
|
|<form name="New" action="Process.php" method="post">
|...
|<input type=file name="NewsPicture" size=43>
|<input type=hidden name=MAX_FILE_SIZE value=10240>
|<input type=Submit value=Skrá-frétt>
|...
|</form>
|
|// my process site
|...
|if (move_uploaded_file($_FILES['NewsPicture']['tmp_name'], $udir .
|$_FILES['NewsPicture']['name']))
|...
|
|THX
|Palli
|
|
|
|
|
|--
|PHP Windows Mailing List (http://www.php.net/)
|To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|
--- End Message ---