[PHP] Re: Regex in PHP

2008-06-04 Thread Shawn McKenzie
VamVan wrote: Hello All, For example I have these email addressess - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] What would be my PHP function[Regular expression[ to that can give me some thing like yahoo.com hotmail.com gmail.com Thanks Or if you know that the address is

[PHP] Re: Quickly verifying single word.

2008-06-04 Thread Shawn McKenzie
Tyson Vanover wrote: I need a quick way to make sure that a string is a single word with no white spaces. I would prefer that it is a command that could fit on a single line. Or at least an if block. I have a few thoughts on this but it involves things like explode(), stripslashes(), etc.

[PHP] Re: Quickly verifying single word.

2008-06-04 Thread Shawn McKenzie
Shawn McKenzie wrote: Tyson Vanover wrote: I need a quick way to make sure that a string is a single word with no white spaces. I would prefer that it is a command that could fit on a single line. Or at least an if block. I have a few thoughts on this but it involves things like explode

Re: [PHP] Avoid object twice

2008-06-03 Thread Shawn McKenzie
Stut wrote: On 3 Jun 2008, at 18:35, Yui Hiroaki wrote: Sorry I still have a problem. Let's take a step back. What are you *actually* trying to do. I'm assuming it's not just printing out Hello and Good. What is the real problem you're trying to solve and what are the constraints that are

Re: [PHP] saving outside website content via php...

2008-06-02 Thread Shawn McKenzie
Boyd, Todd M. wrote: -Original Message- From: blackwater dev [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2008 9:26 PM To: Shawn McKenzie Cc: php-general@lists.php.net Subject: Re: [PHP] saving outside website content via php... Yes, but file_get_contents will get me the code which

Re: [PHP] saving outside website content via php...

2008-06-01 Thread Shawn McKenzie
Gabriel Sosa wrote: why no just save the searhed url in a db field. next time you just need call the iframe with the last or N search anyway if you still want to save all the searched page try using curl http://ar.php.net/manual/en/function.curl-exec.php saludos On Sat, May 31, 2008 at 8:11

Re: [PHP] Embed images in emails

2008-05-30 Thread Shawn McKenzie
Per Jessen wrote: Iñigo Medina García wrote: Hi Per, yep, it's true, playing with mime it can be sent as attachment, but I don't want that but embed. iñigo OK, then you need to revisit what Bastien said. However, instead of img referring to an external image, you need to use

Re: [PHP] Embed images in emails

2008-05-29 Thread Shawn McKenzie
Per Jessen wrote: Bastien Koert wrote: You'll need to create a HTML email, and then embed the image with the img tag, using the entire path to the image as the source attribute Not necessarily, images may simply be sent as an attachment with type image/jpeg etc. /Per Jessen, Zürich I

Re: [PHP] Dead code

2008-05-19 Thread Shawn McKenzie
Eric Butera wrote: On Mon, May 19, 2008 at 11:06 AM, Aschwin Wesselius [EMAIL PROTECTED] wrote: Hello list, Is there anyone having experience with finding dead code in their library / application? Dead code as in unused variables, uncalled methods, uncalled functions, undeclared classes etc.

Re: [PHP] Re: A Little Something.

2008-05-13 Thread Shawn McKenzie
Stut wrote: On 12 May 2008, at 09:39, Peter Ford wrote: tedd wrote: Hi gang: This is what I did this morning: http://webbytedd.com/bb/tribute/ It speaks for itself. Cheers, tedd tedd, Nothing to do with the subject matter, but I noticed because it is one of your more simple pages: I get a

Re: [PHP] validating textarea using php

2008-05-13 Thread Shawn McKenzie
Dan Joseph wrote: On Tue, May 13, 2008 at 12:02 PM, Usamah al-Amin [EMAIL PROTECTED] wrote: if(chop($comments) == ) { ... } //hope that helps. Well, chop() is an alias of rtrim(), so it won't work here for, say, trimming control characters at the end of the string like line feeds. trim()

Re: [PHP] PHP-MYSQL Error: Can't connect to MySQL socket. Can someonehelp me out please?

2008-05-11 Thread Shawn McKenzie
Rahul P wrote: Ok I removed mysql using yum remove mysql. But is there a special way to tell yum to install that version of mysql? On Sun, May 11, 2008 at 12:44 AM, Rahul P [EMAIL PROTECTED] wrote: On Sun, May 11, 2008 at 12:42 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Sun, May 11, 2008

[PHP] Re: How to determine if file is writable and deletable

2008-05-11 Thread Shawn McKenzie
Al wrote: I ended up using posix_access() which is what is_writeable() should be. is_writeable() is virtually useless. Al wrote: I need to determine if a file is truly deletable by a php script, Deleting permissions seem to be the same as writing, they probably have the same criteria.

[PHP] Re: british date format

2008-05-09 Thread Shawn McKenzie
Merca, Ansta Ltd wrote: Hi Anyone dd/mm/ as a date variable? strtotime - works fine with mm/dd/ but now with dd/mm/. (PHP 4.x) setlocale() and then... http://pt.php.net/manual/en/function.strftime.php -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: british date format

2008-05-09 Thread Shawn McKenzie
André Medeiros wrote: Shawn, I think the idea here was to get a timestamp from a date in that format he was telling about. After replying however, I noticed that strptime is only implemented in PHP5. Sorry about that mate. On Fri, May 9, 2008 at 2:36 PM, Shawn McKenzie [EMAIL PROTECTED] wrote

Re: [PHP] Re: british date format

2008-05-09 Thread Shawn McKenzie
Shawn McKenzie wrote: André Medeiros wrote: Shawn, I think the idea here was to get a timestamp from a date in that format he was telling about. After replying however, I noticed that strptime is only implemented in PHP5. Sorry about that mate. On Fri, May 9, 2008 at 2:36 PM, Shawn McKenzie

Re: [PHP] Re: british date format

2008-05-09 Thread Shawn McKenzie
André Medeiros wrote: Yeah, that would be the way to do it ;) On Fri, May 9, 2008 at 3:54 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Shawn McKenzie wrote: André Medeiros wrote: Shawn, I think the idea here was to get a timestamp from a date in that format he was telling about. After

[PHP] Re: php.ini

2008-05-09 Thread Shawn McKenzie
Michael Satterwhite wrote: I'm trying to turn off magic quotes for a site. I've copied the php.ini from /etc/php5/apache2 to the web site directory. In this file, I've changed magic_quotes_gpc to read magic_quotes.gpc = Off When I run phpinfo() from this directory, it still shows

[PHP] Re: Newbie - is there a function similar to the sql 'like' comparisonoperator?

2008-05-08 Thread Shawn McKenzie
revDAVE wrote: Newbie - is there a function similar to the sql 'like' comparison operator? I would like to be able to compare 2 strings: If $this ---*like or similar to*--- $that That type of thing... I know of this page: http://us3.php.net/manual/sl/language.operators.comparison.php But

Re: [PHP] Regex to catch ps (weird result)

2008-05-07 Thread Shawn McKenzie
Ryan S wrote: clip preg_match_all('|p[^]*(.*)/p|Ui', $myText, $myArray); /clip Hey! Thanks for replying. Your preg_match_all works like a charm, but for some reason catches only 8 out of 9 paragraphs... its really weird. I have upped the test page to

Re: [PHP] Regex to catch ps

2008-05-06 Thread Shawn McKenzie
Ryan S wrote: clip To say I suck at regex is an understatement so really need any help I can get on this, I have a page of text with different html tags in them, but each block of text has a p or a class=something tag... anybody have any regex that will catch each of these paragraphs and

[PHP] Re: Assigning functions

2008-05-02 Thread Shawn McKenzie
Philip Thompson wrote: Hi all. I have several classes. Within each class, a new class is called. Is there a way to assign a function in a *deeper* class to be called in the first class? Example to follow.. ?php class A { function __construct () { $this-b = new B (); //

Re: [PHP] Re: Assigning functions

2008-05-02 Thread Shawn McKenzie
Craige Leeder wrote: On Fri, May 2, 2008 at 7:27 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Why are you using OOP? That's insane. -Shawn I believe that's a matter of opinion. Some people like OOP, others don't. Why criticize the man because he likes to use it? I like to use

Re: [PHP] Re: Assigning functions

2008-05-02 Thread Shawn McKenzie
Shawn McKenzie wrote: Craige Leeder wrote: On Fri, May 2, 2008 at 7:27 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Why are you using OOP? That's insane. -Shawn I believe that's a matter of opinion. Some people like OOP, others don't. Why criticize the man because he likes

[PHP] Re: php 5 and mysql failure

2008-04-30 Thread Shawn McKenzie
Yehudi Alexis Garrett wrote: I'm using a php script which performs three xml queries to other three servers to retrieve a set of ids and after I do a query to mysql of the kind SELECT * FROM table WHERE id IN ('set of ids'); Although I'm sure the connection to the database is ok, I sometimes

[PHP] Re: PHP Errors to screen

2008-04-29 Thread Shawn McKenzie
Adam Gerson wrote: Where do I change the setting to print PHP errors to the screen when running in a web browser? Thanks, Adam php.ini, display_errors -shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Errors to screen

2008-04-29 Thread Shawn McKenzie
Adam Gerson wrote: Where do I change the setting to print PHP errors to the screen when running in a web browser? Thanks, Adam Or in your script use ini_set() -shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help with preg_match_all regex for alt tags

2008-04-29 Thread Shawn McKenzie
Joe Harman wrote: Hey y'all ... i am having alittle trouble with this regex for finding ALT tags for images... Here is my statement

[PHP] Re: Making an array from delimited data

2008-04-28 Thread Shawn McKenzie
Joe Harman wrote: I have some data that I pull from a database that is in the following format: - Gauge Style: Auto Meter Pro-Comp Tachometer Usage: Standard Gauge Series: Analog Gauge Range: 0-11,000 rpm Gauge Diameter (in): 5 in.

[PHP] Re: SEE MY LATE JANGO JIMMY(Snr) BUSINESS CARD,I SEND MY PICTURES WHENI HEAR FROM YOU.

2008-04-28 Thread Shawn McKenzie
Acct.yussuf Jimmy wrote: Dear, I am yussuf Jimmy,from Togo Republique.I will be very glad if you do assist me to download the sum of ( USD$15.8Million)into your bank account. I got your contact through a Global Network and i decided to communicate with you in a good manner. I will

Re: [PHP] OS need anything for mail() to work?

2008-04-28 Thread Shawn McKenzie
Jason Pruim wrote: On Apr 28, 2008, at 3:47 PM, Richard Lynch wrote: On Fri, April 25, 2008 3:44 pm, Brian Dunning wrote: Is there any way for PHP to know that this email is not going through? You could, perhaps, hack your MTA to notify something somewhere that PHP can check... But it's

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Shawn McKenzie
Brian Dunning wrote: Is there any way for PHP to know that this email is not going through? On Apr 25, 2008, at 1:21 PM, Eric Butera wrote: Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: to=[EMAIL PROTECTED], relay=none, delay=4470, delays=4440/30/0/0, dsn=4.4.1, status=deferred

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Shawn McKenzie
Shawn McKenzie wrote: Brian Dunning wrote: Is there any way for PHP to know that this email is not going through? On Apr 25, 2008, at 1:21 PM, Eric Butera wrote: Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: to=[EMAIL PROTECTED], relay=none, delay=4470, delays=4440/30/0/0, dsn

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Shawn McKenzie
Shawn McKenzie wrote: Brian Dunning wrote: Is there any way for PHP to know that this email is not going through? On Apr 25, 2008, at 1:21 PM, Eric Butera wrote: Apr 24 17:03:34 MacBrian postfix/error[10699]: F19D21287847: to=[EMAIL PROTECTED], relay=none, delay=4470, delays=4440/30/0/0, dsn

[PHP] Re: the most amazing php code i have ever seen so far

2008-04-24 Thread Shawn McKenzie
paragasu wrote: i have seen many php code. i learn php on my own, and during early days with php, i download many open source php project and try to learn the coding on my own. i did see many code (ugly, spaghetti code etc). Some even take me few hours to figure out how it works. But one

[PHP] Re: the most amazing php code i have ever seen so far

2008-04-24 Thread Shawn McKenzie
paragasu wrote: i have seen many php code. i learn php on my own, and during early days with php, i download many open source php project and try to learn the coding on my own. i did see many code (ugly, spaghetti code etc). Some even take me few hours to figure out how it works. But one

Re: [PHP] Re: php framework vs just php?

2008-04-23 Thread Shawn McKenzie
Robert Cummings wrote: On Tue, 2008-04-22 at 19:05 -0500, Shawn McKenzie wrote: Tony Marston wrote: Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] You haven't answered the question. Where can this piece of wizardry be downloaded so that it can be reviewed

[PHP] Re: Testing HTTPS without certificate

2008-04-23 Thread Shawn McKenzie
Ken Kixmoeller wrote: Hi - - - - -- I have a typical setup -- my development machine, a testing server and, of course, the production server. My development machine, of course, doesn't have a Secure certificate, yet I need to be able to test https pages here, before getting to the

Re: [PHP] Re: php framework vs just php?

2008-04-23 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2008-04-23 at 16:50 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Tue, 2008-04-22 at 19:05 -0500, Shawn McKenzie wrote: Tony Marston wrote: Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip

Re: [PHP] Re: Testing HTTPS without certificate

2008-04-23 Thread Shawn McKenzie
Ken Kixmoeller.com wrote: On Apr 23, 2008, at 4:53 PM, Shawn McKenzie wrote: Ken Kixmoeller wrote: I know how to test for the existance of HTTPS, and stuff like that. So: Can one test https on a local machine? Resources, anyone? I have Googled my fingers off. Why not just generate a free

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Shawn McKenzie
Tony Marston wrote: Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] But can you create a database table, then generate the PHP scripts which generate the HTML and SQL which allow an online user to read, write, update and delete records from this table without

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Shawn McKenzie
Tony Marston wrote: Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] You haven't answered the question. Where can this piece of wizardry be downloaded so that it can be reviewed by your peers? [/snip] It is not available for download So your claims cannot be

[PHP] Re: OS X 10.5.2

2008-04-18 Thread Shawn McKenzie
Lee Perry wrote: Hi, I need pdo_msql and GD2 extension support in my php environment, but as I am sure you are aware the default build that comes with leopard on the mac is lacking these extensions. what I need is a way to either install them or if I really have to compile php with these

Re: [PHP] OS X 10.5.2

2008-04-18 Thread Shawn McKenzie
Simon Welsh wrote: On 19/04/2008, at 2:31, Eric Butera wrote: On Fri, Apr 18, 2008 at 8:10 PM, Lee Perry [EMAIL PROTECTED] wrote: Hi, I need pdo_msql and GD2 extension support in my php environment, but as I am sure you are aware the default build that comes with leopard on the mac is

[PHP] Re: Most viewed?

2008-04-15 Thread Shawn McKenzie
Steve Marquez wrote: Greetings, Can any of you point me in the right direction on how to use PHP to create a most viewed or most clicked articles list? Can it be done with PHP? Thank you so much, Steve Marquez [EMAIL PROTECTED] Short answer, yes. The right direction would be something like

Re: [PHP] What is the practical use of abstract and interface?

2008-04-15 Thread Shawn McKenzie
ALarry Garfield wrote: On Tuesday 15 April 2008, Daevid Vincent wrote: I've had at least three job interviews in the past two weeks, and each one has asked me this rather text book academic question regarding the difference between abstract vs. interface. I've been coding for nearly 20 years,

[PHP] Re: install pecl in debian

2008-04-11 Thread Shawn McKenzie
hce wrote: Hi, I post following message days ago, but could not see it on the list. Sorry if it is duplicated. I've installed php5 in debian, but got following problems: 1. I could not find a proper debian package for pecl, search pecl found: dh-make-php - Creates Debian source packages for

[PHP] Re: Vote for PHP support in Google App Engine

2008-04-10 Thread Shawn McKenzie
Paul van Brouwershaven wrote: Have you seen the Google App Engine already, the guys from Google are crazy! You now can host your application on the Google network, including Big Table and GFS! Ok, one problem... they currently only support Python for programming, but the good news is that

[PHP] Re: RES: [PHP-INSTALL] ftp_put cannot upload a file.

2008-04-10 Thread Shawn McKenzie
Thiago Pojda wrote: Tina, Is there any error message in php logs? Can you reproduce manually what you're trying to do with PHP? I mean, connect and put that file. Enable E_ALL in PHP and try again. I'm copying PHP-GENERAL mailing list as this is not related to PHP-INSTALL issues.

Re: [PHP] Requested PHP apps / sites

2008-04-10 Thread Shawn McKenzie
Dan wrote: That would be a pretty interesting app to make. If you actually followed Osborn's Brainstorming technique then you should be able to develop a pretty cool real-time think tank where developers work in a sort of chat room but with a place to post common code, with markup, share a

Re: [PHP] Requested PHP apps / sites

2008-04-10 Thread Shawn McKenzie
Shawn McKenzie wrote: Dan wrote: That would be a pretty interesting app to make. If you actually followed Osborn's Brainstorming technique then you should be able to develop a pretty cool real-time think tank where developers work in a sort of chat room but with a place to post common code

[PHP] Re: Google App Engine needs PHP support

2008-04-10 Thread Shawn McKenzie
Manuel Lemos wrote: Hello, Google App Engine was launched but it does not support PHP. This article presents some ideas that can help Google adding PHP support sooner rather than later. http://www.phpclasses.org/blog/post/77-Google-App-Engine-needs-PHP-support.html -1 Redundant :-) -- PHP

[PHP] Requested PHP apps / sites

2008-04-09 Thread Shawn McKenzie
Maybe slightly off, but this is a general PHP question :-) I'm not a professional developer, just hobbyist at PHP. As now, when I want to learn something new such as a new framework, it's beneficial to build a PHP application in my free time as a learning exercise. Sometimes the learning is

Re: [PHP] Requested PHP apps / sites

2008-04-09 Thread Shawn McKenzie
Jay Blanchard wrote: [snip] So to my question: does anyone know of a site or forum where people request apps or sites to be built and then it can be voted on to track the people that are interested? I'm not talking about sites where people post paid development requests. Something open and

Re: [PHP] Requested PHP apps / sites

2008-04-09 Thread Shawn McKenzie
Daniel Brown wrote: On Wed, Apr 9, 2008 at 11:36 AM, Shawn McKenzie [EMAIL PROTECTED] wrote: Maybe slightly off, but this is a general PHP question :-) [snip!] So to my question: does anyone know of a site or forum where people request apps or sites to be built and then it can be voted

Re: [PHP] Requested PHP apps / sites

2008-04-09 Thread Shawn McKenzie
Daniel Brown wrote: On Wed, Apr 9, 2008 at 4:36 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Wed, Apr 9, 2008 at 11:36 AM, Shawn McKenzie [EMAIL PROTECTED] wrote: Maybe slightly off, but this is a general PHP question :-) [snip!] So to my question: does anyone

Re: [PHP] Requested PHP apps / sites

2008-04-09 Thread Shawn McKenzie
Andrew Ballard wrote: On Wed, Apr 9, 2008 at 4:51 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Wed, Apr 9, 2008 at 4:36 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Wed, Apr 9, 2008 at 11:36 AM, Shawn McKenzie [EMAIL PROTECTED] wrote: Maybe

Re: [PHP] How to get a code review?

2008-04-03 Thread Shawn McKenzie
Nathan Nobbe wrote: On Thu, Apr 3, 2008 at 10:41 AM, David Jourard [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: how much code is there ? 200 lines i think ur safe posting that on the list directly. sometimes people post several thousand lines and those sort of things are

Re: [PHP] How to install PHP 5.x on Windows Server 2000 with IIS5and MySQL 5.x

2008-03-29 Thread Shawn McKenzie
[EMAIL PROTECTED] wrote: Shawn McKenzie wrote: Paul Scott wrote: On Thu, 2008-03-27 at 10:32 -0400, Wolf wrote: I'd suggest going with a real operating system (linux) which keeps patches updated quicker... As much of a Free Software advocate as I am

Re: [PHP] How to install PHP 5.x on Windows Server 2000 with IIS 5and MySQL 5.x

2008-03-27 Thread Shawn McKenzie
Paul Scott wrote: On Thu, 2008-03-27 at 10:32 -0400, Wolf wrote: I'd suggest going with a real operating system (linux) which keeps patches updated quicker... As much of a Free Software advocate as I am, that is not the answer to the question. That being said, however, I would replace the

Re: [PHP] WAMP servers

2008-03-27 Thread Shawn McKenzie
Bastien Koert wrote: On Thu, Mar 27, 2008 at 9:40 AM, Rod Clay [EMAIL PROTECTED] wrote: Hello. Does anyone use a WAMP server? And, if so, have you found one to be better than another? I am using a WAMP server entitled, aptly enough, WampServer (formerly WAMP5). In the few weeks I have

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Shawn McKenzie
Al wrote: Good point. I usually do use the single quotes, just happened to key doubles for the email. Actually, it's good idea for all variable assignments. Philip Thompson wrote: On Mar 26, 2008, at 6:28 PM, Al wrote: Depends on the server and it's load. I've strung together some

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Shawn McKenzie
Jason Pruim wrote: On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: Al wrote: Good point. I usually do use the single quotes, just happened to key doubles for the email. Actually, it's good idea for all variable assignments. Philip Thompson wrote: On Mar 26, 2008, at 6:28 PM, Al

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Shawn McKenzie
Shawn McKenzie wrote: Jason Pruim wrote: On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: Al wrote: Good point. I usually do use the single quotes, just happened to key doubles for the email. Actually, it's good idea for all variable assignments. Philip Thompson wrote: On Mar 26

[PHP] Re: Quick email address check

2008-03-26 Thread Shawn McKenzie
Al wrote: I'm scripting a simple registry where the user can input their name and email address. I'd like to do a quick validity check on the email address they just inputted. I can check the syntax, etc. but want check if the address exists. I realize that servers can take a long time to

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Shawn McKenzie
Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply

[PHP] Re: strange list behavior when replying to message on list

2008-03-22 Thread Shawn McKenzie
Mark Weaver wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply button to respond to a message most of the time the actual sender's address is the one the

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Shawn McKenzie
George J wrote: Thiago Pojda [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] De: George J [mailto:[EMAIL PROTECTED] So calling the script via the form works i.e it passes the neccessary variables to constrct the sql query for the next call. As Shawn said, if you really need the

[Fwd: Re: [PHP] Newbie question, Which way is best?]

2008-03-19 Thread Shawn McKenzie
George J wrote: Hi Daniel, WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! As a newbie I just have to ask why. I suspect you're going to say it gives the table and field names used in my database. I'm not really aware of all the possible avenues that this method might

[PHP] Re: Closures

2008-03-18 Thread Shawn McKenzie
Ray Hauge wrote: I've been reading up on some of the parts of PHP that has been suggested could be improved so that I could be more well informed. One of the more interesting (for lack of a better word) suggestions is closures. I've used closures primarily in JavaScript, and they are handy

Re: [PHP] Is this the best way?

2008-03-18 Thread Shawn McKenzie
Why is Jason schreefing again? Jochem Maas wrote: Jason Pruim schreef: On Mar 18, 2008, at 3:20 PM, Jochem Maas wrote: what started out as a simple little reply bloated out into an inpromptu brain fart ... lots of bla .. enjoy :-) Jason Pruim schreef: Hi everyone, I am attempting to

[PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-17 Thread Shawn McKenzie
UsDonn Ingle wrote: Hi, I have been trying to get a little templating thing going and I want everything to pass through a single index.php file which then decides what page is wanted and includes them. The scheme is to go to a url like [http://localhost/~donn/blah/] which serves index.php

Re: [PHP] __halt_compiler()

2008-03-17 Thread Shawn McKenzie
Daniel Brown wrote: On Sun, Mar 16, 2008 at 4:18 PM, Casey [EMAIL PROTECTED] wrote: Hi list! __halt_compiler(). Does anyone use it? I've used it obsessively in my past two projects to store data (specifically CSV) in the PHP files. These two projects consisted of only one file, and I

[PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-17 Thread Shawn McKenzie
Donn Ingle wrote: Shawn McKenzie wrote: Use /index.php instead of index.php maybe... I assume you meant in the a tag. I tried that and the URL (when you mouse-over the link) becomes [http://localhost/index.php] which is not anywhere near where the files live. I must say I am rather

Re: [PHP] storing / processing login info (newbie stuff not intutorials)

2008-03-14 Thread Shawn McKenzie
good_times wrote: 1. instead of typing: $conn=ocilogon(usrname,passwrd,db); can i save this info in a file and have my php script either include or call it when it needs to make a db connection? what would that look like? i may want to point my app to a test db at some point it would be nice

Re: [PHP] Is this the best way?

2008-03-14 Thread Shawn McKenzie
Dan Joseph wrote: I am attempting to add a little error checking for a very simple login system. The info is stored in a MySQL database, and I am using mysqli to connect to it. I have it working with the solution provided below, but I am wondering if this is the right way to do it or if there

Re: [PHP] PHP and #if

2008-03-14 Thread Shawn McKenzie
Eric Gorr wrote: Unfortunately, such things cannot be used to wrap functions. On Mar 14, 2008, at 2:38 PM, Dave Goodchild wrote: in php you have a number of constructs that can be used to execute code (or not) based on certain conditions ie is_defined(). Not sure if the comparison

Re: [PHP] PHP and #if

2008-03-14 Thread Shawn McKenzie
Eric Gorr wrote: On Mar 14, 2008, at 3:15 PM, Eric Gorr wrote: On Mar 14, 2008, at 3:10 PM, Stut wrote: On 14 Mar 2008, at 19:03, Eric Gorr wrote: Unfortunately, such things cannot be used to wrap functions. Erm, yes they can. Try it. ?php if (rand(0,1) == 0) { function

[PHP] Re: php cron to check and remove files

2008-03-13 Thread Shawn McKenzie
Steven Macintyre wrote: Hi, I need to be able to do the following procedure; retrieve all items from a mysql db table, then check to see if the files from that table exist on the server (images), if not, to clean up and remove the physical file - so that only the files from the db

Re: [PHP] Web host with SOAP

2008-03-13 Thread Shawn McKenzie
Daniel Brown wrote: On Thu, Mar 13, 2008 at 5:33 PM, Larry Garfield [EMAIL PROTECTED] wrote: Hi all. I am looking for a web host for a site. The usual host I work with is missing some important functionality, so I need to look elsewhere for this project. Specifically, I need web host

Re: [PHP] Web host with SOAP

2008-03-13 Thread Shawn McKenzie
Shawn McKenzie wrote: Daniel Brown wrote: On Thu, Mar 13, 2008 at 5:33 PM, Larry Garfield [EMAIL PROTECTED] wrote: Hi all. I am looking for a web host for a site. The usual host I work with is missing some important functionality, so I need to look elsewhere for this project

[PHP] Re: Storing values between multiple page forms

2008-03-11 Thread Shawn McKenzie
Matty Sarro wrote: Greets all! I am working on a minor project for work for entering inventory information for servers we ship out. Here is my plan: First page - Get client name, number of servers, and find number of miscellaneous equipment(s) being shipped (UPS's, monitors, etc) From

[PHP] Re: Error handling

2008-03-11 Thread Shawn McKenzie
It Maq wrote: Hi, I need help with a simple script that i made for handling errors. The problem is that the script displays the same message several times while i want it displayed just one time. He is the code: ?php function error_handler($errno, $errstr, $filename, $lineno,

[PHP] Re: link with database

2008-03-11 Thread Shawn McKenzie
Shawn McKenzie wrote: Sofia Jacob (CA) wrote: Hi, I want to create a link that get the name and the link from the database. The problem is that I get the bullets created with li but not the link, here is my code and the result: ?php function do_html_URL($url, $name) { // output

[PHP] Re: link with database

2008-03-11 Thread Shawn McKenzie
Sofia Jacob (CA) wrote: Hi, I want to create a link that get the name and the link from the database. The problem is that I get the bullets created with li but not the link, here is my code and the result: ?php function do_html_URL($url, $name) { // output URL as link and br

[PHP] Re: Setting a variable inside a function and making it global insidean inner function doesn't work?

2008-03-11 Thread Shawn McKenzie
Lamonte wrote: Setting a variable inside a function and making it global inside an inner function doesn't work? Right well I have created this function: [code] function getForumChildrenTree( $id ) { $id = intval( $id ); $treeResult = array( 'topics' = array(),

[PHP] Re: Setting a variable inside a function and making it global insideaninner function doesn't work?

2008-03-11 Thread Shawn McKenzie
Shawn McKenzie wrote: Lamonte wrote: Setting a variable inside a function and making it global inside an inner function doesn't work? Right well I have created this function: [code] function getForumChildrenTree( $id ) { $id = intval( $id ); $treeResult = array( 'topics

Re: [PHP] Re: Setting a variable inside a function and making it global insideaninner function doesn't work?

2008-03-11 Thread Shawn McKenzie
Lamonte wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Lamonte wrote: Setting a variable inside a function and making it global inside an inner function doesn't work? Right well I have created this function: [code] function getForumChildrenTree( $id ) { $id = intval( $id

Re: [PHP] Re: Setting a variable inside a function and making itglobal insideaninner function doesn't work?

2008-03-11 Thread Shawn McKenzie
Lamonte wrote: Shawn McKenzie wrote: Lamonte wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Lamonte wrote: Setting a variable inside a function and making it global inside an inner function doesn't work? Right well I have created this function: [code

Re: [PHP] Transferring files between computers using php

2008-03-07 Thread Shawn McKenzie
Peter Ford wrote: Aschwin Wesselius wrote: Rahul wrote: I have a small file to be transferred between two computers every few seconds. I'm using unix with a bare bones version of php, i.e. just the original thing that gets installed when I run yum install php. As there is no webserver on any

[PHP] Re: Transferring files between computers using php

2008-03-06 Thread Shawn McKenzie
Rahul wrote: I have a small file to be transferred between two computers every few seconds. I'm using unix with a bare bones version of php, i.e. just the original thing that gets installed when I run yum install php. As there is no webserver on any of these machines, I was wondering if

[PHP] Re: Transferring files between computers using php

2008-03-06 Thread Shawn McKenzie
Rahul wrote: I have a small file to be transferred between two computers every few seconds. I'm using unix with a bare bones version of php, i.e. just the original thing that gets installed when I run yum install php. As there is no webserver on any of these machines, I was wondering if

Re: [PHP] Re: Transferring files between computers using php

2008-03-06 Thread Shawn McKenzie
in between and so I was thinking of establishing a direct connection between them.. Zareef Ahmed wrote: On 3/7/08, Shawn McKenzie [EMAIL PROTECTED] wrote: Rahul wrote: I have a small file to be transferred between two computers every few seconds. I'm using unix with a bare bones version of php, i.e

[PHP] Re: Preserving URL after redirect?

2008-03-05 Thread Shawn McKenzie
Skip Evans wrote: Hey all, I have a weird issue that's got me pretty stumped, and I'm not sure I can do what the client is asking, or at least not how I'm trying to do it. I have a code base of my own I'm building sites on, fully AJAX enabled so that once the site loads it never fully

Re: [PHP] Re: Preserving URL after redirect?

2008-03-05 Thread Shawn McKenzie
Skip Evans wrote: (Apologies to Shawn for sending this directly to him and not the entire list, that was an accident. Here it is for the list.) Shawn McKenzie wrote: SNIP! Rewrite rule would look something like: IfModule mod_rewrite.c RewriteEngine On RewriteCond

Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Shawn McKenzie
Stephen wrote: Wolf wrote: Open a terminal window on the server at the prompt type: locate QuickForm.php If it comes back with the path/file, make sure the path to the file is in the include folder If it comes back to just a regular terminal prompt right away, then you need to install

[PHP] Re: Alternative to Quickforms - Not Use Tables

2008-03-05 Thread Shawn McKenzie
Manuel Lemos wrote: Hello, on 03/05/2008 08:22 PM Stephen said the following: Subject says it. Is there an open source class for forms that provides for the use of CSS for the layout of forms? You may want to try this forms generation and validation class. It comes with a vertical

[PHP] Re: regular expressions question

2008-03-04 Thread Shawn McKenzie
Adil Drissi wrote: Hi, Is there any way to limit the user to a set of characters for example say i want my user to enter any character between a and z (case insensitive). And if the user enters just one letter not belonging to [a-z], this will not be accepted. I tried eregi('[a-z]',

[PHP] Re: mail() function HELP

2008-03-04 Thread Shawn McKenzie
Sofia Jacob (CA) wrote: I'm getting problems with the mail() function. ERROR: Warning: mail() [function.mail]: Failed to connect to mailserver at port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\wamp\www\php_sandbox\user_auth_fns.php on line 170

Re: [PHP] mail() function HELP

2008-03-04 Thread Shawn McKenzie
Stut wrote: On 4 Mar 2008, at 21:18, Sofia Jacob (CA) wrote: I'm getting problems with the mail() function. ERROR: Warning: mail() [function.mail]: Failed to connect to mailserver at port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in

<    4   5   6   7   8   9   10   11   12   >