[PHP] "From: " mail() function

2004-11-15 Thread Garth Hapgood - Strickland
I am using the normal mail() function and currently using the from address as: mail($HTTP_POST_VARS['emailaddress1'], 'Matchmakers Website Registration' , $registree_email_text, 'from:[EMAIL PROTECTED]'); how can I make the from address look like "Matchmakers Team" instead of 'from:[EMAIL PROTECT

Re: [PHP] unable to upload a directory using the web brower (HTTP).

2004-11-15 Thread Angelo Zanetti
cant you create the folder using php and then copy the contents (files) to the newly created folder? eg: $uploaddir = $_SERVER['DOCUMENT_ROOT'] . '/mydir/''; if(!is_dir($uploaddir)) { $old = umask(0);

[PHP] Re: sending mail attachment problem

2004-11-15 Thread Angelo Zanetti
well I have progressed but its still not working 100% this is what i have done for now: The email gets received and the size of the email is correct according to the attachment but the problem I'm having is that the attachment doesnt have the correct content, ie: if its a powerpoint slide it take

Re: [PHP] Date handling

2004-11-15 Thread Ryan
Hi Justin, Thanks for your reply. Actually the main issue that I'm running into is that I cannot get Unix timestamps before 1970. I'm running on Red Hat Enterprise Linux (kernel 2.4.21-20.EL). If I run: the script outputs "-1", which then of course translates to 1969-12-31. According to htt

Re: [PHP] Date handling

2004-11-15 Thread Justin French
On 16/11/2004, at 7:05 AM, Ryan wrote: I would like to find out the 'official' way to handle dates in PHP. I am aware of the limits on a Unix timestamp, but I am writing a financial application that needs to deal with dates both before 1970 and after 2038 and of course have run into problems whe

Re: [PHP] Error when I try to display 20 records per page

2004-11-15 Thread James Kaufman
On Mon, Nov 15, 2004 at 06:56:45PM -0600, Scott McWhite wrote: > Hi, > > > > I'm using an HTML search form that passes the searchterm to a php file. > > In my case the searchterm can have 1000s of records in my database, so I > implemented a limit which displays 20 records per page. The pagin

[PHP] Error when I try to display 20 records per page

2004-11-15 Thread Scott McWhite
Hi, I’m using an HTML search form that passes the “searchterm” to a php file. In my case the “searchterm” can have 1000s of records in my database, so I implemented a limit which displays 20 records per page. The pagination function works fine with one exception. Example of my problem: searc

Re: [PHP] Atom 2 RSS Script? Anyone got one?

2004-11-15 Thread Thomas Goyne
On Sun, 14 Nov 2004 16:48:57 +0100 Nick Wilson <[EMAIL PROTECTED]> wrote: hi all, im all tired out of searching, just cant seem to find a script that will convert atom 0.3 to any rss format. Does anyone have one or know where i can get hold of one? http://www.w3.org/1999/XSL/Transform"; xm

Re: [PHP] Date handling

2004-11-15 Thread Ryan King
On Nov 15, 2004, at 2:05 PM, Ryan wrote: Hello, I would like to find out the 'official' way to handle dates in PHP. There are many paths, choose the one best for you. :-) I am looking at the PEAR Date module and that seems to resolve these issues, but I would like to know if that is the standard/o

Re: [PHP] unable to upload a directory using the web brower (HTTP).

2004-11-15 Thread Scott Fletcher
Um, look like I'm going to have to write a JAVA programming and have a couple of friends to come to help me out with it. Suck though! So, applets it is... Zip it up, that gonna be tought because of lack of good cross-platform support. We have Robo-Help for Windows, since windows zip only work

Re: [PHP] London - One Day Workshop "How to Build a Professional Database-Driven Website"

2004-11-15 Thread Ryan A
SPAM > Hey everyone, > > > > We're running a one-day practical workshop, in London UK, that will give you everything you need to build a powerful > enterprise-level, database-driven website - focusing on PHP, Apache and MySQL. Find out how to plan the project, design the > database, structure the

RE: [PHP] Database search logic question

2004-11-15 Thread Stuart Felenstein
--- "Gryffyn, Trevor" <[EMAIL PROTECTED]> wrote: > This is a PHP General mailing list, it should be for > general, newbie, > etc sort of questions. But the expectation is that > the questions being > asked were researched some ahead of time as well. > Although that's not > always an option and

Re: [PHP] Re: PHP file permission

2004-11-15 Thread Greg Donald
On Mon, 15 Nov 2004 15:26:56 -0500, Scott Fletcher <[EMAIL PROTECTED]> wrote: > Why 644 in the first > place, it is to protect the end user from something like virus, spyware, > etc... I fail to see how the specific file permissions of a PHP script that is executed by the web server software has a

[PHP] Re: PHP postfix mail problem no recipient problem on SUSE 9.1

2004-11-15 Thread Manuel Lemos
Hello, On 11/15/2004 06:25 PM, Chris W wrote: ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = /usr/sbin/sendmail I think your problem is that the -t switch is missing. That would make sendmail read the addresses from the message headers, which seem

Re: [PHP] unable to upload a directory using the web brower (HTTP).

2004-11-15 Thread John Holmes
> From: "Scott Fletcher" <[EMAIL PROTECTED]> > I found that on most web browsers, I can not upload the > folder via HTTP using hte web browser upload dialog box. > So, I can't use the php's function, is_uploaded_file and > move_uploaded_file. Because the web browser see the folder > as something

Re: [PHP] saving blobs to file system

2004-11-15 Thread Marek Kilimajer
Merlin wrote: Hi there, I do have images inside a blob field which I would like to save to the hard drive. Now I cant find a fuction in saving the file. Usually I retrieve the data out of the blob, and output a header before echoing the data. Basicly I do have the image now saved inside a strin

Re: [PHP] unable to upload a directory using the web brower (HTTP).

2004-11-15 Thread Marek Kilimajer
Scott Fletcher wrote: I found that on most web browsers, I can not upload the folder via HTTP using hte web browser upload dialog box. Most? I thought all. So, I can't use the php's function, is_uploaded_file and move_uploaded_file. Because the web browser see the folder as something to open with,

RE: [PHP] Database search logic question

2004-11-15 Thread Gryffyn, Trevor
> > Did you take the time to think about what you were > > going to do before starting your application? > > Honestly , no I did not. What I did start out with is > a belief that there wouldn't be a need to know php. I > was using a RAD, that was sold as all encompassing. > Fool me once. Yeah

Re: [PHP] saving blobs to file system

2004-11-15 Thread Greg Donald
On Mon, 15 Nov 2004 21:12:25 +0100, Merlin <[EMAIL PROTECTED]> wrote: > Hi there, > > I do have images inside a blob field which I would like to save to the hard > drive. Now I cant find a fuction in saving the file. Usually I retrieve the > data > out of the blob, and output a header before echo

[PHP] Date Conversions?

2004-11-15 Thread Robert Sossomon
I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to display it in either format: MM-DD-YY or Month Day, Year format. I can't figure out how to write the query to do it, and am not sure how to make PHP just parse the one given and dump it back out in the way I need it.

Re: [PHP] Re: Date Conversions?

2004-11-15 Thread Robert Sossomon
Matthew Weier O'Phinney is quoted as saying on 11/15/2004 3:01 PM: * Robert Sossomon <[EMAIL PROTECTED]>: http://php.net/strtotime Specifically, try the following: // $date is the date as pulled from the MySQL table $convertedDate = date("m-d-y", strtotime($date)); Here's what I wound up using, in

[PHP] Re: unable to upload a directory using the web brower (HTTP).

2004-11-15 Thread Scott Fletcher
Um, can't be done. So, I'll have to use JAVA instead. Have anyone ever done this, does anyone know of a good freeware JAVA applet that I can use? Thanks, Scott "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I found that on most web browsers, I can not upload the

[PHP] Session file not written *solved*, but session variables *still* messed up.

2004-11-15 Thread Rodolfo Gonzalez Gonzalez
On Fri, 12 Nov 2004, Klaus Reimer wrote: > Rodolfo wrote: > > The weirdness comes when in one frame the script will print "Agent Smith" > > while in the other frame of the same frameset the script which loads on it > > will print "Thomas Anderson"... > > On the other hand: Have you checked that you

[PHP] London - One Day Workshop "How to Build a Professional Database-Driven Website"

2004-11-15 Thread Ryan Carson
Hey everyone, We're running a one-day practical workshop, in London UK, that will give you everything you need to build a powerful enterprise-level, database-driven website - focusing on PHP, Apache and MySQL. Find out how to plan the project, design the database, structure the code, develop and

[PHP] unable to upload a directory using the web brower (HTTP).

2004-11-15 Thread Scott Fletcher
I found that on most web browsers, I can not upload the folder via HTTP using hte web browser upload dialog box. So, I can't use the php's function, is_uploaded_file and move_uploaded_file. Because the web browser see the folder as something to open with, like going down one directory. So, any ad

Re: [PHP] Re: PHP file permission

2004-11-15 Thread Scott Fletcher
Rule of thumb. set the file permission to 644 for all files execpt the directory, the directory folder would be 755. Most executable files can safely be set to 644 but if your machine or web browser can't run the file then change permission for that file from 644 to 555. Why 644 in the first pla

[PHP] Re: PHP postfix mail problem no recipient problem on SUSE 9.1

2004-11-15 Thread Chris W
Manuel Lemos wrote: Yes you did but I don't remember you asking to se the php.ini file. It I said: "It is hard to guess it right without seeing the actual configuration." I guess I missed that part, while looking into the other code you mentioned in your post. ; For Unix only. You may suppl

Re: [PHP] Date Conversions?

2004-11-15 Thread Greg Donald
On Mon, 15 Nov 2004 14:29:59 -0500, Robert Sossomon <[EMAIL PROTECTED]> wrote: > I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to > display it in either format: MM-DD-YY or Month Day, Year format. > > I can't figure out how to write the query to do it, and am not sure

RE: [PHP] Date Conversions?

2004-11-15 Thread Mike Johnson
From: Robert Sossomon [mailto:[EMAIL PROTECTED] > I have a date in format YY-MM-DD in a MySQL table. I need to > pull it back to display it in either format: MM-DD-YY or > Month Day, Year format. > > I can't figure out how to write the query to do it, and am > not sure how to make PHP just p

[PHP] saving blobs to file system

2004-11-15 Thread Merlin
Hi there, I do have images inside a blob field which I would like to save to the hard drive. Now I cant find a fuction in saving the file. Usually I retrieve the data out of the blob, and output a header before echoing the data. Basicly I do have the image now saved inside a string and I would n

Re: [PHP] newbie question

2004-11-15 Thread Greg Donald
On Mon, 15 Nov 2004 10:26:43 -0800, Max Krone <[EMAIL PROTECTED]> wrote: > When I try to submit, I get no error messages, but no data goes into > the MySQL table. I have verified that my MySQL User and Password are > correct and I believe I am actually connecting to the database. > > Please look a

[PHP] Date handling

2004-11-15 Thread Ryan
Hello, I would like to find out the 'official' way to handle dates in PHP. I am aware of the limits on a Unix timestamp, but I am writing a financial application that needs to deal with dates both before 1970 and after 2038 and of course have run into problems when trying to format those dates

[PHP] Re: Date Conversions?

2004-11-15 Thread Matthew Weier O'Phinney
* Robert Sossomon <[EMAIL PROTECTED]>: > I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to > display it in either format: MM-DD-YY or Month Day, Year format. > > I can't figure out how to write the query to do it, and am not sure > how to make PHP just parse the one giv

Re: [PHP] Database search logic question

2004-11-15 Thread Stuart Felenstein
See inline please: --- David Bevan <[EMAIL PROTECTED]> wrote: > Did you take the time to think about what you were > going to do before starting > your application? Honestly , no I did not. What I did start out with is a belief that there wouldn't be a need to know php. I was using a RAD, tha

Re: [PHP] explode and PATH_SEPARATOR

2004-11-15 Thread Ryan King
On Nov 15, 2004, at 10:17 AM, Francisco M. Marzoa Alonso wrote: Taking this code: define (PATH_SEPARATOR, "/"); $String="Root/One/Two/Three/Last"; $arr = explode ( PATH_SEPARATOR, $String ); var_dump ( $arr ); $arr = explode ( "/", $String ); var_dump ( $arr ); ?> PATH_SEPARATOR is is a predefin

RE: [PHP] newbie question

2004-11-15 Thread Chris W. Parker
Greg Donald on Monday, November 15, 2004 11:08 AM said: >> > if ($_POST[FirstName] == "") { >> $display_block = "Add an Entry >> >> First/Last Names: >> > > It's trivial for a malicious attacker to bypass your maxlength, jus

Re: [PHP] Column Totals

2004-11-15 Thread Robby Russell
On Mon, 2004-11-15 at 11:01 -0700, Ben Miller wrote: > SELECT SUM(Revenue) FROM Sales WHERE Date='$Date' What happens when you do: SELECT Revenue FROM Sales WHERE Date='$Date'; Make sure you're getting values back first..and then you can try to sum them. -Robby -- /**

Re: [PHP] Column Totals

2004-11-15 Thread Jason Wong
On Tuesday 16 November 2004 02:21, Ben Miller wrote: > That did it perfectly. Why don't any of the stupid books tell you that you > need the AS statement? You don't *need* the AS. You just need to be aware that without the AS the query will return a column called 'SUM(columnname)'. The AS is for

RE: [PHP] Database search logic question

2004-11-15 Thread Stuart Felenstein
See inline: --- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > Stuart Felenstein > on Monday, November 15, 2004 1:10 AM said: > > > The way I was approaching this was to grab the > url, > > the part after the ? , so not the referer. > > This sounds like you're not

[PHP] newbie question

2004-11-15 Thread Max Krone
Hello all, I am new to php programming and web programming in general. I have created a php file that if it works will create a simple form for inputing contact information and then once the submit button is pressed, the information is saved into a MySQL database. When I try to submit, I get no e

RE: [PHP] Column Totals

2004-11-15 Thread Gryffyn, Trevor
Because you don't technically 'need' it, unless you're trying to reference the results by column name and you're using an aggregate like that. :) And in most systems, you don't need the "AS" just a space and a new name: SELECT SUM(Revenue) Revenue FROM Sales Where. But all depends on your st

Re: [PHP] Column Totals

2004-11-15 Thread Greg Donald
On Mon, 15 Nov 2004 11:21:45 -0700, Ben Miller <[EMAIL PROTECTED]> wrote: > That did it perfectly. Why don't any of the stupid books tell you that you > need the AS statement? Because they assumed you would access it just like you asked for it. $bar['SUM(Revenue)'] -- Greg Donald Zend Certifi

RE: [PHP] Column Totals

2004-11-15 Thread Ben Miller
That did it perfectly. Why don't any of the stupid books tell you that you need the AS statement? -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 11:16 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Column Totals [snip] Th

Re[2]: [PHP] Database search logic question

2004-11-15 Thread Richard Davey
Hello Stuart, Monday, November 15, 2004, 6:27:18 PM, you wrote: SF> In $_POST there is nothing in the URL , there is no ?. Technically, there can be. You can post a form to x.php?foo=bar and it will populate both the POST and GET super-globals. >> > I'm wondering at this point if I should >> >

Re: [PHP] Database search logic question

2004-11-15 Thread David Bevan
On November 15, 2004 13:27, Stuart Felenstein wrote: > See inline: > > --- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > > Stuart Felenstein > > > > on Monday, November 15, 2004 1:10 AM said: > > > The way I was approaching this was to grab the > > > > url, > > > > >

RE: [PHP] XML Parser doesn't work when moved....

2004-11-15 Thread Gryffyn, Trevor
Using PHP 4.2.1 as a development platform to run on a 4.3.7 production box? How strange. Haha Assuming you have zero control over this (otherwise, UPGRADE or something :) then I'm not sure what to tell you. Here are some articles you may have seen already, but passing them on anyway: "Parsing

Re: [PHP] Column Totals

2004-11-15 Thread raditha dissanayake
Ben Miller wrote: I am trying to get the total sales revenue for each day of the month, and having no luck at all. In case it helps, sample table data might look like this: OrderNoOrderDateRevenue 1 79.95 1112 1

Re: [PHP] newbie question

2004-11-15 Thread Richard Davey
Hello Max, Monday, November 15, 2004, 6:26:43 PM, you wrote: MK> } else if ($_POST[FirstName] != "") { Where you use $_POST you should have the syntax as follows: $_POST['var'] (note the quote marks) Without them, PHP is going to think you're passing in a constant called "FirstName" (etc) whi

Re: [PHP] Dinamically adding methods to an object instance?

2004-11-15 Thread Robby Russell
On Mon, 2004-11-15 at 18:56 +0100, Francisco M. Marzoa Alonso wrote: > I've seen that's possible to add public members to objects dinamically, > such as: > > > class TestClass { > public $One=1; > } > > $Obj = new TestClass (); > $Obj->Two = 2; > > echo $Obj->Two; > ?> > > There'll be a

[PHP] Recall: [PHP] Converting a string into ASCII and a bit more - newbie

2004-11-15 Thread Alp Bekisoglu
The sender would like to recall the message, "[PHP] Converting a string into ASCII and a bit more - newbie". -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Column Totals

2004-11-15 Thread Ben Miller
-Original Message- From: Robby Russell [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 11:12 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Column Totals On Mon, 2004-11-15 at 11:01 -0700, Ben Miller wrote: > SELECT SUM(Revenue) FROM Sales WHERE Date='$Date'

RE: [PHP] Hacking attempt

2004-11-15 Thread Gryffyn, Trevor
Sounds like someone replaced their INDEX.PHP with something else. Short answer: You can get the INDEX.PHP back if you restore it from a backup copy you should have. If you don't have a backup copy, then you can't get it back most likely (unless it's on a system that you can manage to undelete fr

RE: [PHP] Column Totals

2004-11-15 Thread Jay Blanchard
[snip] The following query seems to return an empty string, which should only give me the total for the entire column anyway. $query = "SELECT SUM(Revenue) FROM Sales WHERE Date='$Date'"; [/snip] $query = "SELECT SUM(Revenue) AS Revenue FROM Sales WHERE Date='$Date'"; note the AS statement

RE: [PHP] Help: Database Search

2004-11-15 Thread Gryffyn, Trevor
You can't do "WHERE Industry = 1, 2, 3" unless that's something you can do in MySQL but not the other DB's I've used. What you CAN do is us "IN": WHERE Industry IN (1, 2, 3) Or.. WHERE Industry IN ('1','2','3') "IN" basically does a Industry = 1 OR Industry = 2 OR Industry = 3 type thing. I

[PHP] Column Totals

2004-11-15 Thread Ben Miller
I am trying to get the total sales revenue for each day of the month, and having no luck at all. The following query seems to return an empty string, which should only give me the total for the entire column anyway. $query = "SELECT SUM(Revenue) FROM Sales WHERE Date='$Date'"; I also tried, amon

Re: [PHP] Silly OOP question

2004-11-15 Thread Robert Cummings
On Mon, 2004-11-15 at 10:17, Simas Toleikis wrote: > >Semantics. Until any langiage compiles to pure 1s and 0s, it's all about > >bytecode. Even C compiles to assembler which is really just a low level > >bytecode. > > > > > Just a note: > > C compiles to opcodes. opcodes are 1s and 0s directly

[PHP] Weird virtual() behavior for nested require()

2004-11-15 Thread Paul Cantrell
I'm getting a weird behavior when virtual() calls another page that uses a require(). The behavior seems contrary to the docs for virtual. Consider these four files: -- foo.php -- This is foo. -- foo.shtml -- This is foo. -- subdir/bar.php --

Re: [PHP] Database search logic question

2004-11-15 Thread Greg Donald
On Mon, 15 Nov 2004 09:21:01 -0800, Chris W. Parker <[EMAIL PROTECTED]> wrote: > This sounds like you're not familiar with the $_GET array. $_GET is > everything after the ? in the url but as an array. > > > Whatever the second part is called. > > I *think* that's the querystring. Not sure on tha

RE: [PHP] Database search logic question

2004-11-15 Thread Chris W. Parker
Stuart Felenstein on Monday, November 15, 2004 1:10 AM said: > The way I was approaching this was to grab the url, > the part after the ? , so not the referer. This sounds like you're not familiar with the $_GET array. $_GET is everything after the ? in the url but

[PHP] Re: Dinamically adding methods to an object instance?

2004-11-15 Thread Matthew Weier O'Phinney
* Francisco M. Marzoa Alonso <[EMAIL PROTECTED]>: > I've seen that's possible to add public members to objects dinamically, > such as: > > > class TestClass { > public $One=1; > } > > $Obj = new TestClass (); > $Obj->Two = 2; > > echo $Obj->Two; > ?> > > There'll be a public "Two" member that

[PHP] Re: PHP postfix mail problem no recipient problem on SUSE 9.1

2004-11-15 Thread Manuel Lemos
Hello, On 11/15/2004 02:34 PM, Chris W wrote: I already suggested that it may be a problem in your PHP configuration. However, since you did not show your php.ini file it is hard to help without further cooperation from you. Yes you did but I don't remember you asking to se the php.ini file. It

[PHP] Dinamically adding methods to an object instance?

2004-11-15 Thread Francisco M. Marzoa Alonso
I've seen that's possible to add public members to objects dinamically, such as: class TestClass { public $One=1; } $Obj = new TestClass (); $Obj->Two = 2; echo $Obj->Two; ?> There'll be a public "Two" member that's not defined in the class. Is it possible to add methods dinamically to an obj

[PHP] Re: PHP postfix mail problem no recipient problem on SUSE 9.1

2004-11-15 Thread Chris W
Manuel Lemos wrote: I already suggested that it may be a problem in your PHP configuration. However, since you did not show your php.ini file it is hard to help without further cooperation from you. Yes you did but I don't remember you asking to se the php.ini file. It is a rather large file,

RE: [PHP] explode and PATH_SEPARATOR

2004-11-15 Thread Araceli Pulido
This constant is part of the directory functions. See: http://www.php.net/manual/en/ref.dir.php Araceli. -Original Message- From: Francisco M. Marzoa Alonso [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 5:18 PM To: PHP-General Subject: [PHP] explode and PATH_SEPARATOR Takin

[PHP] Re: sending mail attachment problem

2004-11-15 Thread Manuel Lemos
Hello, On 11/15/2004 12:28 PM, Angelo Zanetti wrote: > I have a script that is supposed to use the mail function to send an > email with an attachment, however, when run the script I dont get any > errors but in the body of the email there is a lot of mixed up text, > which i presume is meant to be

[PHP] Re: PHP postfix mail problem no recipient problem on SUSE 9.1

2004-11-15 Thread Manuel Lemos
Hello, On 11/15/2004 05:52 AM, Chris W wrote: I have a PHP script to send an email that I know is correct. Ever since I installed SUSE 9.1I get a no recipient error from postfix. I know others have had this problem but after an extensive search I can find no solution. As of yet no one seems t

Re: [PHP] Silly OOP question

2004-11-15 Thread Simas Toleikis
Semantics. Until any langiage compiles to pure 1s and 0s, it's all about bytecode. Even C compiles to assembler which is really just a low level bytecode. Just a note: C compiles to opcodes. opcodes are 1s and 0s directly interpreted by CPU. Same applies to assembler. (asm->opcodes). The true i

[PHP] explode and PATH_SEPARATOR

2004-11-15 Thread Francisco M. Marzoa Alonso
Taking this code: define (PATH_SEPARATOR, "/"); $String="Root/One/Two/Three/Last"; $arr = explode ( PATH_SEPARATOR, $String ); var_dump ( $arr ); $arr = explode ( "/", $String ); var_dump ( $arr ); ?> It works fine in second case returing a five elements array, but in the first one it returns a

Re: [PHP] force a download

2004-11-15 Thread John Nichel
Alessandro Rosa wrote: How can be forced a download by PHP with the visualization of Directory dialog window in order to choose the download path? Alessandro Rosa Start here... http://us4.php.net/header -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing Li

RE: [PHP] sending mail attachment problem

2004-11-15 Thread Jay Blanchard
[snip] I have a script that is supposed to use the mail function to send an email with an attachment... [/snip] http://www.zend.com/zend/spotlight/sendmimeemailpart1.php Have a look at this article, it'll shed some light on it -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] sending mail attachment problem

2004-11-15 Thread Angelo Zanetti
Hi all I have a script that is supposed to use the mail function to send an email with an attachment, however, when run the script I dont get any errors but in the body of the email there is a lot of mixed up text, which i presume is meant to be the attachment. Below is the code that performs the

Re: [PHP] Atom 2 RSS Script? Anyone got one?

2004-11-15 Thread Skippy
On Sun, 14 Nov 2004 16:48:57 +0100 Nick Wilson <[EMAIL PROTECTED]> wrote: > hi all, > > im all tired out of searching, just cant seem to find a script that will > convert atom 0.3 to any rss format. Does anyone have one or know where i > can get hold of one? That's probably because most people h

[PHP] session_set_cookie_params() for one level domains

2004-11-15 Thread Jordi Canals
Hi all, Something that has taken me some time to debug and wanted to share: session_set_cookie_params() does not work when the domain param is just a one level domain, like it was a TLD. I have a site in an intranet and our internal domain is .local, so trying to set the cookie session to the .lo

RE: [PHP] $_REQUEST

2004-11-15 Thread Jay Blanchard
[snip] there seems to be a limit to how many form variables I can get wtih a $_REQUEST. does anyone know how to get an large amount of variables? [/snip] Look at $_POST -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] $_REQUEST

2004-11-15 Thread Diana Castillo
there seems to be a limit to how many form variables I can get wtih a $_REQUEST. does anyone know how to get an large amount of variables? -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Ext 216 Fax : 00-34-915228673 email: [EMAIL PROTEC

[PHP] Re: Dynamic Combo Box

2004-11-15 Thread Sebastian Mendel
Ankur Os wrote: I want to create 3 dynamic combo box. When i select the first combo(select) box then automatically the related details [from database] will come in the second select box.and simultenously for second to third. Please help me.(give me some help through code) I have to complete the pro

[PHP] force a download

2004-11-15 Thread Alessandro Rosa
How can be forced a download by PHP with the visualization of Directory dialog window in order to choose the download path? Alessandro Rosa

Re: [PHP] Converting a string into ASCII and a bit more - newbie

2004-11-15 Thread Alp
Thanks Matthew, Got it going finally. Would you be able to help in my further question? Alp "Matthew Fonda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This ought to work: > $string = 'ABCDEFGHIJ'; > $chars = preg_split('//', $string, -1, PREG_SPLIT_NO_EMPTY); > for ($i = 0;

RE: [PHP] Sessions: I don't get it!!

2004-11-15 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 15 November 2004 06:13, [EMAIL PROTECTED] wrote: > Looks like you're making it way more complicated than it > needs to be. PHP > will automatically tack on the Session ID tag to

RE: [PHP] Database search logic question

2004-11-15 Thread Graham Cossey
> -Original Message- > From: Stuart Felenstein [mailto:[EMAIL PROTECTED] > Sent: 15 November 2004 10:12 > To: Graham Cossey; [EMAIL PROTECTED] > Subject: RE: [PHP] Database search logic question > > > Please see inline: > --- Graham Cossey <[EMAIL PROTECTED]> wrote: > > > A couple of possib

Re: [PHP] Can't get results from MySQL via PHP

2004-11-15 Thread Alp
Thanks for your response, I did finally sove it by changing mysql_fetch_row($result); to mysql_fetch_array($result); and assigning my variable as $somevar = $list['fieldname']; Now I get my real value. Thanks again. Alp "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PRO

RE: [PHP] Database search logic question

2004-11-15 Thread Stuart Felenstein
Please see inline: --- Graham Cossey <[EMAIL PROTECTED]> wrote: > A couple of possibilities are: > > Store search criteria (form entries) in MySQL > Store query string in MySQL So with my current form, the where statement is built from conditions that are set (or not set) in the form. Perhaps I

RE: [PHP] Database search logic question

2004-11-15 Thread Graham Cossey
A couple of possibilities are: Store search criteria (form entries) in MySQL Store query string in MySQL If the user has to log-in then the MySQL table would be keyed on the user_id or similar. If the user does not have to log-in then you will most likely need to store something in a client-side

Re: [PHP] Can't get results from MySQL via PHP

2004-11-15 Thread raditha dissanayake
Alp wrote: Hi there, I've been fighting with PHP/MySQL to get proper results but without success. For example: $sql = "SELECT * FROM prod WHERE shortname='Myprog"; $result = mysql_query($sql); >>> returns Resource #7 $list = mysql_fetch_row($result); >>> returns Array and actual

[PHP] Can't get results from MySQL via PHP

2004-11-15 Thread Alp
Hi there, I've been fighting with PHP/MySQL to get proper results but without success. For example: $sql = "SELECT * FROM prod WHERE shortname='Myprog"; $result = mysql_query($sql); >>> returns Resource #7 $list = mysql_fetch_row($result); >>> returns Array and actually the

[PHP] Dynamic Combo Box

2004-11-15 Thread ankur_os
Dear All, I want to create 3 dynamic combo box. When i select the first combo(select) box then automatically the related details [from database] will come in the second select box.and simultenously for second to third. Please help me.(give me some help through code) I have to complete the proje

[PHP] Database search logic question

2004-11-15 Thread Stuart Felenstein
For those who recognize this topic from me and perhaps are sick of it , my apologies :) This is actually a different question more about logic then syntax or functionality. One of the uses of my search form is that users may save their search parameters. Typical benefits, they don't have to re-en

Re: [PHP] Converting a string into ASCII and a bit more - newbie

2004-11-15 Thread Matthew Fonda
This ought to work: On Sun, 2004-11-14 at 22:32, Alp wrote: > Hi, > > My question could have quite stright forward answer or the question itself > might be silly but being a newbie, I'll ask it anyway. > First I am trying to convert each character in a string into their > respective ASCII code

Re: [PHP] Pulling data from a table into a array

2004-11-15 Thread Jason Wong
On Monday 15 November 2004 15:54, Richard wrote: > I am using mysql_fetch_row to pull data from a table to fill an array > But I am not getting the data into the array the way I whant it to be. > > $query = "SELECT amenityID FROM property_amenity where listingId = > '$listingId'"; > $results = mysq

RE: [PHP] Converting a string into ASCII and a bit more - newbie

2004-11-15 Thread Alp Bekisoglu
Hi Klaus, Thanks you very much both for your quick reply and guidance. Yes, it now works as it should. I have a few further questions all related to the subject if you wouldn't mind. One is: how can I do the following (sort of maths) with a secondary string of ascii values i.e. 25203030 with thi

Re: [PHP] Post Array elements to URL / was: Database Search .............

2004-11-15 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > you need to build a string which looks like: > > Stat[1]=value1&State[2]=value2...&Stat[n]=valuen > > which you append to your URL like so: > searchresults.php?Stat[1]=value1&Stat[2]=value2...&Stat[n]=valuen > > This can be done using a foreach()