php-windows Digest 12 Feb 2005 13:37:09 -0000 Issue 2572

Topics (messages 25564 through 25569):

Re: system() on Windows 2003
        25564 by: Raul IONESCU

Re: Rolling my own PHP Classifieds CMS system..
        25565 by: michael

posting forms hangs php.exe
        25566 by: giulio

Re: SESSION
        25567 by: Vaibhav Sibal
        25568 by: Vaibhav Sibal

Outputting MS Word document
        25569 by: Dale Attree

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 shoud type system('cmd /c 'copy /b prnfile lpt4:', $result);
   in order to work.
 
   .I have a script that calls:
   . system('copy /b prnfile lpt4:', $result);
   .or:
   . system('type prnfile > lpt4', $result);
   .the result is '1' and it doesn't send it to lpt4.
   .I have tried:
   . system('type prnfile', $result);
   .the result of that is '0' and it puts all the info in the file on the
   .browser screen.
 
   .I have tried a number of commands in there it seems that the commands
   that
   .only require 'read' permissions work but when they need to 'write' to
   .something it fails.
 
   .I think that this is a permissions issue but I can't figure out where to
   set
   .what permission
 
   .Has anyone had any experiance making PHP talk directly to a LPT port? so
   I
   .an avoid this problem all togeather?
   .I tried to do that when I wrote this script but was unsuccessful. this
   same
   .script works on a 2000 box but with 2003's new security it causes a
   problem
 
   .anyone have any ideas?
 
   .anyone have any ideas?
 
   .--
   .PHP Windows Mailing List (http://www.php.net/)
   .To unsubscribe, visit: http://www.php.net/unsub.php
 
   .Publicitate:
   .---------------------------------------------------------------
   .Doar 3,999lei/absorbant?
   .http://www.always.ro/duoaction.html


Publicitate:
---------------------------------------------------------------
Doar 3,999lei/absorbant?
http://www.always.ro/duoaction.html

--- End Message ---
--- Begin Message --- What sort of ideas?

Technology / methodology?

One of the Wrox press books on ASP (I think it is beginning Active Server Pages 3.0) has a section on developing a classified ad system in ASP and Access, but you don't really want to use that unholy pair to develop anything, however it could give you some ideas. There are probably some Open Source ones available which you could modify to suit your needs or depending on your timeframe, you could build from the ground up, keeping it simple and adding to it as you go along. Your best bet is to use small classes if you choose this route. PHP and MySQL are your best bet.

Technically this is the wrong list for this type of question, but from a business perpective SitePoint is a good source of info (they have a business kit that you can download free chapters from which will help u on the biz side). Knowing where to start is the big one, but first pick the technologies and research other site that are already doing this and then try to do it better. Hope this helps a little.

Rgds,

Michael

Jim MacDiarmid writes:

Hi everyone, I'm kinda working on a limited budget and wondered if someone could offer
some tips, pointers, ideas toward my project. I'd like to write my own
Classified Ads content management system initially for free usage however I
would like to eventually use it as a commercial service. Anyone have any
thoughts on this? Many thanks in advance,
Jim


--- End Message ---
--- Begin Message ---
Hi,
I have this problem using this example:
<?
if ( isset( $_REQUEST['test']) ) {
  $ttt = $_REQUEST['test'];
} else {
?>
<form action=test.php method=post>
<textarea name=test></textarea>
<input type=submit>
</form>
<?
}
?>
I've found the same bug reported on php.net (#21660), it's the same
test.php.

but my PHP version is 4.3.10.
server is microsoft windows 2000.
IIS is version 5.
I use php as CGI.
I've tried many versions of php (4.3.11dev, 4.3.7, and 4.3.3 on this server)
anytime I've got the same problem on this server.
I don't have this problem on another server with php version 4.3.3... so the
problem I think it's on IIS.

The textarea posted hang php when it contains a text longer than 377
bytes.

Do I have to post other data to you so you can understand better?

I think the problem deals with POST forms (i've made another test with a
list of checkbox and when i check all the checkboxes the php.exe hangs, if i
check only a few checkbox anything works fine)

I've been searching for 2 days... and it seems an old bug... why it's on my
4.3.10 version?
I hope you can help me.
thank you very much.
giulio

--- End Message ---
--- Begin Message ---
Thanks Jason ! It'll be great if you could also tell me whether I can
launch applications like MS WORD using COM or any other technology.
Basically I want the user sitting on a client machine  to select a
file from a list and press the open button (which I will provide) and
the action linked to the open button should be that of opening the
file in the appropriate software . For eg. The user sitting on the
client side select a file image001.jpg and presses open, and it
automatically gets opened in Adobe photoshop. That kind of thing I am
talking about. The only thing to be taken in mind is that the client
does not have a PHP parser installed and is not running a webserver
either. The file list comes from the server only, which is actually
running  the webserver and the PHP parser also. ! Please provide some
insight on this.


On Thu, 10 Feb 2005 17:36:05 -0500, Jason Barnett
<[EMAIL PROTECTED]> wrote:
> Vaibhav Sibal wrote:
> > I wanted to ask, where is the Session information stored ? That is at
> > the server or on the client. Because I need to give the
> > session.save_path value in the php.ini. I would give it according to
> > people's reply of this question. Thank you.
> >
> > Vaibhav
> 
> session.save_path is located on the server.  Session data is stored on
> the server; typically the only thing that gets sent to the user is they
> will have a cookie written (wherever the web browser writes its cookies).
> 
> --
> Teach a man to fish...
> 
> NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
> STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
> STFM | http://www.php.net/manual/en/index.php
> STFW | http://www.google.com/search?q=php
> LAZY |
> http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
> 
> 
>

--- End Message ---
--- Begin Message ---
thanks for the quick reply, I will keep in mind from next  time that
its to be send to the group (though I did send to the group also !).
Anyways, I am very new to PHP (just about 3 days old) so I need to
know a lot!
I am actually new to a scripting language only !

Thanks once again 
vaibhav

On Fri, 11 Feb 2005 07:56:58 -0500, Jason Barnett
<[EMAIL PROTECTED]> wrote:
> Please send responses to the newsgroup.  I am usually happy to help you
> out, but I do need to keep things organized / slightly sane on my end :)
> 
> The short answer to your question below: yes you can use Word with PHP
> and depending on your needs this might happen on the server or you might
> just send a Word document to a browser with the correct mime-type.
> 
> Based on what you say in your message what you want to do is read the
> file's contents on the server side.  You don't even need to open Word to
> do this.  Then when you get the file contents you can send the MIME
> header and the content of the file to the browser.  Note that this
> doesn't *force* the user to open the file through Adobe etc. but it
> gives the browser an idea of what to do with the file and gives the user
> that option.
> 
> Oh, and be careful which files you decide to make public and be
> *especially* careful which files you allow people to edit and put on the
> server.  You probably already know that, but it doesn't hurt to be
> reminded from time to time :)
> 
> 
> -------- Original Message --------
> Subject: Re: [PHP-WIN] Re: SESSION
> Date: Fri, 11 Feb 2005 11:43:24 +0530
> From: Vaibhav Sibal <[EMAIL PROTECTED]>
> Reply-To: Vaibhav Sibal <[EMAIL PROTECTED]>
> To: php <[email protected]>, Jason Barnett
> <[EMAIL PROTECTED]>
> References: <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]>
> 
> Thanks Jason ! It'll be great if you could also tell me whether I can
> launch applications like MS WORD using COM or any other technology.
> Basically I want the user sitting on a client machine  to select a
> file from a list and press the open button (which I will provide) and
> the action linked to the open button should be that of opening the
> file in the appropriate software . For eg. The user sitting on the
> client side select a file image001.jpg and presses open, and it
> automatically gets opened in Adobe photoshop. That kind of thing I am
> talking about. The only thing to be taken in mind is that the client
> does not have a PHP parser installed and is not running a webserver
> either. The file list comes from the server only, which is actually
> running  the webserver and the PHP parser also. ! Please provide some
> insight on this.
> 
> On Thu, 10 Feb 2005 17:36:05 -0500, Jason Barnett
> <[EMAIL PROTECTED]> wrote:
> 
>  > Vaibhav Sibal wrote:
>  > > I wanted to ask, where is the Session information stored ? That is at
>  > > the server or on the client. Because I need to give the
>  > > session.save_path value in the php.ini. I would give it according to
>  > > people's reply of this question. Thank you.
>  > >
>  > > Vaibhav
>  >
>  > session.save_path is located on the server.  Session data is stored on
>  > the server; typically the only thing that gets sent to the user is they
>  > will have a cookie written (wherever the web browser writes its cookies).
>  >
> 
> --
> Teach a man to fish...
> 
> NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
> STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
> STFM | http://www.php.net/manual/en/index.php
> STFW | http://www.google.com/search?q=php
> LAZY |
> http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
> 
> 
>

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

I have saved the content of an uploaded MS Word document into a database
table.

Now I would like to output the content without recreating the file on the
harddrive.

I believe I will have to use header("application/[what do i put here]").

Any ideas?

Kind Regards,
Dale

--- End Message ---

Reply via email to