Re: [PHP] Socket server in PHP

2005-06-24 Thread vieonet forums
Hi I suggest to use cron table against php deamon, It'will we be more stable and using less load. regards - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: kioto [EMAIL PROTECTED] Cc: php-general php-general@lists.php.net Sent: Friday, June 24, 2005 5:18 AM Subject:

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread vieonet forums
In php5 any object is moving as reference. you need special declaration, if you want to duplicate(copy/clone) an object. regards david - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Matthew Weier O'Phinney [EMAIL PROTECTED] Cc: PHP-General php-general@lists.php.net

Re: Re[2]: [PHP] comparing two texts

2005-06-24 Thread Rory Browne
Folks There's no need to be quite so rude, when informing someone that you don't know of any existing PHP code(diff isn't written in PHP), that will fulfull their requirements. Jenny: Check out various PHP wikis. Most of them have a history feature, that allows you to compare current with

Re: [PHP] Re-inserting newlines

2005-06-24 Thread Jochem Maas
Philip Thompson wrote: On Jun 23, 2005, at 4:13 PM, Richard Lynch wrote: ... Well, that was a mouthful. I actually am using a Mac and it showed \r \n I reckon you could edit together a nice fat 700 page book on PHP just by scraping posts made by Richard :-) ... every other month ;-)

Re: [PHP] Re: Help recognizing bots?

2005-06-24 Thread Dotan Cohen
On 6/24/05, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, June 23, 2005 3:37 am, JamesBenson said: http://www.funender.com/phpBB2/about18577.html Call me crazy, but... A) Doesn't robots.txt have to be in public_html? How the hell can the robots read it if it's in the root folder, as

Re: [PHP] Strange notation to create object

2005-06-24 Thread Michael
John Hinton wrote: Michael Stepanov wrote: With a return receipt attached and I'm wondering if we all return the receipt each time someone forgets about this on various mailing lists, would the 6583 subscribers actually returned the receipt, would it break the habit? All in fun...

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Jason Barnett
Robert Cummings wrote: ... There's a difference between a reference to a reference and a copy of a reference *hehehe*. Cheers, Rob. Dear diary: jackpot! Now that makes sense. And am I correctly filling in the blanks when I guess that $foo3 = $aObj is merely copying the reference instead

[PHP] Problem with arrays

2005-06-24 Thread virtualsoftware
Hi, I have 2 arrays: Array ( [0] = Array ( [0] = 28 [1] = Music ) [1] = Array ( [0] = 5 [1] = Books

[PHP] Problem with arrays

2005-06-24 Thread virtualsoftware
Hi, I have 2 arrays: Array ( [0] = Array ( [0] = 28 [1] = Music ) [1] = Array ( [0] = 5 [1] = Books

[PHP] Problem with arrays

2005-06-24 Thread Jimmy jimmy hoo
Hi, I have 2 arrays: Array ( [0] = Array ( [0] = 28 [1] = Music ) [1] = Array ( [0] = 5 [1] = Books

RE: [PHP] Problem with arrays

2005-06-24 Thread Mike Johnson
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, I have 2 arrays: Array ( [0] = Array ( [0] = 28 [1] = Music ) [1] = Array (

[PHP] Problem with arrays

2005-06-24 Thread Fannehh DIFF
Hi, I have 2 arrays: Array ( [0] = Array ( [0] = 28 [1] = Music ) [1] = Array ( [0] = 5 [1] = Books

[PHP] FW: IBM PHP, Designer Track Training

2005-06-24 Thread Hans Zaunere
FYI - RSVP if you plan on attending. - Very Special Meeting: IBM Presents their PHP Strategy to New York PHP RSVP Today, seats are limited: http://www.nyphp.org/rsvp.php All Attendees Must RSVP By Monday, June 27th.

[PHP] Verifying images with getimagesize()

2005-06-24 Thread Edward Vermillion
Sorry to reply to this message but I wanted the OP to find it too... On Jun 23, 2005, at 9:42 AM, Jack Jackson wrote: [snip] Through your help I was able to validate image files using getimagesize() and have made a nice script to upload and rename images. [\snip] I've been meaning to post

RE: [PHP] Extra (persistant) tier

2005-06-24 Thread Leila Lappin
[quote] I REALLY don't understand why anybody would abstract out every single table as a separate class like that. Surely there are some COMMON features and behaviours between the fields of any given MySQL type. [\quote] IMHO, the answer is simplicity of implementation and to some extent

RE: [PHP] fopen problem

2005-06-24 Thread Shaw, Chris - Accenture
Are you using the a or a+ modes on fopen, because I have a sneaky feeling the file doesn't exist. -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 24 June 2005 00:33 To: php-general@lists.php.net Subject: [PHP] fopen problem * This

Re: [PHP] Problem with arrays

2005-06-24 Thread Bob Winter
Mike Johnson wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, I have 2 arrays: Array ( [0] = Array ( [0] = 28 [1] = Music ) [1] = Array (

Re: [PHP] Problem with arrays

2005-06-24 Thread Josh Olson
for ($i = 0; $i count($array1); i++) $array1[$i][] = $array2[$i]; from kevin l'huillier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trouble using ncurses_new_panel on PHP 4.3.11

2005-06-24 Thread Mike Bowie
Hello all, I'm stumbling along with the ncurses implementation under 4.3.11 on FreeBSD. I've had some success with windows and borders etc based on some Googling(tm) and RTFM... but am having trouble getting ncurses_new_panel to do anything worthy of note. From what I understand, the

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Robert Cummings
On Fri, 2005-06-24 at 10:02, Jason Barnett wrote: Robert Cummings wrote: ... There's a difference between a reference to a reference and a copy of a reference *hehehe*. Cheers, Rob. Dear diary: jackpot! Now that makes sense. And am I correctly filling in the blanks when I

Re: [PHP] Problem with arrays

2005-06-24 Thread Kevin L'Huillier
On 24/06/05, Josh Olson [EMAIL PROTECTED] wrote: for ($i = 0; $i count($array1); i++) $array1[$i][] = $array2[$i]; from kevin l'huillier That's basically what Mike wrote (only with array_push instead of []), and Bob improved upon. And they didn't mix the arrays up. I was only

[PHP] SAFEMODE w/ PEAR

2005-06-24 Thread Ashley M. Kirchner
I'm having a small problem with SAFE MODE and PEAR that I'm unsure how to solve: [error] PHP Warning: raiseerror(): SAFE MODE Restriction in effect. The script whose uid is 524 is not allowed to access /usr/lib/php/PEAR.php owned by uid 0 in /path/to/script/Lite.php on line 470

[PHP] Re: Trouble using ncurses_new_panel on PHP 4.3.11

2005-06-24 Thread Mike Bowie
Mike Bowie wrote: Hello all, I'm stumbling along with the ncurses implementation under 4.3.11 on FreeBSD. I've had some success with windows and borders etc based on some Googling(tm) and RTFM... but am having trouble getting ncurses_new_panel to do anything worthy of note. From what I

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Matthew Weier O'Phinney
* Robert Cummings [EMAIL PROTECTED] : On Fri, 2005-06-24 at 10:02, Jason Barnett wrote: Robert Cummings wrote: ... There's a difference between a reference to a reference and a copy of a reference *hehehe*. Now that makes sense. And am I correctly filling in the blanks when I

Re: [PHP] Uploading and verifying word and excel files

2005-06-24 Thread Jack Jackson
Thank you for ALL this great information, Richard! I really appreciate all the help. JJ Richard Lynch wrote: On Thu, June 23, 2005 7:42 am, Jack Jackson said: I cannot see a way to validate or examine Word or Excel files for validity (and assume that older word files would validate

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Jason Barnett
Robert Cummings wrote: ... Yeah, *grin*. And on that note, there are times when you will actually want $foo = new SomeClass(); versus $foo = new SomeClass(); since assigning by reference will break any previous references -- something I forgot to mention to Matthew Weier when he challenged the

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Robert Cummings
On Fri, 2005-06-24 at 14:09, Jason Barnett wrote: Robert Cummings wrote: ... Yeah, *grin*. And on that note, there are times when you will actually want $foo = new SomeClass(); versus $foo = new SomeClass(); since assigning by reference will break any previous references -- something I

[PHP] reading PDF's

2005-06-24 Thread Jon
Is it possible to read text from a PDF file with PHP? How? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can't even make a simple test RSS feed

2005-06-24 Thread Brian Dunning
What am I doing wrong? This doesn't work. The browser does not even load the page, no error or anything: ?php echo '?xml version=1.0?rss version=2.0channel'; echo 'item'; echo 'titlehdfghdf/title'; echo 'descriptiondfghdfh/description'; echo 'linkhttp://somelink/link'; echo '/item'; echo

[PHP] PHP web archeticture

2005-06-24 Thread Joe Muddah
I am trying to design a website archeticture. Does anyone have any links or experience with archetictures that actually work. Any ideas of how to layout a website would be greatly appreciated. This is what I am thinking of doing 1)Seperate Logic from presentation Using Templates (Smarty)

Re: [PHP] Can't even make a simple test RSS feed

2005-06-24 Thread Joe Muddah
go view-source in your browser. Some browsers will not show the xml all though it is in the source On 6/24/05, Brian Dunning [EMAIL PROTECTED] wrote: What am I doing wrong? This doesn't work. The browser does not even load the page, no error or anything: ?php echo '?xml version=1.0?rss

Re: [PHP] Can't even make a simple test RSS feed

2005-06-24 Thread Brian Dunning
I'm ahead of you there - that's not the problem. IE6 just acts like I didn't request a page. Safari returns a “unknown error” (NSURLErrorDomain:-1). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't even make a simple test RSS feed

2005-06-24 Thread Kevin L'Huillier
On 6/24/05, Brian Dunning [EMAIL PROTECTED] wrote: What am I doing wrong? This doesn't work. The browser does not even load the page, no error or anything: The script looks fine and executed as expected on my machine. Try executing it from the command-line. Often if nothing loads in the

[PHP] Re: PHP web archeticture

2005-06-24 Thread Matthew Weier O'Phinney
* Joe Muddah [EMAIL PROTECTED]: I am trying to design a website archeticture. Does anyone have any links or experience with archetictures that actually work. Any ideas of how to layout a website would be greatly appreciated. This is what I am thinking of doing 1)Seperate Logic from

[PHP] Re: Can't even make a simple test RSS feed

2005-06-24 Thread Matthew Weier O'Phinney
* Brian Dunning [EMAIL PROTECTED]: What am I doing wrong? This doesn't work. The browser does not even load the page, no error or anything: ?php echo '?xml version=1.0?rss version=2.0channel'; echo 'item'; echo 'titlehdfghdf/title'; echo 'descriptiondfghdfh/description'; echo

[PHP] How do I create an Outlook calendar entry?

2005-06-24 Thread Daevid Vincent
I was on Avis' car rental site the other day and booked a reservation, then they had a button that automatically added an entry into MS Outlook for the details, dates, times, etc. it was very nice! Anyone have some code or pear class or anything that does this? I am guessing I have to use COM,

[PHP] Object Oriented PHP (5)

2005-06-24 Thread Josh Olson
PHP has inspired me to become a better programmer. I have been actively reading books as well as online content to try to become better at designing and programming object oriented web applications. My primary focus is PHP. Will you help a pragmatic programmer in training out by suggesting some

Re: [PHP] Can't even make a simple test RSS feed

2005-06-24 Thread Nicolas Diez
Well, I don't know if I have the solution, but when the page has the ..php file extension it doesn't work. But when it has the .rss file extension, it works. It's the workaround I found. Safari doesn't return an error now. I've tested the script under MacOSX 10.4.1 with Apache 2.0.54 and PHP

RE: [PHP] Object Oriented PHP (5)

2005-06-24 Thread Chris W. Parker
Josh Olson mailto:[EMAIL PROTECTED] on Friday, June 24, 2005 12:57 PM said: ...and some of my OO code is still in production use 10 years after it was written. Inspiring. Please don't Lynch me Oh snap! Now you're just asking for it. :P Chris. -- PHP General Mailing List

Re: [PHP] How do I create an Outlook calendar entry?

2005-06-24 Thread tg-php
Actually most/all outlook items should be able to be created with straight text. Try creating a calendar entry and sending it to a normal POP3 email account then looking at it in a non-Outlook email client (view full source/headers/etc). You can try just dragging a calendar item to your

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Jason Barnett
Robert Cummings wrote: ... This is intentional behaviour, there are times when you want a copy of a reference and there are times when you want a reference to a reference. For instance consider the following: $foo1 = $foo2 = $foo3 = new a(); $foo2 = new b(); If these were references to

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Kevin L'Huillier
On 24/06/05, Jason Barnett [EMAIL PROTECTED] wrote: OK I'm pretty clear on it, but now I wonder: is variable assignment (=) the only place where the Zend Engine will copy a reference instead of reference the reference? In PHP 4, function arguments work the same way. Unless you use the

[PHP] Re: Can't even make a simple test RSS feed

2005-06-24 Thread Manuel Lemos
Hello, on 06/24/2005 04:23 PM Brian Dunning said the following: What am I doing wrong? This doesn't work. The browser does not even load the page, no error or anything: ?php echo '?xml version=1.0?rss version=2.0channel'; echo 'item'; echo 'titlehdfghdf/title'; echo

[PHP] Re: How do I create an Outlook calendar entry?

2005-06-24 Thread David Dorward
Daevid Vincent wrote: I was on Avis' car rental site the other day and booked a reservation, then they had a button that automatically added an entry into MS Outlook for the details, dates, times, etc. it was very nice! I am guessing I have to use COM Wouldn't that require the webserver to

[PHP] Re: PHP web archeticture

2005-06-24 Thread Catalin Trifu
Hi, You can take a look at phrame.sf.net, phpmvc.net, horder.org, binarycloud.com adodb.sf.net (for fast db abstraction layer). Read around and one of those will surely satisfy your needs. Catalin Joe Muddah wrote: I am trying to design a website archeticture. Does anyone have

[PHP] newline and pregreplace

2005-06-24 Thread Dotan Cohen
I've got a line like this: $str=preg_replace( -regex here-, '\nnote\1/note', $str); Which has one of two problems: If I leave the single quotes around the second argument, then it returns as \n and not a newline. If I change the single quotes to double quotes, then the info from the regex is not

[PHP] Removing nonlatin characters

2005-06-24 Thread Dotan Cohen
I thought that this was another old STFA but marc and google are quiet. I as parsing a bunch of submitted works and some of them have non-latin characters. I know that I once saw in the user-submitted notes in the docs a function for replacing them with o,a,i,e,u but I can't find it. I think that

[PHP] Re: newline and pregreplace

2005-06-24 Thread Bob Winter
Dotan Cohen wrote: I've got a line like this: $str=preg_replace( -regex here-, '\nnote\1/note', $str); Which has one of two problems: If I leave the single quotes around the second argument, then it returns as \n and not a newline. If I change the single quotes to double quotes, then the info

[PHP] Re: newline and pregreplace

2005-06-24 Thread Bob Winter
Bob Winter wrote: Dotan Cohen wrote: I've got a line like this: $str=preg_replace( -regex here-, '\nnote\1/note', $str); Which has one of two problems: If I leave the single quotes around the second argument, then it returns as \n and not a newline. If I change the single quotes to double

Re: [PHP] Re: newline and pregreplace

2005-06-24 Thread Dotan Cohen
On 6/25/05, Bob Winter [EMAIL PROTECTED] wrote: Bob Winter wrote: Dotan Cohen wrote: I've got a line like this: $str=preg_replace( -regex here-, '\nnote\1/note', $str); Which has one of two problems: If I leave the single quotes around the second argument, then it returns as \n

[PHP] Correcting contractions

2005-06-24 Thread Dotan Cohen
Hi friends, I've got a nice array of contractions (I've, I'd, they'll,...). My intent is to take submitted data and replace, say, every occurance of 'theyd' with 'they'd'. So far, so good. The trick is doing it if the first character is uppercase. I tried going throught the array, one by one, and

Re: [PHP] Correcting contractions

2005-06-24 Thread Robert Cummings
On Fri, 2005-06-24 at 21:02, Dotan Cohen wrote: Hi friends, I've got a nice array of contractions (I've, I'd, they'll,...). My intent is to take submitted data and replace, say, every occurance of 'theyd' with 'they'd'. So far, so good. The trick is doing it if the first character is

RE: [PHP] How do I create an Outlook calendar entry?

2005-06-24 Thread Daevid Vincent
You are on to something. Maybe I did get an email with a confirmation. I could swear it was via their website though... There are some pretty crazy Thread-Index: and UID: things in there. Do I have to generate them somehow? Anyways, for those interested, this is what the email looks like:

Re: [PHP] Correcting contractions

2005-06-24 Thread Dotan Cohen
On 6/25/05, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2005-06-24 at 21:02, Dotan Cohen wrote: Hi friends, I've got a nice array of contractions (I've, I'd, they'll,...). My intent is to take submitted data and replace, say, every occurance of 'theyd' with 'they'd'. So far, so good.

[PHP] Sybase and PHP

2005-06-24 Thread Joe Wollard
After looking through sybase.com and coming up with nothing I thought it might be better to see if anyone has already been down this road: I've got a very old laptop with a tiny little hard drive with very little free space on it. It's being used as a 'rogue' intranet server and doing a

Re: [PHP] Re: PHP web archeticture

2005-06-24 Thread Joe Muddah
Thanks a bunch. I have alot of work now ahead of me to decide which framework to use. Any opinions on which one is the best? On 6/24/05, Catalin Trifu [EMAIL PROTECTED] wrote: Hi, You can take a look at phrame.sf.net, phpmvc.net, horder.org, binarycloud.com adodb.sf.net (for fast

Re: [PHP] Re: PHP web archeticture

2005-06-24 Thread Robert Cummings
On Fri, 2005-06-24 at 23:41, Joe Muddah wrote: Thanks a bunch. I have alot of work now ahead of me to decide which framework to use. Any opinions on which one is the best? InterJinn of course. Cheers, Rob. -- .. | InterJinn

Re: [PHP] Correcting contractions

2005-06-24 Thread Bob Winter
Dotan Cohen wrote: On 6/25/05, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2005-06-24 at 21:02, Dotan Cohen wrote: Hi friends, I've got a nice array of contractions (I've, I'd, they'll,...). My intent is to take submitted data and replace, say, every occurance of 'theyd' with

Re: [PHP] reading PDF's

2005-06-24 Thread Joe Wollard
Jon, I'm not sure there is a way for you to do this from within PHP, but then again I didn't think it was possible for PHP to generate a pdf without any extra libs either ;-) You might want to start with the pdf2* command line programs. I think there is in fact one that will output the pdf as