RE: [PHP] what do i need to disable

2007-01-19 Thread WeberSites LTD
Check this out : http://www.weberdev.com/get_example-4473.html berber -Original Message- From: Don [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007 7:38 AM To: php-general@lists.php.net Subject: [PHP] what do i need to disable Ok, You have been very helpful with my

RE: [PHP] email validation string.

2007-01-19 Thread WeberSites LTD
Try this : http://www.weberdev.com/get_example-3274.html berber -Original Message- From: Don [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 10:41 PM To: php-general@lists.php.net Subject: [PHP] email validation string. I'm trying to get this line to validate an email

RE: [PHP] Script to generate a site thumbnails

2007-01-19 Thread WeberSites LTD
If you can get the image to your server, try using one of these examples : http://www.weberdev.com/AdvancedSearch.php?searchtype=titlesearch=thumb berber -Original Message- From: Pablo L. de Miranda [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 12:56 AM To:

Re: [PHP] email validation string.

2007-01-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-19 10:55:21 +0200: From: Don [mailto:[EMAIL PROTECTED] I'm trying to get this line to validate an email address from a form and it isn't working. if (ereg([EMAIL PROTECTED],$submittedEmail)) The book I'm referencing has this line if (ereg([EMAIL

RE: [PHP] email validation string.

2007-01-19 Thread WeberSites LTD
You can always go to http://www.weberdev.com/ and write email validation in the Top Ajax search box. There are many other email validators that should have less than 600 lines in one function :) berber -Original Message- From: Roman Neuhauser [mailto:[EMAIL PROTECTED] Sent: Friday,

Re: [PHP] email validation string.

2007-01-19 Thread 'Roman Neuhauser'
Don't top-post. Trim quoted material. Use a mail user agent that doesn't screw up quoting. There's a plugin for Outlook to fix it. Thanks. # [EMAIL PROTECTED] / 2007-01-19 12:15:15 +0200: From: Roman Neuhauser [mailto:[EMAIL PROTECTED] # [EMAIL PROTECTED] / 2007-01-19 10:55:21 +0200: Try

Re: [PHP] Newbie - help with a foreach

2007-01-19 Thread Németh Zoltán
On cs, 2007-01-18 at 20:46 +0100, Jochem Maas wrote: Németh Zoltán wrote: On cs, 2007-01-18 at 02:04 -0800, pub wrote: On Jan 18, 2007, at 2:00 AM, Németh Zoltán wrote: ... maybe you should use a parameter for it, place it into the link in the first query loop, get it here and

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-19 Thread esteban
The don't want to pass the session variable across domains. The problem is in the main domain, i don't know what happens, the session variable lost the value or is distroyed. Chris [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] esteban wrote: I have a windows 2000 server with

[PHP] preg_match problem

2007-01-19 Thread Németh Zoltán
Hi all, I have a simple checking like if (preg_match(/[\w\x2F]{6,}/,$a)) as I would like to allow all word characters as mentioned at http://hu2.php.net/manual/hu/reference.pcre.pattern.syntax.php plus the '/' character, and at least 6 characters. But it throws Warning: preg_match(): Unknown

Re: [PHP] preg_match problem

2007-01-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-19 15:25:38 +0100: Hi all, I have a simple checking like if (preg_match(/[\w\x2F]{6,}/,$a)) as I would like to allow all word characters as mentioned at http://hu2.php.net/manual/hu/reference.pcre.pattern.syntax.php plus the '/' character, and at least 6

Re: [PHP] email validation string.

2007-01-19 Thread Nuno Oliveira
1. Why did you remove the backslash? (the original was correct) I have a regular expression tester plugin in firefox and it validates Ok with the expression he provided. If I add the second (original) backslash it won't validate emails anymore. Also, from my little knowledge of Red.Exp. the

Re: [PHP] preg_match problem

2007-01-19 Thread Németh Zoltán
On p, 2007-01-19 at 15:39 +, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-19 15:25:38 +0100: Hi all, I have a simple checking like if (preg_match(/[\w\x2F]{6,}/,$a)) as I would like to allow all word characters as mentioned at

RE: [PHP] preg_match problem

2007-01-19 Thread Tim
Not a big regex expert, but first off i would recommend not using / as a delimiter for your pattern if you are trying to catch forward slashes in your text. I would use a pattern like: #[a-zA-Z0-9/]{6,}# Regards, Tim -Message d'origine- De : Németh Zoltán [mailto:[EMAIL PROTECTED]

Re: [PHP] email validation string.

2007-01-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-19 14:46:04 +: 1. Why did you remove the backslash? (the original was correct) I have a regular expression tester plugin in firefox and it validates Ok with the expression he provided. JavaScript is *not* PHP. -- How many Vietnam vets does it take to

[PHP] webservice libraries/frameworks

2007-01-19 Thread blackwater dev
I've heard that there might be a php library or framework that allows you to expose your code as a webservice with little to no extra code. I heard the code could potentially also allow access via several different protocols. Has anyone come across anything similar, or do I need to pick a

Re: [PHP] What makes a PHP expert

2007-01-19 Thread Larry Garfield
I'd say a programming expert is one that can grasp the nuances and complexities of a problem and break it down coherently and correctly in a relatively short amount of time (compared to average). A php expert is one that can break it down and implement a solution that leverages the PHP way

Re: [PHP] email validation string.

2007-01-19 Thread Nuno Oliveira
1. Why did you remove the backslash? (the original was correct) I have a regular expression tester plugin in firefox and it validates Ok with the expression he provided. JavaScript is *not* PHP. As far as I can read, I never talked about JavaScript... Maybe the fact that I talked about a

RE: [PHP] What makes a PHP expert

2007-01-19 Thread bruce
larry... sounds good... however, given that you often have a myriad of different ways to solve a problem, how does on determine which of the solutions, is the 'PHP way' unless there are seriously obvious flaws with an approach, you can often have different approaches of solving a problem

RE: [PHP] email validation string.

2007-01-19 Thread WeberSites LTD
Top Ajax : I meant that at the top of WeberDev.com there is an Ajax search box that you can use to search for email validation and see many related code examples to choose from. berber -Original Message- From: 'Roman Neuhauser' [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007

RE: [PHP] email validation string.

2007-01-19 Thread bruce
hi... the real problem you have with email validation is that the vast majority of the email validation scripts that you see in various apps only handle a part of what the wc3/spec states to be valid email addresses. if your app had the ability to handle the time constraint, a reasonable

[PHP] Security Question

2007-01-19 Thread Al
I've got a website on a virtual-host, Apache/Linux system running php scripts. I particular, I've designed a CMS where designated individuals compose and edit text in an html textarea, and then save the raw text in files. Custom [i.e., proxie] tags are used for emphasizing and the formating

[PHP] Month display calendar

2007-01-19 Thread Denis L. Menezes
Dear friends. Can anyone please show me calendar scripts to make a calendar with a monthly display as shown in http://www.easyphpcalendar.com/ ? Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] email validation string.

2007-01-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-19 15:43:32 +: 1. Why did you remove the backslash? (the original was correct) I have a regular expression tester plugin in firefox and it validates Ok with the expression he provided. JavaScript is *not* PHP. As far as I can read, I never talked

RE: [PHP] Month display calendar

2007-01-19 Thread Jay Blanchard
[snip] Can anyone please show me calendar scripts to make a calendar with a monthly display as shown in http://www.easyphpcalendar.com/ ? [/snip] Have you STFW or RTFM? There is a truckload of PHP code on the web that you can review, dissect, and learn from. -- PHP General Mailing List

Re: [PHP] Month display calendar

2007-01-19 Thread Nick Stinemates
On Sat, Jan 20, 2007 at 12:37:08AM +0800, Denis L. Menezes wrote: Dear friends. Can anyone please show me calendar scripts to make a calendar with a monthly display as shown in http://www.easyphpcalendar.com/ ? Thanks Denis -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: PHP5 Cross Compilation

2007-01-19 Thread Kiran Malla
Hello, What are all the flags and variables to set to cross compile PHP for arm? I didn't get any info on the query I posted earlier. If anyone has tried php on arm linux, please let me know the steps. Thanks so much, Regards, Kiran On 1/18/07, Kiran Malla [EMAIL PROTECTED] wrote: Hello, I

Re: [PHP] Security Question

2007-01-19 Thread Jochem Maas
Al wrote: I've got a website on a virtual-host, Apache/Linux system running php scripts. I particular, I've designed a CMS where designated individuals compose and edit text in an html textarea, and then save the raw text in files. Custom [i.e., proxie] tags are used for emphasizing and the

Re: [PHP] Re: PHP5 Cross Compilation

2007-01-19 Thread Jochem Maas
Kiran Malla wrote: Hello, What are all the flags and variables to set to cross compile PHP for arm? I didn't get any info on the query I posted earlier. If anyone has tried php on arm linux, please let me know the steps. if google didn't give any answers then I might suggest the php

Re: [PHP] email validation string.

2007-01-19 Thread Nuno Oliveira
Where can I check out the plugin? Maybe I shouldn't have mentioned plugin and firefox... It's not a plugin for firefox like other firefox's plugins... In fact, when I downloaded somewhere arround the web the name of the thing (won't call it plugin again) was Site Programmer Plugin Assistant

[PHP] FTP Error

2007-01-19 Thread Eddie Schnell
Description: Warning: ftp_put(): php_connect_nonb() failed: No route to host (65) I get this error with the reproduce code. it also says Warning: ftp_put(): Type set to I. It is not uploading the file correctly. i have php 4.4.1 on iPowerWeb's server, so no upgrade is possible.

Re: [PHP] Security Question

2007-01-19 Thread Al
Good point about the 'script evil haxor code here; /script'. That's bad for our users, not the site, per se. Raw text to html is primarily done with a series of preg_replace() operations. No include() or exec() allowed near the text. Sounds like I'm in pretty good shape. Thanks for the

Re: [PHP] Displaying Results on different rows in tables

2007-01-19 Thread Dan Shirah
Ah, I see. In Brad's reply there was two $result = mssql_query($sql) or die(mssql_error()); in the code. Removed the one from outside of the loop and it works fine now. Thanks to both of you for your help! On 1/18/07, Chris [EMAIL PROTECTED] wrote: Dan Shirah wrote: The code above

[PHP] Beginner Question

2007-01-19 Thread Delta Storm
Hi, I have learned as lot about PHP but I still dont know how do they build PHP based web sites. I need to build a complete PHP site with a lot of content and integrate CSS,javaScript and a lot of other stuff (for the school) (Complete site for example. www.domain1.com/index.php or

Re: [PHP] Beginner Question

2007-01-19 Thread Robert Cummings
On Fri, 2007-01-19 at 19:21 +0100, Delta Storm wrote: Hi, I have learned as lot about PHP but I still dont know how do they build PHP based web sites. Obviously you haven't learned enough ;) I need to build a complete PHP site with a lot of content and integrate CSS,javaScript and a lot

Re: [PHP] What makes a PHP expert

2007-01-19 Thread Larry Garfield
True, there's rarely One True Answer. That's one reason why there is no clear-cut definition of Expert. However, there are frequently better or worse solutions to a problem. It's easier to pinpoint when someone is not going with the grain of the language than when they are. For instance,

[PHP] Conditional Select

2007-01-19 Thread Dan Shirah
I have a page that shows all outstanding tickets, what I'm trying to have it do is let users search by several categories. I want to be able to filter the results based on the user input. For instance, say I have an employee that wants to find ticket #2. He enters 2 in the Request ID field

RE: [PHP] Conditional Select

2007-01-19 Thread Brad Fuller
-Original Message- From: Dan Shirah [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007 3:10 PM To: php-general@lists.php.net Subject: [PHP] Conditional Select I have a page that shows all outstanding tickets, what I'm trying to have it do is let users search by several

Re: [PHP] Where can I get the Printer extension?

2007-01-19 Thread Jochem Maas
Chris wrote: Chuck Anderson wrote: Chris wrote: Chuck Anderson wrote: It thought it would be bundled with my Windows version pf Php 4.4.1, but it is not. I've searched for it and can't find it at php.net. You didn't search very hard. On this page: http://php.net/printer

[PHP] request for support: no session survives the next click

2007-01-19 Thread Niek en Carla Warnau - Hollants
Could anyone help me on this one: I can create sessions, see the cookies appear like flies in d:\tmp at a rate of more than 2 per second, and anyhow the session never survives the next click. To test I use the example-file Uitboeksessies.php as enclosed, it works in the office, not here at

Re: [PHP] multidimensional array problems

2007-01-19 Thread nitrox .
Ive followed your example on grouping. Im still trying to understand all of the code but ive made great progess on this with your example. Now I have one last issue and this will be solved. Ill remind here what Im trying to achieve I have a table for leagues, lookup table and team roster. There

Re: [PHP] multidimensional array problems

2007-01-19 Thread Larry Garfield
It's actually quite simple. You simply add another layer of grouping. General case: $result = mysql_query(SELECT a, b, c, d FROM foo ORDER BY a, b, c); while ($record = mysql_fetch_object($result)) { $roster[$record-a][$record-b][] = $record; } ksort($roster); foreach ($roster as $a =

[PHP] Memory Limit?

2007-01-19 Thread Jay Paulson
Hi everyone, Quick question ­ I¹m trying to increase the memory limit so that I can upload larger files to an application I¹m running. I¹m using Apache¹s resource .htaccess file to change PHP on the fly. Below is my .htaccess file. php_value memory_limit 30M php_value post_max_size 25M

[PHP] non-blocking request to a url (via curl or file_get_contents or whatever)...

2007-01-19 Thread Jochem Maas
hi, I have a tradedoubler webbug to implement in site - not a problem as such - but I have a slight issue when it comes to online payments. I have an order processing page that is requested *directly* by an online payment service in order to tell the site/system that a given order has

RE: [PHP] Memory Limit?

2007-01-19 Thread Jay Blanchard
[snip] I really don¹t know why I¹m getting the Fatal error. Do I need to do something else that I just don¹t know about? [/snip] Make sure your upload form and your php.ini reflect the new upper limit. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] FTP Error

2007-01-19 Thread Jim Lucas
Warning: ftp_put(): php_connect_nonb() failed: No route to host (65) in /home/beachgla/public_html/catalog/update/index.php on line 475 This tells me that you are unable to find/connect to the ftpServer that you are giving ftp_connect() I am wondering if your conditional was not working

Re: [PHP] Security Question

2007-01-19 Thread Jochem Maas
Al wrote: Good point about the 'script evil haxor code here; /script'. That's bad for our users, not the site, per se. what is bad for your users is bad for your site, on top of that the script is running in the context of your domain - all sorts of nasty possibilities that could affect your

Re: [PHP] non-blocking request to a url (via curl or file_get_contents or whatever)...

2007-01-19 Thread Jochem Maas
because I like talking to myself :-P Jochem Maas wrote: hi, ... I definitely give a hoot about the content returned ... all I want is for the request to go out on the wire and then have my script immediately continue with what it should be doing. I believe this would require

[PHP] Need tool to graphically show all includes/requires

2007-01-19 Thread Daevid Vincent
We have a fairly complex product that is all PHP based GUI. We're in need of some kind of graphical tool (web, stand alone, windows, linux, osx whatever) that will take a directory tree, recursively traverse all the files, look for 'includes' and 'requires' (and the _once versions too) and then

[PHP] Get the shortened browser / HTTP_USER_AGENT

2007-01-19 Thread Wikus Moller
Hi. I want to strip everything after a / in the HTTP_USER_AGENT for example: Opera 9.10/blah/blah would become only Opera 9.10 Lets say $user = $_SERVER[HTTP_USER_AGENT]; $browser = (/, $user); Is this correct? Isn't something needed in the browser variable? Thanks Wikus -- PHP General