php-general Digest 9 Sep 2007 05:40:05 -0000 Issue 5008

2007-09-08 Thread php-general-digest-help

php-general Digest 9 Sep 2007 05:40:05 - Issue 5008

Topics (messages 261838 through 261863):

Re: Reg.Photo Upload Tool
261838 by: Børge Holen

Image Conversion...
261839 by: Tony Di Croce
261844 by: cajb
261853 by: Kevin Waterson

Re: LAMP Server setup help
261840 by: Randy Patterson
261841 by: Børge Holen
261842 by: Børge Holen

Re: Image Conversion... OT!
261843 by: Børge Holen
261845 by: Vidyut Luther
261846 by: Børge Holen
261847 by: Vidyut Luther

Can't execute PHP script
261848 by: Randy Patterson
261849 by: Børge Holen
261850 by: brian

Buxa Coding Guidelines
261851 by: magoo
261855 by: tedd
261856 by: Kevin Waterson
261860 by: Greg Donald
261862 by: mike

Re: html2png
261852 by: Kevin Waterson

pdo_mysql segfault error
261854 by: Slith

Re: Converting PHP code to C#?
261857 by: Symbian
261861 by: mike
261863 by: Symbian

Pack function in C#
261858 by: Symbian

zlib.inflate vs. gzopen/fread
261859 by: Gregory Beaver

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 ---
On Friday 07 September 2007 12:07, Ramesh.b wrote:
> Thanks Jay,
>
> I want a client side tool , something similar to Yahoo photos or flickr,
> where it will shrink the size of the image and upload.

You'd be better of makin' one yerself. Last time I got some questions about 
fileuploads and checked out yahoo for a friend, maby I don't remember 
correctly but didn't I actually see flash as a frontend.
Who would want such a thing. None've us with a ppc-arch anyhow

>
> Thanks
> Ramesh
> ""Jay Blanchard"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> [snip]
> Any opensource or PHP applicaiton is available for Photo upload tool?.
> [/snip]
>
> Easy to do yourself
> http://us2.php.net/manual/en/features.file-upload.php
--- End Message ---
--- Begin Message ---
I need to convert (resize, and store as blob's in a mysql db) images my
users can upload. I'm wondering what the best conversion tool is... I'm
considering ImageMagick... Is this the best?

Is their anything that is integrated with PHP itself?

  td
--- End Message ---
--- Begin Message ---
On 9/8/07, Tony Di Croce <[EMAIL PROTECTED]> wrote:
> I need to convert (resize, and store as blob's in a mysql db) images

avoid that for no further problems.

> ImageMagick

you can use this tool for your needs.


-- 
Romanul s-a nascut poet. Trebuia sa se nasca neamt!
--- End Message ---
--- Begin Message ---
This one time, at band camp, "Tony Di Croce" <[EMAIL PROTECTED]> wrote:

> I need to convert (resize, and store as blob's in a mysql db) images my
> users can upload. I'm wondering what the best conversion tool is... I'm
> considering ImageMagick... Is this the best?
> 
> Is their anything that is integrated with PHP itself?
> 
>   td
> 

http://phpro.org/tutorials/Storing-Images-in-MySQL-with-PHP.html


-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."
--- End Message ---
--- Begin Message ---
On Saturday 08 September 2007 12:20, Børge Holen wrote:
> On Saturday 08 September 2007 10:07, Randy Patterson wrote:
> > Hey,
> >
> > I have setup a test system on my home network in the past to develop &
> > test PHP apps by installing an ISAPI PHP dll in IIS. It worked great but
> > now I trying to setup a LAMP server on Debian/Lenny. I ran the following
> > command;
> >
> > aptitude install apache2 php5 libapache2-mod-php5
> >
> > But got the following error message;
> >
> > Setting up apache2-mpm-prefork (2.2.4-3) ...
> > Starting web server: apache2apache2: Syntax error on line 187
> > of /etc/apache2/apache2.conf: Syntax error on line 3
> > of /etc/apache2/httpd.conf: Cannot load /etc/apache2/modules/libphp5.so
> > into server: /etc/apache2/modules/libphp5.so: cannot open shared object
> > file: No such file or directory
> >  failed!
> > invoke-rc.d: initscript apache2, action "start" failed.
> >
> > The error is pointing to this line in the httpd.conf;
> >
> > LoadModule php5_module  modules/libphp5.so
> >
> > But this directory or file don't exist in the /etc/apache2 directory.
> >
> > Not sure how to fix this. I'm a newbie when it comes to the LAMP server
> > apps. Any help would be appreciated.
>
> Seems very much like some missinformation of some kind.
> Apache2 should not use any modules/  directory.
>
> Apache2 uses symlinks to enable modules, check if symlink exists.
> In the directory mods-enabled there should reside syms like this:
> php5.conf -> ../mods-available/php5.conf
> php5.load -> ../mods-available/php5.load
>
> Any ot

php-general Digest 8 Sep 2007 17:30:25 -0000 Issue 5007

2007-09-08 Thread php-general-digest-help

php-general Digest 8 Sep 2007 17:30:25 - Issue 5007

Topics (messages 261832 through 261837):

Re: 'application' variables not available? Alternatives?
261832 by: david

LAMP Server setup help
261833 by: Randy Patterson
261836 by: brian
261837 by: Børge Holen

Re: Creating a File in Memory
261834 by: Per Jessen

Re: html2png
261835 by: Al

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 ---
Thanks very much for that Vidyet. This is going to be a massive help.


"Vidyut Luther" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi David,
> I'd say your best bet is to use memcached. This will allow the
> variables you specified to stay in memory, and be accessible to all
> other applications.
>
> http://www.danga.com/memcached/
>
> Keep in mind though, just because ASP does it in one way, you don't want
> to do a bit for bit copy. You could also look into options like the
> auto_prepend feature in php.ini, and the define() function.
>
> http://us2.php.net/define
>
> I personally don't like using the auto_prepend feature, but it's there
> and you could use it if you like, I'm a fan of implicitly requiring
> files if I need to.
>
> If your associative array, is really that large that it's going to slow
> things down, you may also want to consider whether all your scripts need
> all of the data, and then possibly define things that are only necessary
> for certain classes, in the file for that class.
>
> You can also serialize your associative array, and store it in the
> database.. but it's really all dependant on what you need, and what the
> app needs.
>
>
>
> david wrote:
>> Hi
>>
>> I am looking at converting a large project from ASP to PHP, and have read
>> that there is no equivalent of global.asa in PHP. It is probably easiest 
>> if
>> I describe the problem starting with how the ASP does it:
>>
>> Project uses global.asa to load a lot of 'global' constants and variables
>> into memory. This includes translations for the web site in a number of
>> different languages. These are loaded from text files so that changing 
>> them
>> is easy. These items when loaded in global.asa are as if they are in an
>> associative array which is available to the whole application - it is not
>> destroyed when the page is destroyed!
>>
>> Any ideas how I could handle this in PHP? The ASP method seems sensible, 
>> as
>> the data is much too big to load for every page, and too common to load 
>> only
>> when required. Holding it in memory and it having application wide scope
>> like this is fast. Loading only parts required at execution from, say, a
>> database would surely be too costly in db calls?
>>
>> Anyone have any ideas about what I could do?
>>
>> Many thanks, David
>>
>> 
--- End Message ---
--- Begin Message ---
Hey,

I have setup a test system on my home network in the past to develop & test 
PHP apps by installing an ISAPI PHP dll in IIS. It worked great but now I 
trying to setup a LAMP server on Debian/Lenny. I ran the following command;

aptitude install apache2 php5 libapache2-mod-php5

But got the following error message;

Setting up apache2-mpm-prefork (2.2.4-3) ...
Starting web server: apache2apache2: Syntax error on line 187 
of /etc/apache2/apache2.conf: Syntax error on line 3 
of /etc/apache2/httpd.conf: Cannot load /etc/apache2/modules/libphp5.so into 
server: /etc/apache2/modules/libphp5.so: cannot open shared object file: No 
such file or directory
 failed!
invoke-rc.d: initscript apache2, action "start" failed.

The error is pointing to this line in the httpd.conf;

LoadModule php5_module  modules/libphp5.so

But this directory or file don't exist in the /etc/apache2 directory.

Not sure how to fix this. I'm a newbie when it comes to the LAMP server apps. 
Any help would be appreciated.

Thanks, 
Randy
--- End Message ---
--- Begin Message ---

Randy Patterson wrote:

Hey,

I have setup a test system on my home network in the past to develop & test 
PHP apps by installing an ISAPI PHP dll in IIS. It worked great but now I 
trying to setup a LAMP server on Debian/Lenny. I ran the following command;


aptitude install apache2 php5 libapache2-mod-php5

But got the following error message;

Setting up apache2-mpm-prefork (2.2.4-3) ...
Starting web server: apache2apache2: Syntax error on line 187 
of /etc/apache2/apache2.conf: Syntax error on line 3 
of /etc/apache2/httpd.conf: Cannot load /etc/apache2/modules/libphp5.so into 
server: /etc/apache2/modules/libphp5.so: cannot open shared object file: No 
such file or directory

 failed!
invoke-rc.d: initscript apache2, action "start" failed.

The error is pointing to this line in the httpd.conf;

LoadModule php5_module  modules/libphp5.so

But this