[PHP] Re: Including Google Ads

2006-08-09 Thread Manuel Lemos
Hello, on 08/10/2006 03:07 AM C.F. Scheidecker Antunes said the following: > How do I include Google Ads on my PHP script? You need to apply to an AdSense account. When you are approved you configure your ads in the AdSense site. The site gives you the necessary HTML with Javascript code that you

Re: [PHP] Including Google Ads

2006-08-09 Thread Chris
C.F. Scheidecker Antunes wrote: Hello all, How do I include Google Ads on my PHP script? Read the google website. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Including Google Ads

2006-08-09 Thread C.F. Scheidecker Antunes
Hello all, How do I include Google Ads on my PHP script? I do not want to include it only but to be able to set the keywords for the add. Maybe even have it to change from time to time, probably using AJAX. Any good pointers on Google Ads? Thanks, C.F. -- PHP General Mailing List (http://

RE: [PHP] List Meeting NNOT

2006-08-09 Thread Paul Scott
On Wed, 2006-08-09 at 18:54 -0500, Jay Blanchard wrote: > Yes, but not everyone can get to or goes to conferences. And this would > stand on its own don'tcha think? I think that Chicago is perfect, > because it is centrally located (kinda') and a neat place to boot. > Kinda...Chicago is a bit o

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread Chris
Chris wrote: Chris wrote: J R wrote: try to use this few lines of code. function stripMagicQuotes(&$var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. Then he has to modify

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread J R
here's an improvement jwith recursion: function stripMagicQuotes(&$var) { if (get_magic_quotes_gpc()) { if(!is_array($var)) { $var= stripslashes($var); } else { array_walk($var, stripMagicQuotes); } } return $var; } hth, john On 8/10/06, C

Re: [PHP] Dividing, and keeping, text from the first space

2006-08-09 Thread Dave M G
Robert, Thank you for responding. The extra slashes are to properly escape the backslash character since you are using double quotes As I said you may want the following pattern in cases where no space exists: '#^([^\s]*)\s?(.*)$#' Thank you for your detailed explanation. Especially wit

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread Chris
Chris wrote: J R wrote: try to use this few lines of code. function stripMagicQuotes(&$var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. Then he has to modify all the code

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread Chris
J R wrote: try to use this few lines of code. function stripMagicQuotes(&$var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. Then he has to modify all the code to call that f

Re: [PHP] Comment form spammer

2006-08-09 Thread Micky Hulse
Micky Hulse wrote: I just commented-out all of the PHP in the old script and added one line: die("#%$#@ off!"); Actually... is there anything more I can do at this point to fight back? Can I use something better than die()? Or, is it best just to let them figure it out and go away? -- PHP

Re: [PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Dave M G
Robert, Ray, Richard, Thank you all for responding with helpful advice. Robert said: It's all about the headers... header( "Content-type: text/csv" ); header( "Content-disposition: inline; filename=$filename" ); Ah... that's something I think I never would have figured out wi

Re: [PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Richard Lynch
On Wed, August 9, 2006 11:20 am, Dave M G wrote: > How do I create a file that the user saves, and is not stored on the > server? http://richadlynch.blogger.com -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread J R
try to use this few lines of code. function stripMagicQuotes(&$var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. ** On 8/10/06, Chris <[EMAIL PROTECTED]> wrote: [EMAIL PROTE

Re: [PHP] Comment form spammer

2006-08-09 Thread Micky Hulse
Micky Hulse wrote: Recently, a client of mine was getting a ton of spam email from a site called hotbox.com. I updated her form to one with more spam security, but she is still receiving junk email. Hi all, thanks for the great responses (on/off list). I just realized that the spammer is not

Re: [PHP] script stopped working- no output from unserialize()

2006-08-09 Thread Richard Lynch
On Wed, August 9, 2006 3:06 pm, Ross wrote: > When I echo out the results from the db I get the serialized data but > when I > try and pass the serialized data to the function to unserialize the > output > it doesn't work - no output what-so-ever. Also when the serialized > data is > sent to the fu

Re: [PHP] Comment form spammer

2006-08-09 Thread Micky Hulse
Quick note to Kevin Waterson: Hehe, I think all this talk about spam sent my response to your reply into your spam filter... I got a bounce back. Thanks for help though... let me know if there is any way I can re-send the email without a bounce-back. Richard Lynch wrote: If you are not alre

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread Chris
[EMAIL PROTECTED] wrote: Hi to all. Have a web site on server where magic quote is turned On. Because of problems with quotes within forms, I was thinking to turn it Off. I wonder how much work I'll have to change code to accept new setting? Are we talking about major changes or something that c

Re: [PHP] Comment form spammer

2006-08-09 Thread Richard Lynch
On Wed, August 9, 2006 3:17 pm, Micky Hulse wrote: > Recently, a client of mine was getting a ton of spam email from a site > called hotbox.com. I updated her form to one with more spam security, > but she is still receiving junk email. If you are not already, PLEASE make sure that any headers you

RE: [PHP] List Meeting NNOT

2006-08-09 Thread Jay Blanchard
[snip] > [snip] > Isn't that what the conferences are for??? > > I'm happy to host a small get-together in Chicago... > > I'll throw in a couple kegs of beer and some munchies at Uncommon > Ground where I work. :-) > http://uncommonground.com/ > [/snip] > > Yes, but not everyone can get to or go

RE: [PHP] List Meeting NNOT

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 18:54 -0500, Jay Blanchard wrote: > [snip] > Isn't that what the conferences are for??? > > I'm happy to host a small get-together in Chicago... > > I'll throw in a couple kegs of beer and some munchies at Uncommon > Ground where I work. :-) > http://uncommonground.com/ > [/

RE: [PHP] List Meeting NNOT

2006-08-09 Thread Jay Blanchard
[snip] Isn't that what the conferences are for??? I'm happy to host a small get-together in Chicago... I'll throw in a couple kegs of beer and some munchies at Uncommon Ground where I work. :-) http://uncommonground.com/ [/snip] Yes, but not everyone can get to or goes to conferences. And this w

Re: [PHP] question about how php handles post'd and get'd data

2006-08-09 Thread Ligaya Turmelle
tedd wrote: At 10:27 AM +1000 8/9/06, Ligaya Turmelle wrote: jonathan wrote: i was having a conversation and was wondering where in the source code for php is the process for writing get'd and post'd data to their corresponding arrays? Also, is there a way to view the source code online?

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jonathan Duncan on Wednesday, August 09, 2006 3:55 PM said: > If you want to really learn Linux, try Gentoo. If you just want a > very good and easy to use Linux, go with SuSE. To keep this related to the question I asked... Do either of the latest builds of these

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Jack Gates
On Wednesday 09 August 2006 19:24, Jochem Maas wrote: > Jonathan Duncan wrote: > > On Wed, 9 Aug 2006, Chris W. Parker wrote: > >> Jack Gates > >> > >>on Wednesday, August 09, 2006 10:16 AM said: > >>> On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: > I

Re: [PHP] List Meeting NNOT

2006-08-09 Thread Richard Lynch
On Wed, August 9, 2006 6:26 pm, Jay Blanchard wrote: > Here is a thought that a couple of us have shared off-list; why don't > we > list denizens plan a get together? A face-to-face with the good, the > bad > and the ugly. A mano y' mano curly brace holy war. Beers and meat. The > whole 9.2 Mb's. >

[PHP] List Meeting NNOT

2006-08-09 Thread Jay Blanchard
Here is a thought that a couple of us have shared off-list; why don't we list denizens plan a get together? A face-to-face with the good, the bad and the ugly. A mano y' mano curly brace holy war. Beers and meat. The whole 9.2 Mb's. So, what say you? Shall we start a more formal process? Set a dat

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Jochem Maas
Jonathan Duncan wrote: > > On Wed, 9 Aug 2006, Chris W. Parker wrote: > >> Jack Gates >>on Wednesday, August 09, 2006 10:16 AM said: >> >>> On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Jonathan Duncan
On Wed, 9 Aug 2006, Chris W. Parker wrote: Jack Gates on Wednesday, August 09, 2006 10:16 AM said: On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some negative things about it in general (FC5).

[PHP] Re: Best way to get PHP5

2006-08-09 Thread Colin Guthrie
Chris W. Parker wrote: Hello, Generally (well, actually 100%) I just use whatever version of PHP is included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). For my work, I build PHP 5.1.2 for CentOS 4.3. I'd be happy to share the SRC or the built RPMs with you if that saves yo

Re: [PHP] script stopped working- no output from unserialize()

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 21:06 +0100, Ross wrote: > So, > > When I echo out the results from the db I get the serialized data but when I > try and pass the serialized data to the function to unserialize the output > it doesn't work - no output what-so-ever. Also when the serialized data is > sent

Re: [PHP] script stopped working- no output from unserialize()

2006-08-09 Thread Jochem Maas
Ross wrote: > So, > > When I echo out the results from the db I get the serialized data but when I > try and pass the serialized data to the function to unserialize the output > it doesn't work - no output what-so-ever. Also when the serialized data is > sent to the function and then echoed out

[PHP] Comment form spammer

2006-08-09 Thread Micky Hulse
Hi, Recently, a client of mine was getting a ton of spam email from a site called hotbox.com. I updated her form to one with more spam security, but she is still receiving junk email. Anyone feel like sharing code snippets that will help beef-up spam protection for a contact script? Do you

[PHP] script stopped working- no output from unserialize()

2006-08-09 Thread Ross
So, When I echo out the results from the db I get the serialized data but when I try and pass the serialized data to the function to unserialize the output it doesn't work - no output what-so-ever. Also when the serialized data is sent to the function and then echoed out before it is unserializ

Re: [PHP] Job Posting

2006-08-09 Thread John Nichel
Jay Blanchard wrote: [snip] Sure, or a link not that Jay's up for doing any work anymore - he's a director these days ;-) Ah, so that's where Microsoft cronies go to die. :-p [/snip] Yep...they make them management. Sorry to hear about your demotion. -- John C. Nichel IV Programmer/

RE: [PHP] Job Posting

2006-08-09 Thread Jay Blanchard
[snip] >> Sure, or a link > > not that Jay's up for doing any work anymore - he's a director these days ;-) > Ah, so that's where Microsoft cronies go to die. :-p [/snip] Yep...they make them management. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

RE: [PHP] LAMP Developer Needed - Indianapolis

2006-08-09 Thread Jay Blanchard
[snip] > > Qualified candidates should e-mail their resume (Word, PDF, or Plain > text > > preferred) to [EMAIL PROTECTED] > > > > Where should non-qualified candidates e-mail their resume? > [/snip] > > To me. Hahah, your post arrived before mine. [/snip] What is scary is that we are all on

Re: [PHP] create multidimensional array with n depth

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 14:14 -0400, [EMAIL PROTECTED] wrote: > My brain is really fried right now and I'm sure someone has a more indepth > answer/opinion on this subject, but it occurs to me that you can get away > from using eval() if you do some kind of recursive function using: > > $temp[] =

Re: [PHP] LAMP Developer Needed - Indianapolis

2006-08-09 Thread John Nichel
Jay Blanchard wrote: [snip] Brent Meshier wrote: Qualified candidates should e-mail their resume (Word, PDF, or Plain text preferred) to [EMAIL PROTECTED] Where should non-qualified candidates e-mail their resume? [/snip] To me. Silly me. -- John C. Nichel IV Programmer/System Admin

RE: [PHP] LAMP Developer Needed - Indianapolis

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 14:27 -0500, Jay Blanchard wrote: > [snip] > Brent Meshier wrote: > > > Qualified candidates should e-mail their resume (Word, PDF, or Plain > text > > preferred) to [EMAIL PROTECTED] > > > > Where should non-qualified candidates e-mail their resume? > [/snip] > > To me.

Re: [PHP] LAMP Developer Needed - Indianapolis

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 14:45 -0400, John Nichel wrote: > Brent Meshier wrote: > > > Qualified candidates should e-mail their resume (Word, PDF, or Plain text > > preferred) to [EMAIL PROTECTED] > > > > Where should non-qualified candidates e-mail their resume? Isn't it obvious?? [EMAIL PR

RE: [PHP] LAMP Developer Needed - Indianapolis

2006-08-09 Thread Jay Blanchard
[snip] Brent Meshier wrote: > Qualified candidates should e-mail their resume (Word, PDF, or Plain text > preferred) to [EMAIL PROTECTED] > Where should non-qualified candidates e-mail their resume? [/snip] To me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jack Gates on Wednesday, August 09, 2006 10:16 AM said: > On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: >> I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some >> negative things about it in general (FC5). > > What sort of negative things have

Re: [PHP] LAMP Developer Needed - Indianapolis

2006-08-09 Thread John Nichel
Brent Meshier wrote: Qualified candidates should e-mail their resume (Word, PDF, or Plain text preferred) to [EMAIL PROTECTED] Where should non-qualified candidates e-mail their resume? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL

Re: [PHP] script stopped working 2..

2006-08-09 Thread Jochem Maas
Ross wrote: > My previous post said the script stopped working but it actually only fails > on the remote host, it works fine on localhost stopped working heh? is it plugged in? did a homeless guy move in next to power unit and accidently unseat the IDE cable? did you p*** of your sys admin? if y

Re: [PHP] Job Posting

2006-08-09 Thread John Nichel
Jochem Maas wrote: Jay Blanchard wrote: [snip] Is it appropriate to post jobs on this list? I have many PHP Developer positions available. [/snip] Sure, or a link not that Jay's up for doing any work anymore - he's a director these days ;-) Ah, so that's where Microsoft cronies go to

Re: [PHP] Job Posting

2006-08-09 Thread Jochem Maas
Jay Blanchard wrote: > [snip] Is it appropriate to post jobs on this list? I have many PHP > Developer positions available. > [/snip] > > Sure, or a link not that Jay's up for doing any work anymore - he's a director these days ;-) > -- PHP General Mailing List (http://www.php.net/) To u

[PHP] script stopped working 2..

2006-08-09 Thread Ross
My previous post said the script stopped working but it actually only fails on the remote host, it works fine on localhost Does unserialize() only work after a certain version of php? The phpinfo() is here... http://legalservicestraining.co.uk/test/info.php -- PHP General Mailing List (htt

Re: [PHP] create multidimensional array with n depth

2006-08-09 Thread tg-php
My brain is really fried right now and I'm sure someone has a more indepth answer/opinion on this subject, but it occurs to me that you can get away from using eval() if you do some kind of recursive function using: $temp[] = array($arrval1, $arrval2,...); and $arrval1 could == array($arr2val1

RE: [PHP] Job Posting

2006-08-09 Thread Jay Blanchard
[snip] Is it appropriate to post jobs on this list? I have many PHP Developer positions available. [/snip] Sure, or a link -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jochem Maas on Wednesday, August 09, 2006 11:05 AM said: [snip useful stuff] > 1. you can skip 'make test' > 2. if in doubt do 'make clean' before 'make' > 3. rinse and repeat 'configure', 'make', 'make install' as required > 4. do './configure --help' to see all th

[PHP] LAMP Developer Needed - Indianapolis

2006-08-09 Thread Brent Meshier
MST Group, a rapidly growing marketing services firm located on the northwest side of Indianapolis, is seeking an innovative and hard-working person to become a key player on our talented and successful team. MST Group is a leader in providing our world class Business-To-Business clients with lead

[PHP] Job Posting

2006-08-09 Thread Brent Meshier
Is it appropriate to post jobs on this list? I have many PHP Developer positions available. Brent Meshier Director IT Operations Global Transport Logistics Garcia & Co Fulfillment http://www.garcia-co.com/ (877) 257-SHIP ext 23 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] create multidimensional array with n depth

2006-08-09 Thread Jochem Maas
Gunter Sammet wrote: > Hi all: > I've been trying to create a multidimensional array with n depth in php. > Tried to use a recursive function passing array references by pointers but > seems like it's not possible or I still don't understand this subject > enough. Finally managed to get it going

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Jochem Maas
Chris W. Parker wrote: > Hello, > > Generally (well, actually 100%) I just use whatever version of PHP is > included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). > None of the versions I've used have come with PHP5 and I'd really like > to get with the times and use PHP5. > > I

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Jack Gates
On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: > I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some > negative things about it in general (FC5). What sort of negative things have you heard in general about (FC5)? -- Jack Gates http://www.morningstarcom.net/ -- PHP Genera

[PHP] create multidimensional array with n depth

2006-08-09 Thread Gunter Sammet
Hi all: I've been trying to create a multidimensional array with n depth in php. Tried to use a recursive function passing array references by pointers but seems like it's not possible or I still don't understand this subject enough. Finally managed to get it going using the eval function. The c

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Brad Bonkoski
Chris W. Parker wrote: Hello, Generally (well, actually 100%) I just use whatever version of PHP is included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). None of the versions I've used have come with PHP5 and I'd really like to get with the times and use PHP5. I know that F

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Ray Hauge
On Wednesday 09 August 2006 12:03, Jonathan Duncan wrote: > On Wed, 9 Aug 2006, Chris W. Parker wrote: > > Hello, > > > > Generally (well, actually 100%) I just use whatever version of PHP is > > included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). > > None of the versions I've

Re: [PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Ray Hauge
On Wednesday 09 August 2006 11:20, Dave M G wrote: > PHP List, > > In the last stage of my current script, I need to take a bunch of data > from the database and put it into a text file for the user to save to > their computer and import into an application. > > The file being created is just a lis

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Jonathan Duncan
On Wed, 9 Aug 2006, Chris W. Parker wrote: Hello, Generally (well, actually 100%) I just use whatever version of PHP is included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). None of the versions I've used have come with PHP5 and I'd really like to get with the times and use

Re: [PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Robert Cummings
On Thu, 2006-08-10 at 01:20 +0900, Dave M G wrote: > PHP List, > > In the last stage of my current script, I need to take a bunch of data > from the database and put it into a text file for the user to save to > their computer and import into an application. > > The file being created is just a

[PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Hello, Generally (well, actually 100%) I just use whatever version of PHP is included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). None of the versions I've used have come with PHP5 and I'd really like to get with the times and use PHP5. I know that Fedora Core 5 offers PHP 5.1

[PHP] script stopped worling

2006-08-09 Thread Ross
This script is meant to download serialized data (array) from the db, unserialize it and output it. It has stopped working (not outputing anything). I have been looking at it for an hour and cannot see why! It was working earlier on - can you see the mistake? $data) { $count=$count+1;?> Q

[PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Dave M G
PHP List, In the last stage of my current script, I need to take a bunch of data from the database and put it into a text file for the user to save to their computer and import into an application. The file being created is just a list of Japanese words and definitions delineated by tabs.

Re: [PHP] Dividing, and keeping, text from the first space

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 08:11 -0700, Kevin Murphy wrote: > > On Aug 8, 2006, at 11:30 PM, Dave M G wrote: > > > PHP List, > > > > This regular expression stuff is way tricky. > > > > Thanks to help from this list, I have an expression that will > > select the first word of a string, up to the fir

Re: [PHP] I only want x number of lines of data

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 16:39 +0200, Jochem Maas wrote: > PROMISETOSTOP ?>BREAKINGIN ?>ANDOUTOFPHP ?>TOOUTPUT ?>STRINGSTOTHEBROWSER phpinfo(); > > easy to read don't you think? > > Ross wrote: > > At the mometn I have this > > > > > > function display_result($module_no) { > > > > if ($module_no

Re: [PHP] I only want x number of lines of data

2006-08-09 Thread Jochem Maas
PROMISETOSTOPBREAKINGINANDOUTOFPHPTOOUTPUTSTRINGSTOTHEBROWSEReasy to read don't you think? Ross wrote: > At the mometn I have this > > > function display_result($module_no) { > > if ($module_no != "") { > $module_no =unserialize ($module_no); > foreach ($module_no as $number => $data) { > > $c

Re: [PHP] Dividing, and keeping, text from the first space

2006-08-09 Thread Kevin Murphy
On Aug 8, 2006, at 11:30 PM, Dave M G wrote: PHP List, This regular expression stuff is way tricky. Thanks to help from this list, I have an expression that will select the first word of a string, up to the first white space: "#^(.*)\s#iU" But after some consideration, I realized that I

Re: [PHP] Dividing, and keeping, text from the first space

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 19:07 +0900, Dave M G wrote: > Robert, > > Thank you for your quick response and helpful advice. > >> Use preg_match() and pay special attention to the manual as it refers to > >> the third parameter :) The expression you need follows: > >>"#^([^\\s]*)\\s(.*)$#U" > > Thi

Re: [PHP] sessions no longer work

2006-08-09 Thread blackwater dev
It doesn't matter if I just surf to the page and they do seem to get the same phpsessionid..interestingly enough the first three cars are 'BAD'. Not sure if the path is writable through. On 8/9/06, Jochem Maas <[EMAIL PROTECTED]> wrote: blackwater dev wrote: > Sorry if you are getting this mul

Re: [PHP] returning to the same page after log in

2006-08-09 Thread Sjef
I think I solved the problem. I've set the action of the login form to $_SERVER['REQUEST_URI'] instead of $_SERVER['PHP_SELF']. It works fine. May not be the proper way but hey ... Sjef "Andrei" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > > When u know the user is not logged

Re: [PHP] I only want x number of lines of data

2006-08-09 Thread Brad Bonkoski
Ross wrote: At the mometn I have this function display_result($module_no) { $count = 0; //Of course you *should* initialize $count $start = 1; $end = 3; if ($module_no != "") { $module_no =unserialize ($module_no); foreach ($module_no as $number => $data) { $count=$count+1;

Re: [PHP] returning to the same page after log in

2006-08-09 Thread Andrei
When u know the user is not logged in and you have to redirect him to login page, get all variables that are in $_GET and in $_POST (if u have data that u send in post also) and form a string with them as a return context string like: The code that you have to put in the page where you re

Re: [PHP] sessions no longer work

2006-08-09 Thread blackwater dev
Sorry if you are getting this multiple times, email is acting a bit screwy. Nope. still doesn't work. Sessions just aren't saved. On 8/9/06, Jochem Maas <[EMAIL PROTECTED]> wrote: blackwater dev wrote: > Hello, > > I have a site that was coded a while ago. I was just told that the admin > s

[PHP] I only want x number of lines of data

2006-08-09 Thread Ross
At the mometn I have this function display_result($module_no) { if ($module_no != "") { $module_no =unserialize ($module_no); foreach ($module_no as $number => $data) { $count=$count+1;?> Q.- http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about how php handles post'd and get'd data

2006-08-09 Thread tedd
At 10:27 AM +1000 8/9/06, Ligaya Turmelle wrote: jonathan wrote: i was having a conversation and was wondering where in the source code for php is the process for writing get'd and post'd data to their corresponding arrays? Also, is there a way to view the source code online? thanks, jonath

[PHP] problem with quotes (single and double) in forms

2006-08-09 Thread afan
Hi to all. Have a web site on server where magic quote is turned On. Because of problems with quotes within forms, I was thinking to turn it Off. I wonder how much work I'll have to change code to accept new setting? Are we talking about major changes or something that could be done in day or two

[PHP] returning to the same page after log in

2006-08-09 Thread Sjef
Hello all! This is a bit difficult to explain. On a site I am building I sometimes use the GET method to forward values to the next page. There are certain pages that you need to be logged in to to be able to see data. So you arrive at the page, you realize that you are not logged in, so you typ

Re: [PHP] sessions no longer work

2006-08-09 Thread Jochem Maas
blackwater dev wrote: > Hello, > > I have a site that was coded a while ago. I was just told that the admin > side no longer works. I looked and the host recently put php 4.4.2 on the > site. I have tried a few things but nothing seems to work. The problem is > once you log in the admin page a

[PHP] sessions no longer work

2006-08-09 Thread blackwater dev
Hello, I have a site that was coded a while ago. I was just told that the admin side no longer works. I looked and the host recently put php 4.4.2 on the site. I have tried a few things but nothing seems to work. The problem is once you log in the admin page always kicks you back, doesn't see

Re: [PHP] preg_match

2006-08-09 Thread Jochem Maas
Peter Lauri wrote: > Hi, > > > > How do I add so that it checks for a comma , in this preg_match. I think the > documentation is not that good for the pref_match: it's a lot better than you spelling of preg_match. the subject of regexps is very complex, the documentation reflects that - but t

[PHP] Re: Cron running 'Hello world' script dies with "Could not startup."

2006-08-09 Thread Colin Guthrie
Ivo F.A.C. Fokkema wrote: SO: Loading the GTK library in your /etc/php4/cli/php.ini, KILLS the PHP-cli functionality from cron. On Ubuntu Dapper, that is. Not sure about other distros. Thanks guys, for all of your suggestions! Ahh it probably *needs* an X Server to work properly. I'll bet if y

Re: [PHP] preg_match

2006-08-09 Thread Dave Goodchild
On 09/08/06, Peter Lauri <[EMAIL PROTECTED]> wrote: Hi, How do I add so that it checks for a comma , in this preg_match. I think the documentation is not that good for the pref_match: preg_match('/^[a-z0-9-_\'() +]*$/i', $s); Check for a comma inside a range - use a comma! -- h

[PHP] preg_match

2006-08-09 Thread Peter Lauri
Hi, How do I add so that it checks for a comma , in this preg_match. I think the documentation is not that good for the pref_match: preg_match('/^[a-z0-9-_\'() +]*$/i', $s); /Peter

Re: [PHP] Dividing, and keeping, text from the first space

2006-08-09 Thread Dave M G
Robert, Thank you for your quick response and helpful advice. Use preg_match() and pay special attention to the manual as it refers to the third parameter :) The expression you need follows: "#^([^\\s]*)\\s(.*)$#U" This works perfectly. I now see that the preg_match() function returns an a

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-09 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 17:07:29 +0200, Ivo F.A.C. Fokkema wrote: > On Tue, 08 Aug 2006 10:01:41 -0500, Ray Hauge wrote: > >> On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote: >>> On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: >>> > On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema w

RE: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-09 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 17:01:13 +0200, Arno Kuhl wrote: > Is there anything in your error log that says why it failed? (whatever > error_log points to in php.ini, or maybe what ErrorLog points to in > httpd.conf) > > Arno Hi Arno, thanks for your reply. However, the PHP-cli binary doesn't use the A

Re: [PHP] Dividing, and keeping, text from the first space

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 02:57 -0400, Robert Cummings wrote: > On Wed, 2006-08-09 at 15:30 +0900, Dave M G wrote: > > PHP List, > > > > This regular expression stuff is way tricky. > > > > Thanks to help from this list, I have an expression that will select the > > first word of a string, up to the