[PHP] URL thing

2004-11-03 Thread Kevin Javia
How can I get the URL in the address bar in any variable? If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want to store it in any variable in my code. $PHP_SELF gives only page name. Can any one help me? Thanks. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] URL thing

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 08:13, Kevin Javia wrote: How can I get the URL in the address bar in any variable? If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want to store it in any variable in my code. print_r($_SERVER) and pick the one most suitable. -- Jason Wong

RE: [PHP] URL thing

2004-11-03 Thread Zareef Ahmed
Hi, You may use $_SERVER['REQUEST_URI']; Zareef ahmed -Original Message- From: Kevin Javia [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 1:43 PM To: [EMAIL PROTECTED] Subject: [PHP] URL thing How can I get the URL in the address bar in any variable? If URL is

Re: [PHP] URL thing

2004-11-03 Thread T.Lensselink
$_GET[var1] and $_GET[var2] On Wed, 3 Nov 2004 13:43:16 +0530, Kevin Javia [EMAIL PROTECTED] wrote: How can I get the URL in the address bar in any variable? If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want to store it in any variable in my code. $PHP_SELF gives

[PHP] Domain Information

2004-11-03 Thread Mulley, Nikhil
Hi Lists, I wanted to know one thing that , I am migrating all my Office Desktops to Linux Desktops , I wanted to know if Active Directory is for Windows , then What is in Linux Community ?

[PHP] Re: VOTE TODAY

2004-11-03 Thread David Robley
On Wed, 3 Nov 2004 04:04, Apexeleven wrote: I can't wait for the replies... What! I just voted three weeks ago- you mean I have to do it again? -- David Robley Why doesn't the Bat Computer ever crash? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] VOTE TODAY

2004-11-03 Thread David Robley
On Wed, 3 Nov 2004 05:49, Michael Sims wrote: John Nichel wrote: ApexEleven wrote: I can't wait for the replies... cat $you /dev/null Or the slightly more destructive variant: cat /dev/null $you :) Perhaps more filling: cat /dev/zero $you -- David Robley Who is General

[PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Murray @ PlanetThoughtful
Hi All, I'm a little confused by a problem I'm experiencing with a form that is being processed differently between IE and FireFox. For some reason, when a new record on my form is submitted to the code below, it gets processed as though it were an edit operation when executed via Internet

[PHP] enrypt and decrypt

2004-11-03 Thread Merlin
Hi there, I would like to encrypt some info and later be able to decrypt it. As I saw there is only one way encryption possible with encrypt. Has anybody an idea how to do a 2 way encrypten? Thank you for any help, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Authentification related to browser window

2004-11-03 Thread Skippy
Quoting Cristi Barladeanu [EMAIL PROTECTED]: My problem is pretty simple. User enters the site, logins, and after that he hits ctrl+n or something, to open a new window from same browser. Can I make him to login again in the new window but to keep him logged in the old one? Now i'm using

Re: [PHP] enrypt and decrypt

2004-11-03 Thread Sascha Kaufmann
Hey, take a look at MCrypt http://ch.php.net/mcrypt regards Sascha Merlin wrote: Hi there, I would like to encrypt some info and later be able to decrypt it. As I saw there is only one way encryption possible with encrypt. Has anybody an idea how to do a 2 way encrypten? Thank you for any help,

[PHP] Re: enrypt and decrypt

2004-11-03 Thread Merlin
Merlin wrote: Hi there, I would like to encrypt some info and later be able to decrypt it. As I saw there is only one way encryption possible with encrypt. Has anybody an idea how to do a 2 way encrypten? Thank you for any help, Merlin Hi, I found that there is mcrypt_encrypt, but also the php

Re: [PHP] enrypt and decrypt

2004-11-03 Thread Merlin
Sascha Kaufmann wrote: Hey, take a look at MCrypt http://ch.php.net/mcrypt regards Sascha Merlin wrote: Hi there, I would like to encrypt some info and later be able to decrypt it. As I saw there is only one way encryption possible with encrypt. Has anybody an idea how to do a 2 way encrypten?

[PHP] Unexpected results with object to array cast

2004-11-03 Thread Francisco M. Marzoa Alonso
This code: ?php class TestClass { private $self; function __construct () { $this-self = $this; } } $Obj = new TestClass (); print_r ( $Obj ); echo br; $Arr = (array) $Obj; print_r ( $Arr ); ? Produce the following output: TestClass Object ( [self:private] = TestClass Object

[PHP] Getting the date of Monday from a week number and year

2004-11-03 Thread Shaun
Hi, is it possible to get php to calculate the date of the monday given a week number and the year? I have looked http://uk.php.net/strtotime here and can find refererence to everything but this! Thanks for your help, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] enrypt and decrypt

2004-11-03 Thread Skippy
Quoting Merlin [EMAIL PROTECTED]: Merlin wrote: Hi there, I would like to encrypt some info and later be able to decrypt it. As I saw there is only one way encryption possible with encrypt. Has anybody an idea how to do a 2 way encrypten? Thank you for any help, Merlin

Re: [PHP] Unexpected results with object to array cast

2004-11-03 Thread Francisco M. Marzoa Alonso
Forget it, it has a lot of sense since self is a reference to the object itself, but the new array is not in the same memory than the source object, so result cannot be as I expected because self is no really self within the array, but a reference to an object outside it. The result its perfectly

Re: [PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 09:55, Murray @ PlanetThoughtful wrote: Please be considerate by NOT posting your COMPLETE code. Construct a *concise* example that sufficiently illustrates your problem. However, the same form, submitted with what should be a blank recid hidden field value, is

Re: [PHP] Getting the date of Monday from a week number and year

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 10:29, Shaun wrote: is it possible to get php to calculate the date of the monday given a week number and the year? I have looked http://uk.php.net/strtotime here and can find refererence to everything but this! What I did for a timesheet application was to

RE: [PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Murray @ PlanetThoughtful
Hi Jason, I wasn't under the impression that posting 18ish lines of code would be thought of as inconsiderate, but thank you for the pointer all the same. Btw, have you noticed that your signature is about 12 lines long? I assume that goes out on all of your messages, not just the once-off of

[PHP] Looking for a good free IDE supporting PHP

2004-11-03 Thread Do Minh Hieu, Mr
Hi all, I'm new at PHP. I am looking for a good free IDE supporting PHP; and the way to configure the IDE so that I can see the results in IDE. Can any one help me? Thanks. Do Minh Hieu, Software Engineer ELCA Information Technology (Vietnam) Ltd. / www.elca.ch

Re: [PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Yannick Warnier
Le mer 03/11/2004 à 09:55, Murray @ PlanetThoughtful a écrit : Hi All, Hi, and sympathy about the 12 lines signature :-) However, only the test part of your script (the if(isset($_POST['recid']))... ) was needed. I'm a little confused by a problem I'm experiencing with a form that is being

Re: [PHP] enrypt and decrypt

2004-11-03 Thread Merlin
Skippy wrote: Quoting Merlin [EMAIL PROTECTED]: Merlin wrote: Hi there, I would like to encrypt some info and later be able to decrypt it. As I saw there is only one way encryption possible with encrypt. Has anybody an idea how to do a 2 way encrypten? Thank you for any help, Merlin Hi, that

Re: [PHP] Looking for a good free IDE supporting PHP

2004-11-03 Thread Yannick Warnier
Le mer 03/11/2004 à 11:36, Do Minh Hieu, Mr a écrit : Hi all, I'm new at PHP. Hi and welcome. I am looking for a good free IDE supporting PHP; and the way to configure the IDE so that I can see the results in IDE. As mentionned just a few days before you arrived, IDEs are a matter of

Re: [PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 11:21, Murray @ PlanetThoughtful wrote: Please do not top post. I wasn't under the impression that posting 18ish lines of code would be thought of as inconsiderate, but thank you for the pointer all the same. Keeping your code concise is as much a benefit for you

Re: [PHP] encrypt and decrypt

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 11:47, Merlin wrote: Hi, I tryed the Pear package, and it encryptes well. However the encrypten is not URL friendly. My goal is to encrypt a 8 digit ID into a URL. Can this be that hard?`I bet there are hundreds of people wanting to make a similar encrypten with

Re: [PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Chris Dowell
Murray I'm guessing that IE sends $recid = '' whereas firefox doesn't send it at all because it's an empty form field. Try checking for empty($recid) instead - that way you can check that it not only exists (as in isset) but also that it has a value (i.e. not '', NULL, 0 or FALSE) Hope this

Re: [PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Greg Donald
On Wed, 3 Nov 2004 21:21:48 +1000, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote: I wasn't under the impression that posting 18ish lines of code would be thought of as inconsiderate, but thank you for the pointer all the same. Jason has made a campaign out of complaining lately about

Re: [PHP] Domain Information

2004-11-03 Thread Greg Donald
On Wed, 3 Nov 2004 14:44:58 +0530, Mulley, Nikhil [EMAIL PROTECTED] wrote: I wanted to know one thing that , I am migrating all my Office Desktops to Linux Desktops , I wanted to know if Active Directory is for Windows , then What is in Linux Community ? Did you forget to include your PHP

Re: [PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Yannick Warnier
Le mer 03/11/2004 à 09:55, Murray @ PlanetThoughtful a écrit : Hi All, Hi, and sympathy about the 12 lines signature :-) However, only the test part of your script (the if(isset($_POST['recid']))... ) was needed. I'm a little confused by a problem I'm experiencing with a form that is being

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Donald
On Wed, 3 Nov 2004 15:41:54 +0800, Roger Thomas [EMAIL PROTECTED] wrote: I would like to install PEAR Calendar module and did a [EMAIL PROTECTED] apps]# pear install Calendar but got these: No release with state equal to: 'stable' found for 'Calendar' Please advise. Install it manually.

Re[4]: [PHP] text email new line

2004-11-03 Thread Richard Davey
Hello Jason, Wednesday, November 3, 2004, 11:50:26 AM, you wrote: JW If you're interested: JW http://homepages.tesco.net/~J.deBoynePollard/FGA/qmail-myths-dispelled.html JW the section entitled The myth about supporting bare LFs being a requirement Interesting reading. Pair Networks use qmail

Re: [PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 12:11, Greg Donald wrote: Jason has made a campaign out of complaining lately about anything he can. It's because my envy of your spanking new Zend Certification is making me loopy! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software

RE: [PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Murray @ PlanetThoughtful
I wasn't under the impression that posting 18ish lines of code would be thought of as inconsiderate, but thank you for the pointer all the same. Jason has made a campaign out of complaining lately about anything he can. It's not that big a deal to most people I imagine. I wouldn't have

RE: [PHP] Re: VOTE TODAY WTFOT

2004-11-03 Thread Jay Blanchard
[snip] Why doesn't the Bat Computer ever crash? [/snip] Linux, of course! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[4]: [PHP] text email new line

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 12:29, Richard Davey wrote: Interesting reading. Pair Networks use qmail as their SMTP server of choice so I threw a test email out via PHP that had \n's all over the shop and it arrived quite happily. So either something has changed since the writing of that or

Re: [PHP] Getting the date of Monday from a week number and year

2004-11-03 Thread Tom Rogers
Hi, Wednesday, November 3, 2004, 8:29:27 PM, you wrote: S Hi, S is it possible to get php to calculate the date of the monday given a week S number and the year? I have looked http://uk.php.net/strtotime here and can S find refererence to everything but this! S Thanks for your help, This

Re: [PHP] Re: VOTE TODAY

2004-11-03 Thread Daniel Schierbeck
Ryan A wrote: switch ($the_choice) { case Daniel_Schierbeck_1: echo 'Didnt read previous thread and comes voiceing his political opinions like a jackass on a high traffic PHP mailing list which people from different countries other than the states receive'; break; case Daniel_Schierbeck_2:

Re: [PHP] VOTE TODAY

2004-11-03 Thread Daniel Schierbeck
Ryan A wrote: On 11/2/2004 6:34:43 PM, ApexEleven ([EMAIL PROTECTED]) wrote: I can't wait for the replies... Heres one, I vote you drive yourself and your family as fast as possible on the freeway then close your eyes and wave both your hands in the air while counting from 1000 to 1, be sure to

Re: [PHP] encrypt and decrypt

2004-11-03 Thread Merlin
Jason Wong wrote: On Wednesday 03 November 2004 11:47, Merlin wrote: Hi, I tryed the Pear package, and it encryptes well. However the encrypten is not URL friendly. My goal is to encrypt a 8 digit ID into a URL. Can this be that hard?`I bet there are hundreds of people wanting to make a similar

Re[2]: [PHP] encrypt and decrypt

2004-11-03 Thread Richard Davey
Hello Merlin, Wednesday, November 3, 2004, 2:50:48 PM, you wrote: M The system will send out emails to customers with a link where they can change M their details. To identify the record, the link has to carry the client id. But M if it is obvious that this is the id, manipulation of the id can

[PHP] Question about the date

2004-11-03 Thread Henri Marc
Hello, I have a question about the date. I have a script that compose an e-mail and send it. No problem until now, but I also need that the script can write the date of the next week. Let say we are Wednesday. The script must write the date of Wednesday 3rd in the e-mail. But from 5pm today, it

Re: [PHP] VOTE TODAY

2004-11-03 Thread Angelo Zanetti
screw all this political bullsh1t! who cares about the americans, they are just after oil and I dont care as long as bush doesnt win. long live iraq!!! Daniel Schierbeck [EMAIL PROTECTED] 11/3/2004 3:52:35 PM Ryan A wrote: On 11/2/2004 6:34:43 PM, ApexEleven ([EMAIL PROTECTED]) wrote: I

[PHP] blank function parameters

2004-11-03 Thread Giles Roadnight
Hello If I defined a function with 4 parameters but only pass 3 I get an error. Is there anyway around this? I want to be able to set the missing parameter to a default value if it is not passed which works ok but How do I get rid of the error message? Thanks Giles Roadnight

Re: [PHP] encrypt and decrypt

2004-11-03 Thread Merlin
Richard Davey wrote: Hello Merlin, Wednesday, November 3, 2004, 2:50:48 PM, you wrote: M The system will send out emails to customers with a link where they can change M their details. To identify the record, the link has to carry the client id. But M if it is obvious that this is the id,

Re: [PHP] VOTE TODAY

2004-11-03 Thread Stuart Felenstein
--- Angelo Zanetti [EMAIL PROTECTED] wrote: [snip] session_start(); $_SESSION['foo']= screw all this political bullsh1t! who cares about the americans, they are just after oil and I dont care as long as bush doesnt win. long live iraq!!!; unset($foo); session_destroy(); --

[PHP] RE: [PHP-WIN] Cannot load the mysql library

2004-11-03 Thread Murray @ PlanetThoughtful
When I open the page, I receive the message: “PHP Startup: Unable to load dynamic library ‘./ext/php/_mysql.dll’ – Can’t find the specified module”. I don’t know if this is the exact message, because the original is in Portuguese: “(…) – Não foi possível encontrar o módulo especificado”.

[PHP] Re: blank function parameters

2004-11-03 Thread Matthew Weier O'Phinney
* Giles Roadnight [EMAIL PROTECTED]: If I defined a function with 4 parameters but only pass 3 I get an error. Is there anyway around this? I want to be able to set the missing parameter to a default value if it is not passed which works ok but How do I get rid of the error message? Read

[PHP] Re: blank function parameters

2004-11-03 Thread Al
Giles Roadnight wrote: Hello If I defined a function with 4 parameters but only pass 3 I get an error. Is there anyway around this? I want to be able to set the missing parameter to a default value if it is not passed which works ok but How do I get rid of the error message? Thanks Giles

Re: [PHP] encrypt and decrypt

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 14:50, Merlin wrote: Here is a short explanation: The system will send out emails to customers with a link where they can change their details. To identify the record, the link has to carry the client id. But if it is obvious that this is the id, manipulation of

[PHP] Re: blank function parameters

2004-11-03 Thread Daniel Schierbeck
Giles Roadnight wrote: Hello If I defined a function with 4 parameters but only pass 3 I get an error. Is there anyway around this? I want to be able to set the missing parameter to a default value if it is not passed which works ok but How do I get rid of the error message? Thanks Giles

RE: [PHP] blank function parameters

2004-11-03 Thread Jay Blanchard
[snip] If I defined a function with 4 parameters but only pass 3 I get an error. Is there anyway around this? I want to be able to set the missing parameter to a default value if it is not passed which works ok but How do I get rid of the error message? [/snip]

Re: [PHP] VOTE TODAY

2004-11-03 Thread Ryan A
THIS is going too far, I am not an American or staying in the States but I hope bush wins,your country tries to develop WMDs and the Americans come and kick all your asses, impose sanctions and then leave :-D See what happens when you discuss your political views on a list that has different

Re: [PHP] Re: VOTE TODAY

2004-11-03 Thread Ryan A
On 11/3/2004 2:48:28 PM, Daniel Schierbeck ([EMAIL PROTECTED]) wrote: Ryan A wrote: switch ($the_choice) { case Daniel_Schierbeck_1: echo 'Didnt read previous thread and comes voiceing his political opinions like a jackass on a high traffic PHP mailing list which people from

Re: [PHP] VOTE TODAY

2004-11-03 Thread Angelo Zanetti
you obviously havent watched farenheit 911. where are the WMD? Ryan A [EMAIL PROTECTED] 11/3/2004 5:56:27 PM THIS is going too far, I am not an American or staying in the States but I hope bush wins,your country tries to develop WMDs and the Americans come and kick all your asses, impose

Re[2]: [PHP] VOTE TODAY

2004-11-03 Thread Richard Davey
Hello Ryan, Wednesday, November 3, 2004, 3:56:27 PM, you wrote: RA Motto: Be respectful to other people from every nation AND DONT RA POST POLITICS to the PHP list jackass. Calm down, please, and for the love of God stop replying to these morons. Or at least, if you must vent your frustration

Re: [PHP] Re: VOTE TODAY

2004-11-03 Thread Francisco M. Marzoa Alonso
This is my second and last message on this issue. Perhaps this list is not the best place to discuse about politics, but it isn't for create and follow personal issues neither. In my (not-so :-P) humble opinion everyone that follows this kind of threads is as guilty of making noise as the one

[PHP] Re: blank function parameters

2004-11-03 Thread Matthew Weier O'Phinney
* Daniel Schierbeck [EMAIL PROTECTED]: Giles Roadnight wrote: If I defined a function with 4 parameters but only pass 3 I get an error. Is there anyway around this? I want to be able to set the missing parameter to a default value if it is not passed which works ok but How do I get

[PHP] Reality Check...

2004-11-03 Thread Russell P Jones
Whether we like it or not - whether it was the correct decision or not - there is one certainty. Bush's reelection will mean more war and, subsequently, more death. This is not to say that such may not be necessary, but it is nevertheless disheartening. The re-election of President Bush means

[PHP] email as link

2004-11-03 Thread Jerry Swanson
I'm sending email in text format. When I specify URL in the email http://www.mydomain.com, person that receive email can click on the link and go to the page. But when a person receive and email with email address like [EMAIL PROTECTED] the email is regular text not an email. How to make email

Re: [PHP] Reality Check...

2004-11-03 Thread John Nichel
Russell P Jones wrote: Whether we like it or not... snip I don't like it, and I'm not talking about who won the presidential election. What I don't like is all the political discussions on a mailing list for PHP. If I want to get into a political discussion, I'll do so on a list/forum that

RE: [PHP] Re: blank function parameters

2004-11-03 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 03 November 2004 16:39, Matthew Weier O'Phinney wrote: * Daniel Schierbeck [EMAIL PROTECTED]: Giles Roadnight wrote: If I defined a function with 4 parameters but only

Re: [PHP] email as link

2004-11-03 Thread John Nichel
Jerry Swanson wrote: I'm sending email in text format. When I specify URL in the email http://www.mydomain.com, person that receive email can click on the link and go to the page. But when a person receive and email with email address like [EMAIL PROTECTED] the email is regular text not an

RE: [PHP] email as link

2004-11-03 Thread Jay Blanchard
[snip] I'm sending email in text format. When I specify URL in the email http://www.mydomain.com, person that receive email can click on the link and go to the page. But when a person receive and email with email address like [EMAIL PROTECTED] the email is regular text not an email. How to make

Re: [PHP] email as link

2004-11-03 Thread Greg Donald
On Wed, 3 Nov 2004 12:00:02 -0500, Jerry Swanson [EMAIL PROTECTED] wrote: I'm sending email in text format. When I specify URL in the email http://www.mydomain.com, person that receive email can click on the link and go to the page. But when a person receive and email with email address like

Re: [PHP] Re: VOTE TODAY

2004-11-03 Thread Ryan A
I agree on what you said and shared the same opinion but looks like unless you talk to people on their same stupid level...the message does not go through... This is my second and last message on this issue. Perhaps this list is not the best place to discuse about politics, but it isn't

[PHP] Apache 1.3 'lag' with PHP ...

2004-11-03 Thread Marc G. Fournier
I'm trying to track down an odd problem, and getting almost no where with it :( When you go to http://www.postgresql.org/index-test.php, at the bottom, there is 'load times' based on various settings throughout the code ... the file reads in one file, and has two database access sections to it

Re: [PHP] PHP Working With Excel File ?

2004-11-03 Thread p80
With excel, export your exel file to CSV (by doing save as...) then you can import your CSV file to mysql using the phpmyadmin import interface On Tuesday 02 November 2004 04:11 am, Sejati Opreker wrote: Yes, I'm planning to work with MySQL, but the problem accour from the first time, 'cause

Re: [PHP] email as link

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 17:00, Jerry Swanson wrote: Where is your PHP related question? [snip] But when a person receive and email with email address like [EMAIL PROTECTED] the email is regular text not an email. How to make email address to be a link? You can't. Ask your recipient to

[PHP] Re: **[SPAM]** Re: [PHP] email as link

2004-11-03 Thread John Nichel
Jay Blanchard wrote: [snip] Sending as HTML will ensure that _almost_ everyone sees it as a link, but there are some who have their clients set to block HTML. [/snip] Text only on a list like this is just darned good etiquette. Are you trying to tell me that some people on mailing lists don't

[PHP] RE: **[SPAM]** Re: [PHP] email as link

2004-11-03 Thread Jay Blanchard
[snip] Sending as HTML will ensure that _almost_ everyone sees it as a link, but there are some who have their clients set to block HTML. [/snip] Text only on a list like this is just darned good etiquette. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP Working With Excel File ?

2004-11-03 Thread Jay Blanchard
[snip] With excel, export your exel file to CSV (by doing save as...) then you can import your CSV file to mysql using the phpmyadmin import interface [/snip] http://search.cpan.org/src/JMCNAMARA/Spreadsheet-WriteExcel-0.37/WriteEx cel/doc/WriteExcel.html There is a PHP version -- PHP General

Re: [PHP] Apache 1.3 'lag' with PHP ...

2004-11-03 Thread Greg Donald
On Wed, 3 Nov 2004 13:22:46 -0400 (AST), Marc G. Fournier [EMAIL PROTECTED] wrote: When you go to http://www.postgresql.org/index-test.php, at the bottom, there is 'load times' based on various settings throughout the code ... the file reads in one file, and has two database access sections to

[PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Murray @ PlanetThoughtful
Hi All, I'm curious to know what other members of the list think of as the code snippets they couldn't live without when working on a PHP project. IE, the kind of re-usable bits and pieces that make your life a lot easier. For myself, I have an include file in which I define 'shorthand'

[PHP] Re: blank function parameters

2004-11-03 Thread Daniel Schierbeck
Matthew Weier O'Phinney wrote: * Daniel Schierbeck [EMAIL PROTECTED]: Giles Roadnight wrote: If I defined a function with 4 parameters but only pass 3 I get an error. Is there anyway around this? I want to be able to set the missing parameter to a default value if it is not passed which works ok

Re: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Greg Donald
On Thu, 4 Nov 2004 04:16:48 +1000, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote: I'm curious to know what other members of the list think of as the code snippets they couldn't live without when working on a PHP project. IE, the kind of re-usable bits and pieces that make your life a lot

[PHP] Selecting Date Range

2004-11-03 Thread ConbuD
Hey, I have a database with approx 200-300 students in it. I wanna be able to pull out what student joined a class with in a certain date range. Say I wanna get all the students who joined between 10/12/04 through 12/12/04. What is the easiest way to do this ? Can it be done with just a simple

Re: [PHP] Selecting Date Range

2004-11-03 Thread Greg Donald
On Wed, 3 Nov 2004 13:47:38 -0500, ConbuD [EMAIL PROTECTED] wrote: Hey, I have a database with approx 200-300 students in it. I wanna be able to pull out what student joined a class with in a certain date range. Say I wanna get all the students who joined between 10/12/04 through 12/12/04.

RE: [PHP] Selecting Date Range

2004-11-03 Thread Jay Blanchard
[snip] Can it be done with just a simple MySQL query ? [/snip] Yes. WHERE `date` BETWEEN `startDate` AND `endDate` -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Selecting Date Range

2004-11-03 Thread John Nichel
ConbuD wrote: Hey, I have a database with approx 200-300 students in it. I wanna be able to pull out what student joined a class with in a certain date range. Say I wanna get all the students who joined between 10/12/04 through 12/12/04. What is the easiest way to do this ? Can it be done with

Re: [PHP] Selecting Date Range

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 18:47, ConbuD wrote: Hey, I have a database with approx 200-300 students in it. I wanna be able to pull out what student joined a class with in a certain date range. Say I wanna get all the students who joined between 10/12/04 through 12/12/04. What is the easiest

Re: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Klaus Reimer
Murray @ PlanetThoughtful wrote: function asl($val){ function mfr($rset){ This may be ok for private projects but otherwise I don't think it's a good idea to create shorthand functions. Other developers (and especially new developers beginning to work on the project) are getting confused. They

RE: [PHP] Re: blank function parameters

2004-11-03 Thread Giles Roadnight
Thanks for all the help guys, working great now. Giles Roadnight http://giles.roadnight.name -Original Message- From: Daniel Schierbeck [mailto:[EMAIL PROTECTED] Sent: 03 November 2004 18:37 To: [EMAIL PROTECTED] Subject: [PHP] Re: blank function parameters Matthew Weier O'Phinney

[PHP] Fatal error on parsedate.c While Building 4.3.9

2004-11-03 Thread Andrew Hauger
I am trying to build PHP 4.3.9 on Solaris 8, and I can't get past the make step. At first I get the following message: bison -y /opt/php/php-4.3.9/ext/standard/parsedate.y M4sugar requires GNU M4. Install it before installing M4sugar or set the M4 environment variable to its path name.*** Signal

RE: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Pablo Gosse
[snip]Klaus Reimer wrote: Murray @ PlanetThoughtful wrote: function asl($val){ function mfr($rset){ This may be ok for private projects but otherwise I don't think it's a good idea to create shorthand functions. Other developers (and especially new developers beginning to work on the

Re: [PHP] Fatal error on parsedate.c While Building 4.3.9

2004-11-03 Thread Greg Donald
On Wed, 3 Nov 2004 11:32:30 -0800 (PST), Andrew Hauger [EMAIL PROTECTED] wrote: I am trying to build PHP 4.3.9 on Solaris 8, and I can't get past the make step. At first I get the following message: Did you try using gmake? Using non-GNU utilities while compiling PHP may cause problems.

Re: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Greg Donald
On Wed, 03 Nov 2004 20:22:14 +0100, Klaus Reimer [EMAIL PROTECTED] wrote: This may be ok for private projects but otherwise I don't think it's a good idea to create shorthand functions. Murray wasn't asking for your opinions on _his_ code, he was asking what code _you_ had that you couldn't

Re: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread John Nichel
Murray @ PlanetThoughtful wrote: Hi All, I'm curious to know what other members of the list think of as the code snippets they couldn't live without when working on a PHP project. IE, the kind of re-usable bits and pieces that make your life a lot easier. For myself, I have an include file in

RE: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread phpninja
I would have to say I could not live without pear. http://pear.php.net It is quick and clean, ive reused it in about 3-4 projects easily. Its built into php when you download php. just run the go-pear batch file in the root directory, and it will set it up easily. From there you can get real

[PHP] Re: mailparse or imap* ?

2004-11-03 Thread Per Jessen
Per Jessen wrote: I need functions to parse an email and I've been using mailparse sofar. Works pretty well, except it has a couple of shortcomings - will only retrieve last of the Received:-headers, does not decode quoted-printable body-parts, does not decode RFC2047-encoded filenames in

[PHP] Re: mailparse or imap* ?

2004-11-03 Thread M. Sokolewicz
Per Jessen wrote: Per Jessen wrote: I need functions to parse an email and I've been using mailparse sofar. Works pretty well, except it has a couple of shortcomings - will only retrieve last of the Received:-headers, does not decode quoted-printable body-parts, does not decode RFC2047-encoded

Re: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Alex Hogan
snippets they couldn't live without when working on a PHP project. IE, the kind of re-usable bits and pieces that make your life a lot easier. I hate always having to write queries for inserting and updating a db. With this I can just name the form objects the same names as the table fields

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Beaver
Greg Donald wrote: On Wed, 3 Nov 2004 15:41:54 +0800, Roger Thomas [EMAIL PROTECTED] wrote: I would like to install PEAR Calendar module and did a [EMAIL PROTECTED] apps]# pear install Calendar but got these: No release with state equal to: 'stable' found for 'Calendar' Please advise. Install

Re: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Klaus Reimer
Pablo Gosse wrote: extra with the results to suit your needs, but as for just using asl($val) instead of addslashes($val), well why not just extend the PHP source to make asl() an actual alias to addslashes()? Extending PHP to have shorthand functions? Was that irony? I hope so. Having such

RE: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Gryffyn, Trevor
I agree that shorthand is probably bad for, BUT... Greg is absolutely correct. The gist of the post was What do YOU use frequently. His examples were good enough to illustrate the idea. For me, I have a handful of includes that are in most/a lot of my scripts. I'm not going to paste them here

RE: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Pablo Gosse
[snip]Extending PHP to have shorthand functions? Was that irony?[/snip] It most certainly was irony, Klaus. I was merely trying to illustrate the point that writing a custom function which does EXACTLY the same thing as a built in function is redundant. A number of functions within php do have

[PHP] PHP Newsletter Lists

2004-11-03 Thread bb9876
I am hoping someone can direct me to a good PHP/MySql newsletter distribution script that allows me to send out HTML newsletters to a large list of members but only sends one email at a time so the email is personalized as being To a specific person instead of an email distribution list. Thanks

RE: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Jason Davis
this is not a code snippet just a class that i have re-used about a 100 times. It is for authenticating users via a passwd file or mysql. Hope it will help someone ... also , if you improve it please email me the changes :) http://mohadib.openactive.org/web_editor/AuthTool.class.php.txt

[PHP] SQL-Injection, XSS and Hijacking

2004-11-03 Thread Mark-Walter
Hi, I read now quite a lot of articles about SQL-Injection, XSS and session hijacking in a hopefully appropriate way. As I understand the function addslashes(),quote_meta() and mysql_real_escape_string() are to avoid SQL Injection e.g. in order to use page_sliding with entered POST data over

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Donald
On Wed, 03 Nov 2004 16:28:13 -0500, Greg Beaver [EMAIL PROTECTED] wrote: Install it manually. http://pear.php.net/manual/en/installation.manually.php This is terrible advice. $ pear install --force Calendar. And you think --force is better? Pffft. When the PEAR developers make an

  1   2   >