[PHP] Re: How to create multipart e-mail bodies?

2007-12-07 Thread Nathan Rixham
sorry one more It also worked if i did the following.. Content-Type: multipart/alternative; boundary=-=Part233475926a47beb07.46978329 Delivered-To: [EMAIL PROTECTED] ---=Part233475926a47beb07.46978329 Content-Type:text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit ...

[PHP] Re: How to create multipart e-mail bodies?

2007-12-07 Thread Nathan Rixham
I had the same problem last week and it turned out to be extra line breaks, try.. Content-Type: multipart/alternative; boundary=-=Part233475926a47beb07.46978329 ---=Part233475926a47beb07.46978329 Content-Type:text/plain; charset=utf-8 . Nathan Sándor Tamás (HostWare Kft . )

[PHP] proc_open fclose streams..

2007-12-07 Thread Nathan Rixham
Hi Guys, Hoping somebody out there may have come across this one, possible functionality request depending on responses. $descriptor = array( 0 = array(pipe, r), 1 = array(pipe, w), 2 = array(pipe, w) ); $process = proc_open('mysql', $descriptor, $pipes); fwrite($pipes[0], 'show

[PHP] Re: build a multi chat server with php

2007-12-08 Thread Nathan Rixham
1 - yes you can make a multichat daemon in php 2 - if you don't know that it's possible or where to begin, then odds are you won't be able to make it. Nathan abderrazzak nejeoui wrote: Hello, i want build a multi chat server based in php. 1- is that possible 2- if yes can you instruct me how

Re: [PHP] Re: build a multi chat server with php

2007-12-08 Thread Nathan Rixham
Regards Nathan Robert Cummings wrote: On Sat, 2007-12-08 at 12:19 -0500, Robert Cummings wrote: On Sat, 2007-12-08 at 16:46 +, Nathan Rixham wrote: 1 - yes you can make a multichat daemon in php 2 - if you don't know that it's possible or where to begin, then odds are you won't be able to make

Re: [PHP] build a multi chat server with php

2007-12-09 Thread Nathan Rixham
Anybody up for (or indeed see a need for) a multi threaded php daemonised jabber client? Looks like an interesting challenge! Børge Holen wrote: On Sunday 09 December 2007 11:17:36 you wrote: thank you Børge Holen, I think the third solution is very COOL , using the jabber 2.0 in the backend

Re: [PHP] Help Sending Mail

2007-12-11 Thread Nathan Rixham
If you want a source to very verify against, send yourself an email, then view it's source; then change your class till it outputs the same info, gauranteed winner every time. Nathan Jim Lucas wrote: Robert Cummings wrote: Yeah, he's all over the place with his line endings. Personally, I

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Nathan Rixham
stream_socket_server simply listens, stream_socket_accept handles the connection, stream_set_write_buffer and stream_set_blocking help you keep up, especially when combined with stream_get_line, no need to shile forever when you can just: while (is_resource($conn =

[PHP] Re: Bug in stream_socket_server()?

2007-12-11 Thread Nathan Rixham
Would this class as a test? ?php $socket = stream_socket_server(tcp://0.0.0.0:8000, $errno, $errstr); if (!$socket) { echo $errstr ($errno)br /\n; } else { while (is_resource($conn = stream_socket_accept($socket, 30))) { while (is_resource($conn) $pkt = stream_get_line($conn, 100, \n)) {

Re: [PHP] Just to confirm...

2007-12-21 Thread Nathan Rixham
Anti-IE.. ?php if(stristr($_SERVER['HTTP_USER_AGENT'],msie)) { ob_start(); header('HTTP/1.1 200 OK'); echo str_pad('',4096); ob_flush(); flush(); sleep(20); } ? an IE penalty, don't loose visitors, just frustrate them a little, never know they may

[PHP] Re: Which file called the function?

2007-12-21 Thread Nathan Rixham
global.php ?php function myFunc($file) { echo $file; } ? one.php ?php include( 'global.php' ); echo 'You are in file: '; myFunc($file = __FILE__); ? might work.. Christoph Boget wrote: Let's say I have the following 3 files global.php ? function myFunc() { echo __FILE__; } ?

Re: [PHP] SMTP vs mail()

2008-01-16 Thread Nathan Rixham
You can easily make a mail queue in php yourself with a daemon that checks the queue and sends waiting mail in batches of say 200 per minute. (provided you have access to the cli on the server) Black http://rssphp.net a85020316bb687648d6f73c4eb3bec93 :msg::id Chris wrote: Manuel Lemos wrote:

[PHP] DOM API Namespaces - help?

2008-01-23 Thread Nathan Rixham
Help?? I need to get the namespaces from the root node of a DomDocument.. ?xml version=1.0 ? chapter xmlns:xi=http://www.w3.org/2001/XInclude; para xi:include href=book.xml /xi:include /para /chapter I know I can retrieve the namespaceUri from the xi:include node using lookupNamespaceURI

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Nathan Rixham
wrote: Nathan Rixham wrote: but assuming the above file is: ?xml version=1.0 ? chapter xmlns:xi=http://www.w3.org/2001/XInclude; a / /chapter how would one retrieve xmlns:xi=http://www.w3.org/2001/XInclude; When you say 'retrieve', what do you really mean? You need to get the namespace value

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Nathan Rixham
!? Nathan Rob wrote: Hi Nathan, You need to retrieve the attribute based on the xmlns namespace. Nathan Rixham wrote: Thanks Jessen, I'm using the DOM API (domdocument) in PHP 5 - and yes pull xmlns:xi=http://www.w3.org/2001/XInclude; from the chapter or indeed any namespaces defined in the root

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Nathan Rixham
Cheers indeed Rob! That DOMXPath solution is exactly what I was looking for; Many, Many Thanks, Nathan Rob wrote: Hi Nathan, Nathan Rixham wrote: Cheers Rob, But this is the problem, I don't know what the namespace/prefix is! ie xi and the following doesn't work: $root-getAttributeNS

[PHP] Re: 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Nathan Rixham
RE: the second apache issue, you only did a restart; you need to do a force-reload to properly unload and reload apache2; as such you didn't actually restart until the stop/start. On a side note, can I suggest you uninstall all versions of php5 then re-install again and see if the issues

[PHP] Re: Question about functions

2008-01-24 Thread Nathan Rixham
Jason Pruim wrote: Hi everyone! So, I'm trying to learn about functions, and I think I understand what to use them for... And one of the ideas I had was to write a function to logout of an application. The question I have though, is how do I call it? Right now I just have a link like this:

Re: [PHP] Re: how do you get to do multiple mysql queries concurrently?

2008-01-25 Thread Nathan Rixham
If you run the scripts through the CLI you can multithread your queries very easily.. you can wrap it in a while(1) block with a sleep(X) aswell to keep it going forever-ish.. ?php $child = 0; $pid = pcntl_fork(); if(!$pid) { $db = new your_mysql_handler('connection gubbins'); $work =

[PHP] Binary to double without loosing precision?

2008-01-25 Thread Nathan Rixham
Spatial Joys! Quite simply I need to unpack wkb binary from mysql back to it's double-precision... problem is this: Array ( [order] = 0 [type] = 16777216 [latitude] = -7.1466311596962E-292 [longitude] = 1.7568969921627E-47 ) should be: Array ( [order] = 0 [type] =

Re: [PHP] Exception thrown without a stack frame

2008-01-26 Thread Nathan Rixham
way offf topic-ish here.. class destructors, surely they differ from the register_shutdown_function in execution style? seeing as one can echo / do a bit of jiggery pokery before the buffers close. what exactly is the difference? Richard Lynch wrote: On Fri, January 25, 2008 1:31 pm,

Re: [PHP] Rename

2008-01-26 Thread Nathan Rixham
vote 2 for: mv dir1/* dir2 :) backticks! Per Jessen wrote: Pastor Steve wrote: I have been looking, but the problem is that I don¹t know what questions to ask or what to look for. I think it is a rename function. That works, but it only does one file at a time. I was looking for something

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-01-26 Thread Nathan Rixham
I posted you a short script on this thread at 04:07 GMT today that'll get you multithreading (via cli) - but even then you can shell exec that cli script from apache.. Per Jessen wrote: Richard Lynch wrote: On Fri, January 25, 2008 3:35 am, Per Jessen wrote: I have a website where some of

[PHP] Re: How to prevent direct access..

2008-01-27 Thread Nathan Rixham
Chuck wrote: I have a php file that produces an image and is only referred to from an img tag like so: img src=getRandImage.php I want to prevent anyone from directly accessing the getRandImage.php file. The file has to be world readable or the image will not display. I played around with

[PHP] Re: Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Nathan Rixham
Mike Morton wrote: I have been using: $nextSaturday= date(m/d/Y,strtotime(next saturday)); For months long time now with out problems, but in the last two days, it went kind of funky. It is now returning: 02/09/2008 instead of the expected 02/02/2008. I have tried the same code on another

[PHP] Re: Calling All Opinionated ******** ....

2008-02-02 Thread Nathan Rixham
Jochem Maas wrote: hi people, I'm in the market for a new framework/toolkit/whatever-you-want-to-call-it. I've been taking a good hard look at the Zend Framework - if nothing else the docs are very impressive. I'd like to hear from people who have or are using ZF with regard to their

[PHP] Re: Location in php's source for ini-values

2008-02-02 Thread Nathan Rixham
ehl lhe wrote: hello, I'd like to know where PHP finally sets the php.ini-values in it's sourcecode, e.g. max_execution_time, open_basedir, etc... What I need is to set several static values which must not be editable using php.ini, .htaccess, ini_set, or whatever - so I simply need to set

[PHP] Jacco van Hooren

2008-02-02 Thread Nathan Rixham
wish he'd turn that auto responder off.. *sigh* - he's now top of my contacts in gtalk.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Server to client file transfer with authorization: file always corrupt

2008-02-02 Thread Nathan Rixham
szalinski wrote: Hi I am having trouble with a file transfer script, as you can see, I am trying trying to keep the code as simple as possible. But everytime I download a file with it, it is corrupt. For example, when I download a small .rar file, just to test, it is always corrupt

[PHP] Re: issues with calling methods twice in a row

2008-02-09 Thread Nathan Rixham
Evening, with a great deal of assuming, I would assume that you are saving all these new users to database, in that database you have a unique key on the email address (as you should) and because you're using the same email address, the insert's are getting ignored. ie function runs, but no

Re: [PHP] PHP debugger recommendations, anyone?

2008-02-09 Thread Nathan Rixham
zend studio with zend debugger? Nathan Nobbe wrote: On Feb 9, 2008 11:48 AM, Mary Anderson [EMAIL PROTECTED] wrote: Hi all, I am getting tired of writing echo statements for almost every parameter, then deleting them while I am writing code. I would really like a debugger which would

Re: [PHP] php 4.x + mysql 5

2008-02-09 Thread Nathan Rixham
save passwords as sha2 or such like instead? further, it would appear that since the old password new password is set mysql server side, then php will have no bearing what so ever on how passwords are saved, seeing as it's mysql which will run the password() function and not php :) ps too

[PHP] Re: php file extension

2008-02-09 Thread Nathan Rixham
Often people install php4 and 5 on the same server, then configure .php to use the latest version of php(5) and anything with extension php4 to use the old`e php4. Thus, the file contents remain the same, however the way they are executed depends entirely on the server(s) config. Nathan

Re: [PHP] PHP debugger recommendations, anyone?

2008-02-09 Thread Nathan Rixham
prining out so you can see where the script is failing; if indeed it is. Nathan Nathan Rixham wrote: zend studio with zend debugger? Nathan Nobbe wrote: On Feb 9, 2008 11:48 AM, Mary Anderson [EMAIL PROTECTED] wrote: Hi all, I am getting tired of writing echo statements for almost

[PHP] Re: Run Process in back ground

2008-02-11 Thread Nathan Rixham
vote - combine richard and daniels replies and you have a winner! Nathan Richard Kurth wrote: Is there a way that I can call a function that will send an email and then move on redirecting to another website without having to what for the email to send?

Re: [PHP] \n problems when creating an email

2008-02-11 Thread Nathan Rixham
exactly as stut said, try using double /n's or convert the email to html. whilst testing always view email source to verify what your creating. Nath Stut wrote: Angelo Zanetti wrote: I am making email text based on some fields the user fills in and then email the admin the details. I am

[PHP] Re: Trouble with PHP server script

2008-02-11 Thread Nathan Rixham
Robert Cox wrote: Is it possible to use the $_SERVER['PHP_AUTH_USER']; construct in a URL forwarded site? I am trying to find the authorised user id so that I can access an SQL database with it. Anyone got some ideas? PHP looks like this ?php //Get User $user =

Re: [PHP] Hex Strings Appended to Pathnames

2008-02-11 Thread Nathan Rixham
Richard Lynch wrote: I don't know if it's before/after, but PHP can't change the GET request to something it wasn't... So THAT was the URL requested. You might have some kind of funky mod_rewrite rule messing you up... On Tue, January 29, 2008 5:22 am, Mick wrote: Richard Lynch wrote:

[PHP] Re: PHP 5.2.5 installation

2008-02-12 Thread Nathan Rixham
I had the same problems installing 5.2.5 last week on windows, the installer's a bit corrupt! I ended up having to manually install from the latest snapshot instead; (download, extract, configure manually) alternatively, attempt to install as best it will, then overwrite with a snapshot.

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
*sigh* as always, firefox obeys, ie7 goes huh what? Nathan Rixham wrote: Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see that, it's something I'd toyed with a few times in the past but found it far too time consuming (even for me), and opted for the ol' redefine

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see that, it's something I'd toyed with a few times in the past but found it far too time consuming (even for me), and opted for the ol' redefine everything in CSS *lightbulb* :: runs off to try css on custom tags why have i

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
Michael McGlothlin wrote: REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. REST is fine for small communications but really isn't a very good solution for large and complex communication. SOAP is the 600 pound gorilla.

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
guys, you all know you can F5 in the view source bit of firefox yeah.. save's all the pre's and loads of time! right click : view source : F5 till your done debugging. :) Christoph Boget wrote: I agree. I usually add a little function like this to my PHP projects: function debug( $var ) {

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
Shawn McKenzie wrote: Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search.

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
I still don't understand why general net users don't just like to see print_r output; it's got all the info they could want, ordered and structured *shrugs* vote: text/plain Aleksandar Vojnovic wrote: Because its painful and fun at the same time :) Aleksandar Quoting Nate Tallman [EMAIL

Re: [PHP] Re: Question about development

2008-02-12 Thread Nathan Rixham
they currently had selected to display in that language? Aleksandar Quoting Jason Pruim [EMAIL PROTECTED]: On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote: Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing

[PHP] Re: Question about development

2008-02-12 Thread Nathan Rixham
Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan for what a website needs. Stuff like Does it need a forum, live support, database driven etc. etc. Does

Re: [PHP] Re: Question about development

2008-02-12 Thread Nathan Rixham
Jason Pruim wrote: On Feb 12, 2008, at 2:09 PM, Aleksandar Vojnovic wrote: Could you explain this a little better - ...into using a database[1] for storing the pages and using browser sniffing to find out what language preference they currently had selected to display in that language?

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
another vote here for smarty - it's pretty much standard issue nowadays and means should the need ever arise you can easily bring in a web designer to do the html without having to worry about them learning some new system. Nathan clive wrote: Xavier de Lapeyre wrote: Do any of you guys

[PHP] Re: DOMXML Warning

2008-02-13 Thread Nathan Rixham
Miguel J. Jiménez wrote: Hi, after enabling error reporting with E_ALL I am having this strange warning while loading a XML: Warning: DOMDocument::load() [function.DOMDocument-load]: Extra content at the end of the document in [...] The code I use is: $dom = new DOMDocument();

[PHP] Re: Copying 1000s files and showing the progress

2008-02-13 Thread Nathan Rixham
Ritesh Nadhani wrote: Hello All I have a situation where I have to copy something like 1000 files one by one to a temporary folder. Tar it using the system tar command and let the user download the tar file. Now while the copy is going on at server, I want to show some progress to the user at

Re: [PHP] Copying 1000s files and showing the progress

2008-02-14 Thread Nathan Rixham
Jochem Maas wrote: Ritesh Nadhani schreef: On Feb 13, 2008 6:03 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, February 13, 2008 4:28 am, Ritesh Nadhani wrote: I have a situation where I have to copy something like 1000 files one by one to a temporary folder. Tar it using the system tar

Re: [PHP] Static variable in a class method

2008-02-14 Thread Nathan Rixham
Nathan Nobbe wrote: On Thu, Feb 14, 2008 at 12:10 PM, Eric Butera [EMAIL PROTECTED] wrote: On Thu, Feb 14, 2008 at 9:50 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Thu, Feb 14, 2008 at 6:37 AM, Jochem Maas [EMAIL PROTECTED] wrote: Nathan Nobbe schreef: what you are using is potentially

[PHP] Re: stream_select problem with signals

2008-02-15 Thread Nathan Rixham
Marcos Lois Bermúdez wrote: I'm rewriting an API to access OneWire Net, i have a problem with select and signals. The class will support both types of sockets, trought BSD sockets and with streams. My problem is that when the PHP app is in socket select and a signal arrives it threat it as a

Re: [PHP] www. check still not working

2008-02-15 Thread Nathan Rixham
Anjan Upadhya wrote: // Redirect to WWW public function WWWRedirect() { if ($this-WWW == false) { $redir = Location: http://www.; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header($redir); } } Regards, Anjan Upadhya nihilism machine

[PHP] Re: Posting Summary for Week Ending 15 February, 2008: php-general@lists.php.net

2008-02-15 Thread Nathan Rixham
(7.3%) Nathan Rixham nrixham at gmail dot com 20 (5.1%) 22234 (3.7%) Daniel Brown parasane at gmail dot com 17 (4.3%) 30201 (5%)Robert Cummings robert at interjinn dot com 14 (3.6%) 22218 (3.7%) Stut stuttle

Re: [PHP] www. not working

2008-02-16 Thread Nathan Rixham
Shawn McKenzie wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Jim Lucas wrote: nihilism machine wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas? If you are running

Re: [PHP] PHP/mySQL dropping zeros after inserting number into record

2008-02-17 Thread Nathan Rixham
Daniel Brown wrote: On Feb 16, 2008 6:22 PM, Rob Gould [EMAIL PROTECTED] wrote: I've got a PHP script that inserts 00012345678 into a record in a mySQL database (it's a barcode). Things work ok unless the number has preceding zeros, and then the zeros get cut off and all I get is 12345678.

[PHP] Re: Call PHP script from MySQL

2008-02-19 Thread Nathan Rixham
Mário Gamito wrote: Hi, Is it possible to call from within MySQL an external PHP script ? I've read MySQL Stored Procedure Programming from O'Reilly but found nothing :( How can I do this ? Any help would be appreciated. Warm Regards, Mário Gamito Mário, I'd really like to see an

Re: [PHP] More than one values returned?

2008-02-19 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: On Monday 18 February 2008, Nick Stinemates wrote: I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of proper encapsulation. You mean

[PHP] Re: fopen never ends?

2008-02-19 Thread Nathan Rixham
Paul van Brouwershaven wrote: When you run the folling script, it will never ends? I have seen this more then once, I know that there is no service running at the target host, but why is the script not printing the failed message? It's only with a few ip-number I have this problem. if ($fp

Re: [PHP] Re: mysql input

2008-02-19 Thread Nathan Rixham
Nathan Rixham wrote: Zoltán Németh wrote: 2008. 02. 19, kedd keltezéssel 11.03-kor Nathan Rixham ezt írta: Richard Heyes wrote: Shawn McKenzie wrote: nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them

Re: [PHP] Re: mysql input

2008-02-19 Thread Nathan Rixham
Zoltán Németh wrote: 2008. 02. 19, kedd keltezéssel 11.03-kor Nathan Rixham ezt írta: Richard Heyes wrote: Shawn McKenzie wrote: nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them so that they dont fuck

Re: [PHP] Re: mysql input

2008-02-19 Thread Nathan Rixham
Richard Heyes wrote: Shawn McKenzie wrote: nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them so that they dont fuck up my mysql command? -e Have you tried: dont_fuck_up_my_mysql_command() Hrmph, I

Re: [PHP] Re: mysql input

2008-02-19 Thread Nathan Rixham
Bastien Koert wrote: thats awesome bastien To: php-general@lists.php.net Date: Tue, 19 Feb 2008 11:21:02 + From: [EMAIL PROTECTED] Subject: Re: [PHP] Re: mysql input Zoltán Németh wrote: 2008. 02. 19, kedd keltezéssel 11.03-kor Nathan Rixham ezt írta: Richard Heyes wrote: Shawn

[PHP] Re: js to php help

2008-02-19 Thread Nathan Rixham
Nathan Rixham wrote: tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in javascript to POST? Thanks in advance for any

[PHP] Re: js to php help

2008-02-19 Thread Nathan Rixham
tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in javascript to POST? Thanks in advance for any suggestions. Cheers,

Re: [PHP] www. not working

2008-02-20 Thread Nathan Rixham
Jason Pruim wrote: On Feb 20, 2008, at 11:41 AM, Daniel Brown wrote: On Feb 19, 2008 10:42 PM, Larry Garfield [EMAIL PROTECTED] wrote: On Tuesday 19 February 2008, Daniel Brown wrote: On Feb 19, 2008 4:43 AM, Christoph [EMAIL PROTECTED] wrote: Don't do that. Some sites may or may not use

Re: [PHP] Session destruction problem

2008-02-21 Thread Nathan Rixham
Adil Drissi wrote: thank you tedd, I understood what you explained to me last time. I was wondering if there is another method to prevent that. Thanks --- tedd [EMAIL PROTECTED] wrote: At 2:45 PM -0800 2/19/08, Adil Drissi wrote: Hi, Below you'll find my code. I think now that the problem

Re: [PHP] Session destruction problem

2008-02-21 Thread Nathan Rixham
Adil Drissi wrote: thank you tedd, I understood what you explained to me last time. I was wondering if there is another method to prevent that. Thanks --- tedd [EMAIL PROTECTED] wrote: At 2:45 PM -0800 2/19/08, Adil Drissi wrote: Hi, Below you'll find my code. I think now that the problem

Re: [PHP] fail on preg_match_all

2008-02-21 Thread Nathan Rixham
Hamilton Turner wrote: Just a follow-up on this, the problem was 'Fatal error: Allowed memory size of 8388608 bytes exhausted' After some nice help, I found that this is actually a common problem with intense regexes in php. Quick fix is using ini_set() to increase your memory_limit to

Re: [PHP] Re: temporary error

2008-02-21 Thread Nathan Rixham
Andrés Robinet wrote: -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED] Sent: Thursday, February 21, 2008 10:36 AM To: php-general@lists.php.net Subject: [PHP] Re: temporary error Mirco Soderi wrote: In my opinion, variable names are a personal choice, I think the time

Re: [PHP] APC __autoload webclusters

2008-02-21 Thread Nathan Rixham
Nathan Nobbe wrote: On Thu, Feb 21, 2008 at 12:01 PM, Jochem Maas [EMAIL PROTECTED] wrote: Richard Lynch schreef: If it's that inter-tangled, then I would hazard a WILD GUESS that the __autoload will still end up loading everything... but not on every request ;-) ... I do use output caching,

[PHP] Re: AMP installer

2008-02-21 Thread Nathan Rixham
Ryan A wrote: Hey! Need to reinstall Apache PHP and MySql for personal development use on my new laptop... I usually used phpdev in the past but now I want php5 compatability... can anyone recommend any such all in one installer. And yes, I know its good experience and so on to do each one

[PHP] Re: Copy Network Share W/ Diff. Creds To Local Folder?

2008-02-21 Thread Nathan Rixham
Jason Paschal wrote: I'm building a web app on a windows server for a company. an aspect of that requires grabbing a sound file from a network share, which i attempted with a windows copy command via exec(), but PHP needs to be able to pass the authentication credentials. runas requires

Re: [PHP] URL modification

2008-02-22 Thread Nathan Rixham
Richard Heyes wrote: H... made a quick look into it. Seems to be apache compatible. I'm designing a site to be hosted on an IIS Server. Does it still works there? On IIS I belive the default document is default.htm Though you should be able to modify this to whatever you please. On

Re: [PHP] All Survey leading to PHP

2008-02-22 Thread Nathan Rixham
Robert Cummings wrote: On Fri, 2008-02-22 at 15:49 +, Nathan Rixham wrote: One further point: I develop on a windows server 2003 machine I think Mr. T. said it best... I pity da fool! Cheers, Rob. Indeed, purely because I need to check functionality in IIS and indeed layout in IE

Re: [PHP] All Survey leading to PHP

2008-02-22 Thread Nathan Rixham
tedd wrote: At 9:42 AM -0500 2/22/08, Robert Cummings wrote: On Fri, 2008-02-22 at 09:33 -0500, tedd wrote: At 3:43 AM +0530 2/22/08, Allan Fernandes wrote: I am aware that reverse engineering can be done to every program, and no one may bother to really take too much trouble to reverse

Re: [PHP] URL modification

2008-02-22 Thread Nathan Rixham
Per Jessen wrote: Daniel Brown wrote: On Fri, Feb 22, 2008 at 10:53 AM, Per Jessen [EMAIL PROTECTED] wrote: Nathan Rixham wrote: To use url's like http://domain.com/login/ as opposed to http://domain.com/login.php you can take multiple approaches. [big snip] Seriously, this is all

Re: [PHP] URL modification

2008-02-22 Thread Nathan Rixham
Richard Heyes wrote: + rewrite is overkill for this, but long term it's worth implementing and getting used to - think of the post as a pre-emptive strike on the inevitable question in a couple of weeks: how can i make /profile/adam instead of profile.php?user=adam Have a directory in your

Re: [PHP] Re: temporary error

2008-02-22 Thread Nathan Rixham
[snip] no [/snip] yes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: temporary error

2008-02-22 Thread Nathan Rixham
Greg Donald wrote: On 2/22/08, Daniel Brown [EMAIL PROTECTED] wrote: So help me God Speaking of imaginary things, check out this new site I built few weeks back: http://rewriteproject.com/ I do believe I am the first person to ever tag cloud a bible :) on that note, a few weeks back I

Re: [PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Nathan Rixham
Larry Brown wrote: It is not that I want to generate the document in UTF-8. I just need to specify the correct encoding. My assumption that it was UTF-8 based on what my command line settings are is obviously incorrect. How can I tell what php is encoding in by default? Larry On Fri,

Re: [PHP] Re: temporary error

2008-02-22 Thread Nathan Rixham
tedd wrote: At 3:58 PM -0500 2/22/08, Robert Cummings wrote: On Fri, 2008-02-22 at 14:49 -0600, Greg Donald wrote: On 2/22/08, Daniel Brown [EMAIL PROTECTED] wrote: So help me God Speaking of imaginary things, check out this new site I built few weeks back: http://rewriteproject.com/

[PHP] Re: mysql test and error

2008-02-24 Thread Nathan Rixham
hE wrote: hi, I found an e-book in the net about php and mysql and with its sample program I am trying to test whether I have mysql working correctly or not. the following program gives error message. why? html headtitleTest MySQL/title/head body !-- mysql_up.php -- ?php3 $host=”localhost”;

Re: [PHP] RE: temprorary error

2008-02-24 Thread Nathan Rixham
Robert Cummings wrote: On Sun, 2008-02-24 at 15:55 -0500, tedd wrote: At 7:38 PM +0100 2/24/08, Zoltán Németh wrote: 2008. 02. 24, vasárnap keltezéssel 09.59-kor Mary Anderson ezt írta: Hey guys, Isn't this thread a bit OT? well, for a php list sure it is... but not the first one, and

[PHP] Re: When to use design patterns?

2008-02-24 Thread Nathan Rixham
carlos wrote: skylark wrote: Design patterns are really hot today. And I am really interested when and how often they are used. It is said that 99% of the projects don't need them. Design patterns are used to solve common problems to in OOP programming. If you use OOP, chances are you

Re: [PHP] RE: temprorary error

2008-02-25 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2008-02-25 at 09:28 -0500, tedd wrote: At 8:49 AM -0500 2/25/08, Robert Cummings wrote: On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: [can you resist?] No I can't resist. It would be tantamount to agreeing with you. Since I disagree with you I feel

Re: [PHP] RE: temprorary error

2008-02-25 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2008-02-25 at 11:18 -0500, Daniel Brown wrote: I didn't think Quakers could use computers. Or electricity. You're confusing them with Amish. Cheers, Rob. and coldfusion developers [ps: rob your lucky i keep saving your ass from the dreaded last post] --

Re: [PHP] PHP 24 hour processes?

2008-02-25 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Feb 25, 2008 at 1:39 AM, Zoran Bogdanov [EMAIL PROTECTED] wrote: Hi, How can you perform a timed event in PHP; for example: Count 24 hours and then delete all rows in a database... Once again, I say verily unto you: RTFM and STFW. Linux/*nix: cron

Re: [PHP] URL modification

2008-02-25 Thread Nathan Rixham
Daniel Brown wrote: On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes [EMAIL PROTECTED] wrote: You could also forego the Files bit if you're willing to accept URLs like this: /rental.php/property/23425 I was waiting to see if anyone made mention of that while reading through the thread.

Re: [PHP] PHP 24 hour processes?

2008-02-25 Thread Nathan Rixham
Nathan Rixham wrote: Daniel Brown wrote: On Mon, Feb 25, 2008 at 1:39 AM, Zoran Bogdanov [EMAIL PROTECTED] wrote: Hi, How can you perform a timed event in PHP; for example: Count 24 hours and then delete all rows in a database... Once again, I say verily unto you: RTFM and STFW

[PHP] Re: Start/stop daemon using php

2008-02-27 Thread Nathan Rixham
David Sveningsson wrote: Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument --daemon which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and terminate. It also

[PHP] Re: Are these Truthful Proof about PHP ??

2008-02-27 Thread Nathan Rixham
Dare Williams wrote: Dear Developers, http://msdn2.microsoft.com/en-us/library/aa479002.aspx I read an Article on the above Microsoft website stating the reason why to Migrate from PHP to ASP.NET. So can you please justify this proofs from Microsoft and let everybody knows if they are

Re: [PHP] Guidance

2008-02-27 Thread Nathan Rixham
Matty Sarro wrote: I understand and agree completely, and I really appreciate the help. My goal isn't so much to keep from re-writing code, but to have a pretty firm foundation to stand on before I really begin. I mean, with c++ or c, all I needed was the language, and that was pretty much it. I

Re: [PHP] Guidance

2008-02-27 Thread Nathan Rixham
Robert Cummings wrote: On Wed, 2008-02-27 at 15:48 -0600, Shawn McKenzie wrote: Stut wrote: On 27 Feb 2008, at 20:59, Daniel Brown wrote: I've interviewed more than my fair share of web developers who couldn't reverse an array without using array_reverse if their life depended on it.

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Nathan Rixham
Jochem Maas wrote: Stut schreef: On 28 Feb 2008, at 11:39, Jochem Maas wrote: I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work: // buffer output so we can avoid the shebang line being output (and strip it from the

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Nathan Rixham
Aschwin Wesselius wrote: Stut wrote: Just because it works doesn't mean it's right. -Stut What I meant was that I tested the script and it worked, so I didn't spot the flaw (wich is obvious and you were right). No big deal. should it not use curlies? $tmp = ''; $str = 'abcdef'; for

[PHP] Re: [SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Nathan Rixham
how's this? #!/usr/bin/php ?php class trimshebang { function filter($in, $out, $consumed, $closing) { while ($bucket = stream_bucket_make_writeable($in)) { $bucket-data = ltrim($bucket-data,#!/usr/bin/php\n); $consumed += $bucket-datalen; stream_bucket_append($out,

Re: [PHP] Re: [SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Nathan Rixham
Aschwin Wesselius wrote: Me thinks that when shebang doesn't fit /usr/bin/php (which happens sometimes) you're doomed. [snip] good point.. modified to use BINDIR: #!/usr/bin/php ?php class trimshebang { function filter($in, $out, $consumed, $closing) { while ($bucket =

  1   2   3   4   5   6   7   8   9   10   >