RE: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Per Jessen
r $toggle is > 1 or 0, and update the form appropriately. I assumed AJAX was the way > to go. Ajax or iframe-rpc would work, yes. Continually poll your database and set the display attribute accordingly. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] Are there free http mysql tunneling writed in php ?

2008-06-05 Thread Per Jessen
l they're applicable. Todd, the thing is - you felt obliged to explain that my answer quite obviously wasn't the whole answer. Second, of course my outline was open to sql injection - mysql tunnelled over http is exactly that. /Per Jessen, Zürich -- PHP General Mailing List (http:/

Re: [PHP] Command-line PHP memory limit

2008-06-11 Thread Per Jessen
nd cli. /etc/php5/cli/php.ini /etc/php5/apache2/php.ini /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP connection to external application

2008-06-12 Thread Per Jessen
o message queue which external C program > can access? PHP can write to a FIFO / pipe. > (3) Socket connection between the PHP and externam C program. Yes, that works too. What is "the best" depends on your requirements. /Per Jessen, Zürich -- PHP General Mailing List (http

Re: [PHP] UK PHP Host/Developer Required OT

2008-06-12 Thread Per Jessen
about the UK, but Swiss banking legislation does have clauses about the location of data processing equipment. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP connection to external application

2008-06-13 Thread Per Jessen
eless. "PHP is stateless" ?? PHP is a scripting language, not a protocol. Besides, it would take quite a bit of work to make your thousands of concurrent PHP requests share a single socket. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why are passwords stored encrypted in databases even when the data they protect is stored in the same database?

2008-06-13 Thread Per Jessen
and a link to activate the password > is generated. Anybody who gets into the possession of the email could > access the data... Should I rather send two emails, one with the > link, one with the new password? If you're _really_ converned about this, you send a new password by recorded

Re: [PHP] PDF to images or something similar

2008-06-13 Thread Per Jessen
gt; image for each page? Dunno, but there are websites that offer this service on demand. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP connection to external application

2008-06-14 Thread Per Jessen
for > useing SOAP and Web services. Agree - it's only extra overhead. Jim, if I were you, I'd go for the socket-communication, i.e. TCP. That setup is being used for all kinds of stuff - unless your latency requirements are extreme, I think TCP will be fine. /Per Jessen, Zürich --

Re: [PHP] Canvas examples

2008-06-16 Thread Per Jessen
Richard Heyes wrote: >> That's very cool, Richard. > > Well, thanks, but I wouldn't call it "very cool". I thought it was pretty cool too - I didn't know about , but your example says a lot, I think. /Per Jessen, Zürich -- PHP General Mailing List

Re: [PHP] Canvas examples

2008-06-16 Thread Per Jessen
pretty basic (which it is). Mine is perhaps an intro, whereas > this illustrates what can be done with some (a lot?) of work. True - far too much work, in my opinion. But I wouldn't mind seeing some real life use/examples. I guess the other browser doesn't do much with ? /Per Je

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Per Jessen
are back and sending spoofed HTTP_REFERER. > > Since I have only a VHost @ISP I can not go deeper into the > Apache2 config what I have done when I was running my own server. > > Can anyone suggest me something, how to block requests from outside? Check client IP-addresses? /Per J

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Per Jessen
Jim Lucas wrote: > Per Jessen wrote: >> Michelle Konzack wrote: >> >>> My biggest problem is, that the "/fileupload.php" was always >>> references >>> from outside my webspace. OK, I was thinking this can be solved >>> by >>

[PHP] apache content negotiation and $_GET

2007-08-13 Thread Per Jessen
e URL, apache will pick the phpinfo.html file, treat it as a type-map and load phpinfo.phtml.en) if instead I skip the content negotation, and use URL = https://server/phpinfo.phtml.en?klop=99, the $_GET variable is available. Any suggestions? thanks, Per Jessen, Zurich -- PHP General Mailing

[PHP] Re: apache content negotiation and $_GET

2007-08-13 Thread Per Jessen
Per Jessen wrote: > All, > > I've got a weird issue concerning $_GET and apaches content > negotiation. I should have mentioned I'm using php 5.2.0 and apache 2.2.3. /Per Jessen, Zurich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] apache content negotiation and $_GET

2007-08-13 Thread Per Jessen
Tijnema wrote: > This has nothing to do with PHP, and there's only a very little chance > you get a successfull result here. > Your Apache type-map probably just doesn't take the $_GET variables > with it, Yeah, that is possible - I was wondering whether to blaim PHP or Apache. I just thought th

Re: [PHP] GD - Print Animated GIF

2008-06-19 Thread Per Jessen
nt it out with imagegif(), the result is > just the first frame of the animation. Hi Stephen see http://www.libgd.org/FAQ_PHP : "please note that PHP has not yet been updated to include support for the animated GIF features that have been added to gd. It will be added in php 5.3 and 6.x&q

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-19 Thread Per Jessen
guys are so completely and utterly off-topic - please take it off-line. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-19 Thread Per Jessen
Daniel Brown wrote: > On Thu, Jun 19, 2008 at 2:49 PM, Per Jessen <[EMAIL PROTECTED]> wrote: >> >> Call me .. uh no, I'm getting sick ... you guys are so completely and >> utterly off-topic - please take it off-line. > > No offense meant at all, Per, b

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-20 Thread Per Jessen
developing some common interests > and bonds. Very true - you'll also find me on one or two OT lists :-) I don't know the story with the PHP lists, but if it's of any use, I'd be happy to host a PHP-OT mailing list. /Per Jessen, Zürich -- PHP General Mailing List (htt

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-20 Thread Per Jessen
L- or javascript-only questions. There's no flame-war brewing here at all, but whether or not you've served in countrys armed forces, what you think of them and how they do their recruiting, is just way more OT than any javascript-only question. In fact, given the worlds divided view on

Re: [PHP] [gnupg] HOW to check signed files from withing PHP

2008-06-23 Thread Per Jessen
quot;I do not like this files...\n"; > exec("rm --force $DIR_TMP/$UPLOAD_ID/* ; rmdir > --ignore-fail-on-non-empty $DIR_TMP/$ID") $FLAG = "false"; > } > > > What I realy dislike are the exec() calls. > > Any native P

Re: [PHP] Re: Another canvas example

2008-06-24 Thread Per Jessen
vity, but it's cool :D The Playmobil website has a very similar one, except it's water-pipes and Flash. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-24 Thread Per Jessen
Dotan Cohen wrote: > > What is the English/French name of the French non-Frenchmen reserve > army? They are very well respected. The French Foreign Legion?? I wouldn't call that "a reserve army". /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net

Re: [PHP] exec() Error

2008-06-25 Thread Per Jessen
te.com/calculate.php";); Well, "http://www.mysite.com/calculate.php"; is not an executable. Try this instead: exec("php /calculate.php"); /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] exec() Error

2008-06-25 Thread Per Jessen
hat a remote call would be made somewhere, but her question was: >Has anyone tried using exec() successfully in PHP to execute files from >PHP or other programming languages? For example, C, Python, or Perl. And that works just fine using exec(). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: RE: Re: [PHP] exec() Error

2008-06-26 Thread Per Jessen
not), why would you > suggest that she use exec() instead of include()? If she'd only asked about PHP, include() would be the answer, but she also included C and Perl in the options. > I think the issue has been obfuscated. Nevertheless, she's on the > right track to makin

Re: [PHP] fwrite() Append Files

2008-06-27 Thread Per Jessen
set up so that it could write in the > first line, but the problem is that all the lines after it never get > written in to the desired file. You need to open the file in append mode = 'a+'. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] fwrite() Append Files

2008-06-27 Thread Per Jessen
Wei, Alice J. wrote: > > Do you mean to edit $ourFileHandle to fopen($ourFileName, 'wba')? > I think fopen($ourFileName, 'a') will do what you want. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Q] Exec'ing a command

2008-06-28 Thread Per Jessen
removes it when it's finished. Yes, the check and the creation of the lock file should preferably be atomic, but when you're in a script language, you can't have it all. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding new encodings to mbstring?

2008-06-29 Thread Per Jessen
aracter encodings myself? You can certainly add them yourself - which ones are you mising? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unset in foreach breaks recrusion

2008-06-29 Thread Per Jessen
bug i submitted, I wanted to know > if there's something I'm missing with this? Did you read the explanation wrt foreach() operating on a copy of the array? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL Rewrite

2008-07-02 Thread Per Jessen
Subhranil wrote: > > Hi All, > > I want to show one URL at browser and content of different URL. > Take a look at apache url rewriting. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Log files

2008-07-03 Thread Per Jessen
about. Even if you were talking about 100,000 times a day. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating XML files

2008-07-05 Thread Per Jessen
give a good link with > examples. If i remeber well, i can create axml file without writing > the hole file to a string before writing the string to the file. Creating XML files is quite easy with vi or any other editor. In PHP, you can just write XML with fwrite(). /Per Jessen, Zürich

Re: [PHP] Re: [PHP-DOC] Network Interface Card Name

2008-07-07 Thread Per Jessen
ernet Adapter". Is there any function in php for this or >>>> perhaps a way to find it out? Not really a PHP question, but the answer is 'lspci'. Here's some sample output: 00:0c.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev

Re: [PHP] Keeping POST values when paging

2008-07-07 Thread Per Jessen
be a neater way of doing it then simply > passing 30 or so variables using GET. When you build page2, add hidden input variables with the values from page1 etc. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Per Jessen
ou ever get a hidden value POSTed ? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fwd: How to enable php-mysqli on linux

2008-07-08 Thread Per Jessen
Kapil Kapil wrote: > Hi > > How can we enable php-mysqli support on linux machine using yum etc., > without reinstalling php again? Just install the appropriate package. > Also how to check it - Is php-mysqli package is present or not? Check output from phpinfo(). /Per

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Per Jessen
and size do you ppls use for your >> programming? >> >> Cheers, >> >> tedd >> > > Monospace 9 regular 22inch wide screen 1680x1050 on linux. > Same here, except 10pt monospace. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] to get time

2008-07-09 Thread Per Jessen
willyam pax wrote: > hello > > im still new to php i just want to know how can u get the only the > time of ur local server Take a look at date() and time(). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running mount from PHP

2008-07-09 Thread Per Jessen
/etc/fstab is not an option :( > > Any ideas ? Which user are you running your script with? wwwrun? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Logic sought

2008-07-09 Thread Per Jessen
d /yourtempdir -type f -ctime +1 | xargs rm' Run more often and/or with less ctime if you need the space or the site is very busy. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] scalable web gallery

2008-07-10 Thread Per Jessen
er it gets. > in 1 year, there going to be more than 1000 photo uploaded or more. > sure it bring problem to maintain thus files. No, 1000 photos in a single directory will not be a problem at all. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] IPv6 validation

2008-07-13 Thread Per Jessen
php4-5 is not always easy - code may have to be rewritten, other code may not work at all etc. I have two applications that can only run on php 4.3.8 due to a regression of the setlocale() function in later versions. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Saving loading time at counting rows

2008-07-13 Thread Per Jessen
rence in loading time with > other pages. Is there a technique to estimate the number of rows > instead of exactly couting them? So that it saves loading time. How about: SELECT COUNT(*) FROM table WHERE ? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] IPv6 validation

2008-07-13 Thread Per Jessen
Kevin Waterson wrote: > This one time, at band camp, Per Jessen <[EMAIL PROTECTED]> wrote: > >> No, it's a simple matter of need. People also run apache 1.x, mysql >> 3.x etc. There are still Linux 2.2 and 2.4 systems out there too. > > 4 years its been, th

Re: [PHP] need advice on a free DB hosting site

2008-07-14 Thread Per Jessen
talling a database on your own PC? That's free. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Corrupted ZIP files (downloaded via a php script) : Internext Explorer 7

2008-07-17 Thread Per Jessen
ot;$file"); > > Anyone see a problem with it? looks good to me - in Roberts case I would check if anything is adding output _before_ the readfile(). I have just today had such an issue with a zip-file. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OpenID

2008-07-17 Thread Per Jessen
o, all my OpenID info went with it.. not as good an idea as > it first seems. I'm curious, how does a domain "get stolen" ? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache blocking certain requests instead of php

2008-07-23 Thread Per Jessen
Arno Kuhl wrote: > Is there a > way for apache to catch these requests before passing it to php? Is it > more efficient for apache to handle this than php? 2 x yes. I think you could probably use and ban all access with "Deny from all". /Per Jessen, Zürich -- PHP General

Re: [PHP] Apache blocking certain requests instead of php

2008-07-24 Thread Per Jessen
Chris wrote: > I'm sure there would be a way to do it with ModRewrite or something > but it's 5 lines of code in php so I'd do it there *shrug*. See my reply to Arno - in Apache it's only 2 lines of config. :-) /Per Jessen, Zürich -- PHP General Mailing Lis

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Per Jessen
file/username/baller/ > > If i do not then the normal url > http://www.example.com/profiles/profile.php?username=baller is > displayed. > > I just want the new url to show when ever I trype in the old url. Ah, you want an external redirect then. It's really a case of RTFM

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Per Jessen
file.php?username=baller does not > cnage to http://localhost/profiles/profile/username/baller > Ah, you want it the other way round then. The rewriterule is: rewriterule /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Per Jessen
er experience that is available here. I could easily have waved Don away with a plain "RTFM", but I saw no real reason. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-28 Thread Per Jessen
apache, mysql, php, gcc, linux, you name it. In our shop, migrating working PHP code has one of the lowest priorities. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-28 Thread Per Jessen
ou're still on Apache 1.3.33 because you've had no time or reason to upgrade. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
ork. > > Well if it's a "big" website then why use a hoster that changes the > php.ini without much, if any, thought? > The technical abilities and awareness is often inversely proportional to the size of the hoster. /Per Jessen, Zürich -- PHP General Mailin

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
x27;t changed, there's one question you need to ask - why should they? What's the business-case? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
out a possible/future upgrade of the runtime platform. I certainly don't worry about the next release of gcc or glibc when I write C. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
not major ones. They're major > upgrades for a reason - things change. Yes, but a change in the language or a library should not force anyone to make source code changes. IMHO, that is to be avoided at all costs. A recompile is acceptable, of course. /Per Jessen, Zürich -- PHP Gen

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
the ISP to warrant the upgrade effort+headache? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
> Just ask Microsoft about that ;) Better ask IBM instead - they've done it for much longer and with much better results. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remembering where the user is on the page??

2008-08-01 Thread Per Jessen
ame place on the page when the user returns? Look up the "anchor" part of the URL. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-03 Thread Per Jessen
of the prepared statement to be :-) In this context, I tend to think of performance only. Which is generally why I can't be bothered with prepared statements in php. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-04 Thread Per Jessen
m above. I don't really buy that - the string escaping is just a call to a mysql API, surely that's perfectly reliable. How do you see prepared statements being cleaner and more reliable? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail script not working

2008-08-04 Thread Per Jessen
a plan text message it > goes through right away To begin with, you need to use '\r\n' to end each and every line, not just the odd one. Once you've got that fixed, send me a test email and I'll check it out. /Per Jessen, Zürich -- PHP General Mailing List (http://

Re: [PHP] PHP querying mysql db for data limited to the last month

2008-08-05 Thread Per Jessen
n the right direction a little? I can't see a timestamp field in your code, but I'm assuming you've got one? SELECT *,SUM(timespent) FROM timetracking WHERE engineer= AND month(timestamp)=month(date_sub(now(),interval 1 month)) GROUP BY product; /Per Jessen, Zürich -- PHP General

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Per Jessen
; personal data is a big loss too. > > Tell me about it. One of the sickest feelings in the world comes > when you hear your hard drive start going "click click > choke click" I use two in every system. They're so cheap that it's not worth saving t

Re: [PHP] Variable number of parameters

2008-08-05 Thread Per Jessen
ally - check! 3. send them each to - check! > Basically, I want to avoid hard-coding this. On top of looking ugly, > it's bad practice. > [smip] > Alas, I feel I must take a different approach to solve this problem. What exactly _is_ the problem you're trying to

Re: [PHP] Variable number of parameters

2008-08-05 Thread Per Jessen
arguments as a va_list and pass that as an argument to vfprintf() et al. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A specific(ish) request

2008-08-05 Thread Per Jessen
Richard Heyes wrote: > Anything else I may have missed A backup script? :-) /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A specific(ish) request

2008-08-06 Thread Per Jessen
Richard Heyes wrote: > Hi, > > Well, seems I may have my site after all, so it's just a case of > getting it up and running. My sincere thanks to those who have helped. > Ah, that's better. Good stuff, Richard. Now, about that backup-script ... /Per Jessen, Zürich

[PHP] being professional about IT. (was: An appeal to your better nature)

2008-08-06 Thread Per Jessen
#x27;re doing, and take the hits you get. When the hits become expensive, your thinking will change. If every hour of downtime is EUR100K lost, you don't take the hits you get, you make sure you don't get hit :-) /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] [scalability, performance, DoS] To or not to process images at runtime

2008-08-06 Thread Per Jessen
(millions and milloins), applying the watermarks could take a while in itself, so you could leave that running slowly in the background, but combine it with an on-line process that does on-demand watermarking (when the photo is displayed). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [scalability, performance, DoS] To or not to process images at runtime

2008-08-06 Thread Per Jessen
(You probably meant to send this to the list) The OP spoke about "a kind of online photo viewer", so I assumed e.g. JPEGs at 1024x768 as a typical size, so about 700K pixels. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [scalability, performance, DoS] To or not to process images at runtime

2008-08-07 Thread Per Jessen
, write the to cache/disk, and then output the watermarked photo. If you need to change the watermark, just erase the cached copies and they're regenerated next time someone wants to view a photo. To save on disk-space if that is a concern, you can run regular purges of cached copies that hav

Re: [PHP] php File upload

2008-08-07 Thread Per Jessen
free is 0 and the > script aborts and php deletes the tmp file. > > Why don't php use swap memory ? It doesn't need to - as you've noticed, the uploaded file is being written to disk, it's not being kept in memory. This sounds like a php limit problem to me. /Per Jes

Re: [PHP] php File upload

2008-08-07 Thread Per Jessen
ions? Which error do you get? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php File upload

2008-08-07 Thread Per Jessen
ile AND holds the > upload in main memory. Well, I can't reproduce the problem - I uploaded a 1Gb file, and I never saw apache memory usage go beyond 15Mb. Might this problem be in your code processing the uploaded file(s)? In this test I just uploaded the file, I never tried to process

Re: [PHP] php File upload

2008-08-07 Thread Per Jessen
to process it. You do your move_uploaded_file() etc. What do you do to the uploaded file? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php File upload

2008-08-07 Thread Per Jessen
omes back. At the crash point, the File is not > complete uploaded, so my $_FILES have no entry about the file specs. Ah, so it's not PHP and it's not apache using up your memory - it's your filesystem cache. Check how many files you have in the tmp directory and the destination

Re: [PHP] php File upload

2008-08-07 Thread Per Jessen
t have any idea what i > can do here. tmp is empty. > What about the destination directory? Which filesystem are you using? I'll try the 1Gb upload again and see how vmstat reacts. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php File upload

2008-08-07 Thread Per Jessen
. Does your free memory actually go as low as 0? I don't think this is about the file system cache - I know you said no limits, but what do you have for post_max_size and upload_max_size ? I'm using 1200M for both for this test. /Per Jessen, Zürich -- PHP General Mailing List (

Re: [PHP] php File upload

2008-08-08 Thread Per Jessen
bit. Even if Apache did upload into memory, why would that make the file limited to the max amount of physical memory?? How about if I upload a 1Gb file to a webserver on a machine that only has 256Mb memory - would you say that's impossible? /Per Jessen, Zürich -- PHP General Mailing List (h

Re: [PHP] php File upload

2008-08-08 Thread Per Jessen
Luke wrote: > I think the sentiment is that you can't fit all of the file in the > memory at once > Which would be absolutely true, but irrelevant - the question is whether that would prevent me from uploading it? That is the problem Tom seems to be having. /Per Jessen, Z

Re: [PHP] Re: php File upload

2008-08-08 Thread Per Jessen
ile with +1 GB no > temp file seeing at all and break after a view minutes. It's horrible > with no error codes and wasting pure of time :-( The maximum size of an HTTP request is 2Gb. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php File upload

2008-08-08 Thread Per Jessen
Tom wrote: > "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED] > Tom wrote: > >> Im very glad to fix this problem, but the next one is here: Other >> machine (but 2 GB Ram), same suse version, same (working now) >>

Re: [PHP] php File upload

2008-08-08 Thread Per Jessen
1Gb file. This was on a openSUSE 10.3 system with only 256M RAM. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php File upload

2008-08-08 Thread Per Jessen
Per Jessen wrote: > Jim Lucas wrote: > >> I have never seen a case where Apache has stored the file on the file >> system. In my past experience it has always held the file in memory, >> therefor limited to the max physical memory that was install, minus a >> litt

Re: [PHP] php File upload

2008-08-08 Thread Per Jessen
You don't need one big upload, you need many smaller but concurrent uploads, yeah? I'll try a bigger file later today and see what happens. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php File upload

2008-08-08 Thread Per Jessen
I can spot something obvious - I didn't see any errors etc. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php File upload

2008-08-08 Thread Per Jessen
Per Jessen wrote: > Tom wrote: > >> Practical i implement a robust filebase in my new gamer portal and >> go to max. at upload values. If the users make a big upload, it >> should be stable. I think, later (after release) i will enhance it >> with a ftp port. Bu

Re: [PHP] php File upload

2008-08-08 Thread Per Jessen
;> [Warning: >> POST Content-Length of 1992294868 bytes exceeds the limit >> of -1149239296 bytes in Unknown on line 0, referer >> >> >> /Per Jessen, Zürich > > Just a guess 3000MB exceeds the value of a 4-byte integer when > converted to bytes. -114923

Re: [PHP] Why PHP4?

2008-08-08 Thread Per Jessen
s :-) http://en.wikipedia.org/wiki/APL_%28programming_language%29#APL2 /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-08-08 Thread Per Jessen
OS for quite some time. On OS2 it _was_ a breeze, but trying to get DOS622 to run (with sound, cdrom and minimal memory usage) in Virtualbox is not a breeze. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php File upload

2008-08-08 Thread Per Jessen
ee much of a difference. It doesn't matter much to me, I'd just like to understand what the real difference is. Maybe I need to go and read RFC2616. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PUT vs. POST (was: php File upload)

2008-08-08 Thread Per Jessen
mike wrote: > On 8/8/08, Per Jessen <[EMAIL PROTECTED]> wrote: > >> Same as POST then :-) (except for the resume bit). >> >> I still don't see much of a difference. It doesn't matter much to >> me, >> I'd just like to understand wha

RE: [PHP] Re: PUT vs. POST (was: php File upload)

2008-08-09 Thread Per Jessen
on the client. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PUT vs. POST (was: php File upload)

2008-08-09 Thread Per Jessen
cess something on the client - very true, but javascript!=PHP. Of course PHP can do all sorts if you combine it with javascript, black magic, or what have you, but PHP alone is a server side scripting language, nothing more nor less. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    4   5   6   7   8   9   10   11   >