php-general Digest 4 Feb 2008 14:30:59 -0000 Issue 5274

2008-02-04 Thread php-general-digest-help
php-general Digest 4 Feb 2008 14:30:59 - Issue 5274 Topics (messages 268611 through 268628): Re: about preg_replace, please help ! 268611 by: Casey 268618 by: LKSunny 268619 by: Casey 268620 by: Paul Scott Re: php competion 268612 by: Richard Lynch

Re: [PHP] php competion

2008-02-04 Thread Jochem Maas
Richard Lynch schreef: On Sun, February 3, 2008 11:51 am, Robert Cummings wrote: On Sun, 2008-02-03 at 18:15 +0200, Paul Scott wrote: On Sun, 2008-02-03 at 20:10 +1100, doc wrote: come on people try you skills at http://www.rhwebhosting.com/comp/index.php Reworded as: Redesign our

[PHP] Fileinfo

2008-02-04 Thread Mad Unix
I can not install FileInfo... any help [EMAIL PROTECTED] php.d]# pear config-show Configuration (channel pear.php.net): = Auto-discover new Channels auto_discovernot set Default Channeldefault_channel pear.php.net HTTP Proxy Server

Re: [PHP] flash with PHP

2008-02-04 Thread Zoltán Németh
2008. 02. 3, vasárnap keltezéssel 09.23-kor Alain Roger ezt írta: Hi, i would like to have a flash menu in my PHP website. this is no problem. My problem is how to exchange data between PHP andFlash (in both direction). i found a lot of posts on this theme, but nothing with really works

RE: [PHP] php competion

2008-02-04 Thread bruce
on the other hand... maybe they're looking for not only skilled developers to build the app, but also people that they can work with, as partners.. who knows, maybe these guys have a pool of real estate partners and the $$$ will flow if they can get things off the ground... but i'm sure that

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Per Jessen
Pieter du Toit wrote: I am using paradigmsolutions.co.za. I read about cronjobs, but aparently it is only available on unix or linux hosting, is this true? I'm sure a Windows hosting-setup will have something equivalent. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Daniel Brown
On Feb 4, 2008 9:30 AM, Pieter du Toit [EMAIL PROTECTED] wrote: Hi people Is there a way that i can schedule tasks on my webserver that will automatically fire on a certain time and date, without anyone visiting the website? In any case, yes but the method depends on whether it's a

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Pieter du Toit
I am using paradigmsolutions.co.za. I read about cronjobs, but aparently it is only available on unix or linux hosting, is this true? Paul Scott [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 2008-02-04 at 16:30 +0200, Pieter du Toit wrote: Is there a way that i can

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Michael Fischer
On Mon, 2008-02-04 at 16:30 +0200, Pieter du Toit wrote: Hi people Is there a way that i can schedule tasks on my webserver that will automatically fire on a certain time and date, without anyone visiting the website? This domain is hosted by a ISP and not by me. Thanks afaik you

Re: [PHP] Redirecting STDERR to a file?

2008-02-04 Thread Daniel Brown
On Feb 3, 2008 10:08 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, February 1, 2008 10:58 pm, js wrote: Hi, I was trying to write a script in PHP that takes a program name as an argument and invoke it as a daemon. PHP provides fork(pcntl_fork), setsid(posix_setsid) and umask,

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Pieter du Toit
98% of the pages is PHP, and i dont know if all my code is *nix compatable, it should be, but i dont want to take the risk by moving, i already have to much to do still. Paul Scott [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 2008-02-04 at 16:46 +0200, Pieter du Toit

Re: [PHP] about preg_replace, please help !

2008-02-04 Thread Daniel Brown
On Feb 3, 2008 8:00 PM, LKSunny [EMAIL PROTECTED] wrote: ? $txt = eof a a a eof; //i just want replace start to first \r\n\r\n //how can i do ? [snip] ? $txt = eof a a a eof;

Re: [PHP] Effecient mass mailings

2008-02-04 Thread Robert Fitzpatrick
On Mon, 2008-02-04 at 08:53 -0800, Jim Lucas wrote: If you were sending HTML formatted emails and included images for the layout, that would be fine. But a 2-5MB attachment? Why would want to send that as an attachment. Give them a link back to your website. If it is a private thing,

Re: [PHP] Schedule tasks from server

2008-02-04 Thread clive
Pieter du Toit wrote: 98% of the pages is PHP, and i dont know if all my code is *nix compatable, it should be, but i dont want to take the risk by moving, i already have to much to do still. As Richard said ,theirs the task scheduler in windows, but I would go with Paul's suggestion and

[PHP] Effecient mass mailings

2008-02-04 Thread Robert Fitzpatrick
I a currently re-writing a web app from ASP to PHP and have come to the part where the app sends mass mailings to their customer base. This has always been problematic for them with the existing setup and I am looking for the best approach. While I've setup mailings with PHP, never such mass

Re: [PHP] Doctrine vs. Propel

2008-02-04 Thread Nathan Nobbe
On Feb 4, 2008 1:44 PM, AmirBehzad Eslami [EMAIL PROTECTED] wrote: Dear List, I've just heard of ORM (Object Relational Mapping) frameworks written for PHP. It seems that there are two major frameworks here: Doctrine and Propel: http://www.phpdoctrine.org/ http://propel.phpdb.org/trac/

[PHP] Doctrine vs. Propel

2008-02-04 Thread AmirBehzad Eslami
Dear List, I've just heard of ORM (Object Relational Mapping) frameworks written for PHP. It seems that there are two major frameworks here: Doctrine and Propel: http://www.phpdoctrine.org/ http://propel.phpdb.org/trac/ I wonder which one is better? What is the difference between these? I'm

Re: [PHP] Efficient mass mailings

2008-02-04 Thread Per Jessen
Robert Fitzpatrick wrote: I a currently re-writing a web app from ASP to PHP and have come to the part where the app sends mass mailings to their customer base. This has always been problematic for them with the existing setup and I am looking for the best approach. While I've setup mailings

Re: [PHP] how to make multiple website on one host

2008-02-04 Thread Daniel Brown
On Feb 4, 2008 1:12 AM, jeffry s [EMAIL PROTECTED] wrote: can you tell me more about mod_rewrite? Apache can [NOTE: This is to the 1.3.x tree] http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--;

Re: [PHP] Effecient mass mailings

2008-02-04 Thread Richard Heyes
I've always personally hated receiving email with large attachments, preferring instead to get links to the content on the web. Plus, that cuts down on the bandwidth the server (as well as mailservers, gateways, et cetera) are responsible for handling, because the PDFs or other attachments

Re: [PHP] Effecient mass mailings

2008-02-04 Thread Jim Lucas
Robert Fitzpatrick wrote: I a currently re-writing a web app from ASP to PHP and have come to the part where the app sends mass mailings to their customer base. This has always been problematic for them with the existing setup and I am looking for the best approach. While I've setup mailings

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Richard Heyes
I am using paradigmsolutions.co.za. I read about cronjobs, but aparently it is only available on unix or linux hosting, is this true? Cron is a *nix thing yes. Though Windows has the task scheduler. You'll need to check with your ISP to see if it's available or if there's an alternative. --

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Paul Scott
On Mon, 2008-02-04 at 16:30 +0200, Pieter du Toit wrote: Is there a way that i can schedule tasks on my webserver that will automatically fire on a certain time and date, without anyone visiting the website? This domain is hosted by a ISP and not by me. Ask your ISP if they support cron

[PHP] Schedule tasks from server

2008-02-04 Thread Pieter du Toit
Hi people Is there a way that i can schedule tasks on my webserver that will automatically fire on a certain time and date, without anyone visiting the website? This domain is hosted by a ISP and not by me. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Paul Scott
On Mon, 2008-02-04 at 16:46 +0200, Pieter du Toit wrote: I am using paradigmsolutions.co.za. I read about cronjobs, but aparently it is only available on unix or linux hosting, is this true? Well, why not just host on *nix then? I see your site is a MS Frontpage one, but most linux based

Re: [PHP] Effecient mass mailings

2008-02-04 Thread Daniel Brown
On Feb 4, 2008 11:34 AM, Richard Heyes [EMAIL PROTECTED] wrote: If you have attachments, you could use one or more cheap remote servers and Bcc: the recipients. Or use the local mail gateway. Bcc:ing will cut down on the amount of the amount of actual data transferred to the mail server; you

Re: [PHP] Efficient mass mailings

2008-02-04 Thread Per Jessen
Richard Heyes wrote: If you have attachments, you could use one or more cheap remote servers and Bcc: the recipients. Or use the local mail gateway. Bcc:ing will cut down on the amount of the amount of actual data transferred to the mail server; you can send to say 100 recipients at once but

Re: [PHP] Effecient mass mailings

2008-02-04 Thread Jason Pruim
) On Feb 4, 2008, at 11:22 AM, Robert Fitzpatrick wrote: I a currently re-writing a web app from ASP to PHP and have come to the part where the app sends mass mailings to their customer base. This has always been problematic for them with the existing setup and I am looking for the best

Re: [PHP] Efficient mass mailings

2008-02-04 Thread Richard Heyes
Whether you BCC or not does not affect the actual mail-server traffic. A Bcc'ed address is only one that isn't listed in To: header. But it does affect how much data gets transferred to the mail server. If you Bcc: addresses the email will only be sent over the wire to the mail server once.

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Daniel Brown
On Feb 4, 2008 11:05 AM, Richard Heyes [EMAIL PROTECTED] wrote: your code should be portable Except in reality, it probably isn't. Off the top of my head, think file paths. Which is why I mentioned the exec() family. Otherwise, relative paths for includes will work regardless

RE: [PHP] flash with PHP

2008-02-04 Thread Bastien Koert
try asking on www.flashkit.com bastien Date: Mon, 4 Feb 2008 07:45:25 +0200 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: php-general@lists.php.net Subject: Re: [PHP] flash with PHP FlashKnowledge = 0; phpKnowledge = 1; I remember some time back finding a class for php and a

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Richard Heyes
your code should be portable Except in reality, it probably isn't. Off the top of my head, think file paths. Which is why I mentioned the exec() family. Otherwise, relative paths for includes will work regardless of the slash style (*nix / vs Windows \) preferred by the OS. Or is my

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Richard Heyes
your code should be portable Except in reality, it probably isn't. Off the top of my head, think file paths. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Daniel Brown
On Feb 4, 2008 10:11 AM, Pieter du Toit [EMAIL PROTECTED] wrote: 98% of the pages is PHP, and i dont know if all my code is *nix compatable, it should be, but i dont want to take the risk by moving, i already have to much to do still. As I and others have said, Windows has the scheduled

Re: [PHP] Effecient mass mailings

2008-02-04 Thread Richard Heyes
I a currently re-writing a web app from ASP to PHP and have come to the part where the app sends mass mailings to their customer base. This has always been problematic for them with the existing setup and I am looking for the best approach. While I've setup mailings with PHP, never such mass

Re: [PHP] New search related question

2008-02-04 Thread Daniel Brown
On Feb 4, 2008 2:48 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search function for someone's website, the website is just static HTML files, and she doesn't want

[PHP] Re: Doctrine vs. Propel

2008-02-04 Thread Manuel Lemos
Hello, on 02/04/2008 04:44 PM AmirBehzad Eslami said the following: Dear List, I've just heard of ORM (Object Relational Mapping) frameworks written for PHP. It seems that there are two major frameworks here: Doctrine and Propel: http://www.phpdoctrine.org/ http://propel.phpdb.org/trac/

[PHP] New search related question

2008-02-04 Thread Jason Pruim
Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search function for someone's website, the website is just static HTML files, and she doesn't want to redo the entire website to make it dynamic. What I am

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Daniel Brown
On Feb 4, 2008 10:41 AM, Richard Heyes [EMAIL PROTECTED] wrote: your code should be portable Except in reality, it probably isn't. Off the top of my head, think file paths. Which is why I mentioned the exec() family. Otherwise, relative paths for includes will work regardless of the

Re: [PHP] Fileinfo

2008-02-04 Thread Daniel Brown
On Feb 4, 2008 4:06 AM, Mad Unix [EMAIL PROTECTED] wrote: I can not install FileInfo... any help [snip] Note this line: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to Update the php.ini to use more than 8MB. (See `memory_limit`) While you're at it,

Re: [PHP] Efficient mass mailings

2008-02-04 Thread Per Jessen
Richard Heyes wrote: Whether you BCC or not does not affect the actual mail-server traffic. A Bcc'ed address is only one that isn't listed in To: header. But it does affect how much data gets transferred to the mail server. If you Bcc: addresses the email will only be sent over the wire to

[PHP] Re: Effecient mass mailings

2008-02-04 Thread Manuel Lemos
Hello, on 02/04/2008 02:22 PM Robert Fitzpatrick said the following: I a currently re-writing a web app from ASP to PHP and have come to the part where the app sends mass mailings to their customer base. This has always been problematic for them with the existing setup and I am looking for

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Richard Lynch
On Mon, February 4, 2008 8:30 am, Pieter du Toit wrote: Is there a way that i can schedule tasks on my webserver that will automatically fire on a certain time and date, without anyone visiting the website? This domain is hosted by a ISP and not by me. There is a low-level utility in

Re: [PHP] New search related question

2008-02-04 Thread Eric Butera
On Feb 4, 2008 2:48 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search function for someone's website, the website is just static HTML files, and she doesn't want

Re: [PHP] In Your Arms

2008-02-04 Thread Eric Butera
On Feb 4, 2008 3:50 PM, [EMAIL PROTECTED] wrote: Destiny http://86.31.249.90/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I've decoded the secret message

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-02-04 Thread szalinski
Well thanks again, but I already know what the problem is, it is the response headers being added to the ouput file. I just tried with a different code and it seems to output the file ok, so i must be going wrong somewhere in the order in which i output headers and so on. i'm gonna keep

Re: [PHP] php competion

2008-02-04 Thread Shawn McKenzie
I hardly think this one is a scam, I mean all you have to do is write a PHP app that converts between PHP, Python, C and Perl and you get: not only bragging rights will come your way, but it will sure look good on your resume! I'm in. Nathan Nobbe wrote: i ashamed to say i was the subject of a

Re: [PHP] php competion

2008-02-04 Thread Andrew Ballard
On Feb 4, 2008 4:10 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, February 4, 2008 2:36 am, Jochem Maas wrote: Richard Lynch schreef: On Sun, February 3, 2008 11:51 am, Robert Cummings wrote: On Sun, 2008-02-03 at 18:15 +0200, Paul Scott wrote: On Sun, 2008-02-03 at 20:10 +1100,

Re: [PHP] Re: New search related question

2008-02-04 Thread Andrew Ballard
On Feb 4, 2008 3:40 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: strip_tags() perhaps? Perhaps; I've never been thrilled with strip_tags(), but it should work well enough here. But combined with grep? I guess for most searches grep would narrow things down reasonably well before you have to start

Re: [PHP] Re: New search related question

2008-02-04 Thread Shawn McKenzie
OP didn't ask for the best search tool. Back to the horror of cron jobs to updatedb (or were you being sarcastic?) :-) I am familiar with using (s)locate to find files by name etc... But I haven't seen how to index and search file contents. man is no help and I didn't get any google love

Re: [PHP] php competion

2008-02-04 Thread Richard Lynch
On Mon, February 4, 2008 2:36 am, Jochem Maas wrote: Richard Lynch schreef: On Sun, February 3, 2008 11:51 am, Robert Cummings wrote: On Sun, 2008-02-03 at 18:15 +0200, Paul Scott wrote: On Sun, 2008-02-03 at 20:10 +1100, doc wrote: come on people try you skills at

Re: [PHP] Re: New search related question

2008-02-04 Thread Robert Cummings
I thought he was extracting the words form the content... maybe just using strip_tags(). Doing that and pushing to a fulltext field would cover most of his bases. Cheers, Rob. On Mon, 2008-02-04 at 14:37 -0600, Shawn McKenzie wrote: Inefficient, maybe. Lazy, most likely yes. I agree that

Re: [PHP] Re: New search related question

2008-02-04 Thread Shawn McKenzie
strip_tags() perhaps? Andrew Ballard wrote: On Feb 4, 2008 3:13 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: If there aren't many files and you don't intend to grow this site much larger and intend to always have static HTML, any easy implementation would be to read each file and search for

Re: [PHP] Re: New search related question

2008-02-04 Thread Shawn McKenzie
Inefficient, maybe. Lazy, most likely yes. I agree that htdig may be a better solution, however his current solution requires upkeep if the static HTML is changed and requires that the person populating the database pick all relevant words from the page and if new ones are added to update the

Re: [PHP] New search related question

2008-02-04 Thread Greg Donald
On 2/4/08, Jason Pruim [EMAIL PROTECTED] wrote: Is there anything wrong with the way I'm thinking? Or is it that there is a better way to search through a static HTML site? http://www.htdig.org/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] php competion

2008-02-04 Thread Eric Butera
On Feb 4, 2008 5:23 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Feb 4, 2008 4:26 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: I hardly think this one is a scam, I mean all you have to do is write a PHP app that converts between PHP, Python, C and Perl and you get: not only bragging rights

Re: [PHP] In Your Arms

2008-02-04 Thread Eric Butera
On Feb 4, 2008 5:13 PM, Jim Lucas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Destiny http://86.31.249.90/ I love FF + NoScript :) -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II,

Re: [PHP] php competion

2008-02-04 Thread Nathan Nobbe
i ashamed to say i was the subject of a scam whereby i wrote a solid weekends worth of code only to find out these assholes decided not to pay up. http://www.cartoondollemporium.com/ i can only imagine theyve done this to many other developers and plan on doing it to more. though ive not read

Re: [PHP] php competion

2008-02-04 Thread Nathan Nobbe
On Feb 4, 2008 4:26 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: I hardly think this one is a scam, I mean all you have to do is write a PHP app that converts between PHP, Python, C and Perl and you get: not only bragging rights will come your way, but it will sure look good on your resume!

Re: [PHP] In Your Arms

2008-02-04 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Destiny http://86.31.249.90/ I love FF + NoScript :) -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List

[PHP] Re: New search related question

2008-02-04 Thread Shawn McKenzie
If there aren't many files and you don't intend to grow this site much larger and intend to always have static HTML, any easy implementation would be to read each file and search for the terms either in the keywords tag or in the entire file. Optionally, if you're on a *nix host you could exec()

Re: [PHP] Re: New search related question

2008-02-04 Thread Robert Cummings
On Mon, 2008-02-04 at 14:13 -0600, Shawn McKenzie wrote: If there aren't many files and you don't intend to grow this site much larger and intend to always have static HTML, any easy implementation would be to read each file and search for the terms either in the keywords tag or in the entire

Re: [PHP] Effecient mass mailings

2008-02-04 Thread Richard Lynch
On Mon, February 4, 2008 10:22 am, Robert Fitzpatrick wrote: Can someone give some pointers at how I may want to approach such mass mailings? Thanks in advance! Get rid of the attachments? :-) -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie

Re: [PHP] Re: New search related question

2008-02-04 Thread Andrew Ballard
On Feb 4, 2008 3:13 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: If there aren't many files and you don't intend to grow this site much larger and intend to always have static HTML, any easy implementation would be to read each file and search for the terms either in the keywords tag or in the

Re: [PHP] New search related question

2008-02-04 Thread tedd
At 2:48 PM -0500 2/4/08, Jason Pruim wrote: Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search function for someone's website, the website is just static HTML files, and she doesn't want to redo the

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-02-04 Thread Richard Lynch
On Fri, February 1, 2008 7:45 pm, szalinski wrote: On Thu, 31 Jan 2008 07:13:55 -, Per Jessen [EMAIL PROTECTED] wrote: Well I got it to work, much thanks to Richard Lynch, but now everytime I download a file, it is corrupt. For example, when I download small .rar file, just to test, it

Re: [PHP] Re: New search related question

2008-02-04 Thread Greg Donald
On 2/4/08, Shawn McKenzie [EMAIL PROTECTED] wrote: I agree that htdig may be a better solution, however his current solution requires upkeep if the static HTML is changed and requires that the person populating the database pick all relevant words from the page and if new ones are added to

Re: [PHP] New search related question

2008-02-04 Thread Daniel Brown
On Feb 4, 2008 2:48 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search function for someone's website, the website is just static HTML files, and she doesn't want

Re: [PHP] In Your Arms

2008-02-04 Thread Jochem Maas
Eric Butera schreef: On Feb 4, 2008 5:13 PM, Jim Lucas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Destiny http://86.31.249.90/ I love FF + NoScript :) -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth

Re: [PHP] php competion

2008-02-04 Thread Robert Cummings
On Mon, 2008-02-04 at 15:26 -0600, Shawn McKenzie wrote: I hardly think this one is a scam, I mean all you have to do is write a PHP app that converts between PHP, Python, C and Perl and you get: not only bragging rights will come your way, but it will sure look good on your resume! I'm

Re: [PHP] New search related question

2008-02-04 Thread Jim Lucas
Daniel Brown wrote: On Feb 4, 2008 2:48 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search function for someone's website, the website is just static HTML files, and

Re: [PHP] Pass Variable Names to a Function

2008-02-04 Thread Richard Lynch
function silly($var){ return isset($_SESSION[$var]) ? $_SESSION[$var] : ''; } silly('foo'); On Fri, February 1, 2008 10:49 am, Bill Guion wrote: I would like to use a function to check to see if a session variable is set and return the session variable if it is set, and return blank if not.

RE: [PHP] php competion

2008-02-04 Thread Warren Vail
There's probably even a tee-shirt. As in; been there, done that, got the tee-shirt. Warren -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 5:32 PM To: php-general@lists.php.net Subject: Re: [PHP] php competion And a newer adage,

Re: [PHP] php competion

2008-02-04 Thread Shawn McKenzie
And a newer adage, maybe from grade school, takes one to know one. :-) Robert Cummings wrote: On Mon, 2008-02-04 at 15:26 -0600, Shawn McKenzie wrote: I hardly think this one is a scam, I mean all you have to do is write a PHP app that converts between PHP, Python, C and Perl and you get:

[PHP] text messages

2008-02-04 Thread blackwater dev
I know this isn't specific to php but I need to add some code to my php pages to start sending out text messages. If anyone does this, how do you do it? Do you simply use a free service like teleflip or do you use a paid aggregator company? Thanks!

[PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread szalinski
Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working example on how to use fsockopen() to fetch a file on a remote

[PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread szalinski
Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working example on how to use fsockopen() to fetch a file on a remote server,

[PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread szalinski
Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working example on how to use fsockopen() to fetch a file on a remote server,

Re: [PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread Wolf
Wow, did you have to post this 6 times barney?? szalinski wrote: Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working

Re: [PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread Wolf
Wow, did you have to post this 6 times barney?? szalinski wrote: Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working

Re: [PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread Wolf
Wow, did you have to post this 6 times barney?? szalinski wrote: Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working

Re: [PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread Wolf
Wow, did you have to post this 6 times barney?? szalinski wrote: Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working

Re: [PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread Wolf
Wow, did you have to post this 6 times barney?? szalinski wrote: Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working

Re: [PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread Wolf
Wow, did you have to post this 6 times barney?? szalinski wrote: Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working

Re: [PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread venkatk
Try this, it should work. //Get the file from the remote location function getFile($host, $resource, $port) { ??? $hdr = ''; ??? $file_cont = ''; ??? $fh = fsockopen($host, $port, $errno, $errstr, 300); ??? ??? if(! $fh) ??? { ??? ??? return error; ??? } else { ??? ??? $hdr .= GET /$resource

Re: [PHP] text messages

2008-02-04 Thread clive
blackwater dev wrote: I know this isn't specific to php but I need to add some code to my php pages to start sending out text messages. If anyone does this, how do you do it? Do you simply use a free service like teleflip or do you use a paid aggregator company? I use a paid service, called

RE: [PHP] php competion

2008-02-04 Thread Robert Cummings
On Mon, 2008-02-04 at 17:43 -0800, Warren Vail wrote: There's probably even a tee-shirt. As in; been there, done that, got the tee-shirt. Live and learn! :) Cheers, Rob. -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 5:32

Re: [PHP] Doctrine vs. Propel

2008-02-04 Thread Zoltán Németh
2008. 02. 4, hétfő keltezéssel 22.14-kor AmirBehzad Eslami ezt írta: Dear List, I've just heard of ORM (Object Relational Mapping) frameworks written for PHP. It seems that there are two major frameworks here: Doctrine and Propel: http://www.phpdoctrine.org/ http://propel.phpdb.org/trac/

Re: [PHP] Doctrine vs. Propel

2008-02-04 Thread Zoltán Németh
2008. 02. 4, hétfő keltezéssel 14.03-kor Nathan Nobbe ezt írta: On Feb 4, 2008 1:44 PM, AmirBehzad Eslami [EMAIL PROTECTED] wrote: Dear List, I've just heard of ORM (Object Relational Mapping) frameworks written for PHP. It seems that there are two major frameworks here: Doctrine and

Re: [PHP] Efficient mass mailings

2008-02-04 Thread Per Jessen
Richard Heyes wrote: Whether you BCC or not does not affect the actual mail-server traffic. A Bcc'ed address is only one that isn't listed in To: header. But it does affect how much data gets transferred to the mail server. If you Bcc: addresses the email will only be sent over the wire to