php-general Digest 20 Jan 2007 20:20:08 -0000 Issue 4580

2007-01-20 Thread php-general-digest-help
php-general Digest 20 Jan 2007 20:20:08 - Issue 4580 Topics (messages 247434 through 247461): Re: Get the shortened browser / HTTP_USER_AGENT 247434 by: Sergiu Voicu Re: non-blocking request to a url (via curl or file_get_contents or whatever)... 247435 by: Roman Neuhauser

Re: [PHP] Get the shortened browser / HTTP_USER_AGENT

2007-01-20 Thread Sergiu Voicu
You have several options: 1. using regular expressions ? $user = $_SERVER[HTTP_USER_AGENT]; preg_match('/^([^\/]+).*/',$user,$matches); $browser = $matches[1]; ? 2. using arrays ? $user = $_SERVER[HTTP_USER_AGENT]; $tpm = explode('/',$user); $browser = $tmp[0]; ? 3. using substrings ? $user =

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

2007-01-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-20 00:33:10 +0100: I have a tradedoubler webbug to implement in site Pardon my ignorance, what's a tradedoubler webbug? 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

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

2007-01-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-19 16:52:49 -0800: 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'

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

2007-01-20 Thread Colin Guthrie
Daevid Vincent wrote: 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

RE: [PHP] email validation string.

2007-01-20 Thread tedd
At 5:54 PM +0200 1/19/07, WeberSites LTD wrote: 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 berber: Your original post was clear enough for me to

Re: [PHP] email validation string.

2007-01-20 Thread tedd
On Thu, Jan 18, 2007 at 01:40:36PM -0700, Don wrote: 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 PROTECTED],$submittedEmail)) Anyway.. I

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

2007-01-20 Thread Andre Dubuc
On Saturday 20 January 2007 07:35 am, Colin Guthrie wrote: Daevid Vincent wrote: 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

Re: [PHP] email validation string.

2007-01-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-20 08:53:32 -0500: I picked this up in my travels. function validate_email($email) { // Create the syntactical validation regular expression $regexp = ^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$; One of my email

[PHP] os php scheduler?

2007-01-20 Thread blackwater dev
Does anyone have recommendations for an open source php based, 'lightweight', scheduling app? I just want something clean that I can use to schedule trainings within our company. I need to be able to put in details for each training and then see a synopsis on a calender. Just a basic scheduler

Re: [PHP] email validation string.

2007-01-20 Thread tedd
At 3:04 PM + 1/20/07, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-20 08:53:32 -0500: I picked this up in my travels. function validate_email($email) { // Create the syntactical validation regular expression $regexp =

[PHP] Request for...

2007-01-20 Thread Wikus Moller
Hi. Since this is a mailing list for web developers, I thought I might as well post an o f f t o p i c request. Does anyone know of any website where I can get a exe or jar sitemap generating software? Particularly not GsiteCrawler as it uses too much system resources. A java applet would be

Re: [PHP] email validation string.

2007-01-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-20 09:22:00 -0500: At 3:04 PM + 1/20/07, Roman Neuhauser wrote: One of my email addresses is [EMAIL PROTECTED] Thanks, I'll add that to my kill list. Vietnam vet... Old habits don't go away easily huh? -- How many Vietnam vets does it take to screw in a

Re: [PHP] Going back with multiple submits to the same page

2007-01-20 Thread tedd
At 8:43 PM +0100 1/18/07, Otto Wyss wrote: Paul Novitski wrote: At 1/15/2007 01:52 PM, Otto Wyss wrote: When values are entered on one of my page I submit the result back to the same page (form action=same_page). Unfortunately each submit adds an entry into the history, so history back

Re: [PHP] email validation string.

2007-01-20 Thread tedd
At 3:47 PM + 1/20/07, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-20 09:22:00 -0500: At 3:04 PM + 1/20/07, Roman Neuhauser wrote: One of my email addresses is [EMAIL PROTECTED] Thanks, I'll add that to my kill list. Vietnam vet... Old habits don't go away easily huh? I

Re: [PHP] Security Question

2007-01-20 Thread Al
Here is part of my proxie tags to html tags translation array. Looks pretty safe to me. There is other code to recognize paragraphs and lists, etc. $translate_array= array( 'link' = 'a href=http://', '/link' = '/a', 'slink' = 'a href=https://', '/slink'=

RE: [PHP] Script to generate a site thumbnails

2007-01-20 Thread tedd
At 10:58 AM +0200 1/19/07, WeberSites LTD wrote: 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:

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

2007-01-20 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-20 00:33:10 +0100: I have a tradedoubler webbug to implement in site Pardon my ignorance, what's a tradedoubler webbug? http://www.tradedoubler.com/pan/public should explain; a webbug is merely an img tag with a src pointing to some kind

Re: [PHP] Request for...

2007-01-20 Thread Jochem Maas
Wikus Moller wrote: Hi. Since this is a mailing list for web developers, I thought I might as well post an o f f t o p i c request. Does anyone know of any website where I can get a exe or jar sitemap generating software? php. Particularly not GsiteCrawler as it uses too much system

Re: [PHP] Request for...

2007-01-20 Thread Stut
Wikus Moller wrote: Since this is a mailing list for web developers, I thought I might as well post an o f f t o p i c request. Does anyone know of any website where I can get a exe or jar sitemap generating software? Particularly not GsiteCrawler as it uses too much system resources. A java

Re: [PHP] nuSoap -method '' not defined in service

2007-01-20 Thread Martin Alterisio
Try the following: $server-register('getColumns', array(), array()); The second argument is an array containing an entry for each argument of the webservice call, and the third argument is an array for the return value. Since you don't have either arguments nor return value, empty arrays should

Re: [PHP] Request for...

2007-01-20 Thread Børge Holen
On Saturday 20 January 2007 17:09, Stut wrote: Wikus Moller wrote: Since this is a mailing list for web developers, I thought I might as well post an o f f t o p i c request. Does anyone know of any website where I can get a exe or jar sitemap generating software? Particularly not

Re: [PHP] Storing values in arrays

2007-01-20 Thread tedd
At 3:33 PM -0800 1/18/07, Ryan A wrote: tedd [EMAIL PROTECTED] wrote: At 7:15 AM -0800 1/17/07, Ryan A wrote: True, but thats not the most important part... I guess I wrote it wrong, I meant that it should not write to disk before 1 minute... anyway... about the array saving any ideas?

Re: [PHP] preg_match problem

2007-01-20 Thread Martin Alterisio
Double slash to prevent PHP interpreting the slashes. Also using single quotes would be a good idea: if (preg_match('/[\\w\\x2F]{6,}/',$a)) 2007/1/19, Németh Zoltán [EMAIL PROTECTED]: Hi all, I have a simple checking like if (preg_match(/[\w\x2F]{6,}/,$a)) as I would like to allow all

RE: [PHP] Request for...

2007-01-20 Thread Jay Blanchard
[snip] Since this is a mailing list for web developers [/snip] This is a mailing list for PHP developers who might also do web development. Evolt.org has a great list for w e b d e v e l o p e r s -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] preg_match problem

2007-01-20 Thread Arpad Ray
Martin Alterisio wrote: Double slash to prevent PHP interpreting the slashes. Also using single quotes would be a good idea: if (preg_match('/[\\w\\x2F]{6,}/',$a)) Just switching to single quotes would do the trick - you don't need to escape anything but single quotes, and backslashes if

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

2007-01-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-20 01:30:55 +0100: 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 creating a non-blocking

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

2007-01-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-20 16:50:48 +0100: Roman Neuhauser wrote: 1. user stuffs things into shopping basket on [my] site (data stored in session) 2. user goes to check out. 3. user chooses online payment. 4. user is redirected to online payment provider site 5. user completes

RE: [PHP] Request for...

2007-01-20 Thread Jay Blanchard
[snip] Since this is a mailing list for web developers, I thought I might as well post an o f f t o p i c request. Does anyone know of any website where I can get a exe or jar sitemap generating software? Particularly not GsiteCrawler as it uses too much system resources. A java applet would be

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

2007-01-20 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-20 01:30:55 +0100: 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 creating

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

2007-01-20 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-20 16:50:48 +0100: Roman Neuhauser wrote: 1. user stuffs things into shopping basket on [my] site (data stored in session) 2. user goes to check out. 3. user chooses online payment. 4. user is redirected to online payment provider site

Re: [PHP] Request for...

2007-01-20 Thread Jochem Maas
Børge Holen wrote: On Saturday 20 January 2007 17:09, Stut wrote: Wikus Moller wrote: ... -Stut Easily annoyed today. dunno - I reckon the OP was trying pretty hard ;-) Must be a Saturday, I never could get the hang of Saturdays. ah,,... you say, I'm just ackin' to get rid of

[PHP] PHP Warning: session_destroy

2007-01-20 Thread Andre Dubuc
Hi, To stop bots from accessing secured pages, I've added the following code to a banner page that is called by every page. Furthermore, each page starts with ?php session_start(); ? and includes the banner page: 'top1.php' [banner page] ?php if((eregi(((Yahoo! Slurp|Yahoo! Slurp

Re: [PHP] Request for...

2007-01-20 Thread Jochem Maas
Jay Blanchard wrote: [snip] Since this is a mailing list for web developers, I thought I might as well post an o f f t o p i c request. Does anyone know of any website where I can get a exe or jar sitemap generating software? Particularly not GsiteCrawler as it uses too much system

Re: [PHP] Request for...

2007-01-20 Thread Børge Holen
On Saturday 20 January 2007 22:54, Jochem Maas wrote: Børge Holen wrote: On Saturday 20 January 2007 17:09, Stut wrote: Wikus Moller wrote: ... -Stut Easily annoyed today. dunno - I reckon the OP was trying pretty hard ;-) Must be a Saturday, I never could get the hang of

Re: [PHP] PHP Warning: session_destroy

2007-01-20 Thread Paul Novitski
At 1/20/2007 02:14 PM, Andre Dubuc wrote: However, checking the live version, I get an secure-error_log entry: PHP Warning: session_destroy() [a href='function.session-destroy'function.session-destroy/a]: Trying to destroy uninitialized session Question is: didn't the session_start(); on the

Re: [PHP] PHP Warning: session_destroy

2007-01-20 Thread Andre Dubuc
On Saturday 20 January 2007 05:33 pm, Paul Novitski wrote: At 1/20/2007 02:14 PM, Andre Dubuc wrote: However, checking the live version, I get an secure-error_log entry: PHP Warning: session_destroy() [a href='function.session-destroy'function.session-destroy/a]: Trying to destroy

Re: [PHP] Security Question

2007-01-20 Thread Jochem Maas
Al wrote: Here is part of my proxie tags to html tags translation array. Looks pretty safe to me. There is other code to recognize paragraphs and lists, etc. any 'real' html in the content your 'translating' is still going to be there after translation - and therefore sent to the client, quite

Re: [PHP] PHP Warning: session_destroy

2007-01-20 Thread Jochem Maas
Andre Dubuc wrote: Hi, To stop bots from accessing secured pages, I've added the following code to a banner page that is called by every page. Furthermore, each page starts with ?php session_start(); ? and includes the banner page: 'top1.php' [banner page] ?php

Re: [PHP] I lied, another question / problem

2007-01-20 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-17 16:59:26 +0100: Roman Neuhauser wrote: re_format(7) on FreeBSD: A bracket expression is a list of characters enclosed in `[]'. (...) If two characters in the list are separated by `-', this is shorthand for the

[PHP] most powerful php editor

2007-01-20 Thread Vinicius C Silva
hi everyone! i'd like to ask something maybe commonly asked here. what is the most powerful php editor?

Re: [PHP] most powerful php editor

2007-01-20 Thread Stut
Vinicius C Silva wrote: hi everyone! doctor name=nickHi everybody!/doctor i'd like to ask something maybe commonly asked here. what is the most powerful php editor? Definitely the chainsaw. Lets you slice your PHP scripts up into iddy biddy pieces so you can try different combinations.

[PHP] Re: most powerful php editor

2007-01-20 Thread Gregory Beaver
Vinicius C Silva wrote: hi everyone! i'd like to ask something maybe commonly asked here. what is the most powerful php editor? I am Yours, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help With Inventory

2007-01-20 Thread Brandon Bearden
Can anyone help me figure out how to solve my inventory listing problem? I am using php_5 and mysql_5.0 w/apache on fbsd. I need to figure out a way to make a subtitle for every category (genre) in the inventory so when I list the entire inventory on a sheet (at client's request), it is

RE: [PHP] most powerful php editor

2007-01-20 Thread Jay Blanchard
[snip] i'd like to ask something maybe commonly asked here. what is the most powerful php editor? [/snip] What is power when regarding a PHP editor? My team uses Eclipse but we are all comfortable with VI or PICO. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Php coding help - Newbie question

2007-01-20 Thread Ramdas
On 1/18/07, Ramdas [EMAIL PROTECTED] wrote: On 1/17/07, Jochem Maas [EMAIL PROTECTED] wrote: Ramdas wrote: Hi Group, A very newbie question. Might be discussed earlier, please forgive. Are so much of a noob that STFW is not within your capabilities? (just thought I'd ask, given that

RE: [PHP] most powerful php editor

2007-01-20 Thread Tom Cruickshank
I use Quanta when doing PHP development. Used to use vi, but Quanta won me. Sorry vi. Is Quanta powerful in my opinion? Yes. Why? Because it fits all requirements And then some. Just my 2 cents. Tom -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: January 20,

[PHP] wierd slash

2007-01-20 Thread Don
I have a line of code that validates form info for some POST vars, but not others. if (!ereg(^[A-Za-z' -]{1,50}$,$_POST[$field]) ) when I put O'Toole in the form to test, my script kicks the page back (I thought this entry would be OK) but moreover, when it redisplays

[PHP] Forced File Downloads

2007-01-20 Thread Don
I've been having my forced downloads sometimes finish prematurely using readfile(). I'm downloading a Windows .exe file. I've read several posts that have suggested the substitution of a fread/feof loop to write out the download in smaller chunks. I tried using a function (readfile_chunked) I