[PHP] large file transfers

2006-03-09 Thread Christopher Taylor
Has anyone seen a script or class that can handle file uploads of large
files (greater than 20 meg)?  Any direction as to where to look would be
appreciated.

Chris


[PHP] Php Setup Question

2006-03-01 Thread Christopher Taylor
I am trying to setup a webserver for testing at home.  I can execute php
scripts fine, but I cannot include local files like include (test.php).  The
page comes up with a permission denied.  The url is
http://mojo.hst-percussion.com/index.php.  The phpinfo is
http://mojo.hst-percussion.com/test.php.  Can someone point me a direction
to look?  Thanks.

Chris Taylor


Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Christopher Taylor
I am not as familiar with php as I am c++ but I wonder if you need to 
pass by reference?  Does this make sense in the context of php?


One other thing I would try is setting $temp = $_Post and then passing 
$temp.


Chris

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



Re: [PHP] The Big Date and Time Debacle

2006-02-07 Thread Christopher Taylor

Stephen Martindale wrote:
I am having great difficulty understanding dates and times with PHP and 
MySql.


As far as I understand them, the PHP date and time construct is timezone 
and DST aware, but MySql's DATETIME and TIMESTAMP fields are not. I 
believe that this is where my confusion originates from.


After searching the web and the docs for hours, I have not managed to 
find an article that explains how this system works and what the best 
practices are for an application that may be used in many timezones, 
some with DST and some without.


Please point me in the direction of a good source on this subject. I am 
new to PHP, coming from a several-year-long period of C++ and, recently, 
ASP.NET. (Ok, I admit it, I only started using PHP a week ago!)


BTW: I've loved every minute of it! PHP Rocks!



Stephen,

I don't know what is considered standard, but for the apps that I have 
worked on, including php and c++, timestamps are always stored in GMT 
and presented in the local timezone.  In the case of the database, the 
timestamp is GMT and another field is used to store the timezone offset. 
 The timezone offset changes in regards to DST.  For example NYC is -5 
hours part of the year and -4 hours.  Hope this helps.


Chris

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



[PHP] Making Php Libraries

2006-02-06 Thread Christopher Taylor
I am new to this list so forgive me if this has already been addressed. 
What I would like to do is keep a library of php scripts on my site.  I 
would like customer sites to call the functions in my library, but have 
their server do the work.  I would like to keep the proprietary code off 
of their site.  I have been able to do this by changing the extension of 
the library file from php to inc.  Unfortunately, this also makes the 
library file readable if the user puts the url for the file into the 
browser.  Thanks.


Chris Taylor

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



Re: [PHP] Making Php Libraries

2006-02-06 Thread Christopher Taylor

Jochem Maas wrote:

search for 'php encoder' and use one (some cost money).
I believe that the php encoder keeps the syntax but changes the variable 
names to make it less readable.  I am not sure if this is enough.


changing an file extension from 'php' to 'inc' does nothing to protect your
code in way what so ever - given that you think it does I am left wondering
what the value of your proprietary code could be? is it really so great 
that

it is worth the time/hassle/cost of encoding? You might consider merely
signing an agreement with your customers that they are not entitled to
browse, copy, reuse on other domains, etc - and be happy if they pay the 
bill ;-)
I only changed the file extension as an experiment.  I understand that 
the changing of the file extension does nothing for security, but it 
does allow the functions residing on my site to be read and executed on 
the client's server.


I'm not suggesting what you offer/make is rubbish but merely that
you may be making a mountain out of a practical molehill in terms of the 
security

requirement you saeem to be setting yourself.


Some of the scripts involve some sophisticated encryption/decryption for 
credit cards.  One customer had similar code and the chose to manage the 
site themselves.  There were some security issues that arose from them 
giving ftp access to to the site to just about anyone.  I am looking to 
prevent this sort of thing from occurring again.  I will research the 
encode further and see if I have misunderstood its function.


Chris

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



Re: [PHP] Re: Making Php Libraries

2006-02-06 Thread Christopher Taylor

Oliver Grätz wrote:

All attempts at shutting of access to the code is bound to fail. PHP is
an interpreted anguage. If the script on the other server can read your
code then the programmer of that script can also read your sourcecode.
So, what to do?

You could use some of the encoders. Using these tools the other people
can still read the code but they'll find it too ugly to invest the work
trying to understand it. But nothing keeps them from not even trying to
understand it but just stealing it and using it as is. Nothing won.

Then there's something from Zend that encodes your file so that it CAN'T
be read as source code. A normal server can't even execute it. Your
users will have to install some runtime module. The encoder isn't free,
the runtime is. This stuff even allows for expiring licenses if I recall
correctly. So you could give the code to your users and still you won't
loose control over it.

Finally: Why give users access to your code? Why don't you just let them
use it in a specified way? Donig so is called defining a PROTOCOL. give
your users exact specifications of what they may call and what they'll
get back. There are even big enterprise-oh-my-god-complicated solutions
for calling code remotely, with SOAP and the .NET web services being the
most prominent ones. There's SOAP support in PHP so you might want to
snoop at that.

OK, gotta sleep ;-)

OLLi



Thanks for the help from everyone on the list.  I have a lot to 
consider.  I will look into some of the encoders and possibly some of 
the SOAP services.  Another option I am working on is to keep the 
scripts and data on my server.  There may end up being some bandwidth 
issues, but I will have to see.  This could be another alternative. 
Time for more research. :)


Chris

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