php-windows Digest 30 Aug 2002 03:15:22 -0000 Issue 1314

Topics (messages 15584 through 15594):

Re: PHP Command Line Syntax
        15584 by: Svensson, B.A.T. (HKG)

Porting from IIS and VBS to Apache and PHP
        15585 by: Svensson, B.A.T. (HKG)

Re: PHP/MySQL/APache on CD
        15586 by: Svensson, B.A.T. (HKG)
        15587 by: Asendorf, John
        15588 by: Luis Ferro

use MS publisher COM object
        15589 by: Jeroen Hendriks

PHP / MySQL Guestbook
        15590 by: Andreas Esser
        15591 by: dash php
        15592 by: Afan Pasalic

Re: skipping quotes...
        15593 by: Mike Tsapenko

.htaccess protection / php
        15594 by: Andreas Esser

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 ---
CRON are you refering to crontab on unix boxes?
If so the equal process program name is called
AT.exe on windows (NT) boxes:

The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\\computername] time [/INTERACTIVE]
    [ /EVERY:date[,...] | /NEXT:date[,...]] "command"

\\computername     Specifies a remote computer. Commands are scheduled on the
                   local computer if this parameter is omitted.
id                 Is an identification number assigned to a scheduled
                   command.
/delete            Cancels a scheduled command. If id is omitted, all the
                   scheduled commands on the computer are canceled.
/yes               Used with cancel all jobs command when no further
                   confirmation is desired.
time               Specifies the time when command is to run.
/interactive       Allows the job to interact with the desktop of the user
                   who is logged on at the time the job runs.
/every:date[,...]  Runs the command on each specified day(s) of the week or
                   month. If date is omitted, the current day of the month
                   is assumed.
/next:date[,...]   Runs the specified command on the next occurrence of the
                   day (for example, next Thursday).  If date is omitted, the
                   current day of the month is assumed.
"command"          Is the Windows NT command, or batch program to be run.


> -----Original Message-----
> From: Advanced [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 28, 2002 9:59 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: PHP Command Line Syntax
> 
> 
> CRON
> 
> "Scott Dowd" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I would like to schedule a series of PHP pages to run overnight from a
> > Win2k/IIS/PHP4 box. An example of the url is
> > http://localhost/checklist/checksingle.php?servername=SERVERNAME. When I
> try
> > to execute this from a DOS prompt, "C:\PHP\PHP.EXE -q checksingle.php" it
> > works fine, but when I add "?servername=SERVERNAME" as in the url, it does
> > not recognize the command.
> >
> > "PHP Fatal error:  Unable to open checksingle.php?servername=SERVERNAME in
> > Unknow
> > n on line 0"
> >
> > Is this the best way to schedule a PHP page to run ?
> >
> > Thanks,
> > Scott.
> >
> >
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
Hi guys,

I will probably in a short period of time start to port a site with some few
scripts written in VBS on an IIS. The port might be targeted to an Apache
server with php. For uploading files, ASPUpload is used, and the scripts
are communicating with and MS SQL server with AODBC.

In addition queries are performed to a main entry point in the database API,
and the database and webserver is merely passing messages between each other,
that is the script at the web server side is just passing a logical message
to the database, and the database respond to the type of message and then
returns with an answer which is just simply forwarded to the client by the
web server.

The target Apache server is already configured and up and running on a Linux
or SGI cluster since many years, however I don't know weather they already
uses php, but I don't think so.

Now to the question: what experience do you guys have with this kinds of ports,
and what would be the most likely pitfall to run into while doing this?
--- End Message ---
--- Begin Message ---
> I thought a couple of weeks ago I saw someone working on a PHP/MySQL/Apache
> (all running from a CD) on here.  Does anyone remember who that was?

Running an RDBMS on a CD-ROM? An interesting and original concept.

Is this some kind of special purpose hard coded embedded read only
system (like a telephone catalogue or encyclopedia), or does data
(and meta data) resides on ordinary hard drives somewhere being
resolved by hard coded "pointers" on the CD-ROM?
--- End Message ---
--- Begin Message ---
Oh, I should have replied to my own message... I found the guy.  It was
actually on the MySQL mail list.  It uses scratch directories on the hard
drive but all three of the executeables run from the CD.  I'm waiting for
him to get back to me.

John

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit


> -----Original Message-----
> From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 29, 2002 10:02 AM
> To: Asendorf, John
> Cc: Php Win32 list
> Subject: RE: [PHP-WIN] PHP/MySQL/APache on CD
> 
> 
> > I thought a couple of weeks ago I saw someone working on a 
> PHP/MySQL/Apache
> > (all running from a CD) on here.  Does anyone remember who that was?
> 
> Running an RDBMS on a CD-ROM? An interesting and original concept.
> 
> Is this some kind of special purpose hard coded embedded read only
> system (like a telephone catalogue or encyclopedia), or does data
> (and meta data) resides on ordinary hard drives somewhere being
> resolved by hard coded "pointers" on the CD-ROM?
> 
--- End Message ---
--- Begin Message ---
Please,

Post/repost on the mailling list (or send a copy to me) as i'm also 
interested on how to assemble a solution like that...

Thanx in advance,
Luis Ferro

Asendorf, John wrote:

>Oh, I should have replied to my own message... I found the guy.  It was
>actually on the MySQL mail list.  It uses scratch directories on the hard
>drive but all three of the executeables run from the CD.  I'm waiting for
>him to get back to me.
>
>John
>
>---------------------
>John Asendorf - [EMAIL PROTECTED]
>Web Applications Developer
>http://www.lcounty.com - NEW FEATURES ADDED DAILY!
>Licking County, Ohio, USA
>740-349-3631
>Nullum magnum ingenium sine mixtura dementiae fuit
>
>
>  
>
>>-----Original Message-----
>>From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, August 29, 2002 10:02 AM
>>To: Asendorf, John
>>Cc: Php Win32 list
>>Subject: RE: [PHP-WIN] PHP/MySQL/APache on CD
>>
>>
>>    
>>
>>>I thought a couple of weeks ago I saw someone working on a 
>>>      
>>>
>>PHP/MySQL/Apache
>>    
>>
>>>(all running from a CD) on here.  Does anyone remember who that was?
>>>      
>>>
>>Running an RDBMS on a CD-ROM? An interesting and original concept.
>>
>>Is this some kind of special purpose hard coded embedded read only
>>system (like a telephone catalogue or encyclopedia), or does data
>>(and meta data) resides on ordinary hard drives somewhere being
>>resolved by hard coded "pointers" on the CD-ROM?
>>
>>    
>>
>
>  
>



---
[This E-mail scanned for viruses by Declude Virus]

--- End Message ---
--- Begin Message ---
Hello,

Does anyone know how I can get the properties (File / Properties) from a
Microsoft Publisher file by using it's COM-objects?

And I want to save a Microsoft Publisher document as a text-document (.txt)
by using it's COM-objects. I only can save it as a rtf-document.

I have already got this code working:

$instance = new com("publisher.application");
$instance->Open("C:\\xxx.pub");
$instance->ActiveWindow->Visible = 0;
$instance->ActiveDocument->SaveAs("C:\\test.txt", 6, 0); // dont work...
$instance->ActiveDocument->Close();
$instance->Quit();
$instance->Release();
$instance = null;

Thanks!


--- End Message ---
--- Begin Message ---
hi,

i have written a php guestbook using a mysql database to store and recall
the entries that where typed in by the visitor.

there is a formular with several fields like "name", "email" and "message".

here´s the problem:

the visitor types some message into the message field, i.e.:

" hello,

how are you today?

yours michael "

the typed message should now be written into the database and when the
visitor click on the button "see all entries" the message should be
displayed exactly the same than typed in.

it works, except the wordwrap. i´ve edited my <form> - tag and added the
expression " wrap=physical ". but this doesn´t work.

how can i manage that the wordwrap information is displayed correctly in my
database request??


i hope that some of you guys can help me with this


greetz

andreas




--- End Message ---
--- Begin Message ---
It is probably storing the data like that, but the display page isn't
displaying it like that. You'll need either to nl2br() it or put <pre></pre>
tags around it.

You can check the page source and see if it looks like that. Either of the
above solutions should work.

-Dash

-----Original Message-----
From: Andreas Esser [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 29, 2002 10:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP / MySQL Guestbook


hi,

i have written a php guestbook using a mysql database to store and recall
the entries that where typed in by the visitor.

there is a formular with several fields like "name", "email" and "message".

here´s the problem:

the visitor types some message into the message field, i.e.:

" hello,

how are you today?

yours michael "

the typed message should now be written into the database and when the
visitor click on the button "see all entries" the message should be
displayed exactly the same than typed in.

it works, except the wordwrap. i´ve edited my <form> - tag and added the
expression " wrap=physical ". but this doesn´t work.

how can i manage that the wordwrap information is displayed correctly in my
database request??


i hope that some of you guys can help me with this


greetz

andreas





-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
try this way:


$db = mysql_connect($host, $user, $passwd);
mysql_select_db($dbName, $db);
$result = mysql_query("select * from gueastbook", $db);
while($myrow = mysql_fetch_array($result))
{
    echo nl2br($myrow[message]);
}






----- Original Message ----- 
From: Andreas Esser 
To: [EMAIL PROTECTED] 
Sent: Thursday, August 29, 2002 1:51 PM
Subject: [PHP-WIN] PHP / MySQL Guestbook


hi,

i have written a php guestbook using a mysql database to store and recall
the entries that where typed in by the visitor.

there is a formular with several fields like "name", "email" and "message".

here´s the problem:

the visitor types some message into the message field, i.e.:

" hello,

how are you today?

yours michael "

the typed message should now be written into the database and when the
visitor click on the button "see all entries" the message should be
displayed exactly the same than typed in.

it works, except the wordwrap. i´ve edited my <form> - tag and added the
expression " wrap=physical ". but this doesn´t work.

how can i manage that the wordwrap information is displayed correctly in my
database request??


i hope that some of you guys can help me with this


greetz

andreas





-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Hello, Afan.

The you have to replace each (") symbol with (&quot;). But better use
htmlspecialchars function.
In your case this would be

echo "<input type=text name=\"EditCopy\" value=\"".
htmlspecialchars($myrow[copy]). "\">"

--
============
Mike Tsapenko
Chief of Web-development Dept.
AlarIT
http://www.AlarIT.com


"Afan Pasalic" <[EMAIL PROTECTED]> ???????/???????? ? ???????? ?????????:
00bc01c24e0f$78bcf2c0$311f49d1@VAIO">news:00bc01c24e0f$78bcf2c0$311f49d1@VAIO...
Hi,

My information from database: We've got "the beat" I'm trying to edit using
form:
<input type=text name=\"EditCopy\" value=\"$myrow[copy]\">
but in form is shown just We've got. Nothing after first quote.

The quote in front of 'the' screwed everything.

How can I have a whole content, with quotes in form field?

Thanks for any help.

Afan



--- End Message ---
--- Begin Message ---
hi,

i have written a php script, that automatically creates an user directory, a
.htaccess and an index.php file in this user dir.

the file, where the username and the password is stored, will also be
created automatically.

now the problem:

i am using the php " md5( ) " function to encrypt the password. so, when i
want to access to the new user "index.php" the password pop-up window
appears and i type in the username and password, but i can´t access the user
file.

can someone tell me what´s the problem?? why doesn´t it work??

thanx for help

greetz

andreas


--- End Message ---

Reply via email to