Re: [PHP] PHP 5.2.5 installation
On Feb 12, 2008 9:55 AM, Yoshika Kehelpannala [EMAIL PROTECTED] wrote: I have downloaded and setup the Apachi web server and My SQL 5.0.51a prior to my PHP installation on the windows platform. As I have downloaded the PHP 5.2.5 version (msi) and installed it on my system, it gave some errors that says a lot of dll's and sort of files are missing. I checked how to install it on your site and found only the basic 5.xx is documented. Please help me on this. I have had the same problem. I figured I was stupid and forgot something (I'm used to pkg_add php5, not Windows installers). My sollution was to install WAMP server (http://www.wampserver.com/), lazy and effective. Floor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strtotime
On 2/10/08, Ron Piggott [EMAIL PROTECTED] wrote: I figured out what went wrong. Ron Care to share it with us? Floor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Source code protection
Is htere a way to secoure my code so when they put it on the server, they can't see it! Short answer: NO Long answer NO, but: There are some products that claim they protect your code, but they all basicly rely on security through obscurity. A principle that is often frowned upon by security experts. All those products make the code harder to read, but the code is still there becouse the server has to run it. It all comes down to these questions: How much do you trust your clients? How important is your code to you? If your code is some basic accounting database or something, just make it clear to your clients that they are not allowed to re-use the code (put a licence on top of each file). If you are ashamed of your crappy code, use something like PHP Encoder to hide this from your clients. It will probably hide all the curse word in your comments for example. If you really do use some hight tech, top secret NSA crypto code. Stop distributing your code. If someone can run your code, he/she can view, modify and copy your code. All you can do is make it harder, but if your code is valuable enough, someone will reverse engineer it. Floor Terra -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Printing Question
On Jan 26, 2008 1:03 PM, Peter Jackson [EMAIL PROTECTED] wrote: Whats the best way to do formatted printing via php? You could try PDFlib(). Draw your reports to landscape formated pdf's and print them. Oh and I'm aiming for a unix/windows outcome. pdf is platform independent. I hope this is what you meant. Floor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?
On Jan 25, 2008 7:42 PM, Per Jessen [EMAIL PROTECTED] wrote: Try pcntl_fork() to create a child process for each query. Each child can make it's own MySQL connection. Hmm, interesting idea. I wonder if that'll work under apache? You have to compile with --enable-pcntl to use it. P.S. If your queries take 30 second to complete I would suggest you do some sql optimizations or try to cache as much data as possible. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?
On Jan 25, 2008 6:52 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 25, 2008 12:45 PM, Jochem Maas [EMAIL PROTECTED] wrote: you'll end up forking a complete apache process - assuming mod_php. you don't want that alright, Jocheem, now its my turn for a stupid question. doesnt apache fork a different process on each php request anyway, if its complied w/ mpm-prefork? -nathan If all these apache/php processes are a problem, you could try a different setup: Write a SOAP (or silmilar) webservice in a language that does support proper threading. Now call your SOAP function from your php script to send the results to the browser. Floor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?
I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. Try pcntl_fork() to create a child process for each query. Each child can make it's own MySQL connection. Floor Terra -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] unpack() big endian signed long?
Hi, Is it possible to use unpack() to read a big endian signed long on a little endian machine? http://nl.php.net/pack refers to perl, on wich this function is based. The php function unpack() doesn't seem to support the and modifiers like perl does. Floor Terra
Re: [PHP] unpack() big endian signed long?
On Jan 23, 2008 9:57 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 23, 2008 3:38 PM, Floor Terra [EMAIL PROTECTED] wrote: Hi, Is it possible to use unpack() to read a big endian signed long on a little endian machine? http://nl.php.net/pack refers to perl, on wich this function is based. The php function unpack() doesn't seem to support the and modifiers like perl does. did you see this in the comments on that page? Yes. I guess I'm stuck with manual byte reversing. Someone at ##php on freenode.org told me it is possible, but didn't tell me how. It seems like an obvious feature. Thanks for your time. Floor Terra