php-general Digest 16 Nov 2009 14:49:45 -0000 Issue 6445

Topics (messages 299859 through 299868):

Re: Lightweight web server for Windows?
        299859 by: Jonathan Tapicer
        299860 by: Manuel Lemos

Re: mail mimedecode with multiple mails in one mbox file
        299861 by: Per Jessen

Re: fread() memory problems
        299862 by: Peter Ford

Re: File To Blob Corruption
        299863 by: tedd
        299864 by: tedd
        299867 by: Bastien Koert

Re: Shoutbox suggestion needed
        299865 by: tedd
        299866 by: Cemal Eker
        299868 by: Ashley Sheridan

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Try nginx (http://nginx.net/), very light, has a Windows binary
distribution and can be configured easily for PHP.

You can also find some version of Lighttpd compiled for Windows and
skip the compilation troubles, and you can use this:
http://sites.google.com/site/lightytray/ to control the webserver.

Both of them are lighter than Apache.

Good luck,

Jonathan

On Sun, Nov 15, 2009 at 6:00 PM, O. Lavell <olav...@xs4all.nl> wrote:
> What do people on this list use as an ultra-lightweight web server (with
> PHP capability of course) on Windows? I have an old but still well
> functioning laptop that I have just given a second life by installing
> Windows Fundamentals (a stripped down version of XP). This works
> surprisingly well. So now I am looking for the necessary software, so I
> can do some local programming.
>
> Some requirements I can think of:
>
> - Extremely small memory footprint and fast efficient code. This laptop
>  still works well but it can certainly use some help!
> - Both free as in beer and free as in speech would be my preference.
> - Be able to run as a "service" in XP.
> - Be able to run PHP (obviously) and perhaps a few other nice server
>  features, like SSI and name based virtual hosts.
>
> Any suggestions? I have not seriously used Windows for years now, so my
> knowledge of that platform is not exactly up to date anymore. I am used
> to dealing with Debian/Ubuntu Linux and Apache but not much else,
> frankly. Apache does seem to heavy for this. My initial thought was to
> install Lighttpd under Cygwin, but perhaps I would be missing out on some
> great little server program that I have not yet heard about.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

on 11/15/2009 07:00 PM O. Lavell said the following:
> What do people on this list use as an ultra-lightweight web server (with 
> PHP capability of course) on Windows? I have an old but still well 
> functioning laptop that I have just given a second life by installing 
> Windows Fundamentals (a stripped down version of XP). This works 
> surprisingly well. So now I am looking for the necessary software, so I 
> can do some local programming.
> 
> Some requirements I can think of:
> 
> - Extremely small memory footprint and fast efficient code. This laptop
>   still works well but it can certainly use some help!
> - Both free as in beer and free as in speech would be my preference.
> - Be able to run as a "service" in XP.
> - Be able to run PHP (obviously) and perhaps a few other nice server
>   features, like SSI and name based virtual hosts.
> 
> Any suggestions? I have not seriously used Windows for years now, so my 
> knowledge of that platform is not exactly up to date anymore. I am used 
> to dealing with Debian/Ubuntu Linux and Apache but not much else, 
> frankly. Apache does seem to heavy for this. My initial thought was to 
> install Lighttpd under Cygwin, but perhaps I would be missing out on some 
> great little server program that I have not yet heard about.

I use lighttpd on Linux, but there seems to exist a Windows version as well:

http://www.lighttpd.net/

I have written about using it with PHP here:

http://www.phpclasses.org/blog/post/69-13-rules-to-optimize-your-Web-site-performance.html


-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:

> On Sun, 2009-11-15 at 20:54 +0100, Per Jessen wrote:
> 
>> Ashley Sheridan wrote:
>> 
>> > Hi all,
>> > 
>> > I'm having a bit of difficulty seeing my way through this. I think
>> > I'm on the right path with mimeDecode, but I can't get it to read
>> > all of the emails in an mbox file which contains 100 emails; it
>> > only reads the first.
>> > 
>> > I've looked over the docs on pear.php.net, but can't seem to find
>> > any way to get the other 99 emails out!
>> > 
>> > Does anyone know of any way to do this,
>> 
>> Look up "formail -s"
>> 
>> 
>> /Per
>> 
>> --
>> Per Jessen, Zürich (9.0°C)
>> 
>> 
> 
> 
> Thanks, that's got me going in the right direction! There just seems
> to be no end to what you can do on a Linux console does there?!

Suggestions to the contrary would be heresy. :-[

formail has helped me a number of times when dealing with a mailbox
file, I'm pretty certain it'll do what you want.


/Per


-- 
Per Jessen, Zürich (10.1°C)


--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
Ashley Sheridan wrote:
> I was just wondering why fread() seems to use so much memory when
> reading in a file. My php.ini has a script memory limit of 32MB, yet PHP
> hits its memory limit on a 19MB mbox file that I'm reading in. How is it
> possible that this function can use 150% of a files' size in memory?!
> 
> 
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
> 
> 
> 

Is it possible that the file is 8-bit characters and your PHP implementation is
converting it to 16-bit characters?
I'm not sure what settings would be involved for that, but no-one else has
responded so I thought a vague idea might be better than nothing!

-- 
Peter Ford                              phone: 01580 893333
Developer                               fax:   01580 893399
Justcroft International Ltd., Staplehurst, Kent

--- End Message ---
--- Begin Message ---
At 10:17 AM +0000 11/15/09, Ashley Sheridan wrote:

Like someone mentioned on the link you posted; storing the images in the
database does offer a layer of security, as database access is far
easier to control than file access.

Thanks,
Ash
http://www.ashleysheridan.co.uk

It also offers ease of moving, You don't have to move both database and file system to a different server, just the database. Additionally, the file paths are always correct -- just reference the database. So, there are upsides to storing images in a database.

I haven't read a single MySQL/PHP book (dozens) that claims storing images in a database is a bad idea.

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
At 10:14 PM +0100 11/15/09, Nisse =?utf-8?Q?Engstr=C3=B6m?= wrote:

* Run a hex dump on the images before and after upload.
  What is the difference?

/Nisse

That's the best idea.

That way you know how the file has been changed.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
On Mon, Nov 16, 2009 at 8:05 AM, tedd <tedd.sperl...@gmail.com> wrote:
> At 10:17 AM +0000 11/15/09, Ashley Sheridan wrote:
>>
>> Like someone mentioned on the link you posted; storing the images in the
>> database does offer a layer of security, as database access is far
>> easier to control than file access.
>>
>> Thanks,
>> Ash
>> http://www.ashleysheridan.co.uk
>
> It also offers ease of moving, You don't have to move both database and file
> system to a different server, just the database. Additionally, the file
> paths are always correct -- just reference the database. So, there are
> upsides to storing images in a database.
>
> I haven't read a single MySQL/PHP book (dozens) that claims storing images
> in a database is a bad idea.
>
> Cheers,
>
> tedd
> --
> -------
> http://sperling.com  http://ancientstones.com  http://earthstones.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Well, I can tell you that mysql really starts to have issues when the
image table gets up to around 12Gb in size. And if you look at larger
DBs like oracle the like, internally they store a pointer in the table
and the image elsewhere.

-- 

Bastien

Cat, the other other white meat

--- End Message ---
--- Begin Message ---
At 1:12 PM +0200 11/15/09, Cemal Eker wrote:
Hello,

I just want to implement a shoutbox script for an e-learning application.
Searched Google for possible solutions but I just want to know what other
developers use.

AJAX and GPL is a must.


Forgive me, but I don't know what a "shoutbox" is?

As for an online exam that uses ajax, does this work?

http://webbytedd.com/b/exam/

If so, you are free to use anything you find there under GPL.

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Thanks for your response, but shoutbox isn't a online exam system. Shoutbox
is a chat-like feature that generally work with ajax. Where you can post
quick messages to website. We'll use it for a quick communication with admin
of system.

Here's what wiki says about Shoutbox http://en.wikipedia.org/wiki/Shoutbox.
---
“Talk is cheap. Show me the code” - Linus Torvalds



On Mon, Nov 16, 2009 at 3:16 PM, tedd <tedd.sperl...@gmail.com> wrote:

> At 1:12 PM +0200 11/15/09, Cemal Eker wrote:
>
>> Hello,
>>
>> I just want to implement a shoutbox script for an e-learning application.
>> Searched Google for possible solutions but I just want to know what other
>> developers use.
>>
>> AJAX and GPL is a must.
>>
>
>
> Forgive me, but I don't know what a "shoutbox" is?
>
> As for an online exam that uses ajax, does this work?
>
> http://webbytedd.com/b/exam/
>
> If so, you are free to use anything you find there under GPL.
>
> Cheers,
>
> tedd
> --
> -------
> http://sperling.com  http://ancientstones.com  http://earthstones.com
>

--- End Message ---
--- Begin Message ---
On Mon, 2009-11-16 at 16:00 +0200, Cemal Eker wrote:

> Thanks for your response, but shoutbox isn't a online exam system. Shoutbox
> is a chat-like feature that generally work with ajax. Where you can post
> quick messages to website. We'll use it for a quick communication with admin
> of system.
> 
> Here's what wiki says about Shoutbox http://en.wikipedia.org/wiki/Shoutbox.
> ---
> “Talk is cheap. Show me the code” - Linus Torvalds
> 
> 
> 
> On Mon, Nov 16, 2009 at 3:16 PM, tedd <tedd.sperl...@gmail.com> wrote:
> 
> > At 1:12 PM +0200 11/15/09, Cemal Eker wrote:
> >
> >> Hello,
> >>
> >> I just want to implement a shoutbox script for an e-learning application.
> >> Searched Google for possible solutions but I just want to know what other
> >> developers use.
> >>
> >> AJAX and GPL is a must.
> >>
> >
> >
> > Forgive me, but I don't know what a "shoutbox" is?
> >
> > As for an online exam that uses ajax, does this work?
> >
> > http://webbytedd.com/b/exam/
> >
> > If so, you are free to use anything you find there under GPL.
> >
> > Cheers,
> >
> > tedd
> > --
> > -------
> > http://sperling.com  http://ancientstones.com  http://earthstones.com
> >


I don't know of anything you can use like this, especially that runs
purely on Ajax. Just take a look at Facebook chat. That's Ajax, and
fails and falls over on a constant basis to the point where it is almost
useless. Imho, Java seems to be pretty good at this sort of thing, and
there are plenty of free options out there that you could use.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--- End Message ---

Reply via email to