php-general Digest 8 Jun 2007 12:41:56 -0000 Issue 4836

Topics (messages 256335 through 256347):

Re: php-cli vs python OT
        256335 by: Robert Cummings

need to alter FROM address when sending with PHP forms
        256336 by: Dylan Bouterse
        256337 by: Robert Cummings

Difficulties including scripts from another folder (apache2.2, PHP5, Vista)
        256338 by: brice
        256339 by: Robert Cummings

Re: php-cli vs python
        256340 by: Man-wai Chang
        256341 by: Man-wai Chang

source like smorty.com
        256342 by: Marco Sottana

new forum
        256343 by: Marco Sottana
        256344 by: Tijnema
        256345 by: Marco Sottana

Re: File Upload - post_max_size and upload_max_filesize in GBs
        256346 by: Stut
        256347 by: Jim Moseby

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 Thu, 2007-06-07 at 23:33 +0100, Colin Guthrie wrote:
> Robert Cummings wrote:
> > On Thu, 2007-06-07 at 16:36 -0400, Daniel Brown wrote:
> >>     Are you using Amarok on Windows, Linux, or other?  I have Amarok
> >> 1.3.1 on KDE 3.4.2 on Mandriva 2006.0 Community on 2.6.12-12mdksmp on
> >> an i686 Intel(R) Pentium(R) 4 CPU 2.60GHz w/ 1GB RAM on a desk with a
> >> bunch of crap on it, and all it does is crash for me.  I use Totem
> >> instead, occasionally using xine for audio, and usually for video
> >> (different subject).  Just wondering how stable Amarok is for you.
> > 
> > I'm running Amarok 1.4.3 (using KDE 3.5.5) on Ubuntu 6.10 (I'm actually
> > a Gnome user). I used Mandrake up till 10.0, I'll never go back. My
> > desktop is an Athlon 2400 with 2 gigs of memory (though consumption
> > rarely goes past half gig unless I'm running several VMWare OSes at the
> > same time). I started using it about 3 days ago, I've had a few crashes,
> > but mostly when doing something major like re-scanning my collection
> > (8000+). Had no trouble grabbing covers, creating playlists, editing
> > 100s of tags within Amarok, etc. Only complaint really is that it's pig
> > slow when switching to or sorting columns on large playlists (well the
> > whole 8000 heheh).
> 
> I'm a Mandriva dev and would have to say that if you've not used it for
> a while I think you'll be pleasently surprised these days. It's come a
> long, long way since 10.0!

I guess I should never say never :) Maybe I'll give it a spin in VMWare
when I have some spare time.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
My company has a RH ES4 web server running apache/2.2.2 and PHP 5.1.4.
Our PHP programmer has developed quite a few PHP email forms and each
time an email is sent, the FROM: address is
[EMAIL PROTECTED] I don't know if this is a PHP
problem or apache problem (or even a sendmail problem for that matter)
so I am asking both lists for help. I have tried lookup up apache docs
and PHP docs to alter the FROM: address to no avail. No matter what I
and my programmer try in PHP or apache the from address stays coming
from the user apache runs as @webserver.domain.com (obviously I mean
the FQDN of the server). We would like to be able to alter the FROM:
address per form as we should be able to do in PHP. If there is a PHP
fix for this any help would be appreciated. If this is definitely NOT
a PHP problem, please let me know and I will move on from there. Thank
you.

Dylan

--- End Message ---
--- Begin Message ---
On Thu, 2007-06-07 at 22:03 -0400, Dylan Bouterse wrote:
> My company has a RH ES4 web server running apache/2.2.2 and PHP 5.1.4.
> Our PHP programmer has developed quite a few PHP email forms and each
> time an email is sent, the FROM: address is
> [EMAIL PROTECTED] I don't know if this is a PHP
> problem or apache problem (or even a sendmail problem for that matter)
> so I am asking both lists for help. I have tried lookup up apache docs
> and PHP docs to alter the FROM: address to no avail. No matter what I
> and my programmer try in PHP or apache the from address stays coming
> from the user apache runs as @webserver.domain.com (obviously I mean
> the FQDN of the server). We would like to be able to alter the FROM:
> address per form as we should be able to do in PHP. If there is a PHP
> fix for this any help would be appreciated. If this is definitely NOT
> a PHP problem, please let me know and I will move on from there. Thank
> you.

Have him set the "From:" header when sending the email.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Hi,

I was wondering if anybody had any ideas about how to tackle this problem:

I have just set up Apache2.2 and php5 on VISTA using mod_php. Php page load
work fine for most things. However, when i try to separate some .php files
for inclusion throughout the website in a separate folder to the visited
pages, I get a non-verbose error which stops the php script working. the
rest of the page (the html) looks fine, but the script doesn't do anything,
and doesn't print an error message (i did NOT use @include, but include)

the folders go like this:

e:\httpdocs\php-bin\foo.inc.php        >>>>file to be included
e:\httpdocs\documents\index.php    >>>>file doing the including

where:
-php.ini is loaded correctly in c:\windows\php.ini, as shown by phpinfo(),
and where #include_path = ".;e:\httpdocs\php-bin"#
-the call to foo.inc.php is in the head element of index.php as #<?php
require(".\foo.inc.php"); ?>#
-the apache doc root is e:\httpdocs\

I have tried making sure that the include path was correct by using:
#ini_set("include_path",
"e:\httpdocs\php-bin");# as well as
#set_include_path("e:\httpdocs\php-bin");#, but to no avail.

the only way to make this work is by using this:
#require("..\php-bin\foo.inc.php");# , but i shouldn't have to do that as i
have set my include_path correctly ( i think). This will cause major
headaches as the website grows, since each page will have to be customised
for the level in the hierachy.

any ideas why that is and how it could be solved?

brice

--- End Message ---
--- Begin Message ---
On Fri, 2007-06-08 at 04:29 +0100, brice wrote:
> Hi,
> 
> I was wondering if anybody had any ideas about how to tackle this problem:
> 
> I have just set up Apache2.2 and php5 on VISTA using mod_php. Php page load
> work fine for most things. However, when i try to separate some .php files
> for inclusion throughout the website in a separate folder to the visited
> pages, I get a non-verbose error which stops the php script working. the
> rest of the page (the html) looks fine, but the script doesn't do anything,
> and doesn't print an error message (i did NOT use @include, but include)
> 
> the folders go like this:
> 
> e:\httpdocs\php-bin\foo.inc.php        >>>>file to be included
> e:\httpdocs\documents\index.php    >>>>file doing the including
> 
> where:
> -php.ini is loaded correctly in c:\windows\php.ini, as shown by phpinfo(),
> and where #include_path = ".;e:\httpdocs\php-bin"#
> -the call to foo.inc.php is in the head element of index.php as #<?php
> require(".\foo.inc.php"); ?>#
> -the apache doc root is e:\httpdocs\
> 
> I have tried making sure that the include path was correct by using:
> #ini_set("include_path",
> "e:\httpdocs\php-bin");# as well as
> #set_include_path("e:\httpdocs\php-bin");#, but to no avail.
> 
> the only way to make this work is by using this:
> #require("..\php-bin\foo.inc.php");# , but i shouldn't have to do that as i
> have set my include_path correctly ( i think). This will cause major
> headaches as the website grows, since each page will have to be customised
> for the level in the hierachy.
> 
> any ideas why that is and how it could be solved?

Yes, learn to escape your backslashes. They are special characters when
using double quotes.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Micro$oft expressed interest in Python. But I don't know whether it's a trap or bait... :)


I said these because of Foxpro. Micro$oft bought it, improved it. But now that Micro$oft wanan go .NET, Visual Foxpro was discontinued.

Same thing could happen to Python, since it's not a tool invented, designed and patented by the genes of Micro$oft.

--
  .~.   Might. Courage. Vision. Sincerity. http://www.linux-sxs.org
 / v \  Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Fedora Core 4)  Linux 2.6.17-1.2142_FC4
  ^ ^   13:50:01 up 126 days 21:34 1 user load average: 0.00 0.00 0.00

--- End Message ---
--- Begin Message ---
   Interesting reading:
       http://wiki.w4py.org/python-vs-php.html

I don't understand those python-over-php advantages at all... possibly not important. For now, I stick with PHP.

--
  .~.   Might. Courage. Vision. Sincerity. http://www.linux-sxs.org
 / v \  Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Fedora Core 4)  Linux 2.6.17-1.2142_FC4
  ^ ^   13:48:01 up 126 days 21:32 1 user load average: 0.00 0.00 0.00

--- End Message ---
--- Begin Message ---
anybody knows an open source like smorty.com ?

--- End Message ---
--- Begin Message ---
hi i am builing a new forum about pear .. 
www.myflashxml.it

if anyone want to be a moderator of that forum contact me

msn:
[EMAIL PROTECTED]
my icq:
210139517
my skype:
marco xot

--- End Message ---
--- Begin Message ---
On 6/8/07, Marco Sottana <[EMAIL PROTECTED]> wrote:
hi i am builing a new forum about pear ..
www.myflashxml.it

if anyone want to be a moderator of that forum contact me

msn:
[EMAIL PROTECTED]
my icq:
210139517
my skype:
marco xot

You're site is incredibly slow...
You host it on your local PC?

From my home IP I get ping results of ~170 ms, from a damn fast server
I get ping results of 60 ms, it should be less than 5ms from the
server, and less than 10ms from my home connection...

Tijnema

--- End Message ---
--- Begin Message ---
my server is on www.register.it

at soon will be faster thanks :)

----- Original Message ----- From: "Tijnema" <[EMAIL PROTECTED]>
To: "Marco Sottana" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, June 08, 2007 11:08 AM
Subject: Re: [PHP] new forum


On 6/8/07, Marco Sottana <[EMAIL PROTECTED]> wrote:
hi i am builing a new forum about pear ..
www.myflashxml.it

if anyone want to be a moderator of that forum contact me

msn:
[EMAIL PROTECTED]
my icq:
210139517
my skype:
marco xot

You're site is incredibly slow...
You host it on your local PC?

From my home IP I get ping results of ~170 ms, from a damn fast server
I get ping results of 60 ms, it should be less than 5ms from the
server, and less than 10ms from my home connection...

Tijnema


--- End Message ---
--- Begin Message ---
Sukhwinder Singh wrote:
You don't appear to have read what I said. A Java applet can use FTP to upload the file - PHP does not get involved in that part. Once the upload is complete the applet can POST to your PHP file giving it information like where it's put the file and this other information you need to give it so it can rename the file. This is the only bit PHP gets involved in and it doesn't involve trying to upload 4 gig over a machanism that was never designed for it.

Thanks again for replying.

I have read. I have been trying to find out way for last two days.
I can say about jupload and how it seems to work.
It uploads file to server in a temporary directory.
It has postURL parameter. Then it POSTS the data to php file.
Because it POSTS, the php configuration values comes into question.

Here is an example:

Settings in php.ini are 50M for upload_max_fisesize and 50M for post_max_size.
I used japplet  and  uploaded a 51.89 MB file.

This is what is in error log.

[08-Jun-2007 03:06:29] PHP Warning: POST Content-Length of 54414946 bytes exceeds the limit of 52428800 bytes in Unknown on line 0

[08-Jun-2007 03:06:29] PHP Notice: Undefined index: File0 in E:\projects\ice\post_test.php on line 13

File0 is the first file in $_FILES array, as POST fails I don't get that array.

I uploaded a 48 MB file and it worked without any problem.

Ok, I think I see where your confusion is coming from. I'm not suggesting that the applet I'm describing already exists - it would be something you'd have to write or commission someone to write for you.

Every existing file upload applet I've ever come across uses HTTP POST to upload the files, but this is not what you need. It will almost certainly have to be a bespoke solution.

Another way you might approach it would be to define a naming convention for uploaded files and accept them via normal FTP upload. The user then visits your website and fills in a form that will tell your PHP script where to find the file as well as giving it the other information it needs. Setting up a secure write-only FTP server is well documented on the net, but is well beyond the scope of this mailing list.

-Stut

--- End Message ---
--- Begin Message ---
> 
> Any suggestion to use some other applet. Any freeware etc. Or 
> one not so 
> expensive and which overcomes this php's 1.99 gb limit.
> 
I will again suggest http://radinks.com/upload/ .  It does not use POST to
transfer huge files.

JM

--- End Message ---

Reply via email to