[PHP] $_POST

2007-07-16 Thread Nathan Wallis
Hey,

Just wondering if anyone can help me out.  I have been used to using $_POST
but from what I can tell it isn't supported in PHP 5.  What do you use
instead?

Thanks,

Nahtna

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



[PHP] Running a server process

2007-08-10 Thread Nathan Wallis
Hi there,

 

I have a windows application the performs  a certain task that I need it to
perform.  I am in the process of developing my site and am really interested
in the functionality of the site at the moment and haven't set about putting
the details in place, so I am using the php function 

 

exec (start ... );

 

To run the process.

 

It works.

 

That is it works with just me using the site.  I am wondering how this would
effect performance if say 500 people were executing this php function around
the same time and the processing overlapped.  Is there anyway to make an
executable run as a service, I am guessing at the terminology that I should
use here, but I feel there would be a much more efficient way of performing
this task.

 

Any thoughts would be much appreciated.

 

Nathan



RE: [PHP] Running a server process

2007-08-11 Thread Nathan Wallis
Thanks for the info guys.

Sockets sound interesting.  Will check the out more.

I have played with sockets and flash before, but I will read up more.

From what you are saying I gather that 500 people with an open socket to the
program is a lot different to 500 people spawning their own process.

Thanks again,

Nathan


-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 11, 2007 10:10 AM
To: Nathan Wallis
Cc: php-general@lists.php.net
Subject: Re: [PHP] Running a server process

On Fri, August 10, 2007 6:26 am, Nathan Wallis wrote:
 I have a windows application the performs  a certain task that I need
 it to
 perform.  I am in the process of developing my site and am really
 interested
 in the functionality of the site at the moment and haven't set about
 putting
 the details in place, so I am using the php function

 exec (start ... );

 To run the process.

 It works.

 That is it works with just me using the site.  I am wondering how this
 would
 effect performance if say 500 people were executing this php function
 around
 the same time and the processing overlapped.

Don't wonder.

Run ab (Apache Benchmark) and find out.

Or use valgrind/callgrind to find out.

Or use wget to find out.

Or use that whack-a-mole benchmark or SuperSmack or whatever it is.

 Is there anyway to make
 an
 executable run as a service, I am guessing at the terminology that I
 should
 use here, but I feel there would be a much more efficient way of
 performing
 this task.

Any program can be run as a service (Un*x: daemon)

Writing that program to do something useful and, more so, efficient,
is a bit challenging.

Here's a sample talkback service that just spits out whatever you
put in:
http://php.net/sockets

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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

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



[PHP] Server Process

2007-08-13 Thread Nathan Wallis
Just a follow up to my post about running an application server side and the
introduction of sockets.

 

My application is really just to modify a series of images on the server and
combine them into a collage of images as a single file name.  So I just say
go and wait for it to build the final file, then it is done.

 

So in this case are sockets an advantage?  I really just want to start the
application and let it go, without transferring data back and forth between
PHP and the app.

 

Any more help would be great.

 

Cheers,

 

Nathan



[PHP] COM Objects

2007-08-14 Thread Nathan Wallis
I am having some trouble instantiating a COM object, it seems to crash my
web server every time I call the line.

 

$tve=new COM(TVE3COM.TVE);

 

I have downloaded a trial version of the Turbo Video Engine SDK and this was
a line I got from the php examples folder.  

 

Is anyone familiar with this SDK?  I ran the installer which I guess would
install the files in the correct location.  Or do I need to have the DLL's
in the same directory?

 

I am very new to all of this.

 

Thanks again,

 

Nathan



[PHP] amfphp

2007-09-03 Thread Nathan Wallis
Hey there,

 

I am running amfphp on my webserver locally and it works well when I use
localhost, so I change localhost to my computers local IP address which is
192.168.1.2 and then test it from another machine.  Nothing happens, the
remote procedure does not get called.

 

Any ideas on this?

 

Thanks,

 

Nathan



[PHP] Hi

2007-04-23 Thread Nathan Wallis
Hi guys and girls,

 

I have  question for you all. 

 

I have developed a flash application which is a test for students.  For each
test their is an accompanying excel spreadsheet that has information related
to each question they have answered and whether they got it right or wrong.
I am receiving whether the student got the question right or wrong in PHP
from FLASH.  That part is complete.  The other part I have complete is PHP
emailing the teacher with an attached excel spreadsheet renamed to the
studentsname_results.xlsthe last part I want to complete is that of the
students results being inputted into the correct column in the spreadsheet
and then being attached to the email.

 

I am guessing I would be best to not attach a physical file that resides on
the server but build the data up inside PHP to resemble the file format I am
trying to generate and attach that to my email.  

 

Two questions.

 

Can someone tell me the best format to be sending (i.e. the format that has
the best support for PHP)  and also is this method dependent on the web
server being windows or linux based.  I am no expert but from what I can
gather I take it that COM object support is really just for windows based
web servers.

 

Thanks and all the best,

 

Nathan



[PHP] Running processes in windows

2007-04-29 Thread Nathan Wallis
Howdy.

 

I have an application in windows that I am running with a PHP page using
exec  (start..

 

I am wondering as to the efficiency of such a statement and how taxing it is
on the server.  If multiple people access a page with such a statement, what
toll does it take on the server and is there a better way to manage calls to
the server side executable?  When this statement is called a command prompt
window appears for the duration of the execution.  I am guessing it would be
possible to crash the server if thousands of these processes we created at
around the same timejust anyone experience would be greatly appreciated.

 

Thanks.

 

Nathan