[PHP] $_GET space in index changed to underscore

2003-01-23 Thread Per
Hi Anyone who knows why get variables whit spaces in looking like this in the URL blah.php?aa+bb=1 is changed to aa_bb in $_GET resulting in $_GET['aa_bb'] instead of $_GET['aa bb']? /P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_GET space in index changed to underscore

2003-01-24 Thread Per
1lt John W. Holmes wrote: Anyone who knows why get variables whit spaces in looking like this in the URL blah.php?aa+bb=1 is changed to aa_bb in $_GET resulting in $_GET['aa_bb'] instead of $_GET['aa bb']? That's just what PHP does. It'll also convert any periods in a form element name to an un

[PHP] SQLqry in PHP

2003-01-30 Thread Per
I try to use a SQLqry in PHP, but i get this anwser in my browser: FATAL: emalloc(): Unable to allocate 1073741824 bytes Somthing i can do to fix it in PHP? (I have no rights at the server) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Removing session id from url when using session_set_save_handler

2002-08-13 Thread Per
x27;t get it to work. /Per -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session, error occurs

2002-08-14 Thread Per
d: m > (2) in d:\phpdev\www\phpdev4\samples\samp13.htm on line 4 Run a phpinfo() to see what session.save_path you have registred. It seems like php tries to open from the default directory /tmp. Maybe you have not restarted the web server after altering the php.ini. /Per -- PHP General

[PHP] Re: Need Help in escaping " and\

2002-11-14 Thread Per
Hi \ is the escape character: $real_path=$real_path."\DefaultFld\SubFld\"; should be $real_path=$real_path."\\DefaultFld\\SubFld\\"; or $real_path .= "\\DefaultFld\\SubFld\\"; if you want to shorten it. Ppf wrote: Hi All: I am trying to generate the directory path dynamically to save the Uploaded

[PHP] Re: open source content management systems?

2003-07-29 Thread Per Jessen
[EMAIL PROTECTED] wrote: > hi all > > does anyone have any recommendations for good open source content > management systems for websites? - preferably, written in php... http://typo3.com/ /Per -- Per Jessen, Zurich http://timian.jessen.ch - an analog report formatter usin

[PHP] size of submitted textarea field in bytes

2003-08-14 Thread Sn!per
i have a textarea where ppl will enter their bio. after they submit the form, i need to compute the size of their bio in bytes _without_ creating any file. is this at all possible ? please advise. sample script: rgds. --- Sign Up for free

Re: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Sn!per
rgds. Quoting Ralph Guzman <[EMAIL PROTECTED]>: > How can I get the last day for the current month? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- Sign Up for f

RE: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Sn!per
the manual. I guess it's time for me to call > it a night. > > Thanks. > > > -Original Message- > From: Sn!per [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2003 1:21 AM > To: Ralph Guzman > Cc: PHP General Mailing List > Subject: Re: [P

[PHP] saving mail attachment to another server

2003-08-15 Thread Sn!per
i am using Horde's IMP. i am playing with the idea of saving mail attachment(s) into another server. the mail server is like mail.example.com on server-A and the 2nd server is like photos.example.com on server-B. is this _normally_ done with cURL and/or snoopy ? appreciate some guidelines. rgd

Re: [PHP] Problem with mktime, need to add 30 days to current date

2003-08-19 Thread Sn!per
print date('Y-m-d',mktime(0,0,0,date('m'),date('d')+30,date('Y'))); Quoting James Johnson <[EMAIL PROTECTED]>: > Sorry about the previous post. > > Hi, > > I need to make a date that is 30 days from the current date, and, am > having problems with mktime > > Here's what I've tried: > > $endD

[PHP] help needed with this mcal script

2003-08-21 Thread Sn!per
the output of this short mcal-php script is 0. and the no /var/calendar/[EMAIL PROTECTED] mcal file was created. appreciate some advise. ","cal","passwd"); mcal_event_set_title($stream,$title); mcal_event_set_description($stream,$description); mcal_event_set_category($stream,$category); mcal_ev

[PHP] 4.3.2 -- does connection_status() actually work?

2003-06-12 Thread Per Jessen
nt "Done."; This is php4.3.2 on apache 2.0.45. /Per -- Per Jessen, Zurich http://timian.jessen.ch - an analog report formatter using XSLT. http://www.dansk.org - for alle danskere i udlandet! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: 4.3.2 -- does connection_status() actually work?

2003-06-13 Thread Per Jessen
sking. What are the plans, if any, regarding apache 2.0.x and php? For my purposes, I would be perfectly happy if my php script would stop running once the client has disconnected. /Per -- Per Jessen, Zurich http://timian.jessen.ch - an analog report formatter using XSLT. http://www.dansk.o

[PHP] Re: 4.3.2 -- does connection_status() actually work?

2003-06-13 Thread Per Jessen
Jeff Harris wrote: > I'm just guessing here, because you didn't give us the desired result, > but how about: > if (connection_status() ) break; Yeah, that would do about the same. The expected result is for the script to stop running once the client disconnects. /

[PHP] ACL howto

2003-06-15 Thread Sn!per
I have several admin modules for my portal. And I have also several admin users who are supposed to have access only to certain modules. Say, the superadmin can access ALL modules (modA, modB, modC, modD) and admin-A can only access modA and modB admin-B can only access modA and modD ... ... How

[PHP] Re: [PHP-WIN] Install

2003-06-18 Thread Per Lundberg
ourself. But then again, that doesn't mean that it cannot work. I have had it running on Linux for quite a while now with very few problems. I recommend going with option (1) since you seem to say you don't have very much experience setting PHP up. -- Best regards, Per Lundberg / Capio

[PHP] Authentication on NT??

2002-09-25 Thread Per Lundkvist
g. I guess it has something with Anonymous user to do, but I dont know what?! Per L. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Coding HELP

2002-11-22 Thread Per Lundkvist
been downloaded, if it reach the amount, delete it, otherwise update the database with one more download for this file! How to upload files can be read in the PHP-Manual. For database use: www.mysql.com Per L. "Vicky" <[EMAIL PROTECTED]> wrote in message 016801c2922c$71472720$0

Re: [PHP] Creating a Calender

2003-09-08 Thread Sn!per
PEAR Date Calc is your friend. rgds. -- Quoting "CPT John W. Holmes" <[EMAIL PROTECTED]>: > From: "Dan Anderson" <[EMAIL PROTECTED]> > > > > Does anybody know how to generate calendars easily? (i.e. print out > > complete calenders from the current month on) > > I'd check out PEAR or phpcla

[PHP] tv programme lineup

2003-09-08 Thread Sn!per
nebody know where i can find a script that does something like: (the admin module) - add/edit/delete tv programme lineup daily/weekly/monthly - lineup will include things like programme title, episode, time, synopsis etc (the public portion) - can perform search - calendar - hilights - etc pls a

[PHP] what's the story with html_entity_decode?

2003-11-29 Thread Per Jessen
;klonk\" æ 'å' "; $b=html_entity_decode( $a, ENT_QUOTES, "UTF-8" ); It seems to default to ISO-8859-1? thanks /Per -- Per Jessen, Zurich http://timian.jessen.ch - an analog report formatter using XSLT. http://jessen.ch/dansk-listen - for alle danskere i udlandet!

Re: [PHP] Best way to store data.

2003-12-18 Thread Sn!per
Quoting Justin French <[EMAIL PROTECTED]>: > Theory 3: > For more complex transformations (I have a library which performs heaps > of transformations for paragraphs, headings, line breaks, ol and ul > lists, and heaps more), ... and where can we find that library ? -- -

[PHP] Re: Apache 2 and PHP

2003-12-26 Thread Per Jessen
ut "don't expect php to work in apache 2.0". It was something to do with error-handling and timeout, IIRC. Why not go with Apache 2.0? If you should run into some showstopper, revert to 1.3 - it's not that much of an effort (provided you don't start using apache 2.0-only f

[PHP] Variables problem

2001-03-17 Thread Per Kallin
fore... Please respond to [EMAIL PROTECTED] /Per Kallin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Problem with From: and Reply to:

2001-10-29 Thread Per Hugosson
D] >Subject: Press Picture Download > > Name: Bla bla bla > Company: Bla bla bla > Adress: Bla bla bla > Email: [EMAIL PROTECTED] > Business: Bla bla bla > Send Snowcrash info: > Comments: Bla bla bla > >From: [EMAIL PROTECTED] >X-Originating-IP: [111.

[PHP] Cannot add header information...

2001-11-22 Thread Per Waagen
Need some help here, Im getting this error: Warning: Cannot add header information - headers already sent by (output started at /home/p/pe/perphp/public_html/login.php:4) in /home/p/pe/perphp/public_html/login.php on line 44 ...while trying to run the following .PHP code on my server. Any ideas

Re: [PHP] Cannot add header information... SOLUTION

2001-11-22 Thread Per Waagen
Thank you Jon & folks, now its OK! ;) Per > You've already sent something to the browser... the line that starts with > ... > > Move that below the authentication code and all should be well. > > HTH > Jon > > > -Original Message- > From: Pe

RE: [PHP] web shot script

2008-11-18 Thread Per Jessen
Joey wrote: > Sorry for the delay. > > The purpose is to be able to see what is running on a site at any > given time. Apaches 'server-status' perhaps? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
t;> http://www.onshore.com >> >> > Though I always script to W3 Standards, I could care less if browsers > follow those standards, so long as we wind up closer and closer to a > general set of rules we can obide by. Uh, only as long as that general set of rules is

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
/images/sam-menu-ff2.jpeg FF3: http://jessen.ch/images/sam-menu-ff3.jpeg Notice how the fonts are really quite different, in FF3 they make the long orange menu line spill over the page margin. No FF3 around here for a while yet. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
Nathan Rixham wrote: > Per Jessen wrote: >> Nathan Rixham wrote: >> >>> i never understand this, if i was makign a browser I'd be "where's >>> the rfc's" then code it to implement those rfc's - why people choose >>&g

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
general set of rules is well documented. >> >> >> /Per Jessen, Zürich >> > > i never understand this, if i was makign a browser I'd be "where's the > rfc's" then code it to implement those rfc's - why people choose not > to is beyond me?

Re: [PHP] Parsing XML

2008-11-28 Thread Per Jessen
#x27;s out of the question, you're in for a difficult time. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing XML

2008-11-28 Thread Per Jessen
Ashley Sheridan wrote: > On Fri, 2008-11-28 at 10:15 +0100, Per Jessen wrote: >> Ashley Sheridan wrote: >> >> > Do any of you have a copy of this extension, or failing that, a >> > suggestion of how I can parse XML files without having to install >> >

Re: [PHP] Happy Turkey Day

2008-11-28 Thread Per Jessen
; bit over-the-top. The skit centered on how fat Americans were. Well, they are a bit over-the-top ... > I am sure if he ran that skit in a trailer for one of his movies in > the States, the attendance for his movie would drop -- a bit like > biting the fat-hand that feeds him. Just one

Re: [PHP] Parsing XML

2008-11-28 Thread Per Jessen
ng a simple XSL stylesheet according to recognised standards etc. Just my opinion of course. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing XML

2008-12-01 Thread Per Jessen
Peter Ford wrote: > Per Jessen wrote: >> >> That's cool, but XSL is still the more appropriate tool IMO. It does >> exactly what you need - it parses and validates the XML document, >> allows you to extract the bits you need and in virtually any format >

Re: [PHP] Parsing XML

2008-12-01 Thread Per Jessen
>importStyleSheet($xsl); $pos=$_GET['pos']; $xp->setParameter('', array('pos' => $_GET['pos']) ); $file=$xp->transformToXML($xml); $file in this case is just a single filename, no XML. My input data has a list of filenames, the '

Re: [PHP] Parsing XML

2008-12-01 Thread Per Jessen
// attach the stylesheet >> $xp->importStyleSheet($xsl); >> >> $pos=$_GET['pos']; >> $xp->setParameter('', array('pos' => $_GET['pos']) ); >> >> $file=$xp->transformToXML($xml); >> >> >> $file

Re: [PHP] Countries and Timezones

2008-12-02 Thread Per Jessen
franzemmanuel wrote: > Hi everybody, > > For those who are interested in Countries and timezones. > > I needed to have the list of all the countries in the world and the > timezones by country without redundancy. > Couldn't you just have use the timezone info

Re: [PHP] IE8 and HTML5

2008-12-05 Thread Per Jessen
Benjamin Hawkes-Lewis wrote: > Everyone has their favorite unstandardized feature they'd love IE to > support. (Personally I'd be delighted by -ms-border-radius and > content:uri() support.) Nope, I don't have a single one. /Per Jessen, Zürich -- PHP General Mailing

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Per Jessen
> What does everyone prefer? I don't think it's about the developer preference, it's about the user. Javascript enables lots of checking at data entry time, and can improve the overall user experience. If you're not particularly concerned with the user experience, don'

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Per Jessen
t be [EMAIL PROTECTED] which mail-agents with IDN support should display and accept like this: [EMAIL PROTECTED] /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Per Jessen
Per Jessen wrote: > address. The same really goes for the same on the right hand side of > the @, but some people have difficulties distinguishing between the > _actual_ email address and it may be rendered when the domain part is > converted from punycode. That should have read &qu

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Per Jessen
Yeti wrote: > I think hotmail, or was it some other mail mogul, is allowing their > users to have those weird German umlauts and some accented characters. > > EXAMPLE: > [EMAIL PROTECTED] > Anyone who allows 8-bit characters on the left side of the @ is in for trouble. It w

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-08 Thread Per Jessen
tedd wrote: > At 5:10 PM +0100 12/7/08, Per Jessen wrote: >> You cannot have 8bit characters to the left of the @ in the email >> address. > > > I'm not sure that's correct. I am sure. In fact, the entire email header must not contain any 8-bit chara

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-08 Thread Per Jessen
Tedd, I've got a distinct feeling of deja-vu here, but Thunderbird displays all Swiss, German, French, Greek and Danish IDNs 100% correctly, probably many more too. The ones you're having a problem with are the ones that allow the entire UTF8 charset, IIRC. /Per Jessen, Zürich -- PHP

Re: [PHP] file_exists and wildcard/regex

2008-12-09 Thread Per Jessen
f files, e.g. 100,000s, also depends a lot on the filesystem. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_exists and wildcard/regex

2008-12-09 Thread Per Jessen
ary (/bin/ls), not a system call. The regex functionality is part of the shell, usually bash. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach and destroying variables for memory saving

2008-12-10 Thread Per Jessen
c source code of php. Maybe its time to > actually do that. But it might be easier if someone can answer this > from the top of their head. There is no real need - most PHP code runs in apache with each request being separately initated and terminated. There's no underlying runtime

Re: [PHP] PHP Form email w/attachment

2008-12-18 Thread Per Jessen
ttachment. That's how you need to format your email-text. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read/decode barcodes from an image

2008-12-18 Thread Per Jessen
e page as a > separator page which will be used to split the multipage document into > smaller single or multipage documents. > > Has anyone ever heard of anything that might help me in this process? I can't say for certain, but have a look at zebra: http://zebra.sourceforge.net/

Re: [PHP] utf8 php howto?

2008-12-19 Thread Per Jessen
Daniel Kolbo wrote: > Hello, > > I have a text file encoded in utf-8. > i am using fopen/fgets/echo etc.. > > how do i display these utf8 characters from the file on the web? > header("Content-Type: text/html; charset=utf-8") readfile(your-utf8-file); /Per

Re: [PHP] utf8 php howto?

2008-12-19 Thread Per Jessen
c...@l-i-e.com wrote: > In some circumstances, with "mixed" charsets on a page, and with IE > in quirks mode, IE will try to "guess" the charset and get it (very) > wrong. A single page or response can only have one characterset, there is no mixing possible.

Re: [PHP] filter function vs regular expression

2008-12-20 Thread Per Jessen
he filter extension both use the same regex caching mechanism. If the regex has not been compiled, the first call will compile it, subsequent calls will use the already compiled regex. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Replacing special characters with their HTML equivalents

2008-12-22 Thread Per Jessen
x27;t match, it will complain. If converting with htmlentities() works for your purpose, that's one solution, otherwise I'd make the mysql table use UTF8 and then look into iconv to convert all scraped pages to UTF8. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP telnet server

2008-12-31 Thread Per Jessen
c...@l-i-e.com wrote: > > I often thought PHP would be a nice language for a MUD, if one could > get the performance out of it... Design your code such that you can just throw more hardware at it whenever you need more performance. /Per Jessen, Zürich -- PHP General Mailing L

Re: [PHP] =.='' what wrong ? just simple code, however error.

2008-12-31 Thread Per Jessen
hy ? It's a floating point rounding error. If you don't need the accuracy, just round it to what you need. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP telnet server

2008-12-31 Thread Per Jessen
need/want straight scalability, go for the 32 cores all ticking at 3GHz. Once that is saturated, buy another one. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP telnet server

2009-01-01 Thread Per Jessen
a matter of space, cooling, electricity etc. The big monolith is easier to deal with, but also carries a different pricetag. The many machines can be gradually expanded at a lower cost, but need much more in terms of infrastructure. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encryption/decryption of PHP data

2009-01-01 Thread Per Jessen
elling your non-GPL software and you use GPL software with it, then yes, I believe you are required to make your source code available to the end-user too. Maybe have a quick look at http://gpl-violations.org/ /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] PHP telnet server

2009-01-01 Thread Per Jessen
f an overhead > so that bandwidth is actually that much of an issue? > The implementation language does not affect your bandwidth requirements at all. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP telnet server

2009-01-01 Thread Per Jessen
will slow it down too much. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP telnet server

2009-01-01 Thread Per Jessen
a "text-based MUD" is. I thought we were talking some network gaming engine a la WoW and such. I still think my initial response was appropriate though - if PHP as a language is a performance concern, it's best solved by throwing more hardware at it. If that is not an option, don

Re: [PHP] Encryption/decryption of PHP data

2009-01-01 Thread Per Jessen
be great. > Yes, that is exactly what https does. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Testing a URL with regex

2009-01-07 Thread Sn!per
Let's say I have these URLs http://example.com/index.php?q=gallery http://example.com/index.php?q=gallery&g2_itemId=81 http://example.com/index.php?q=gallery&g2_itemId=100 I want to have a line of code that will extract just the "http://example.com/index.php?q=gallery"; part of the URL. I am

Re: [PHP] Testing a URL with regex

2009-01-07 Thread Sn!per
Then Ashley Sheridan said: Why do you need a regex here? All the URL's have the same foremost component, which is exactly 38 characters in length. Do you perchance need a regualr expression to parse other URL's? If you just need to extract everything before the first ampersand, then strpos and

Re: [PHP] How can a script tell if there's a MySQL problem?

2009-01-09 Thread Per Jessen
write your code to work without the database connection. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can a script tell if there's a MySQL problem?

2009-01-09 Thread Per Jessen
classes, I have the db close function > in the destructor just to make sure I guess it depends on the type of application - for a web-transaction running on a web-server, why bother? It'll clean up after itself anyway. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can a script tell if there's a MySQL problem?

2009-01-09 Thread Per Jessen
Per Jessen wrote: > Nathan Rixham wrote: > >> Bastien Koert wrote: >>> 1. Make sure you are freeing up all resources as soon as you can -> >>> mysql_close(); >>> >> >> little thing I've done for some time that's stuck with; (php

Re: [PHP] Re: Create image from HTML

2009-01-10 Thread Per Jessen
a while ago, it worked pretty well AFAIR. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Per Jessen
Tony Marston wrote: > If you really *need* to used a staticly typed language then don't use > PHP, and don't try to change PHP to match your needs. +1 /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Per Jessen
her programming languages. PHP is an interpreted language with all the strengths and weaknesses that come with it. A need for static or compile-time typing is a need for a different language, honestly. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
Nathan Rixham wrote: > Per Jessen wrote: >> Nathan Rixham wrote: >> >>> Tony Marston wrote: >>>> If you really *need* to used a staticly typed language then don't >>>> use PHP, and don't try to change PHP to match your needs. >>

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
;s a tonne of amazing tools and frameworks for java, and > I'm sure that a vast majority of them are possible because of this > static typing (from orms to web service frameworks and all in between) > - am I so bad for wanting that for php and my fellow devs? No, you're not so

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
quot;, but would fail miserably with "php -strongtyping". In essence, with your optional strong typing enabled, you'd have a different language. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
to test your > infrastructure; when you can't compile and do this testing becuase the > app isn't bug free or completed it's rather limiting. Sometimes unit > tests just don't cover what you need. I agree. You need a full blown test system. That is pretty much the no

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
Nathan Rixham wrote: > Per Jessen wrote: >> Nathan Rixham wrote: >> >>>> You can't have your cake and eat it. You can't/shouldn't have >>>> strong >>>> and loose typing in the same language. In my opinion. >>> "Ins

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Per Jessen
Eric Butera wrote: > On Sun, Jan 18, 2009 at 11:44 AM, Per Jessen wrote: >> I think that's at best an example of someone having chosen the wrong >> tool. I can easily appreciate the frustration. My own rule-of-thumb >> - scripts are for small things and rapid prototyp

Re: [PHP] 64bit vs. 32bit

2009-01-20 Thread Per Jessen
) that you need to utilize efficiently or 2) your processing is very CPU-bound, e.g. scientific or graphics code. you won't gain anything by moving to a 64bit OS/Apache. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Per Jessen
Dušan Novaković wrote: > Hi, > > Is there some elegant solution how to redirect if someone try to open > some non existing page (e.g www.domain.com/nonexistingpage.php) to > main page www.domain.com on website? > See Apache "ErrorDocument" directive. /Per Jes

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Per Jessen
Richard Heyes wrote: >> ... > > Really, for URLs that don't exist you should be showing a 404, This > way the user doesn't falsely believe that the URL is a valid one and > keep using it. By using the ErrorDocument directive like Per > suggested, you can cust

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Per Jessen
rrectly, so what else > is suggested? I would use a 303 redirect, just like after processing a POST. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] process creation

2009-01-23 Thread Per Jessen
; Basically, I'd like to create a bunch of test apps/processes, and then > to be able to kill them by a separate process if the apps take too > long to run.. Why not put a timer in each individual process? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: process creation

2009-01-24 Thread Per Jessen
e processes. To get exactly 10 children running the same code: if ($iPid == 0) { // child echo ("child $icount\n"); // do childish stuff // then exit exit; } /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php error

2009-01-24 Thread Per Jessen
mattias wrote: > ERR_DB_NO_DB_PASS >What will this meen? No database password has been set in config. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: process creation

2009-01-25 Thread Per Jessen
Tom Sinclair wrote: >> Per Jessen wrote: >> >> for($icount=0;$icount<11;$icount++) > > Iterates 10 times?? > Hmm 10, 11 - no big difference is there? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-25 Thread Per Jessen
have many options. One of my key concerns is - for the translation, I need to be able to wrap everything up and ship it off to a translator, perhaps via elance or similar. Does anyone have any best practice suggestions or comments in general? /Per Jessen, Zürich -- PHP General Mailing

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-25 Thread Per Jessen
Richard Lynch wrote: > I can't help with the bits you are asking about, but I can give this > advice: > > Don't rely solely on the Apache/browser content-negotiation, please. > Don't worry, the site already has a user-override option. /Per Jessen, Zürich --

Re: [PHP] Multiple queries in PHP

2009-01-26 Thread Per Jessen
s. I don't know about the PHP mysql_query(), but the MySQL C API works fine with multiple queries, it just has to be specifically enabled - the default is one query per call. However, it looks like the multiple query option is not supported by PHP: http://php.net/manual/en/mysqli.real-connect

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-26 Thread Per Jessen
lower and I > can't help but feeling that serving up a static page created by code > is a better solution. That's part of what we're thinking of doing, but it's difficult to separate the language and code completely. Which is where gettext() comes in. Does anyone on th

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-27 Thread Per Jessen
hop ( :-( ), therefore no Linux and no PHP Ah. :-) > b) the db current doesn't support multi-byte charsets > The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-27 Thread Per Jessen
Jan Kaštánek wrote: > Per Jessen: >> >> The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper. > > It supports. We use it. But only in MsgStr (translation), not in MsgId > (original strings). > Yeah, I found out too. (from the GNU gettext

Re: [PHP] New to PHP question

2009-01-28 Thread Per Jessen
t's how HTML works. > The second question is closely related to the first. When formatting > text using printf the padding works great when running from the > command line but not at all when in a browser. Same answer. /Per Jessen, Zürich -- PHP General Mailing List (http://ww

Re: [PHP] New to PHP question

2009-01-28 Thread Per Jessen
ng. No, the scripts are written the same way, but you are using two different output media, so your output must be different. Like Stuart said - if you want your browser to output in text-mode, just set the right header-type. (text/plain). /Per Jessen, Zürich -- PHP General Mailin

Re: [PHP] Extract code from XML

2009-01-30 Thread Per Jessen
;Item' , $hotelElement ); > > > > I know you can use an @ sign but I am not 100% sure. Yes, you use an '@' to retrieve attributes of an element. query( 'HotelDetails/Hotel/@Code' /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Extract code from XML

2009-01-30 Thread Per Jessen
Angelo Zanetti wrote: > Thanks Per but I didn't send all the XML but you see that there is a > city code and an item code: > > > > > > > How would I get the Item code then? Based on your answer above? > Hi Angelo this

Re: [PHP] Mail subject encoding problem

2009-01-30 Thread Per Jessen
Linux CentOS 5.2 server this mail is being sent > but the subject is rubbish. > All encodings are in UTF-8 (the php file, the encoding of the mail > client etc) so to solve this I have added the mb_encode_mimeheader > line. But for some reason you've specified ISO-8859-1 instead of UT

  1   2   3   4   5   6   7   8   9   10   >