Re: [PHP] Question about authenticating people...

2007-11-27 Thread Jason Pruim
On Nov 27, 2007, at 3:48 PM, Stut wrote: Jason Pruim wrote: The subject might be a little misleading... But I couldn't think of how better to describe it in a small sentence :) What I'm wondering is, I have a program that accesses a database and displays the info in that database... I

RE: [PHP] Question about authenticating people...

2007-11-27 Thread Bastien Koert
adding a client name to the login process might make that easier and it forces a sort of 2 factor authentication making the database 'hopefully' harder to crack bastien From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Tue, 27 Nov 2007 15:30:32 -0500 Subject: [PHP] Question about

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Stut
Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always posting them in either $_POST or $_GET each time... But that can add up quite a bit on a complicated site though...

[PHP] question regarding type hinting parameters of php functions

2007-11-26 Thread Dirk Thomas / 4wd media
Hi, i have tried a current snapshot of PHP 5.3 and have a question regarding type hinting. For example when using the function array_slice(array $array, int $offset, int $length) with a non-integer length parameter, what is the desired behavior? When calling array_slice($array, 0,

Re: [PHP] question regarding type hinting parameters of php functions

2007-11-26 Thread T . Lensselink
On Mon, 26 Nov 2007 10:29:40 +0100, Dirk Thomas / 4wd media [EMAIL PROTECTED] wrote: Hi, i have tried a current snapshot of PHP 5.3 and have a question regarding type hinting. For example when using the function array_slice(array $array, int $offset, int $length) with a non-integer

[PHP] Question about urlencode....

2007-11-22 Thread Colin Guthrie
Hi, OK this one is a little embarrasing. I've been doing this for years and I just wonder if I'm wrong Say you have an exit link on your site, e.g. /leave.php, which accepts a url get arg. You use this page to record stats/whatever and then issue a Location: header to take the user to the

Re: [PHP] Question about urlencode....

2007-11-22 Thread TG
! -TG - Original Message - From: Colin Guthrie [EMAIL PROTECTED] To: php-general@lists.php.net Date: Thu, 22 Nov 2007 16:19:18 + Subject: [PHP] Question about urlencode Hi, OK this one is a little embarrasing. I've been doing this for years and I just wonder if I'm wrong

Re: [PHP] Question about arrays

2007-11-13 Thread Jason Pruim
On Nov 13, 2007, at 1:34 AM, Jim Lucas wrote: Jason Pruim wrote: Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a

[PHP] Question about arrays

2007-11-12 Thread Jason Pruim
Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a certain number of pieces weigh, The page can be seen here:

Re: [PHP] Question about arrays

2007-11-12 Thread David Giragosian
On 11/12/07, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a certain number of

Re: [PHP] Question about arrays

2007-11-12 Thread Daniel Brown
On Nov 12, 2007 3:59 PM, Jason Pruim [EMAIL PROTECTED] wrote: [snip] echo HTML form method='GET' action='index.php' P/Number of text boxes needed: input type='text' size='5' name='txtNumber' value='{$TextBoxes}' input type='submit'/P /form

Re: [PHP] Question about arrays

2007-11-12 Thread Jason Pruim
On Nov 12, 2007, at 4:14 PM, Daniel Brown wrote: On Nov 12, 2007 3:59 PM, Jason Pruim [EMAIL PROTECTED] wrote: [snip] echo HTML form method='GET' action='index.php' P/Number of text boxes needed: input type='text' size='5' name='txtNumber' value='{$TextBoxes}'

Re: [PHP] Question about arrays

2007-11-12 Thread Jim Lucas
Jason Pruim wrote: Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how much a certain number of pieces weigh, The page can be seen

[PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
Hi all: I've learned, much to my pleasure, that I can place a php.ini file in the root directory of my shared domain to allow some customization of the php settings. However, when I do this, I keep getting weird results. Some of the values that I change appear as I've asked them to be.

Re: [PHP] Question about php.ini file

2007-11-04 Thread Cristian Vrabie
You must take in count that before php even gets to receive something, it all passes through the HTTP server (apache or something). for most of these settings there are equivalents in the config file of the server that you need to change accordingly. this might be the cause of the weird

Re: [PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
Hi Cristian: Thanks for the replies. In this case, what I've been noticing is that most of the values have gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in place. For example, upload_max_filesize was 8M before I placed my file, but, afterwards, it was 2M! I'm

Re: [PHP] Question about php.ini file

2007-11-04 Thread Nathan Nobbe
On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Cristian: Thanks for the replies. In this case, what I've been noticing is that most of the values have gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in place. For example, upload_max_filesize was 8M before

Re: [PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
: [PHP] Question about php.ini file On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Cristian: Thanks for the replies. In this case, what I've been noticing is that most of the values have gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in place

Re: [PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
to place in the full value? Thanks again; this solution may be exactly what we need! Jon - Original Message - From: Nathan Nobbe To: Jon Westcot Cc: PHP General Sent: Sunday, November 04, 2007 5:05 PM Subject: Re: [PHP] Question about php.ini file On 11/4/07, Jon Westcot

Re: [PHP] Question about php.ini file

2007-11-04 Thread Jochem Maas
To: Jon Westcot Cc: PHP General Sent: Sunday, November 04, 2007 5:05 PM Subject: Re: [PHP] Question about php.ini file On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Cristian: Thanks for the replies. In this case, what I've been noticing is that most

Re: [PHP] Question

2007-10-26 Thread Dan Shirah
This is a PHP users mailing list. If you have a question, you can send it to php-general@lists.php.net and whoever can help you with it will reply. On 10/26/07, arash moosavi [EMAIL PROTECTED] wrote: I have Question In PHP Where Can I send it to Give my answer?

Re: [PHP] Question

2007-10-26 Thread Zoltán Németh
2007. 10. 26, péntek keltezéssel 15.26-kor arash moosavi ezt írta: I have Question In PHP Where Can I send it to Give my answer? for example to this list ;) (it's not sure you will get the exact answer you want, but the chances are pretty good) greets Zoltán Németh -- PHP General Mailing List

[PHP] Question

2007-10-26 Thread arash moosavi
I have Question In PHP Where Can I send it to Give my answer?

Re: [PHP] Question

2007-10-26 Thread Daniel Brown
On 10/26/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 10. 26, péntek keltezéssel 15.26-kor arash moosavi ezt írta: I have Question In PHP Where Can I send it to Give my answer? [snip!] http://web.ics.purdue.edu/~ssanty/cgi-bin/eightball.cgi -- Daniel P. Brown [office] (570-) 587-7080

Re: [PHP] Question about time...

2007-10-25 Thread Jason Pruim
On Oct 24, 2007, at 6:10 PM, Instruct ICC wrote: I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? Well, I code all of my applications to receive RFID signals, and I

Re: [PHP] Question about time...

2007-10-25 Thread Jason Pruim
On Oct 24, 2007, at 9:01 PM, tedd wrote: At 3:10 PM -0700 10/24/07, Instruct ICC wrote: I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? When you stop paying for

Re: [PHP] Question about time...

2007-10-25 Thread Zoltán Németh
2007. 10. 25, csütörtök keltezéssel 09.01-kor Jason Pruim ezt írta: On Oct 24, 2007, at 9:01 PM, tedd wrote: At 3:10 PM -0700 10/24/07, Instruct ICC wrote: I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how

Re: [PHP] Question about time...

2007-10-25 Thread Daniel Brown
On 10/25/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 10. 25, csütörtök keltezéssel 09.01-kor Jason Pruim ezt írta: On Oct 24, 2007, at 9:01 PM, tedd wrote: At 3:10 PM -0700 10/24/07, Instruct ICC wrote: I want to be able to display something like an image of a turkey during

Re: [PHP] Question about time...

2007-10-25 Thread tedd
At 3:13 PM +0200 10/25/07, Zoltán Németh wrote: 2007. 10. 25, csütörtök keltezéssel 09.01-kor Jason Pruim ezt írta: That's actually where I got the idea, just couldn't remember who on what list said they did it :) using variables in css is it as easy as just putting in a quick ?PHP echo

RE: [PHP] Question about time...

2007-10-25 Thread Instruct ICC
I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? Well, I code all of my applications to receive RFID signals, and I had a RFID transmitter embedded into me that

[PHP] Question about time...

2007-10-24 Thread Jason Pruim
Hi Everyone, I am attempting to get the logic of something figured out and I thought someone might be able to confirm what I'm thinking :) I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. I was playing around with

Re: [PHP] Question about time...

2007-10-24 Thread Daniel Brown
On 10/24/07, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone, I am attempting to get the logic of something figured out and I thought someone might be able to confirm what I'm thinking :) I want to be able to display something like an image of a turkey during the month of november from now

Re: [PHP] Question about time...

2007-10-24 Thread Jason Pruim
Errr... Never mind... Soon as I hit send I got a brain storm... I just do this: ?PHP $month = date('m'); if ($month == 11){ echo turkey; }else{ echo No turkey; } ? Or something similar, I'll try and feather it out and see how it works for multiple holidays :) (IE:

Re: [PHP] Question about time...

2007-10-24 Thread Richard Heyes
I am attempting to get the logic of something figured out and I thought someone might be able to confirm what I'm thinking :) I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. I was playing around with mktime and it showed

Re: [PHP] Question about time...

2007-10-24 Thread Daniel Brown
On 10/24/07, Daniel Brown [EMAIL PROTECTED] wrote: On 10/24/07, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone, I am attempting to get the logic of something figured out and I thought someone might be able to confirm what I'm thinking :) I want to be able to display something like

Re: [PHP] Question about time...

2007-10-24 Thread Jason Pruim
On Oct 24, 2007, at 4:09 PM, Richard Heyes wrote: I am attempting to get the logic of something figured out and I thought someone might be able to confirm what I'm thinking :) I want to be able to display something like an image of a turkey during the month of november from now until I'm

RE: [PHP] Question about time...

2007-10-24 Thread Instruct ICC
I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? _ Windows Live Hotmail and Microsoft Office Outlook –

Re: [PHP] Question about time...

2007-10-24 Thread Daniel Brown
On 10/24/07, Instruct ICC [EMAIL PROTECTED] wrote: I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? _

RE: [PHP] Question about time...

2007-10-24 Thread Bastien Koert
what about if (date(m) == 11){ echo ; } bastien To: php-general@lists.php.net From: [EMAIL PROTECTED] Date: Wed, 24 Oct 2007 15:57:38 -0400 Subject: [PHP] Question about time... Hi Everyone, I am attempting to get the logic of something

RE: [PHP] Question about time...

2007-10-24 Thread tedd
At 3:10 PM -0700 10/24/07, Instruct ICC wrote: I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? When you stop paying for hosting, the application get's the idea when

RE: [PHP] Question about time...

2007-10-24 Thread Instruct ICC
I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. And how will the application know when you are dead? When you stop paying for hosting, the application get's the idea when it's bits go poof! Yep, that will do

[PHP] Question about ereg_replace and urlencode...

2007-10-02 Thread Venkatesh M. S.
Hello! i am trying to make links clickable on a page. I would like to urlencode the URL so that it is well passed to a redirect.php file, which would do somethings and then also do a meta http refresh I am trying to use a function like the following, but it doesn't work. I would like to apply

Re: [PHP] Question about ereg_replace and urlencode...

2007-10-02 Thread Stut
Venkatesh M. S. wrote: Hello! i am trying to make links clickable on a page. I would like to urlencode the URL so that it is well passed to a redirect.php file, which would do somethings and then also do a meta http refresh I am trying to use a function like the following, but it doesn't work.

Re: [PHP] Question about ereg_replace and urlencode...

2007-10-02 Thread Venkatesh M. S.
Many thanks Stut The problem is that the rest of the $str is actually a big post from a blog, which will have many other text and info apart from the URL, and i don't want to urlencode everything in there! Venky On 02/10/2007, Stut [EMAIL PROTECTED] wrote: Venkatesh M. S. wrote: Hello! i

[PHP] question about making modules

2007-09-01 Thread Mark
Hey, i've been trying alot to make php modules (php based.. not real modules for php in c) but i can't get it working. Here is a sample file: ?php class moduletest { function text() { return moduletestbr /; } } class test_moduletest extends

Re: [PHP] question about making modules

2007-09-01 Thread Robert Degen
Maybe you should deal with some things like * Plugin-Architecture * Extension Points * States !? A look at wikipedia might give most information you need. Regards rob On Sa, Sep 01, 2007 at 11:23:31 +0200, Mark wrote: Hey, i've been trying alot to make php modules (php based.. not

[PHP] Re: [WD]: PHP Question - any help is appreciated

2007-08-29 Thread brian
Dylan Barber wrote: I am needing to provide back a fixed length file out of a shopping cart system - I can create the file but does anybody have a simple function to pad or truncate a string to a certain length? Use sprintf() to format your string. $len = 20 //the length you want $str =

Re: [PHP] question about note on php.net

2007-08-13 Thread Richard Lynch
On Sat, August 11, 2007 1:54 pm, Michael Cooper wrote: Hello, I have a question--is the note from equazcion here correct? It is left unchallenged on the page but I can't see how it is correct since I am under the impression that the environment is refreshed each page load and the function or

Re: [PHP] question about note on php.net

2007-08-12 Thread Stut
brian wrote: Michael Cooper wrote: Hello, I have a question--is the note from equazcion here correct? It is left unchallenged on the page but I can't see how it is correct since I am under the impression that the environment is refreshed each page load and the function or method definitions

[PHP] question about note on php.net

2007-08-11 Thread Michael Cooper
Hello, I have a question--is the note from equazcion here correct? It is left unchallenged on the page but I can't see how it is correct since I am under the impression that the environment is refreshed each page load and the function or method definitions (including those for

Re: [PHP] question about note on php.net

2007-08-11 Thread Stut
Michael Cooper wrote: Hello, I have a question--is the note from equazcion here correct? It is left unchallenged on the page but I can't see how it is correct since I am under the impression that the environment is refreshed each page load and the function or method definitions (including

Re: [PHP] question about note on php.net

2007-08-11 Thread brian
Michael Cooper wrote: Hello, I have a question--is the note from equazcion here correct? It is left unchallenged on the page but I can't see how it is correct since I am under the impression that the environment is refreshed each page load and the function or method definitions (including

Re: [PHP] Question about passing date in sql...

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 5:00 pm, Michael Preslar wrote: I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? Close. He's trying to use the shell's back tick operator in MySQL. I think. It would actually

Re: [PHP] Question about passing date in sql...

2007-08-02 Thread Payne
Stut wrote: Michael Preslar wrote: I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? PHP also supports the that. However, I think the OP's problem is that it's inside other quotes and is therefore not

Re: [PHP] Question about passing date in sql...

2007-08-02 Thread Payne
Payne wrote: Stut wrote: Michael Preslar wrote: I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? PHP also supports the that. However, I think the OP's problem is that it's inside other quotes and is

[PHP] Question about passing date in sql...

2007-08-01 Thread Payne
Guys, Got a quick question. I got a sql statement works when I pass it from the cli. but if I try in php I get nothing. This is the statement. Select ip, date, time, CONCAT(city, ', ',country) as location from ips where country !=' ' and date='`date +%Y%m%d`' order by country asc; I know

Re: [PHP] Question about passing date in sql...

2007-08-01 Thread Brad Bonkoski
Payne wrote: Guys, Got a quick question. I got a sql statement works when I pass it from the cli. but if I try in php I get nothing. This is the statement. Select ip, date, time, CONCAT(city, ', ',country) as location from ips where country !=' ' and date='`date +%Y%m%d`' order by country

Re: [PHP] Question about passing date in sql...

2007-08-01 Thread Michael Preslar
I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about passing date in sql...

2007-08-01 Thread Stut
Michael Preslar wrote: I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? PHP also supports the that. However, I think the OP's problem is that it's inside other quotes and is therefore not being

[PHP] Question re virtual and scope of definitions

2007-07-04 Thread spam
Hi, today I wanted to use virtual (an `include' wasn't an option) to get the output from another PHP script. I got errors about functions being already defined, which is true since in both scripts are functions of the same name. I always thought virtual makes an Apache subrequest which gives me a

Re: [PHP] Question re virtual and scope of definitions

2007-07-04 Thread Chris
(Karl Pflästerer) wrote: Hi, today I wanted to use virtual (an `include' wasn't an option) to get the output from another PHP script. I got errors about functions being already defined, which is true since in both scripts are functions of the same name. I always thought virtual makes an Apache

[PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Tommy Peterson
All: I can't seem to connect to a SQL Server database with PHP. I have read the php.net documentation and so many other forums on the Internet that my eyes were literally blood shot. Today I thought I would try this route. I have PHP and Apache installed on my local machine. They work fine as I

RE: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Edward Kay
All: I can't seem to connect to a SQL Server database with PHP. I have read the php.net documentation and so many other forums on the Internet that my eyes were literally blood shot. Today I thought I would try this route. I have PHP and Apache installed on my local machine. They work fine

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Dan Shirah
In my PHP page I have the following: $sql = mssql_connect (xx.xx.xx.xx:, xx, xx); $conn=mssql_select_db(xx, $sql); Since both servers are within your local network, you should be able to connect as follows: $connection = mssql_connect('SERVERNAME','username','password') or die ('Cannot

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Richard Lynch
You may want to try using the Sybase drivers. MS basically bought Sybase and re-named it MS SQL and then broke a lot of stuff :-) One of the things they haven't broken (yet) is the basic Sybase driver functionality to send queries. For sure, ' versus won't make any difference. You may want to

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread David Giragosian
Tommy, Since SQL Server may loom on my horizon, I've tried connecting to a SQL Server 2000 db on my network. I got it to work _without_ any port after the IP in mssql_connect(). I'm using PHP 5.2.0 from windows XP to a Windows 2000 box running SQL Server. I used SQL Server Authentication to

[PHP] Question about using ftp_put() for copying files

2007-05-24 Thread Al
Can anyone explain what's going on. If I assign $source= $source_dir . $file; $source_dir is the absolute path i.e., /home/x/public_html/EditPage/ And $dist= $dist_dir . $file; $dist_dir is simply relative to $_SERVER[document_root]; i.e., just plain /test To get ftp_put() to work, I must

Re: [PHP] Question about using ftp_put() for copying files

2007-05-24 Thread Richard Lynch
On Thu, May 24, 2007 2:37 pm, Al wrote: Can anyone explain what's going on. If I assign $source= $source_dir . $file; $source_dir is the absolute path i.e., /home/x/public_html/EditPage/ And $dist= $dist_dir . $file; $dist_dir is simply relative to $_SERVER[document_root]; i.e., just

Re: [PHP] Question about using ftp_put() for copying files

2007-05-24 Thread Al
What puzzles me is that one path must be absolute and the other relative to the root. And, I've got chdir to the destination dir. I know about ftp having its own root. In my code, I have a check to make certain the ftp root is the same as the $_SERVER[document_root]. Richard Lynch wrote:

Re: [PHP] Question

2007-05-15 Thread Alister Bulman
On 13/05/07, Robert Cummings [EMAIL PROTECTED] wrote: On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: You may find this entertaining, and even useful: http://richardlynch.blogspoot.com I'm sure Richard meant http://richardlynch.blogspot.com Unless he's trying to promote bondage

Re: [PHP] Question

2007-05-15 Thread Robert Cummings
On Tue, 2007-05-15 at 16:57 +0100, Alister Bulman wrote: On 13/05/07, Robert Cummings [EMAIL PROTECTED] wrote: On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: You may find this entertaining, and even useful: http://richardlynch.blogspoot.com I'm sure Richard meant

Re: [PHP] Question

2007-05-13 Thread Robert Cummings
On Sun, 2007-05-13 at 00:33 -0500, Richard Lynch wrote: Here's your cookie: http://l-i-e.com/cookie.php :-) Bah, I was hoping for something a bit more tasty :/ ;) PS Does the one where I juke the URL to just be iwant.xyz work right at least?... Yep. Cheers, Rob. --

RE: [PHP] Question

2007-05-13 Thread WeberSites LTD
Notice the 1st code example : http://www.php-code-search.com/?q=how%20to%20force%20the%20user%20to%20downl oad%20a%20file berber -Original Message- From: Dusan Novakovic [mailto:[EMAIL PROTECTED] Sent: Sunday, May 13, 2007 2:19 AM To: php-general@lists.php.net Subject: [PHP] Question

[PHP] Question

2007-05-12 Thread Dusan Novakovic
Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a href=file.txtClick/a ) so that I could save that file on my computer. In the example I wrote file.txt file opens in browser, which I don`t want to happen. I would be very grateful if someone

Re: [PHP] Question

2007-05-12 Thread Richard Lynch
On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a href=file.txtClick/a ) so that I could save that file on my computer. In the example I wrote file.txt file opens in browser, which I

Re: [PHP] Question

2007-05-12 Thread Robert Cummings
On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a href=file.txtClick/a ) so that I could save that file on my computer. In the

Re: [PHP] Question

2007-05-12 Thread Robert Cummings
On Sun, 2007-05-13 at 00:24 -0400, Robert Cummings wrote: On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a

Re: [PHP] Question

2007-05-12 Thread Richard Lynch
On Sat, May 12, 2007 11:40 pm, Robert Cummings wrote: BTW Richard, my Opera browser (9.10 linux) opened up this link as a page containing text: http://l-i-e.com/blogger/download.php?filename=iwant.xyz If Opera IGNORES the RFC-mandated application/octet-stream as forcing a download, it's

Re: [PHP] Question about OO design

2007-04-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-09 15:29:01 -0700: (I'm dealing with PHP4.) class User { var id; var name; var email; var balance; var accrual; var is_manager; function User($user_id) { $this-id = $user_id;

Re: [PHP] Question on Portfoilo's

2007-04-10 Thread clive
Larry Garfield wrote: This is why one should work on an open source project. Much easier to show off legally. :-) unfortunately we aren't all fortunate enough to work for an open source project and earn a living, except Paul of course. Regards, Clive. {No electrons were harmed in the

RE: [PHP] Question about OO design

2007-04-10 Thread Chris W. Parker
On Monday, April 09, 2007 4:24 PM Jochem Maas mailto:[EMAIL PROTECTED] said: Ok. I see what you're saying. If I populate all that data during the constructor why would I ever call the function again right? you could refresh the data if needed - but basically the idea is to cut down the user

[PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread revDAVE
I apologize in advance, however I know almost nothing about PHP - ( but I am trying to learn now)... I am wondering if it is possible to create a PHP page that can: 1 - Get the contents of everything in its own folder at the same level ( just list sub folders filenames - not their contents) 2

Re: [PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread Brad Bonkoski
revDAVE wrote: I apologize in advance, however I know almost nothing about PHP - ( but I am trying to learn now)... I am wondering if it is possible to create a PHP page that can: 1 - Get the contents of everything in its own folder at the same level ( just list sub folders filenames - not

Re: [PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread Tijnema !
On 4/10/07, revDAVE [EMAIL PROTECTED] wrote: I apologize in advance, however I know almost nothing about PHP - ( but I am trying to learn now)... I am wondering if it is possible to create a PHP page that can: 1 - Get the contents of everything in its own folder at the same level ( just list

Re: [PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread revDAVE
On 4/10/2007 1:13 PM, Tijnema ! [EMAIL PROTECTED] wrote: http://www.php.net/manual/en/function.scandir.php 2 - List/ display the contents on the same Web-page http://www.php.net/manual/en/function.file-get-contents.php WOW COOL - That was quick - thanks Tijnema Brad! From here:

Re: [PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread Tijnema !
On 4/10/07, revDAVE [EMAIL PROTECTED] wrote: On 4/10/2007 1:13 PM, Tijnema ! [EMAIL PROTECTED] wrote: http://www.php.net/manual/en/function.scandir.php 2 - List/ display the contents on the same Web-page http://www.php.net/manual/en/function.file-get-contents.php WOW COOL - That was

Re: [PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread tg-php
In addition to the suggestions made, check out opendir() too. It may be a little simpler for what you're doing. Not sure. Remember, the beauty of PHP is that there's almost always a fuction or two already made that do what you want. Even some semi-obscure stuff. So always scan through the

Re: [PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread JM Guillermin
] To: php-general@lists.php.net Sent: Tuesday, April 10, 2007 10:11 PM Subject: [PHP] Novice PHP Question - Listing Folder Contents I apologize in advance, however I know almost nothing about PHP - ( but I am trying to learn now)... I am wondering if it is possible to create a PHP page that can: 1

Re: [PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread revDAVE
Thanks to ALL ... Brad - Tijnema - TG - Richard and JMG! With a little fooling around - I actually got exactly what I wanted!!! Boy that was fun! And thanks for the incredibly quick responses! -- Thanks - RevDave [EMAIL PROTECTED] [db-lists] -- PHP General Mailing List

[PHP] Question about OO design

2007-04-09 Thread Chris W. Parker
Hello, I'm working on a project now and I'd like to get some feedback on how to implement a proper class (or two). This is an application that records an employee's used vacation time. There are two tables: (1) events, (2) users. Users: id (int) name (varchar) email (varchar) balance

Re: [PHP] Question about OO design

2007-04-09 Thread Jochem Maas
Chris W. Parker wrote: Hello, I'm working on a project now and I'd like to get some feedback on how to implement a proper class (or two). This is an application that records an employee's used vacation time. There are two tables: (1) events, (2) users. Users: id (int) name

RE: [PHP] Question about OO design

2007-04-09 Thread Chris W. Parker
On Monday, April 09, 2007 3:51 PM Jochem Maas mailto:[EMAIL PROTECTED] said: Thanks for the response Jochem. Chris W. Parker wrote: [snip] you probably only want one DB call to populate the User object with all the relevant user data at the point where the object is created. [snip] Ok. I

Re: [PHP] Question about OO design

2007-04-09 Thread Jochem Maas
Chris W. Parker wrote: On Monday, April 09, 2007 3:51 PM Jochem Maas mailto:[EMAIL PROTECTED] said: Thanks for the response Jochem. Chris W. Parker wrote: [snip] you probably only want one DB call to populate the User object with all the relevant user data at the point where the

[PHP] Question on Portfoilo's

2007-04-09 Thread Matt Carlson
So i've been meaning to start a portfolio of some code, so that when I apply for a job, and they want code samples, I have something to show them. Unfortunately, at this time, most of my work is inside of a much larger application, or in code that belongs to my current employer (not a php job,

Re: [PHP] Question on Portfoilo's

2007-04-09 Thread Larry Garfield
This is why one should work on an open source project. Much easier to show off legally. :-) On Monday 09 April 2007 8:23 pm, Matt Carlson wrote: So i've been meaning to start a portfolio of some code, so that when I apply for a job, and they want code samples, I have something to show them.

Re: [PHP] Question on Portfoilo's

2007-04-09 Thread Davi
Em Segunda 09 Abril 2007 22:36, Larry Garfield escreveu: This is why one should work on an open source project. Much easier to show off legally. :-) You can't live for and from only open source projects... _I_ develop web sites and show them to my clients... Well... I'm an empoyler... =p

Re: [PHP] Question on Portfoilo's

2007-04-09 Thread Paul Scott
On Mon, 2007-04-09 at 22:45 -0300, Davi wrote: Em Segunda 09 Abril 2007 22:36, Larry Garfield escreveu: You can't live for and from only open source projects... Why not? I do... --Paul All Email originating from UWC is covered by disclaimer

[PHP] Question about form submitting

2007-04-03 Thread Mário Gamito
Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b) missing filled fields c) check e-mail validity d) etc. My question is how

Re: [PHP] Question about form submitting

2007-04-03 Thread Tijnema !
On 4/3/07, Mário Gamito [EMAIL PROTECTED] wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b) missing filled fields

Re: [PHP] Question about form submitting

2007-04-03 Thread Dave Goodchild
Not true. You can submit the form back to itself as many times as required by making the form action $_SERVER['PHP_SELF'] and checking for various sequences and outputting different html in each case.

<    1   2   3   4   5   6   7   8   9   10   >