[PHP] php and drop down boxes

2004-04-06 Thread Andy B
hi... i have a few things i need and dont know where to go to get some ideas/examples of how to do some things: 1. i need to know how to take info from a mysql db load it into a dropdown box and then select as the default choice whatever value was in the db: i.e. i have a combo box with the month

[PHP] Working with files

2004-04-06 Thread Teo Mattiozzi Petralia
Hello! If I have a text file like; FindThisBeginning Here goes several text... FindThisEnd FindThisOtherBeginning Here goes other text... FindThisOtherEnd and so on... How can I retrieve the portion of the text between those kind of tags (FindThisBeginning, FindThisEnd, etc), and transfer them in

Re: [PHP] Mail header problem

2004-04-06 Thread Curt Zirzow
* Thus wrote Daryl Meese ([EMAIL PROTECTED]): > Hello all, > > When I use the PHP mail function to send emails, with a header of > "From:[EMAIL PROTECTED]"; bounced and otherwise undeliverable messages come back > to the user "www", not the user I indicated the mail was from. Is this a > PHP or M

[PHP] Mail header problem

2004-04-06 Thread Daryl Meese
Hello all, When I use the PHP mail function to send emails, with a header of "From:[EMAIL PROTECTED]"; bounced and otherwise undeliverable messages come back to the user "www", not the user I indicated the mail was from. Is this a PHP or MTA issue? Is there something I can do about it? TIA, Da

Re: [PHP] Question about dates

2004-04-06 Thread saepudin
hi, I want to send an SMS(to mobile phone etc) based on a database trigger or on completion of an php page. the site runs on linux. how to do this. How do i send the mobile no . what is the language, protocol, syntax and platform. if anyone knows please inform. i am unable to understand how

[PHP] assign mysql query to a variable first or not

2004-04-06 Thread Andy B
hi... is it better to give the mysql query string to a variable instead of directly doing it with mysql_query? i.e. $query="select * from table";//is this a better way? $query=mysql_query("select * from table");//or is this way //better? mysql_query("select * from table");//not a good idea i do

Re: [PHP] confused big time

2004-04-06 Thread Andy B
>i was hoping that wouldn't cause any confusion, but i >guess it did. the >thing to remember is that a query is a query. you know, >parts is parts. oops stress and the fact that im sort of new at this stuff mixed me up... $query="insert into table values( '{$array['index1']['index2']}', '{$array[

Re: [PHP] File upload progress

2004-04-06 Thread Eric Wood
- Original Message - > >>>I posted about this the other day. I was directed to look at > >>>megaupload http://www.raditha.com/megaupload/ > >>> > >>>It works pretty well, I believe it uses Apache::Request to > >>>get the raw post info. I recently began to use megaupload, it relies on pe

Re: [PHP] confused big time

2004-04-06 Thread Andy B
> AB> 1. how were those queries unreadable?? and > > You're kidding, right? sorry...my bad... never had any "writing readable code" help anywhere...guess if i do it like c/c++ then it would work better > > AB> 2. whenever i put '' around the array keys in multi dimensional arrays in a > AB> query

Re: [PHP] confused big time

2004-04-06 Thread Andy B
> He was showing you a neatly formatted query, the example applies to > inserts too: > > $sql = " > INSERT INTO >tablename >( > field1, > field2, > field3 >) > VALUES > ( > '$blah', > $here

Re: [PHP] File upload progress

2004-04-06 Thread Raditha Dissanayake
[EMAIL PROTECTED] wrote: never worked for me plus what is this drag and drop system ? i get an exception Let's take this discussion to the mega upload message board (at http://www.sourceforge.net/projects/megaupload/) . I am sure others would appreciate that. thanx. Jeff McKeon wrote:

Re: [PHP] For your reference, how to validate dynamic form fields.

2004-04-06 Thread holmes072000
> From: "Hawkes, Richard" <[EMAIL PROTECTED]> > > Just spent far too long trying to figure out how to do this, so I thought I'd > pass it on to you great guys, in case you need it for the future. > > I used PHP to create multiple form rows, each one numbered: > > for ($i =1; $i <= 20; $i++

Re: [PHP] File upload progress

2004-04-06 Thread daniel
never worked for me plus what is this drag and drop system ? i get an exception > Jeff McKeon wrote: > >>>I posted about this the other day. I was directed to look at >>>megaupload http://www.raditha.com/megaupload/ >>> >>>It works pretty well, I believe it uses Apache::Request to >>>get the raw p

Re[3]: [PHP] Validating form field text input to be a specific variable type

2004-04-06 Thread Richard Davey
MD>> if ( (int)$PageOptions['Default'] == $PageOptions['Default'] ) { Sorry, forgot to add that also bear in mind that the comparison operator == will automatically cast your string to an integer for the comparison. The following will take a user string ($str) and check if it is an integer or not.

Re: RE: [PHP] Validating form field text input to be a specific variable type

2004-04-06 Thread holmes072000
> From: "Merritt, Dave" <[EMAIL PROTECTED]> > > Okay seems to makes sense, but when I do the following it doesn't appear to > be working correctly, or I'm viewing my logic incorrectly one: > > if ( (int)$PageOptions['Default'] == $PageOptions['Default'] ) { This works: if(strcmp((int)$PageOpt

Re[2]: [PHP] Validating form field text input to be a specific variable type

2004-04-06 Thread Richard Davey
Hello Dave, Wednesday, April 7, 2004, 2:41:15 AM, you wrote: MD> Okay seems to makes sense, but when I do the following it doesn't appear to MD> be working correctly, or I'm viewing my logic incorrectly one: MD> if ( (int)$PageOptions['Default'] == $PageOptions['Default'] ) { MD> // displa

RE: [PHP] Validating form field text input to be a specific variable type

2004-04-06 Thread Merritt, Dave
Okay seems to makes sense, but when I do the following it doesn't appear to be working correctly, or I'm viewing my logic incorrectly one: if ( (int)$PageOptions['Default'] == $PageOptions['Default'] ) { // display a message if the integer of the default value matches the default value } En

[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread Ben Ramsey
Let me point something out here: I was a goof and had an authentication setting wrong. When I changed it back to LOGIN, it sends e-mail just fine. So, all is well... sort of. Every 3rd or 4th run of the script still generates the Access Violation message. However, since it happens intermitt

Re: [PHP] File upload progress

2004-04-06 Thread Raditha Dissanayake
Jeff McKeon wrote: I posted about this the other day. I was directed to look at megaupload http://www.raditha.com/megaupload/ It works pretty well, I believe it uses Apache::Request to get the raw post info. Unfortunately, the web server being used is IIS on a Windows Server, not Apache

Re: [PHP] File upload progress

2004-04-06 Thread Raditha Dissanayake
[EMAIL PROTECTED] wrote: There is a java appley which can do uploads, lemme know if u want me to find it Perhaps you are thinking of http://www.radinks.com/upload/ (this is a shameless plug) :-) Curt, Thats a very valid point. But as it was stated before, the average user does not understan

Re: [PHP] Alternative to stripslashes(htmlentities($textstring))

2004-04-06 Thread holmes072000
> From: gohaku <[EMAIL PROTECTED]> > I was just curious if there is another function that > does the same job as stripslashes(htmlentities($textstring)). Nope. Do it that way. Or you can turn off magic_quotes_gpc, which is probably the reason you have to run stripslashes(). ---John Holmes...

[PHP] Alternative to stripslashes(htmlentities($textstring))

2004-04-06 Thread gohaku
Hi everyone, I was just curious if there is another function that does the same job as stripslashes(htmlentities($textstring)). I am using this Combined function to echo back Text that is entered in a Text Field. Thanks in advance. -gohaku -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] confused big time

2004-04-06 Thread Martin Towell
> > um...im not doing selects im doing inserts with variable names... i > > understand the idea with select but thats not the dealits an > > insert... > > i was hoping that wouldn't cause any confusion, but i guess > it did. the > thing to remember is that a query is a query. you know, parts

RE: [PHP] confused big time

2004-04-06 Thread Chris W. Parker
Andy B on Tuesday, April 06, 2004 5:18 PM said: > um...im not doing selects im doing inserts with variable names... i > understand the idea with select but thats not the dealits an > insert... i was hoping that wouldn't cause any confusion, but i guess it did.

[PHP] [fixed!][PHP] confused big time

2004-04-06 Thread Andy B
ok query is fixed for the second one now... now to work on the if(!empty.. tests i have to check and make sure every one of those arrays isnt empty. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] confused big time

2004-04-06 Thread Richard Davey
Hello Andy, Wednesday, April 7, 2004, 1:18:06 AM, you wrote: AB> um...im not doing selects im doing inserts with variable names... i AB> understand the idea with select but thats not the dealits an insert... He was showing you a neatly formatted query, the example applies to inserts too: $s

Re: [PHP] confused big time

2004-04-06 Thread Richard Davey
Hello Andy, Wednesday, April 7, 2004, 1:06:52 AM, you wrote: AB> 1. how were those queries unreadable?? and You're kidding, right? AB> 2. whenever i put '' around the array keys in multi dimensional arrays in a AB> query i get a parse error of trying to use undefined keys or it doesnt AB> expan

[PHP] confused big time

2004-04-06 Thread Andy B
"MINE: $sql = " SELECT name , age , height , etc FROM user WHERE name = '$name' AND height = '5'";" um...im not doing selects im doing inserts with variable names... i understand the idea with

RE: [PHP] confused big time

2004-04-06 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, April 06, 2004 5:01 PM said: let me expand both of my points in an attempt to be more verbose. > 1. write readable queries. > 2. always put single quotes around array keys. $array['key'] here is how i would write your query: http://www.php.net/) To unsubscribe

[PHP] confused big time

2004-04-06 Thread Andy B
"two things i would recommend before disecting your code. 1. write readable queries. GOOD: $sql = " SELECT name , age , height , etc FROM user WHERE name = '$name' AND height = '5'"; 2. alway

RE: [PHP] confused big time

2004-04-06 Thread Chris W. Parker
Andy B on Tuesday, April 06, 2004 4:51 PM said: > they both use the same identical format to insert the arrays. there > is an interesting problem though: the first one complains about use > of undefined constant add - assumed 'add' in the second query...the > first o

[PHP] confused big time

2004-04-06 Thread Andy B
hi... i have 2 mysql queries first one: //the extra { at the beginning and the extra , at the end of //each variable should be an '... "insert into $EventsTable values(NULL, '{$_SESSION[add][type]}', '{$_SESSION[add][start_date]}', '{$_SESSION[add][end_date]}', '{$_SESSION[add][name]}', '{$

[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread DvDmanDT
Well, the reason noone replies I guess, is that noone knows.. I think your best bets are to echo the steps in the class, and find exactly what causes it to crash.. Also, you don't need a mailserver on localhost to use mail().. I use mail() with my ISP's SMTP server, and I'm on XP (same thing work o

RE: [PHP] File upload progress

2004-04-06 Thread daniel
There is a java appley which can do uploads, lemme know if u want me to find it > Curt, > Thats a very valid point. But as it was stated before, the average user > does not understand what is happening. I also feel that we should not > have to hack for this functionality. > When you place a file o

RE: [PHP] Pulling Certain Data

2004-04-06 Thread Tyler Replogle
hey, trying putting at where in your "SELECT * FROM $main_tbl" so it looks like this SELECT * FROM $main_tbl where "whatever" = "somthing" you can also make a limit in "SELECT * FROM $main_tbl" just like this SELECT * FROM $main_tbl LIMIT 4 From: "Jason T. Davidson" <[EMAIL PROTECTED]> Reply-To

RE: [PHP] Not exactly PHP....

2004-04-06 Thread Tyler Replogle
hey, what kind of news group are you talking about. Like a news script where people can post news? and would you like it in mysql or text files? From: "Shimi" <[EMAIL PROTECTED]> Reply-To: "Shimi" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP] Not exactly PHP Date: Tue, 6 Apr 2004

RE: [PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread Tyler Replogle
hey, i think the reason you get no reply is becauase no one knows why it happens From: Ben Ramsey <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP Access Violation using PEAR::Mail_smtp Date: Tue, 06 Apr 2004 14:27:08 -0400 I've asked about PHP Access Violation errors before (t

Re: [PHP] update mysql from php web page

2004-04-06 Thread John Nichel
Chip Wiegand wrote: I have an existing web page that pulls some data and displays it in form input fields. I would like to add the ability to edit those fields and submit the changes to the server, but have been unsuccessful. What bit of code do I need to add to the existing code? This is the ex

RE: [PHP] File upload progress

2004-04-06 Thread Steve Murphy
Curt, Thats a very valid point. But as it was stated before, the average user does not understand what is happening. I also feel that we should not have to hack for this functionality. When you place a file on a webpage to be downloaded, the meter just happens, and you don't have to even think

Re: [PHP] update mysql from php web page

2004-04-06 Thread Daniel Clark
I think you need a WHERE clause for the UPDATE, otherwise it will update ALL the records. e.g. WHERE OwnerName='$result' Then perhaps a redirect to another page. > I probably need to use if(isset($submit)): and an update statement, but my > attempt just causes the web page to display completel

Re: [PHP] assigning NULL to a variable

2004-04-06 Thread William Lovaton
El mar, 06-04-2004 a las 07:41, Marek Kilimajer escribió: > Andy B wrote: > > how would you assign NULL to a variable if its original value is ""? otherwise > > leave it with its value... > > if($var === '') $var = NULL; what about: if ($var == '') unset($var); -William -- PHP General Maili

[PHP] update mysql from php web page

2004-04-06 Thread Chip Wiegand
I have an existing web page that pulls some data and displays it in form input fields. I would like to add the ability to edit those fields and submit the changes to the server, but have been unsuccessful. What bit of code do I need to add to the existing code? This is the existing code to displ

[PHP] RE: Posting directly to the database newsgroup question

2004-04-06 Thread Daevid Vincent
Rob, here's some pointers: The 'client' creates a URL of the type: http://myserver.com/index.php?val1=foo&val2=bar Then the 'server' just dumps the values in accordingly. Now what I suggest is you do this on the client side: $GetData = base64_encode(serialize($GetData)); if ($DEBU

Re: [PHP] File upload progress

2004-04-06 Thread Curt Zirzow
* Thus wrote Steve Murphy ([EMAIL PROTECTED]): > I'm sorry to hear that. You could use one of the million ASP meters but then you > have to use IE on winblows which may or may not be an issue for you. > > Cross compatibility would also be solved if this was done by PHP. > > Maybe someone at PHP

RE: [PHP] Validating form field text input to be a specific variable type

2004-04-06 Thread Merritt, Dave
Okay seems to makes sense, but when I do the following it doesn't appear to be working correctly, or I'm viewing my logic incorrectly one: if ( (int)$PageOptions['Default'] == $PageOptions['Default'] ) { // display a message if the integer of the default value matches the default value } En

RE: [PHP] File upload progress

2004-04-06 Thread Steve Murphy
I'm sorry to hear that. You could use one of the million ASP meters but then you have to use IE on winblows which may or may not be an issue for you. Cross compatibility would also be solved if this was done by PHP. Maybe someone at PHP will answer our prayers and include a patch for this functi

RE: [PHP] File upload progress

2004-04-06 Thread Jeff McKeon
> > I posted about this the other day. I was directed to look at > megaupload http://www.raditha.com/megaupload/ > > It works pretty well, I believe it uses Apache::Request to > get the raw post info. > Unfortunately, the web server being used is IIS on a Windows Server, not Apache > Issues

RE: [PHP] File upload progress

2004-04-06 Thread Jeff McKeon
> -Original Message- > From: Steve Murphy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 06, 2004 4:58 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] File upload progress > > > I posted about this the other day. I was directed to look at > megaupload http://www.raditha.com/megaupload

Re: [PHP] notice:use of undefined constant: add-assumed 'add' in..........

2004-04-06 Thread John W. Holmes
From: "Andy B" <[EMAIL PROTECTED]> > i have something like this: > if(!empty($_SESSION['add']['start_date']) && !empty($_SESSION['add']['end_date'])..)){ > > and i get the unexpected error: > notice:use of undefined constant: add-assumed 'add' in (filename). Double check your code. In

Re: [PHP] File upload progress

2004-04-06 Thread John W. Holmes
From: "Jeff McKeon" <[EMAIL PROTECTED]> > Does anyone know of a way to display the %complete of a file upload > using a form (POST) method? Look on phpclasses.org. I noticed there was a class mentioned in their last mailer that did just this. ---John Holmes... -- PHP General Mailing List (http

RE: [PHP] File upload progress

2004-04-06 Thread Steve Murphy
I posted about this the other day. I was directed to look at megaupload http://www.raditha.com/megaupload/ It works pretty well, I believe it uses Apache::Request to get the raw post info. Issues in general: Whenever this issue comes up people will ask why you need the functionality? I have a c

Re: [PHP] smarty

2004-04-06 Thread Chris de Vidal
John W. Holmes said: >> I could have put a tag in the template like {bio} but that'd mean >> maintaining HTML in the PHP code which I wanted to avoid (left the >> "prettyness" to the Front Page developer). Instead, I put something >> like >> this in the template: >> {if $level > 2} >> {bio} >> {/

RE: [PHP] smarty

2004-04-06 Thread Chris de Vidal
Chris W. Parker said: >> I could have put a tag in the template like {bio} but that'd mean >> maintaining HTML in the PHP code which I wanted to avoid (left the >> "prettyness" to the Front Page developer). Instead, I put something >> like this in the template: >> {if $level > 2} >> {bio} I shou

RE: [PHP] notice:use of undefined constant: add-assumed 'add' in..........

2004-04-06 Thread Jay Blanchard
[snip] i have something like this: if(!empty($_SESSION['add']['start_date']) && !empty($_SESSION['add']['end_date'])..)){ and i get the unexpected error: notice:use of undefined constant: add-assumed 'add' in (filename). dont quite understand why that is since i used other code that i

[PHP] File upload progress

2004-04-06 Thread Jeff McKeon
Does anyone know of a way to display the %complete of a file upload using a form (POST) method? In other words, I have a form for uploading files to the server. The files are pretty large, 50,000+ lines and it takes a good 3-4 minutes to upload. Is there any way to show the progress of this uplo

[PHP] notice:use of undefined constant: add-assumed 'add' in..........

2004-04-06 Thread Andy B
i have something like this: if(!empty($_SESSION['add']['start_date']) && !empty($_SESSION['add']['end_date'])..)){ and i get the unexpected error: notice:use of undefined constant: add-assumed 'add' in (filename). dont quite understand why that is since i used other code that i have

Re: [PHP] smarty

2004-04-06 Thread Chris de Vidal
Kelly Hallman said: > Apr 6 at 2:43pm, Chris de Vidal wrote: >> Given that scripts are compiled the first time they're ran, you'll >> never* notice the bloat and never lack performance; it's the same as >> real PHP code and can be optimized with a caching engine like Zend. > > Certainly. However, t

[PHP] [fixed][PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Andy B
"date() expects a UNIX timestamp. MMDDHHMMSS is NOT a UNIX timestamp. So, instead of converting the UNIX timestamp to MMDDHHMMSS in your function, why not leave it a UNIX timestamp? Then you can send it through date() whenever you want it formatted. " yea...it works now...hmmm... dont know

Re: [PHP] Pulling Certain Data

2004-04-06 Thread Daniel Clark
Try something like this. (assuming "POSITION" is your peoples status within the organization $r1="SELECT * FROM $main_tbl WHERE position IN ('A', 'I', 'L') ORDER BY position"; > I would like to only show people who are active within our roster and > within > the database I have identified those

RE: [PHP] combining variables...

2004-04-06 Thread Vishal Patel
You could dynamically generate variable names using: ${view_request_}.$i} = $value; This will generate: $view_request_1 $view_request_2 ... Vishal. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:14 PM To: [EMAIL PROTECTED] Subject: [

[PHP] Thanks for all the helped!

2004-04-06 Thread Jason T. Davidson
Looks like I went to the right place as I got many responses and what gave me three days of headaches only took 5 mintues. Thanks Again! -Jason T. Davidson

Re: [PHP] Not exactly PHP....

2004-04-06 Thread Red Wingate
[...] > > [snip] > > can anyone email me explaining me how to crate my own news group? for > > free... > > [/snip] > > > > First, you get a box (sometimes known as a crate) > > > > Brought to you by the This Message Didn't Cost You a Dime & May Have > > Brought A Smile To Another's Face Committ

Re: [PHP] Not exactly PHP....

2004-04-06 Thread Christian Jerono
[...] > > [snip] > > can anyone email me explaining me how to crate my own news group? for > > free... > > [/snip] > > > > First, you get a box (sometimes known as a crate) > > > > Brought to you by the This Message Didn't Cost You a Dime & May Have > > Brought A Smile To Another's Face Committ

Re: [PHP] Pulling Certain Data

2004-04-06 Thread hitek
Sounds like you need a where clause in your sql query: $r1="SELECT * FROM $main_tbl where status='A'"; replace 'status' with whatever you called the status field in your table. Keith At 12:40 PM 4/6/2004, Jason T. Davidson wrote: Community- I am a first time databaser and am having trouble pul

Re: [PHP] Pulling Certain Data

2004-04-06 Thread John W. Holmes
From: "Jason T. Davidson" <[EMAIL PROTECTED]> > I am a first time databaser and am having trouble pulling information from a > database to display on a site. Not every entry is supposed to show up on > the web page, but does so. I have tried IF statements without any help. > Here is what I have

RE: [PHP] Pulling Certain Data

2004-04-06 Thread Jay Blanchard
[snip] I am a first time databaser and am having trouble pulling information from a database to display on a site. Not every entry is supposed to show up on the web page, but does so. I have tried IF statements without any help. Here is what I have so far: $r1="SELECT * FROM $main_tbl"; [/snip]

RE: [PHP] Not exactly PHP....

2004-04-06 Thread Chris W. Parker
Jay Blanchard on Tuesday, April 06, 2004 12:37 PM said: > [snip] > can anyone email me explaining me how to crate my own news group? for > free... > [/snip] > > First, you get a box (sometimes known as a crate) > > Brought to you by the This Message Didn't Cost

[PHP] Pulling Certain Data

2004-04-06 Thread Jason T. Davidson
Community- I am a first time databaser and am having trouble pulling information from a database to display on a site. Not every entry is supposed to show up on the web page, but does so. I have tried IF statements without any help. Here is what I have so far:

RE: [PHP] Not exactly PHP....

2004-04-06 Thread Jay Blanchard
[snip] can anyone email me explaining me how to crate my own news group? for free... [/snip] First, you get a box (sometimes known as a crate) Brought to you by the This Message Didn't Cost You a Dime & May Have Brought A Smile To Another's Face Committee, R. Feynman, Treasurer -- PHP Genera

Re: [PHP] smarty

2004-04-06 Thread Kelly Hallman
Apr 6 at 2:43pm, Chris de Vidal wrote: > Given that scripts are compiled the first time they're ran, you'll > never* notice the bloat and never lack performance; it's the same as > real PHP code and can be optimized with a caching engine like Zend. Certainly. However, the Smarty compiler is about

[PHP] Not exactly PHP....

2004-04-06 Thread Shimi
can anyone email me explaining me how to crate my own news group? for free... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Keyword Search

2004-04-06 Thread John W. Holmes
From: "Robb Kerr" <[EMAIL PROTECTED]> > I've inherited a database so must live with a less than elegant structure. > The table contains one "keyword" field into which the author has entered > things like... > > Record 1 = Apples > Record 2 = Apples, Bananas > Record 3 = Apples, Figs > Record 4 = B

Re: [PHP] Validating form field text input to be a specific variable type

2004-04-06 Thread John W. Holmes
From: "Merritt, Dave" <[EMAIL PROTECTED]> > I have a form on which the user is supposed to select a variable type > (boolean, integer, real, date/time, text) from a select box and enter the > default value for this selected variable type in a text box. I'm trying to > validate that the default va

Re: [PHP] combining variables...

2004-04-06 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > Sadly, it didnb't work... > > here's my code... I wanna repeat and output final variables 6 times... > > == > > for ($i = 1; $i <= 6; $i++) { > > if ($view_request_bu_$i != '') { >

Re: [PHP] smarty

2004-04-06 Thread John W. Holmes
From: "Chris de Vidal" <[EMAIL PROTECTED]> > I could have put a tag in the template like {bio} but that'd mean > maintaining HTML in the PHP code which I wanted to avoid (left the > "prettyness" to the Front Page developer). Instead, I put something like > this in the template: > {if $level > 2}

[PHP] Re: GD installation

2004-04-06 Thread Shimi
Please im desperet for help! "Shimi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > im having a problem installing the GD library > OS - Windows XP Pro > PHP - 4.3.5 > i tried in the PHP.INI get the ";" of the line with the GD extension > and im getting an error that the file not fou

[PHP] Re: [php 5] static class variable question

2004-04-06 Thread Bill Zeller
A note: > by creating a class called myProject and having Audio and System be static > variables, referring to the classes Audio and System. The Audio and System This should be constant, not static. Sorry. -bill "Bill Zeller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [PHP5 RC

RE: [PHP] smarty

2004-04-06 Thread Chris W. Parker
Chris de Vidal on Tuesday, April 06, 2004 11:43 AM said: > I could have put a tag in the template like {bio} but that'd mean > maintaining HTML in the PHP code which I wanted to avoid (left the > "prettyness" to the Front Page developer). Instead, I put something >

[PHP] Using Amazon Web Services - Publisher Results

2004-04-06 Thread Nicole
I read these 2 articles to get me started with using Amazon Web Services: http://www.devshed.com/c/a/PHP/Usin...-SOAP-part-1/ && http://www.devshed.com/c/a/PHP/Usin...-SOAP-part-2/ I have a page with a Table of Contents linking to specific Browse Nodes that would be of interest to our viewers. I

[PHP] [php 5] static class variable question

2004-04-06 Thread Bill Zeller
[PHP5 RC1, Windows XP Pro] Hi, I have a few classes called Audio, System, etc. In order to not pollute the namespace (if someone else has a System class, for example), I'd like to separate my classes. One way of doing this would be to preprend each class with some text, to make my classes somethin

Re: [PHP] combining variables...

2004-04-06 Thread John W. Holmes
From: <[EMAIL PROTECTED]> > I want to output: > $view_request_$i echo ${'view_request_'.$i}; echo ${"view_request_$i"}; Read the manual section on Variable Variables, please. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] smarty

2004-04-06 Thread Chris de Vidal
Kelly Hallman said: > Apr 6 at 5:33pm, Angelo Zanetti wrote: >> hi all has anyone used smarty before? what do you think of it? I think >> it's pretty nice to seperate your script (code) from your design. >> i would like to hear your comments and if you have any alternatives > > There are a lot of t

Re: [PHP] Connecting to Databases

2004-04-06 Thread John W. Holmes
From: "Robb Kerr" <[EMAIL PROTECTED]> > I solved the problem by adding my IP address to the Access Hosts list for > the database. Fortunately I use a cable modem with a static IP address, but > if I were using a dialup with a dynamic IP, would I have to add that IP as > an Access Host every time I

Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread John W. Holmes
From: "Andy B" <[EMAIL PROTECTED]> > > Replace the above two lines with > > > > $time = date('YmdHis', mktime(0,0,0,$month,$day,$year); > > > > ok the function works now because when i echo the output of > $_SESSION['add']['start_date'] it shows the right 14 digit timestamp for the > date i wanted

Re: [PHP] Connecting to Databases

2004-04-06 Thread John W. Holmes
From: "Robb Kerr" <[EMAIL PROTECTED]> > Unfortunately, SQLyog and Dreamweaver reside on the same machine. Should I > create a new user for the database which is "[EMAIL PROTECTED]"? Why would > SQLyog require this while Dreamweaver does not? And, why doesn't identical > connection information work

[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread Ben Ramsey
I've asked about PHP Access Violation errors before (this very same error, as a matter of fact), and every time I ask, I get no response. It's been 24 hours, and no one on php-general, pear-general, or #php and #pear in Freenode IRC has responded to this particular post. Do I smell bad? Please

Re: [PHP] combining variables...

2004-04-06 Thread Christian Jerono
Guess it will work this way (think it's the right syntax :-)) for ($i = 1; $i <= 6; $i++) { if (${'view_request_bu_'.$i} != '') { ... } } etc pp. Am Dienstag, 6. April 2004 19:24 schrieb [EMAIL PROTECTED]: > Sadly, it didnb't work... > > here's my code... I wanna repeat and outpu

[PHP] Validating form field text input to be a specific variable type

2004-04-06 Thread Merritt, Dave
All, I have a form on which the user is supposed to select a variable type (boolean, integer, real, date/time, text) from a select box and enter the default value for this selected variable type in a text box. I'm trying to validate that the default value entered matches the variable type selecte

Re: [PHP] php + lynx + grep

2004-04-06 Thread gohaku
On Apr 6, 2004, at 12:53 PM, Brian L. Ollom wrote: Try $output = `lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1` Those are backticks, not single quotes surrounding the command. I use following to retrieve output with Lynx: $out =

Re: [PHP] Connecting to Databases

2004-04-06 Thread gohaku
On Apr 6, 2004, at 10:57 AM, Robb Kerr wrote: I know that this message is more related to MySQL than PHP but I don't know of a good MySQL board. This board is VERY active and useful. Have you checked out MySQL General Discussion over at: http://lists.mysql.com/ ? -- PHP General Mailing List (http

Re: [PHP] php + lynx + grep

2004-04-06 Thread John Nichel
Brian L. Ollom wrote: What's the output you're looking for. When I run that line of code, and echo out $output, I get... KTOL 061552Z 22013KT 10SM CLR 11/M03 A3001 RMK AO2 SLP164 T0033 On a website or command line? Command line is the easy part, but I'm having problems getting that to work

Re: [PHP] Re: combining variables...

2004-04-06 Thread Richard Davey
Hello K.Bogac, Tuesday, April 6, 2004, 6:34:50 PM, you wrote: KBB> $i = 2; KBB> $var = "view_request_$i"; KBB> $value = $$var; That's it, I knew there was a variable variable ($$) in there somewhere :) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP Genera

[PHP] Re: combining variables...

2004-04-06 Thread K.Bogac Bokeer
$i = 2; $var = "view_request_$i"; $value = $$var; Tristan Pretty wrote: Simply put, can I connect 2 variables, to make one... I want to output: $view_request_$i making for example a string: view_all_2 But I'm getting errors..? Parse error: parse error in /home/risk/public_html/download/results3.

Re: [PHP] combining variables...

2004-04-06 Thread Tristan . Pretty
Sadly, it didnb't work... here's my code... I wanna repeat and output final variables 6 times... == for ($i = 1; $i <= 6; $i++) { if ($view_request_bu_$i != '') { $view_request_$i = strtolower($view_request_bu_$i); } else if ($

[PHP] xml_set_default_handler under php5

2004-04-06 Thread Hundiak, Arthur
I can't seem to get xml_set_default_handler to work under php5RC1. I made a very simple test case but the handler just does not seemed to be getting called. It works under 4.3.4. I gather the xml_ routines now use libxml2 instead of expat. I have libxml2 2.6.5 which is pretty recent. Anyone el

Re: [PHP] combining variables...

2004-04-06 Thread Richard Davey
Hello Tristan, Tuesday, April 6, 2004, 6:14:19 PM, you wrote: TPrsc> Simply put, can I connect 2 variables, to make one... TPrsc> I want to output: TPrsc> $view_request_$i TPrsc> making for example a string: TPrsc> view_all_2 I believe it's $view_request_$$i -- Best regards, Richard Davey

Re: [PHP] php + lynx + grep

2004-04-06 Thread John Nichel
Brian L. Ollom wrote: Try $output = `lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1` Those are backticks, not single quotes surrounding the command. Backticks didn't work either. I got it to work by using a cron to > the info int

[PHP] combining variables...

2004-04-06 Thread Tristan . Pretty
Simply put, can I connect 2 variables, to make one... I want to output: $view_request_$i making for example a string: view_all_2 But I'm getting errors..? Parse error: parse error in /home/risk/public_html/download/results3.php on line 675 is there a simple explination...? **

Re: [PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
> Functions like system, exec etc aren't supported by most ISP > ( at least over here in germany ). But you might give > > file_get_contents(); > file(); > ... > > a look as they can read the output of HTTP request which might > be easier: > > $var = file > ( 'http://weather.noaa.gov/weather/cu

Re: [PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
> Try > > $output = `lynx --source > http://weather.noaa.gov/weather/current/KTOL.html |grep -v > '41-35-19N' |grep TOL | head -n 1` > > Those are backticks, not single quotes surrounding the > command. Backticks didn't work either. I got it to work by using a cron to > the info into a tex

  1   2   >