Re: [PHP] help with multidimentional arrays

2006-04-11 Thread Richard Lynch
On Tue, April 11, 2006 1:58 pm, Bing Du wrote: What I intend to do is put the database query results in a multidimentional array like this. $sponsor_id['sponsor1'] = ('project1 title', 'project2 title', 'project3 title'); $sponsor_id['sponsor2'] = ('project1 title','project7 title');

[PHP] Help with a complex scenario

2006-04-07 Thread Robert Fitzpatrick
I have an order table that we are trying to figure out a way to find the best (cheapest) scenario to sending to vendors to fill the orders. Let's say we have 10 parts ordered, if we split that amongst vendors, even paying a higher shipping cost in some cases can be cheaper. We can send 2 of those

Re: [PHP] Help with a complex scenario

2006-04-07 Thread tedd
At 4:59 PM -0400 4/7/06, Robert Fitzpatrick wrote: I have an order table that we are trying to figure out a way to find the best (cheapest) scenario to sending to vendors to fill the orders. Let's say we have 10 parts ordered, if we split that amongst vendors, even paying a higher shipping cost

Re: [PHP] help with some logic.

2006-04-06 Thread Dallas Cahker
Thanks makes it alot easier to follow. On 4/4/06, Dallas Cahker [EMAIL PROTECTED] wrote: Okay I'll look at that. What about switching to setting the password in md5 format in the cookie rather then a regular id. I might not call the cookie password but to me in thinking about it seems like

[PHP] help with some logic.

2006-04-04 Thread Dallas Cahker
I've been looking at this code for a few hours now and I get the nagging feeling that I am overcomplicating something, something I never ever do. I have a login that puts some information on the session, and if the customer wants they can ask to be remembered, the cookie is given the customers

Re: [PHP] help with some logic.

2006-04-04 Thread Dan McCullough
hey Dallas, have you thought about breaking this up and making two seperate functions one the checks the cookie and one that checks the session information? I'm not sure if that is what you were looking for as far as an answer but it might be a good start. On 4/4/06, Dallas Cahker [EMAIL

Re: [PHP] help with some logic.

2006-04-04 Thread Dallas Cahker
Okay I'll look at that. What about switching to setting the password in md5 format in the cookie rather then a regular id. I might not call the cookie password but to me in thinking about it seems like the same thing as setting a random id and then saving the random id in the db. On 4/4/06, Dan

RE: [PHP] Help?

2006-03-24 Thread Clinton, Rochelle A
: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, March 23, 2006 3:39 PM To: Clinton, Rochelle A Cc: php-general@lists.php.net Subject: RE: [PHP] Help? On Thu, March 23, 2006 2:19 pm, Clinton, Rochelle A wrote: Hi Richard, WOW! Thanks for such a quick response - this is just driving me

[PHP] help with smarty+cms

2006-03-23 Thread ganu
Hello all, I worked with one site and now is working fine with smarty. Now I want to implement the CMS in that, I went thru the link http://smarty.php.net/resources.php?category=2 now I want a CMS so my existing site looks as it is and with some or lot of changes I can implement CMS in that.

[PHP] Help?

2006-03-23 Thread Clinton, Rochelle A
Hello, I am fairly new to PHP and am having an (SILLY) issue that I cannot seem to resolve: I am pulling data from an html file and some of the lines of text that I need start with /a. I cannot seem to get rid of that tag!!! I have tried: * str_replace(\a, , $line) *

Re: [PHP] Help?

2006-03-23 Thread John Nichel
Clinton, Rochelle A wrote: Hello, I am fairly new to PHP and am having an (SILLY) issue that I cannot seem to resolve: I am pulling data from an html file and some of the lines of text that I need start with /a. I cannot seem to get rid of that tag!!! I have tried: *

Re: [PHP] Help?

2006-03-23 Thread Richard Lynch
On Thu, March 23, 2006 1:50 pm, Clinton, Rochelle A wrote: I am fairly new to PHP and am having an (SILLY) issue that I cannot seem to resolve: I am pulling data from an html file and some of the lines of text that I need start with /a. Show us an actual line, copy/paste, to be sure we are

RE: [PHP] Help?

2006-03-23 Thread Richard Lynch
On Thu, March 23, 2006 2:19 pm, Clinton, Rochelle A wrote: Hi Richard, WOW! Thanks for such a quick response - this is just driving me crazy! Not to mention consuming my time. I actually had been using the $line = in front of my replace attempts. Here is the exact offending code:

Re: [PHP] help with smarty+cms

2006-03-23 Thread Richard Lynch
On Thu, March 23, 2006 11:28 am, ganu wrote: Hello all, I worked with one site and now is working fine with smarty. Now I want to implement the CMS in that, I went thru the link http://smarty.php.net/resources.php?category=2 now I want a CMS so my existing site looks as it is and with some

[PHP] help with setting menu styles with PHP

2006-03-16 Thread Bruce Gilbert
am trying to accomplish something utlizing PHP. What I have is a menu marked up as such: div id=navcontainer ul id=navlist li id=activea href=About_Me.php title=you know you want to learn more about me id=currentAbout Me/a/li lia href=Skillset.php title=I've got skillzSkill set/a/li lia

Re: [PHP] help with setting menu styles with PHP

2006-03-16 Thread tedd
http://www.inspired-evolution.com/About_Me.php What I want to do next is to change the menu from being hard coded on all of my pages to being an include making the menu more manageable. The stumbling block is I want to be able to keep the CSS functionality where you have the active indicator

Re: [PHP] help with setting menu styles with PHP

2006-03-16 Thread Anthony Ettinger
I did something similar on my page. I did a simple comparison in a loop through the menu DOM, foreach ($nodeList as $node){ if ($currentPage eq $nodeHref) { //set class attribute = 'active'; } } On 3/16/06, tedd [EMAIL PROTECTED] wrote: http://www.inspired-evolution.com/About_Me.php What

Re: [PHP] help with this error message please

2006-03-06 Thread Angelo Zanetti
Mark wrote: Can anyone tell me why i am getting this message when trying to login to the admin section, i am running the script off my local machine. Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at

[PHP] help with this error message please

2006-03-05 Thread Mark
Can anyone tell me why i am getting this message when trying to login to the admin section, i am running the script off my local machine. Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at

[PHP] help with this error message please

2006-03-05 Thread Mark
Can anyone tell me why i am getting this message when trying to login to the admin section, i am running the script off my local machine. Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at

Re: [PHP] help with this error message please

2006-03-05 Thread chris smith
On 3/5/06, Mark [EMAIL PROTECTED] wrote: Can anyone tell me why i am getting this message when trying to login to the admin section, i am running the script off my local machine. Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by

[PHP] help with nl2br

2006-03-03 Thread canobit canobit
I have cobbled the following code that when it retrieves the data from Mysql, the data is displayed with no line breaks which results in one large paragraph. I have been trying for quite awhile without sucess to get nl2br working with this code. The original data is entered by the user via a

Re: [PHP] help with nl2br

2006-03-03 Thread Max Schwanekamp
canobit canobit wrote: I have cobbled the following code that when it retrieves the data from Mysql, the data is displayed with no line breaks which results in one large paragraph. I have been trying for quite awhile without sucess to get nl2br working with this code. The original data is

Re: [PHP] help with nl2br

2006-03-03 Thread canobit canobit
Thanks Pablo, that did the trick with one minor change, I had to remove the . in the quotations as it is was leading the first line of text with a . echo . nl2br($row[2]) . /b; TD. On 3/3/06, Pablo M. Rivas [EMAIL PROTECTED] wrote: Hello canobit: Did you try echo . . nl2br($row[1]) . /b;

Re: [PHP] help with nl2br

2006-03-03 Thread canobit canobit
snip All that said, you might want to invest some time in learning a DB abstraction layer such as ADODb or PEAR::DB (there are lots of others). You'll commonly find convenience functions to do things like output query results into an HTML table. Why waste time debugging the wheel? --

[PHP] Help with Acrostix

2006-03-03 Thread Jay Contonio
I am using acrostix so I can add text and photos to an existing pdf. So far I have the text working with this, ?php require(acrostix.php); $text = file_get_contents(blah.txt); $doc = ax_open_pdf_file(todo.pdf); $style = ax_create_standard_styles(Times-Roman, 16); $region =

[PHP] Help with query

2006-02-21 Thread Ing. Tom�s Liendo
Hi I need the students that didn't take an exam. The tables: exams(id_test, title, desciption, ) results(id_student, id_test, date, qualification...) I'm using a version of MySQL that doesn't support NOT IN, then I tried in this way: SELECT * FROM exams LEFT JOIN results ON

Re: [PHP] Help! Apache 2.2 gives segmentation fault errors with PHP.

2006-02-16 Thread Olaf Greve
Hi all, Yesterday I had trouble when configuring Apache 2.2 with PHP 4.4.2, which caused Apache to crash (segmentation fault) when calling various PHP functions. Just before heading home I encountered the source of the issue, as well as the solution. The hint to the answer resided in the

[PHP] Help! Apache 2.2 gives segmentation fault errors with PHP.

2006-02-15 Thread Olaf Greve
Hi guys, Alright, after having been stuck with this for an hour or two now, I'm going to call upon your infinite wisdom regarding the following: On a FreeBSD 5.2.1-RELEASE #0 (so says dmesg) machine, I'm trying to set-up Subversion, Trac and our regular PHP4 and MySQL stuff. The main issue

Re: [PHP] Help! Apache 2.2 gives segmentation fault errors with PHP.

2006-02-15 Thread Jochem Maas
apache2 needs to be built/run using the prefork worker module (as opposed to a threaded worker module which causes php to blow up quite often [due to the fgact that there are php extensions which are not thread safe]) - check that first. the duplicate name errors seem to stem fom the fact that

Re: [PHP] Help! Apache 2.2 gives segmentation fault errors with PHP.

2006-02-15 Thread Kevin Kinsey
Olaf Greve wrote: Hi guys, I suspect something went wrong in the way I try to use PHP. Basically, I first removed the installed /usr/ports/lang/php4 port, then built and installed the /usr/ports/www/mod_php4 port, and then added various php4-extensions, using the

[PHP] Help Defending against Email Injection Attacks

2006-02-06 Thread Greg Schnippel
Has anyone developed a really good defense against email injection attacks? I'm waging a prolonged campaign against these luser hordes on a number of non-profit sites I help maintain. I've tried to secure all of the feedback forms using the function below that I cobbled together from various php

RE: [PHP] Help Defending against Email Injection Attacks

2006-02-06 Thread Jim Moseby
- The most foolproof solution I can think of would be to continue logging the successful entries to a database and _not_ send the email. That way even if they get through, no emails get sent. The form would log the feedback and send an email to the admin that a comment is available for

Re: [PHP] Help Defending against Email Injection Attacks

2006-02-06 Thread John Hinton
Greg Schnippel wrote: Has anyone developed a really good defense against email injection attacks? I'm waging a prolonged campaign against these luser hordes on a number of non-profit sites I help maintain. I've tried to secure all of the feedback forms using the function below that I cobbled

Re: [PHP] Help Defending against Email Injection Attacks

2006-02-06 Thread Russell Jones
Why dont you just break the code. Before anything goes through replace colons with dashes, dashes with underscores, etc. Stuff that will not mess up readability but would prevent it from being parsed by the mail function. On 2/6/06, Jim Moseby [EMAIL PROTECTED] wrote: - The most foolproof

Re: [PHP] Help Defending against Email Injection Attacks

2006-02-06 Thread Liam Delahunty
On 2/6/06, Jim Moseby wrote: Is it time to abandon using mail() for all user contributed data? Sort of. Don't write any user input to the headers. Send the data to a default address, don't include anything in the subject or the headers from the input and you'll avoid the problems. -- Kind

Re: [PHP] Help Defending against Email Injection Attacks

2006-02-06 Thread Stut
Greg Schnippel wrote: Has anyone developed a really good defense against email injection attacks? I've implemented a complex algorithm to help prevent this problem. Every form I have has a text field with a random name surrounded by the text... If you are human please enter 'human'

Re: [PHP] Help Defending against Email Injection Attacks

2006-02-06 Thread Chris
Greg Schnippel wrote: Has anyone developed a really good defense against email injection attacks? snip A bit late but this is a good guide: http://securephp.damonkohler.com/index.php/Email_Injection -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Help with mysql_query and INSERT INTO

2006-02-05 Thread Colin Davis
I need to insert a new record into a MySQL table which has an auto_increment field Ref as the primary index. When I have inserted the new record, I need to get the new Ref value in order to name some files to relate to the record. At the moment I have to do a SELECT command and search for

Re: [PHP] Help with mysql_query and INSERT INTO

2006-02-05 Thread Johan Martin
On Saturday, Feb 4, 2006, at 07:22 America/Los_Angeles, Colin Davis wrote: I need to insert a new record into a MySQL table which has an auto_increment field Ref as the primary index. When I have inserted the new record, I need to get the new Ref value in order to name some files to

Re: [PHP] Help with mysql_query and INSERT INTO

2006-02-05 Thread Colin Davis
Thank you, that is perfect. Regards Colin Davis http://www.ukpages.org Johan Martin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] http://www.php.net/manual/en/function.mysql-insert-id.php This will give you the record id of the last record inserted (or created). Johan Martin

Re: [PHP] Help retrieving an HTML array

2006-02-02 Thread Richard Lynch
On Wed, February 1, 2006 3:06 pm, John Nichel wrote: I also don't _have_ to declare variables, don't _have_ to call mysql_close, etc, but that doesn't make it a good practice. The above 'standard' is pretty and all, but how many browsers out there are 100% standards compliant? Quoting will

[PHP] Help retrieving an HTML array

2006-02-01 Thread Mauricio Pellegrini
Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname value=3303 input type=text name=xname value=9854 input type=text name=xname value=n... the name of the input is always the same ( xname ) This

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Jochem Maas
Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname value=3303 input type=text name=xname value=9854 input type=text name=xname value=n... the name of the input is always

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Robert Cummings
On Wed, 2006-02-01 at 11:07, Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname value=3303 input type=text name=xname value=9854 input type=text name=xname value=n...

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Joe Henry
The input name must include [] (brackets) to let php know it's an array. Ex: input type=text name=xname[] value=3303 On Feb 1, 2006, at 9:07 AM, Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread John Nichel
Please don't hijack threads. Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname value=3303 input type=text name=xname value=9854 input type=text name=xname value=n...

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Mauricio Pellegrini
Thank you all for your valuable support. The problem is solved. Note: This kind of input definition (without the brackets) actually *DOES* create an array under HTML 4.x (and its subindexes are accesible thru javascript) input type=text name=xname value=3303 input type=text

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread John Nichel
Mauricio Pellegrini wrote: Thank you all for your valuable support. The problem is solved. Note: This kind of input definition (without the brackets) actually *DOES* create an array under HTML 4.x (and its subindexes are accesible thru javascript) input type=text name=xname

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread David Dorward
Robert Cummings wrote: input type=text name=xname[] value=n... I also took the liberty of adding double quotes to your attributes. There's no excuse for writing slop. Slop? authors may specify the value of an attribute without any quotation marks. The attribute value may only contain

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Richard Lynch
Change it to: input name=xname[] On Wed, February 1, 2006 10:07 am, Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname value=3303 input type=text name=xname value=9854

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Richard Lynch
On Wed, February 1, 2006 2:52 pm, David Dorward wrote: Robert Cummings wrote: input type=text name=xname[] value=n... I also took the liberty of adding double quotes to your attributes. There's no excuse for writing slop. Slop? authors may specify the value of an attribute without any

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread David Dorward
Richard Lynch wrote: There's no excuse for writing slop. We recommend using quotation marks even when it is possible to eliminate them. Presumably because its less hassle to do so then to try to remember the exceptions. It doesn't make code that ignores that suggestion slop. -- David

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Robert Cummings
On Wed, 2006-02-01 at 18:34, David Dorward wrote: Richard Lynch wrote: There's no excuse for writing slop. We recommend using quotation marks even when it is possible to eliminate them. Presumably because its less hassle to do so then to try to remember the exceptions. It doesn't

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread John Nichel
David Dorward wrote: Robert Cummings wrote: input type=text name=xname[] value=n... I also took the liberty of adding double quotes to your attributes. There's no excuse for writing slop. Slop? Yes, slop, ie sloppy. authors may specify the value of an attribute without any

Re: [PHP] Help with getting PHP to see Pear.

2006-01-24 Thread Sumeet
Payne wrote: Hi, I just installed SuSE 10 and I am having a problem with my phpnuke site and my maia site. PHPNUKE gives me this error... *Warning*: main(db/mysql.php): failed to open stream: No such file or directory in */srv/www/htdocs/bse/db/db.php* on line *53* *Warning*: main(): Failed

Re: [PHP] Help with getting PHP to see Pear.

2006-01-24 Thread Jesús Fernández
if you look to your phpinfo it says: '--without-pear' Maybe you'll need to install it with pear support or is it right just to add pear to the include_path? -- Esú - http://esu.proyectoanonimo.com http://www.proyectoanonimo.com

[PHP] Help with getting PHP to see Pear.

2006-01-23 Thread Payne
Hi, I just installed SuSE 10 and I am having a problem with my phpnuke site and my maia site. PHPNUKE gives me this error... *Warning*: main(db/mysql.php): failed to open stream: No such file or directory in */srv/www/htdocs/bse/db/db.php* on line *53* *Warning*: main(): Failed opening

[PHP] Help with getting PHP to see Pear.

2006-01-23 Thread Payne
Hi, I just installed SuSE 10 and I am having a problem with my phpnuke site and my maia site. PHPNUKE gives me this error... *Warning*: main(db/mysql.php): failed to open stream: No such file or directory in */srv/www/htdocs/bse/db/db.php* on line *53* *Warning*: main(): Failed opening

RE: [PHP] Help with getting PHP to see Pear.

2006-01-23 Thread Albert
Payne wrote: How can I get php to see pear, it is installed. I have install modules with pear for maia and horde but neither seem to see pear. I'm running SuSE 9.3 and had to add /usr/share/php to the include path in /etc/php.ini to be able to use the installed PEAR extensions. To enable

RE: [PHP] help me plz

2006-01-20 Thread Thomas
this with javascript (if you do not need 'fresh' data) Thomas -Original Message- From: Robert Graham [mailto:[EMAIL PROTECTED] Sent: 19 January 2006 09:34 AM To: suresh kumar Cc: php-general@lists.php.net Subject: Re: [PHP] help me plz suresh kumar wrote: hi, i am using 2 combo box one

Re: [PHP] Help with regular expressions

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 1:54 pm, Carl Furst wrote: Ok I am so stumped.. I'm doing something stupid and I can't figure it out.. Here's the code: ?php $eml = '[EMAIL PROTECTED] ceo'; if (strpos($eml, ' ')) echo yep, there are spaces\n; //does strpos see the spaces? echo

[PHP] help me plz

2006-01-18 Thread suresh kumar
hi, i am using 2 combo box one for country another one for city.when i select country name from combo box their corresponding city names has to be changed in their corresponding combo box.i dont know how 2 implement this.pz give me some idea.its urgent. A.suresh

Re: [PHP] help me plz

2006-01-18 Thread Max Belushkin
If this is on the same web page, your question has nothing to do with PHP - look into, i.e., JavaScript. suresh kumar wrote: hi, i am using 2 combo box one for country another one for city.when i select country name from combo box their corresponding city names has to be changed in their

[PHP] help me pllzzzzzz

2006-01-18 Thread suresh kumar
hi, i am having 2 combo box one for city another one for country,when i select particular country say india their corresponding cities will be displayed in city combobox as delhi,bangalore.,when i select Australia thier cities like perth,brisbanewill be displayed.plz help me

RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Jay Blanchard
[snip] i am having 2 combo box one for city another one for country,when i select particular country say india their corresponding cities will be displayed in city combobox as delhi,bangalore.,when i select Australia thier cities like perth,brisbanewill be displayed.plz help

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread John Nichel
Jay Blanchard wrote: [snip] i am having 2 combo box one for city another one for country,when i select particular country say india their corresponding cities will be displayed in city combobox as delhi,bangalore.,when i select Australia thier cities like

RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Dan Parry
Or my sense of sailing to deadlines :) -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: 18 January 2006 16:11 To: php-general@lists.php.net Subject: Re: [PHP] help me pllzz Jay Blanchard wrote: [snip] i am having 2 combo box one for city another one

RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Duffy, Scott E
: RE: [PHP] help me pllzz Or my sense of sailing to deadlines :) -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: 18 January 2006 16:11 To: php-general@lists.php.net Subject: Re: [PHP] help me pllzz Jay Blanchard wrote: [snip] i am having 2 combo box one

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Jochem Maas
suresh kumar wrote: hi, i am having 2 combo box one for city another one for country,when i select particular country say india their corresponding cities will be displayed in city combobox as delhi,bangalore.,when i select Australia thier cities like perth,brisbanewill

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Anas Mughal
You need to build JavaScript logic for that. Try searching on JavaScript developer sites and mailing lists. This has nothing to do with PHP -- unless you are dynamically building the JavaScript. -- Anas Mughal On 1/18/06, suresh kumar [EMAIL PROTECTED] wrote: hi, i am having 2 combo

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Robert Cummings
On Wed, 2006-01-18 at 11:11, John Nichel wrote: Jay Blanchard wrote: [snip] i am having 2 combo box one for city another one for country,when i select particular country say india their corresponding cities will be displayed in city combobox as delhi,bangalore.,when i

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Richard Correia
Whatever Suresh, I know as a beginer you are facing this problems. I would suggest that you check standalone htm version of php document. The dynamic combo script can be located at http://www.weberdev.com/get_example.php3?count=4074mode=text This site has 1000s of FREE ready to use

Re: [PHP] help me plz

2006-01-18 Thread Robert Graham
suresh kumar wrote: hi, i am using 2 combo box one for country another one for city.when i select country name from combo box their corresponding city names has to be changed in their corresponding combo box.i dont know how 2 implement this.pz give me some idea.its urgent.

[PHP] Help with regular expressions

2006-01-17 Thread Carl Furst
Ok I am so stumped.. I'm doing something stupid and I can't figure it out.. Here's the code: ?php $eml = '[EMAIL PROTECTED]ceo'; if (strpos($eml, ' ')) echo yep, there are spaces\n; //does strpos see the spaces? echo preg_replace('/\s/', '', $eml); //WTF? Preg_replace

Re: [PHP] Help with regular expressions

2006-01-17 Thread John Nichel
Carl Furst wrote: Ok I am so stumped.. I'm doing something stupid and I can't figure it out.. Here's the code: ?php $eml = '[EMAIL PROTECTED]ceo'; if (strpos($eml, ' ')) echo yep, there are spaces\n; //does strpos see the spaces? echo preg_replace('/\s/', '', $eml);

Re: [PHP] Help with regular expressions

2006-01-17 Thread Al
John Nichel wrote: Carl Furst wrote: Ok I am so stumped.. I'm doing something stupid and I can't figure it out.. Here's the code: ?php $eml = '[EMAIL PROTECTED]ceo'; if (strpos($eml, ' ')) echo yep, there are spaces\n; //does strpos see the spaces? echo

RE: [PHP] Help with regular expressions

2006-01-17 Thread php-mail
-- -Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent: 17 January 2006 22:45 To: php-general@lists.php.net Subject: Re: [PHP] Help with regular expressions John Nichel wrote: Carl Furst wrote: Ok I am so stumped.. I'm doing something stupid and I can't figure it out.. Here's

Re: [PHP] Help with regular expressions

2006-01-17 Thread Al
Al wrote: John Nichel wrote: Carl Furst wrote: Ok I am so stumped.. I'm doing something stupid and I can't figure it out.. Here's the code: ?php $eml = '[EMAIL PROTECTED] ceo'; if (strpos($eml, ' ')) echo yep, there are spaces\n; //does strpos see the spaces?

Re: [PHP] help plz

2006-01-16 Thread Richard Correia
Hey Suresh, I know ..we all have faced similar problem when we started our career in php perl mysql. Please visit the http://weberdev.com for ultimate article and code example for Php and Mysql. Try Wrox books for php5. Thanks Richard On 1/16/06, suresh kumar [EMAIL PROTECTED] wrote: hi,

Re: [PHP] help plz

2006-01-16 Thread Jay Paulson
I have this book and have been very impressed with it. However, if you are a beginner programmer I would say not to get it until you understand the basic programming concepts and have a working knowledge of PHP. :) On 1/16/06 1:14 AM, Ligaya Turmelle [EMAIL PROTECTED] wrote: I personally

RE: [PHP] help plz

2006-01-16 Thread Weber Sites LTD
://toolbar.weberdev.com -Original Message- From: suresh kumar [mailto:[EMAIL PROTECTED] Sent: Monday, January 16, 2006 8:31 AM To: php-general@lists.php.net Subject: [PHP] help plz hi, i am working as a web designer in PHP Mysql.i know the basics of PHP Mysql,i want 2 become PHP Expert,i am planning

Re: [PHP] help plz

2006-01-16 Thread Ligaya Turmelle
I am also assuming you actually do know the basics of MySQL and PHP and are looking for that next step - past the beginner stuff. Ligaya Turmelle wrote: I personally liked George Schlossnagle's book Advanced PHP Programming, published by Sams.

Re: [PHP] help plz [Books]

2006-01-16 Thread Travis Doherty
Ligaya Turmelle wrote: I personally liked George Schlossnagle's book Advanced PHP Programming, published by Sams. I am also assuming you actually do know the basics of MySQL and PHP and are looking for that next step - past the beginner stuff. I agree. I have seen this book alone take

[PHP] help plz

2006-01-15 Thread suresh kumar
hi, i am working as a web designer in PHP Mysql.i know the basics of PHP Mysql,i want 2 become PHP Expert,i am planning to buy one Book,but i dont know which book 2 buy.plz give me info . A.suresh Send instant messages to your online friends

Re: [PHP] Help taking a string from a file

2006-01-15 Thread Curt Zirzow
On Sat, Jan 14, 2006 at 09:03:24AM -0700, Lists wrote: My goal is to take just the HTML for the image and link from the Flickr badge js script. ... ? // allow retrieval of external web source ini_set('allow_url_fopen',1); // get flickr js file $photo =

Re: [PHP] help plz

2006-01-15 Thread Ligaya Turmelle
I personally liked George Schlossnagle's book Advanced PHP Programming, published by Sams. http://www.amazon.com/gp/product/0672325616/qid=1137394700/sr=2-1/ref=pd_bbs_b_2_1/104-0195316-0794320?s=booksv=glancen=283155 suresh kumar wrote: hi, i am working as a web designer in PHP Mysql.i

[PHP] Help taking a string from a file

2006-01-14 Thread Lists
Hello List, I made something work, but probably in the most crappy way possible. My goal is to take just the HTML for the image and link from the Flickr badge js script. This is what I did, please help me do in a better way. I'd appreciate good sources to read to learn to strip stuff

Re: [PHP] Help for ISPs rolling out PHP

2006-01-13 Thread Richard Lynch
On Thu, January 12, 2006 1:51 pm, Ben Rockwood wrote: I'm working with a medium sized ISP to start rolling out PHP and MySQL services to customers. I've been looking around for best practices or help with such a roll out but not found anything. I'm confident I can roll out the services but

[PHP] Help for ISPs rolling out PHP

2006-01-12 Thread Ben Rockwood
I'm working with a medium sized ISP to start rolling out PHP and MySQL services to customers. I've been looking around for best practices or help with such a roll out but not found anything. I'm confident I can roll out the services but with so many other ISPs currently running PHP it seems like

Re: [PHP] Help for ISPs rolling out PHP

2006-01-12 Thread Timothy Brier
Ben Rockwood wrote: I'm working with a medium sized ISP to start rolling out PHP and MySQL services to customers. I've been looking around for best practices or help with such a roll out but not found anything. I'm confident I can roll out the services but with so many other ISPs currently

[PHP] Help getting PHP and GPG to work

2006-01-09 Thread zedleon
Has anybody had success using PHP and GPG to send encripted email from a form? Seems like people avoid this issue like the plague. Very little is written about it. I am trying to get a script to work that was written in the book php essentials by Julie Meloni. Am I barking up the wrong tree? Any

Re: [PHP] Help getting PHP and GPG to work

2006-01-09 Thread Jason Petersen
On 1/9/06, zedleon [EMAIL PROTECTED] wrote: Has anybody had success using PHP and GPG to send encripted email from a form? Yes. You're on the right track. The method I used was to create a temp file with my data, encrypt it with GPG, read it back into a string, then mail() it. (Of course

Re: [PHP] Help getting PHP and GPG to work

2006-01-09 Thread Jason Petersen
On 1/9/06, Support [EMAIL PROTECTED] wrote: quote for the book- PHP scripts will invoke the encryption process, and the public key has to be on the key ring of the user invoking the encryption. On the Web server, PHP usually runs as user nobody or www or as the user for your Web server.

[PHP] help register domain name

2006-01-05 Thread n.g.
hi, i want to register a domain name through NetworkSolutions.com, but it require a credit card which i dont have to pay the bill. if you have a credit card, i can transfer to your account, and then you please regiter the domain using my info. or if you have any other ways to do so. p.s. i live

Re: [PHP] help register domain name

2006-01-05 Thread John Nichel
n.g. wrote: hi, i want to register a domain name through NetworkSolutions.com, but it require a credit card which i dont have to pay the bill. if you have a credit card, i can transfer to your account, and then you please regiter the domain using my info. or if you have any other ways to do

RE: [PHP] help register domain name

2006-01-05 Thread Jay Blanchard
[snip] hi, i want to register a domain name through NetworkSolutions.com, but it require a credit card which i dont have to pay the bill. if you have a credit card, i can transfer to your account, and then you please regiter the domain using my info. or if you have any other ways to do

Re: [PHP] help register domain name

2006-01-05 Thread Shafiq Rehman
This person should be awarded with some great prize :) Great topic. On 1/5/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] hi, i want to register a domain name through NetworkSolutions.com, but it require a credit card which i dont have to pay the bill. if you have a credit card, i

Re: [PHP] help register domain name

2006-01-05 Thread Al
John Nichel wrote: n.g. wrote: hi, i want to register a domain name through NetworkSolutions.com, but it require a credit card which i dont have to pay the bill. if you have a credit card, i can transfer to your account, and then you please regiter the domain using my info. or if you have

[PHP] [X-PHP] [PHP] help register domain name

2006-01-05 Thread tedd
Is there also a prize for those who STILL think that everyone uses the same font so their ASCII artwork will display as intended? :-) tedd This person should be awarded with some great prize :) Great topic. -snip- -- *** phpgurru.com [A php resource provider] ***

<    3   4   5   6   7   8   9   10   11   12   >