Re: [PHP] very large and long if statement

2004-04-08 Thread Andy B
i dont see any difference in the one you wrote and the one i wrote...they seem to be exactly the same?? - Original Message - From: Tyler Replogle [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 9:43 PM Subject: RE: [PHP] very large and long if

[PHP] html forms class in php

2004-04-08 Thread Andy B
hi yesterday i posted a msg about wanting to know if it was a good idea to write a class that created/dealt with html forms and so on... somebody told me to go look at html_quick_forms class and it looks good like everything i would want to do but there is 1 problem: is there any classes for the

Re: [PHP] Exceptions and builtin functions in PHP5

2004-04-08 Thread daniel
If I understand right, PHP5 has an exception handling mechanism but it is only for manual using, i.e. a programmer can use try/catch but only for own code. PHP's built-in functions and functions from extensions still use old return value method. Yes? -- PHP General Mailing List

Re: [PHP] very large and long if statement

2004-04-08 Thread Tyler Replogle
yeah well they are really close but i add a ) on line 3 From: Andy B [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] very large and long if statement Date: Thu, 8 Apr 2004 02:03:38 -0400 i dont see any difference in the one you wrote and the one i wrote...they seem to be exactly

Re: [PHP] html forms class in php

2004-04-08 Thread Richard Harb
Then again you can just put the pear stuff into a subdirectory of your project site / whatever. for PHP 4 = 4.3.0 you could have a look at: http://www.php.net/manual/en/function.set-include-path.php for older versions you can use ini_set (@see same url) I've seen it done - works just as well.

RE: [PHP] smarty

2004-04-08 Thread Vincent DUPONT
Does anyone have a 'good' tutorial about Smarty. The one available on smarty.php.net is really basic... Vincent -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: jeudi 8 avril 2004 4:02 To: Kelly Hallman Cc: PHP-General Subject: Re: [PHP] smarty On Wed,

Re: [PHP] Re: php + lynx + grep

2004-04-08 Thread Burhan Khalid
[ snippity snip snip ] Have you verified that lynx, grep, and head are in PHP's path? Check the output of `which lynx` or phpinfo() to figure out what your path is, and whether it includes lynx. Alternatively, use a full path to lynx to avoid confusion. Could be that the apache process has no

[PHP] Re: html forms class in php

2004-04-08 Thread Manuel Lemos
Hello, On 04/08/2004 03:09 AM, Andy B wrote: yesterday i posted a msg about wanting to know if it was a good idea to write a class that created/dealt with html forms and so on... somebody told me to go look at html_quick_forms class and it looks good like everything i would want to do but there

[PHP] PHP vs. Outlook problem

2004-04-08 Thread
Dear all , I got a problem to send a confirmation mail from my Website to auto reply every new registrator . Due to the ISP mail server resist any Web Mail function but personal mailing permitted only through Outlook . Since I used floating IP and asked another dynamic DNS server to point to my

Re: [PHP] Re: html forms class in php

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 04:09, Manuel Lemos wrote: Hello, On 04/08/2004 03:09 AM, Andy B wrote: yesterday i posted a msg about wanting to know if it was a good idea to write a class that created/dealt with html forms and so on... somebody told me to go look at html_quick_forms class and it

Re: [PHP] Exceptions and builtin functions in PHP5

2004-04-08 Thread Tumurbaatar S.
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If I understand right, PHP5 has an exception handling mechanism but it is only for manual using, i.e. a programmer can use try/catch but only for own code. PHP's built-in functions and functions from extensions still use old

[PHP] xmlhttp request

2004-04-08 Thread electroteque
This is filthy check this out http://jibbering.com/2002/4/httprequest.html i suppose its a mozilla and ie only thing and pc too but maybe handy for php apps to post and get without changing the page -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: path to binary for php on linux

2004-04-08 Thread David Robley
[EMAIL PROTECTED] (Andy B) wrote in news:[EMAIL PROTECTED]: anybody know what the exact path for the php binary on linux is? If all else fails, try locate php if your locate database is up to date, or check the logs or whatever of your install package tool. -- PHP General Mailing List

[PHP] multiple constructor question

2004-04-08 Thread jdavis
Hello, I have looked around for information on using multiple constructors with OO PHP. I have found little, and from what I have seen I'm thinking that it's not supported. Is this true. I wrote the code below to try to emulate multiple constructors.. is this what everyone else does to try to

[PHP] Re: Unsubscribe!!

2004-04-08 Thread David Robley
[EMAIL PROTECTED] (Ken Heath) wrote in news:[EMAIL PROTECTED]: Please remove me from the mailing list. Many different efforts has failed. :-( I apology to everyone who receive this message. This is the last place to send that to. Try looking in the headers of any mail you get from the

[PHP] Re: Exceptions and builtin functions in PHP5

2004-04-08 Thread Catalin Trifu
Hi, I think this question is better suited to the devel list. Catalin Tumurbaatar S. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If I understand right, PHP5 has an exception handling mechanism but it is only for manual using, i.e. a programmer can use try/catch but

[PHP] Re: Adding a new entry using PHP

2004-04-08 Thread Catalin Trifu
Hi, Check http://php.weblogs.com/adodb Catalin P.S. Welcome to PHP :) Alistair Hayward [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am an ASP user, now learning PHP. When adding a record in ASP, I do this: Recordset.AddNew Field1 = whatever

Re: [PHP] path to binary for php on linux

2004-04-08 Thread jdavis
On Wed, 2004-04-07 at 18:17, Andy B wrote: it was installed with get and which php doesnt do anything just returns to the prompt with no output - Original Message - From: Curt Zirzow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 8:11 PM Subject: Re:

Re: [PHP] smarty

2004-04-08 Thread Richard Harb
Well, I can't say that it's a 'good' tutorial, it's a little messy, but it's along the lines of how I am using it ... If you want to have a look, I put together a page and some explanations and stuffed it into an archive (162Kb) You can downlad it at http://www.wegotit.at/sm_demo.zip If you're

Re: [PHP] PHP vs. Outlook problem

2004-04-08 Thread Jason Wong
On Thursday 08 April 2004 15:30, wrote: I got a problem to send a confirmation mail from my Website to auto reply every new registrator . Due to the ISP mail server resist any Web Mail function but personal mailing permitted only through Outlook . If the server on which your website is

[PHP] PHP-GTK mailing list

2004-04-08 Thread Cosmin
sorry for the off topic but i didn't knew where to ask this. does anyone know what's happening with the php-gtk mailing list. I haven't received a message for more than a month now and any message that i try to send comes back saying Hi. This is the qmail-send program at pb1.pair.com. I'm

[PHP] page design and possible conflict??

2004-04-08 Thread Andy B
hi.. this might be sort of ot and out of the range of the list but i had a site design question: is it an absolute no no to put inset borders 3px wide around EVERY table on the section of the site?? im trying to make an attempt at making the site have some sort of layout standards and that happen

[PHP] Can't get anything outside PHP

2004-04-08 Thread Nunners
Hi Folks, Yes, that strange heading is exactly what it says I'm trying to get a procedure working that takes a feed from an XML page, and puts it into English... that should be common sense, but I can't seem to get anything from my server I've installed Apache on Win XP, with PHP, and

RE: [PHP] smarty

2004-04-08 Thread Aaron Wolski
-Original Message- From: Kelly Hallman [mailto:[EMAIL PROTECTED] Sent: April 7, 2004 11:51 PM To: John W. Holmes Cc: [EMAIL PROTECTED] Subject: Re: [PHP] smarty Apr 7 at 10:22pm, John W. Holmes wrote: Uhhh, yeah--that's not templating, that's called spaghetti code :)

Re: [PHP] page design and possible conflict??

2004-04-08 Thread Andy B
dont know what his deal is but ok will close this idea now i guess.. - Original Message - From: Miles Thompson [EMAIL PROTECTED] To: Andy B [EMAIL PROTECTED] Sent: Thursday, April 08, 2004 7:41 AM Subject: Re: [PHP] page design and possible conflict?? You're right, ot out of range.

[PHP] start/stop deamon

2004-04-08 Thread CurlyBraces Technologies \( Pvt \) Ltd
can some body tell me how to start/stop a deamon ( eg: dhcpd ) from php ? and also can v apply that same method to start/stop a some script by php ? thanx in advance curlys -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] start/stop deamon

2004-04-08 Thread Jay Blanchard
[snip] can some body tell me how to start/stop a deamon ( eg: dhcpd ) from php ? and also can v apply that same method to start/stop a some script by php ? [/snip] http://www.php.net/exec

RE: [PHP] Exceptions and builtin functions in PHP5

2004-04-08 Thread Hundiak, Arthur
Builtin functions in php5 will not throw exceptions. The basic idea is that exceptions are part of the OOP portion of PHP. What you will need to do is to wrap these functions into classes. Fortunately, many existing class libraries such as PEAR can be tweaked to throw exceptions with little or

Re: [PHP] page design and possible conflict??

2004-04-08 Thread Red Wingate
ok Am Donnerstag, 8. April 2004 14:45 schrieb Andy B: dont know what his deal is but ok will close this idea now i guess.. - Original Message - From: Miles Thompson [EMAIL PROTECTED] To: Andy B [EMAIL PROTECTED] Sent: Thursday, April 08, 2004 7:41 AM Subject: Re: [PHP] page design

RE: [PHP] smarty

2004-04-08 Thread Kelly Hallman
Apr 8 at 7:38am, Aaron Wolski wrote: I don't think this thread is tired. As someone who is about to dive into learning templating more than what I do now... Tired in the sense that it had degenerated to a personal level that was uncalled for and off-topic. The merits of templating are never

RE: [PHP] page design and possible conflict??

2004-04-08 Thread Jason Sheets
Rather than doing something soley to comply with a standard you must sell your client on the idea or not do it, they are the ones that ultimately must live with the decision and be happy with it. As a programmer it is your job to make sure they have all the information and the pro's and cons of

[PHP] Using WinNT login

2004-04-08 Thread Alex Hogan
Hi All, Is it possible to use the users WinNT network login for a php app? If so can someone point me in the direction for a tutorial or directions. Thanks, alex hogan ** The contents of this e-mail and any files transmitted

RE: [PHP] Using WinNT login

2004-04-08 Thread Hawkes, Richard
Well, it's NTLM authentication you're after, but I'm not sure if there's a PHP interface for it. Checked the web, and didn't get much response. It's basically a link to the domain server. Sorry, that wasn't much help was it?! Richard -Original Message- From: Alex Hogan [mailto:[EMAIL

Re: [PHP] Using WinNT login

2004-04-08 Thread Red Wingate
Search the archive, we had this topic about a month ago and i pointed out a quite good solution on this topic. -- red Hi All, Is it possible to use the users WinNT network login for a php app? If so can someone point me in the direction for a tutorial or directions. Thanks, alex

Re: [PHP] smarty

2004-04-08 Thread John W. Holmes
From: Kelly Hallman [EMAIL PROTECTED] Sure, they could. However, take a look at all the newbie questions on this list. Maybe you've got time for all that hand holding.. but Smarty is a lot closer to HTML, which many of them already know. {$variable} is no more closer to HTML than

Re: [PHP] smarty

2004-04-08 Thread John Nichel
John W. Holmes wrote: From: Kelly Hallman [EMAIL PROTECTED] Sure, they could. However, take a look at all the newbie questions on this list. Maybe you've got time for all that hand holding.. but Smarty is a lot closer to HTML, which many of them already know. {$variable} is no more closer to

Re: [PHP] Using WinNT login

2004-04-08 Thread John W. Holmes
From: Alex Hogan [EMAIL PROTECTED] Is it possible to use the users WinNT network login for a php app? If so can someone point me in the direction for a tutorial or directions. Assuming IIS, turn off anonymous access, which will force them to log in as a user that has permission to reach the

RE: [PHP] Using WinNT login

2004-04-08 Thread Alex Hogan
Thanks guys... alex ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not

[PHP] limit on ammount of generated jscript arrays

2004-04-08 Thread electroteque
Hi there i am building an app of insteading of building a list menu of items, i am generating arrays of the data in javascript using a php class, this is then autocompleted in a textbox. Is there a limit to how many i can list in the page, like will it eventually slow the page down ? -- PHP

RE: [PHP] smarty

2004-04-08 Thread Hundiak, Arthur
From: John W. Holmes Smarty has two benefits to using a PHP templating solution (imo) 1. Smarty forces you to keep the presentation layer separate from your code/business layer. 2. Caching IMHO, a critical reason for choosing a template language over PHP is security. Do you really want to

Re: [PHP] smarty

2004-04-08 Thread John W. Holmes
From: Hundiak, Arthur [EMAIL PROTECTED] From: John W. Holmes Smarty has two benefits to using a PHP templating solution (imo) 1. Smarty forces you to keep the presentation layer separate from your code/business layer. 2. Caching IMHO, a critical reason for choosing a template language

Re: [PHP] smarty

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 10:45, John W. Holmes wrote: [--SNIP--] Any templating engine, that's not PHP itself, is going to restrict what the designer can do to some extent. This is a pretty broad statement and is not true in general despite it's applicability in many cases. Cheers, Rob. --

Re: [PHP] Exceptions and builtin functions in PHP5

2004-04-08 Thread Greg Beaver
The exception mechanism will not replace trigger_error() or function return values any time soon Greg Tumurbaatar S. wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If I understand right, PHP5 has an exception handling mechanism but it is only for manual using, i.e. a

RE: [PHP] limit on ammount of generated jscript arrays

2004-04-08 Thread Jay Blanchard
[snip] Hi there i am building an app of insteading of building a list menu of items, i am generating arrays of the data in javascript using a php class, this is then autocompleted in a textbox. Is there a limit to how many i can list in the page, like will it eventually slow the page down ?

Re: [PHP] smarty

2004-04-08 Thread John W. Holmes
From: Robert Cummings [EMAIL PROTECTED] On Thu, 2004-04-08 at 10:45, John W. Holmes wrote: Any templating engine, that's not PHP itself, is going to restrict what the designer can do to some extent. This is a pretty broad statement and is not true in general despite it's applicability

[PHP] header problems

2004-04-08 Thread Brent Clark
Hi All I need to display a javascript window with some text displayed in to. After the execution and displaying of this windows, I have two executable php script that perform some task for me. After all this I need the page to direct to another page. I keep getting this header error. If

RE: [PHP] header problems

2004-04-08 Thread Jay Blanchard
[snip] I keep getting this header error. [/snip] Which header error? Like, the one where it says you can't do it again? It is because you have caused some output somewhere prior to the invocation of you header request to the new location. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] smarty

2004-04-08 Thread John Nichel
John W. Holmes wrote: From: Robert Cummings [EMAIL PROTECTED] On Thu, 2004-04-08 at 10:45, John W. Holmes wrote: Any templating engine, that's not PHP itself, is going to restrict what the designer can do to some extent. This is a pretty broad statement and is not true in general despite it's

Re: [PHP] smarty

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 10:59, John W. Holmes wrote: From: Robert Cummings [EMAIL PROTECTED] On Thu, 2004-04-08 at 10:45, John W. Holmes wrote: Any templating engine, that's not PHP itself, is going to restrict what the designer can do to some extent. This is a pretty broad

Re: [PHP] header problems

2004-04-08 Thread John W. Holmes
From: Brent Clark [EMAIL PROTECTED] I need to display a javascript window with some text displayed in to. After the execution and displaying of this windows, I have two executable php script that perform some task for me. After all this I need the page to direct to another page. Use a

[PHP] PHP5 xslt omit-xml-declaration

2004-04-08 Thread Vincent Jansen
Does this 'omit-xml-declaration' work? (my stylesheet looks with this) ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=html version=4.0 encoding=UTF-8 indent=yes omit-xml-declaration=yes/ templates..

[PHP] Compare Case Insensitive?

2004-04-08 Thread Jeff Oien
How can I compare a variable submitted by a form as case insensitive? A promotional code will be entered into a form and it's important that they can enter the code either way. So if I have if ($code == 'ABC123') { I want that to match 'aBC123' 'abc123' or whatever. Thanks. Jeff -- PHP General

[PHP] Ncurses example @ zend

2004-04-08 Thread Brent Clark
Hi all a while ago I posted a request for if someone knew anything or know of example etc about ncurses etc I found this http://www.zend.com/zend/tut/tut-degan.php Kind Regards Brent Clark

RE: [PHP] Compare Case Insensitive?

2004-04-08 Thread Dave Avent
if (strtolower($code) == 'abc123') { or if (strtoupper($code) == 'ABC123') { -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED] Sent: 08 April 2004 4:21 PM To: PHP Subject: [PHP] Compare Case Insensitive? How can I compare a variable submitted by a form as case insensitive?

Re: [PHP] Compare Case Insensitive?

2004-04-08 Thread Richard Harb
let's see: eregi() preg_match() strtolower() ... either one could help you probably fastest is convert the user string to lower case and compare ... or upper case .. your choice. Damn. so many options. Thursday, April 8, 2004, 5:21:15 PM, you wrote: How can I compare a variable submitted by a

Re: [PHP] Compare Case Insensitive?

2004-04-08 Thread Ryan Gibson
You could set your input string to upper case, then make all your comparisons in upper case http://www.php.net/manual/en/function.strtoupper.php On 8/4/04 4:21 pm, Jeff Oien [EMAIL PROTECTED] wrote: How can I compare a variable submitted by a form as case insensitive? A promotional code will

[PHP] Re: Newbie question about operators

2004-04-08 Thread Gabe
Thanks Ligaya Ligaya Turmelle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] it is refering to the associative array, specifically the $key = $value . Note here (http://www.php.net/manual/en/language.types.array.php). Respectfully, Ligaya Turmelle Gabe [EMAIL PROTECTED] wrote

Re: [PHP] Compare Case Insensitive?

2004-04-08 Thread John W. Holmes
From: Jeff Oien [EMAIL PROTECTED] How can I compare a variable submitted by a form as case insensitive? A promotional code will be entered into a form and it's important that they can enter the code either way. strcasecmp(): http://us2.php.net/strcasecmp or strtoupper($string) == 'ABC123'

Re: [PHP] smarty

2004-04-08 Thread John Nichel
Robert Cummings wrote: Yeah, yeah... fine. I'm sure InterJinn doesn't limit you in any way, right? ;) It will save you money on your car insurance. ;) And people wonder why I feel the need once in while to give you a good kick in the teeth for being a hypocrite and idiot. This is completely

Re[2]: [PHP] smarty

2004-04-08 Thread Richard Davey
Hello Robert, Thursday, April 8, 2004, 4:19:10 PM, you wrote: RC And people wonder why I feel the need once in while to give you a good [snipo] RC when I use it as an example or a point in debate? Really, WHAT IS YOUR RC PROBLEM? Please get over it! Whoa Robert, chill out a bit, please! He was

Re: [PHP] smarty

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 11:45, John Nichel wrote: Robert Cummings wrote: Yeah, yeah... fine. I'm sure InterJinn doesn't limit you in any way, right? ;) It will save you money on your car insurance. ;) And people wonder why I feel the need once in while to give you a good kick in the

Re: Re[2]: [PHP] smarty

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 11:50, Richard Davey wrote: Hello Robert, Thursday, April 8, 2004, 4:19:10 PM, you wrote: RC And people wonder why I feel the need once in while to give you a good [snipo] RC when I use it as an example or a point in debate? Really, WHAT IS YOUR RC PROBLEM? Please

[PHP] PHP XML

2004-04-08 Thread Chris Boget
Could someone point me in the right direction to learn how I can programatically validate a XML document against a XML schema? I've looked through the documentation but was unable to find any thing of any relevance (or so my xml newbie mind thought). thnx, Chris -- PHP General Mailing List

[PHP] http referrer

2004-04-08 Thread Chris Bruce
I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres.

Re: [PHP] http referrer

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 12:22, Chris Bruce wrote: I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? HTTP_REFERER. Someone spelled it wrong a long time ago and it

Re: [PHP] http referrer

2004-04-08 Thread John Nichel
Chris Bruce wrote: I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? Thanks. $_SERVER['HTTP_REFERER'] --

Re: [PHP] http referrer

2004-04-08 Thread Chris Bruce
Damn! It can't be that easy ;) But, yes, it works. Thanks a bunch. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail and its

Re: [PHP] http referrer

2004-04-08 Thread John W. Holmes
From: Chris Bruce [EMAIL PROTECTED] I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? $_SERVER['HTTP_REFERER'] print_r($_SERVER) will tell you for sure.

Re: [PHP] (new question on this) http referer

2004-04-08 Thread Joe Szilagyi
Just a follow up on this one--I've seen where consistently that $HTTP_REFERER will only show local referers, but not stuff from other sites/hostnames. This is on mod_php... any workaround for that? Regards, Joe - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: php

Re: [PHP] (new question on this) http referer

2004-04-08 Thread Duncan Hill
On Thursday 08 April 2004 17:31, Joe Szilagyi wrote: Just a follow up on this one--I've seen where consistently that $HTTP_REFERER will only show local referers, but not stuff from other sites/hostnames. This is on mod_php... any workaround for that? Referrer is a function of the browser. If

Re: [PHP] (new question on this) http referer

2004-04-08 Thread Curt Zirzow
* Thus wrote Joe Szilagyi ([EMAIL PROTECTED]): Just a follow up on this one--I've seen where consistently that $HTTP_REFERER will only show local referers, but not stuff from other sites/hostnames. This is on mod_php... any workaround for that? Its up to the web browser to decide if it is

Re: [PHP] (new question on this) http referer

2004-04-08 Thread John Nichel
Joe Szilagyi wrote: Just a follow up on this one--I've seen where consistently that $HTTP_REFERER will only show local referers, but not stuff from other sites/hostnames. This is on mod_php... any workaround for that? Regards, Joe The referrer is sent by the referring machine. If that machine

[PHP] Auto-acks on posting.

2004-04-08 Thread Duncan Hill
Anyone else getting auto-acks from [EMAIL PROTECTED] and [EMAIL PROTECTED], originating on host76.ipowerweb.com when they post here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Shaun
Hi, I am trying to create a regular expression for a mobile phone number. The number must be 12 digits long(0-9) and begin with 447 and have no spaces. So far I have come up with this but it keeps telling me the number is invalid even when its correct! $regexp = /447[0-9]{9}/;

Re: [PHP] Auto-acks on posting.

2004-04-08 Thread Arthur Radulescu
Yes I get the same emails here -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Use PHP to copy MySQL tables

2004-04-08 Thread Robb Kerr
Is there an easy way to create an HTML page that uses PHP to copy selected MySQL tables to backup copies on the same MySQL server? I want to create an administration page for my client to be able to backup their database whenever they see fit. But, I can't give them direct access to the MySQL

Re: [PHP] Auto-acks on posting.

2004-04-08 Thread John Nichel
Duncan Hill wrote: Anyone else getting auto-acks from [EMAIL PROTECTED] and [EMAIL PROTECTED], originating on host76.ipowerweb.com when they post here? Yeah. An admin needs to remove those from the list. For the time being, I just have anything coming from those addresses going to /dev/null

Re: [PHP] Auto-acks on posting.

2004-04-08 Thread Duncan Hill
On Thursday 08 April 2004 17:35, Arthur Radulescu wrote: Yes I get the same emails here Ho hum, then into the bit bucket they go. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] (new question on this) http referer

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 12:36, Duncan Hill wrote: On Thursday 08 April 2004 17:31, Joe Szilagyi wrote: Just a follow up on this one--I've seen where consistently that $HTTP_REFERER will only show local referers, but not stuff from other sites/hostnames. This is on mod_php... any workaround

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Michal Migurski
I am trying to create a regular expression for a mobile phone number. The number must be 12 digits long(0-9) and begin with 447 and have no spaces. So far I have come up with this but it keeps telling me the number is invalid even when its correct! Try this: $regexp = /447[0-9]{9}/;

Re[2]: [PHP] (new question on this) http referer

2004-04-08 Thread Richard Davey
Hello Robert, Thursday, April 8, 2004, 5:55:05 PM, you wrote: RC Opera let's you choose whether to send the referrer or not. it also lets RC you specify the browser to send so that you can trick some sites that RC are poorly implemented (or restrictively) to think you are using IE. and Norton

RE: [PHP] (new question on this) http referer

2004-04-08 Thread Pablo Gosse
snip The referrer is sent by the referring machine. If that machine isn't setting it, you can't get it. If memory serves, I think I remember someone claiming that this could also be blocked at a firewall...don't know if that's true or not though. /snip Yup, certain firewalls either mangle

[PHP] Hiding email address from Robots ??

2004-04-08 Thread news
Looking for opinions before I start using this to hide the email address on a page $nx = username; $sx = domain; $mx = [EMAIL PROTECTED]; Then mailto:? echo $mx ? Hopefully a Robot would read the address as the result of $mx, which is totally useless - but it seems too easy. -- PHP General

Re: [PHP] PHP based Voice Chat Module

2004-04-08 Thread Pushpinder Singh
There are versions out there but they r for windoze only /// I was looking for Mac / Open Source implementations. thanks On Wednesday, April 7, 2004, at 07:15 PM, DvDmanDT wrote: Hmm.. I'm pretty sure you can get Flash for Mac.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail:

Re: [PHP] Hiding email address from Robots ??

2004-04-08 Thread Jason Giangrande
news wrote: Looking for opinions before I start using this to hide the email address on a page $nx = username; $sx = domain; $mx = [EMAIL PROTECTED]; Then mailto:? echo $mx ? Hopefully a Robot would read the address as the result of $mx, which is totally useless - but it seems too easy. Perhaps

Re[2]: [PHP] (new question on this) http referer

2004-04-08 Thread Richard Davey
Hello Pablo, Thursday, April 8, 2004, 6:32:06 PM, you wrote: PG At any rate, if you're relying on HTTP_REFERER to make sure a script is PG being called from a certain location, I don't think it's very reliable. PG Does anyone have any ideas as to a workaround for this? There are probably

[PHP] Re: Hiding email address from Robots ??

2004-04-08 Thread Micheal Isaacson
Actually, a robot will read the html it generates, so this won't really help. However, if you store your adresses as character codes ( ie a space is %20) and not just text, most robots have a hard time reading them. News [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Looking for

[PHP] Pinging an IP without using exec or system

2004-04-08 Thread Micheal Isaacson
I am running scripts on a host that does not allow arbatrary commands to run via exec() or system(). However, I need to be able to test and see if an IP is active, basically ping it. I have only been able to find example scripts that use exec ot system to do the ping. Is there a way I can do a

Re: Re[2]: [PHP] (new question on this) http referer

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 13:54, Richard Davey wrote: Hello Pablo, Thursday, April 8, 2004, 6:32:06 PM, you wrote: PG At any rate, if you're relying on HTTP_REFERER to make sure a script is PG being called from a certain location, I don't think it's very reliable. PG Does anyone have any

Re[4]: [PHP] (new question on this) http referer

2004-04-08 Thread Richard Davey
Hello Robert, Thursday, April 8, 2004, 7:04:24 PM, you wrote: RC I don't think this works in general. For instance some ISPs can have the RC user's IP change between page requests (incuding redirects). AOL is an RC example of such and ISP. That doesn't make any difference in this instance.

[PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Giangrande
I'm having a problem unserializing objects that are passed from page to page with sessions. Registered globals is disabled so I am using the $_SESSION array to store session variable and am not using session_register(). Here's what I'm doing. On first page: $auth = new Class();

Re: Re[4]: [PHP] (new question on this) http referer

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 14:07, Richard Davey wrote: Hello Robert, Thursday, April 8, 2004, 7:04:24 PM, you wrote: RC I don't think this works in general. For instance some ISPs can have the RC user's IP change between page requests (incuding redirects). AOL is an RC example of such and ISP.

Re[6]: [PHP] (new question on this) http referer

2004-04-08 Thread Richard Davey
Hello Robert, Thursday, April 8, 2004, 7:13:27 PM, you wrote: RC Aaah ok. That makes more sense to me :) Sorry was confused by the use of RC the word redirect. Thought you were redirecting the user to an alternate RC script with the reposted data. I'm not sure I understand how this is RC more

Re: Re[6]: [PHP] (new question on this) http referer

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 14:19, Richard Davey wrote: Hello Robert, Thursday, April 8, 2004, 7:13:27 PM, you wrote: RC Aaah ok. That makes more sense to me :) Sorry was confused by the use of RC the word redirect. Thought you were redirecting the user to an alternate RC script with the

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Shaun
Michal Migurski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to create a regular expression for a mobile phone number. The number must be 12 digits long(0-9) and begin with 447 and have no spaces. So far I have come up with this but it keeps telling me the number is

[PHP] ADOdb Operator question

2004-04-08 Thread Gabe
If you're using ADOdb, what is the name, purpose, and function of this operator? - e.g. $conn-Connect(false, 'scott', 'tiger', $oraname); I can follow some tutorials, but I'm just not sure when I need to use it and when I don't. Thanks -- PHP General Mailing List (http://www.php.net/) To

[PHP] ^%$! Download accelerators

2004-04-08 Thread Brian Dunning
I've been using the following code for some time to deliver electronic downloads of purchased software products - header('Content-Type: '.$file_row['content_type']); header('Content-Disposition: filename='.$file_row[filename].''); $size =

[PHP] Smarty Summary was Re: [PHP] smarty

2004-04-08 Thread Jochem Maas
I have been following this thread closely and thought I'd summarize a few points: 1. 'Template Engine' - you can justifyably call PHP a template engine, but I think calling Smarty a template engine confuses the issue - it would be clearer call it something like 'Presentation Component' which

Re: [PHP] ADOdb Operator question

2004-04-08 Thread Matt Matijevich
[snip] e.g. $conn-Connect(false, 'scott', 'tiger', $oraname); [/snip] http://www.php.net/oop will give you some help. I am not even sure if I can explain it correctly. I believe you would say use - to call object methods and - to get/set the class variables. I am sure someone can give a better

[PHP] parsing question ('010.000.080.001' == `10.0.80.1`) how to be 'true'?

2004-04-08 Thread Galkov Vladimir
Two tables have diferent standarts to hold IP adresses: first: 045.012.001.002 003.000.123.231 123.230.101.080 second: 45.12.1.2 3.0.123.231 123.230.101.80 I have to compare the data and stack there .. my fantasy can't help me write regular expresion to parse first format into second or second

  1   2   >