[PHP] array_filter

2003-02-25 Thread David Otton
I suspect this can't be done in PHP. However... Is it possible to pass additional parameters to the callback function used by array_filter()? I guess I'm looking for something functionally equivalent to this Python code: from string import count list = ('apple', 'avacado', 'banana',

[PHP] .NET to PHP+NuSOAP

2003-02-25 Thread Hilmi Hilmiev
Hi all, I have software developed with ASP.NET. The program is web service program who communicates with client side - windows application using SOAP messages developed with VB .NET. I have all of the source files from web service project developed with ASP.NET. My question: Is a possible

RE: [PHP] cookie problemes (solved with javascript)

2003-02-25 Thread kale
I not a expert in javascript but this code is working. I guess it is easy to change some line of code to work for your neads. Kale // kale's code

[PHP] reminder mail when date is within a month of today.

2003-02-25 Thread Petre Agenbag
HI I'm having a bad thinking day. I know it's going to be a very easy solution, but please humour me. I have a mysql table with a bunch of subscribers and the date that they subscribed. I want to query the table to find all the subscribers who will come up for renewal within the current month. So,

[PHP] reminder mail cont.

2003-02-25 Thread Petre Agenbag
Sorry, forgot to mention, the subscription is annual, so the subscription date I have for the subscriber is lets say 2002-02-28 , so I want to capture that he will need to renew by 2003-02-28 as well as all people past today's date... -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] cookie problemes (solved with javascript)

2003-02-25 Thread Awlad Hussain
Thanks Kale, I'll have a go with your code - Original Message - From: kale [EMAIL PROTECTED] To: Php. Net [EMAIL PROTECTED] Cc: 'Awlad Hussain' [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:29 AM Subject: RE: [PHP] cookie problemes (solved with javascript) I not a expert in

Re: [PHP] reminder mail when date is within a month of today.

2003-02-25 Thread Sunfire
well... $query=mysql_query(select * from TableName where month(FieldNameForDate)=month(FieldOfDate)+1); that should do it.. or at least it does on mine anyways... - Original Message - From: Petre Agenbag [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:07 AM

[PHP] Newbie Security Questions...

2003-02-25 Thread Miguel Angelo
Hi all, First thankx for reading this !. I'm a Newbie in PHP, previously i was doing web stuff in perl. I want to do a site were you login, and depending on the login account the user receives a given set of permissions. From what i have studid the session management, were you

[PHP] How to get tree structure into an array?

2003-02-25 Thread Konference
Hi all! i have to solve one problem, but i have no idea how to make this. I have got a tree strucutre in mysql table, id - parent - name. I need make function, which return array which will contains a strucutre of this tree-menu, table example: ID Parent Name -- --

Re: [PHP] phpmyadmin duplication of sql

2003-02-25 Thread David Eisenhart
have you attempted to simply create the table and column using the sql text box (ie not using the create table interface)? eg pasting and submitting something like: CREATE TABLE t2 ( y varchar(5) ) TYPE=MyISAM; (I appreciate this does not address the reason behind the actual problem you are

Re: [PHP] Newbie Security Questions...

2003-02-25 Thread Justin French
on 25/02/03 1:10 PM, Miguel Angelo ([EMAIL PROTECTED]) wrote: From what i have studid the session management, were you start a session id, and can put in several variables... My question is this, this variables remain were ? on the user browser (cookies, url enconding ?) or does the user just

Re: [PHP] How to get tree structure into an array?

2003-02-25 Thread Chris Hayes
At 11:16 25-2-03, you wrote: Hi all! i have to solve one problem, but i have no idea how to make this. I have got a tree strucutre in mysql table, id - parent - name. I need make function, which return array which will contains a strucutre of this tree-menu, table example: ID Parent Name

Re: [PHP] explode( , $pizza)

2003-02-25 Thread Sascha Braun
Hi, i found something like: var s = This,is,a,String; lenght = s.lenght; document.write(s.bold()); t = s.substring(2,4); a = s.split(,); // This line is the most interesting one ;)) document.write(a[1]); // should write the word 'is' Dont know if it works, i just looked in one of my old books.

RE: [PHP] explode( , $pizza)

2003-02-25 Thread Tim
The following example illustrates the use of the split method. function SplitDemo(){ var s, ss; var s = The rain in Spain falls mainly in the plain.; // Split at each space character. ss = s.split( ); return(ss); } HTH t. -Message d'origine- De : John Taylor-Johnston

RE: [PHP] Zend Encoder

2003-02-25 Thread Brad Young
Hi, Allow me to clear the air: 1. Zend does not have a way to decode a php file that was encoded using Zend Encoder. (For those of you paying attention to details, note the word decode, not decrypt. Zend Encoder does not encrypt. US gov't lawyers, please take note :) 2. Even the

Re: [PHP] Live chat screen

2003-02-25 Thread Sascha Braun
Try to take a look at PHP Socketprogramming and Flash XML Sockets, this is one of the most usable ways of handling things like that. - Original Message - From: Sami Kyösti [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:34 PM Subject: [PHP] Live chat screen

Re: [PHP] reminder mail when date is within a month of today.

2003-02-25 Thread Petre Agenbag
Thanks for the quick response. Just to clarify: $query=mysql_query(select * from TableName where month(FieldNameForDate)=month(FieldOfDate)+1); Which one of the dates in your query is the system's date and which is the one from the db? Also, I need not just the ones that are true, but also the

Re: [PHP] How to get tree structure into an array?

2003-02-25 Thread Chris Hayes
the longer i stare at it the more i think it may do the job. i'm not sure. expecially about the 'sub'=buildtree($ID) part. function buildtree($parentID=0) { $result=query(SELECT ID, Parent,Name FROM sourcetable WHERE Parent=$parentID) or die('error:'.mysql_error()); walkthrough $result //use

RE: [PHP] creating flat versions of php pages

2003-02-25 Thread Mark Cubitt
alright mate, I've never used php or perl to trawler through a site like that before, although I'm sure it is possible, what with have done is made a perl script to create static html pages with a template text file and inserting the relevant information on the page from the database, I'm guessing

[PHP] FormatDateTime in PHP

2003-02-25 Thread Skyhawk
Please, How do I make to format my date in the my format? For Example: ## I filter $filter = SELECT DTVECTO FROM CLIENTS; $result = mysql_query($filter); $rows = mysql_num_rows($result); while($rows = mysql_fetch_array($result)) { ## I get date to the data base $my_date =

Re: [PHP] FormatDateTime in PHP

2003-02-25 Thread Chris Hayes
At 13:25 25-2-03, you wrote: Please, How do I make to format my date in the my format? For Example: you forgot to tell how the date in the database is formatted, that is quite important. did you read the php manual on date() ? http://www.php.net/manual/en/function.date.php ## I filter $filter

RE: [PHP] FormatDateTime in PHP

2003-02-25 Thread Adrian Portsmouth
No don't use the PHP date function, MySQL has an inbuilt function exactly for this. See DATE_FORMAT http://www.mysql.com/doc/en/Date_and_time_functions.html HTH Adrian www.phpscriptsearch.com -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: 25 February 2003 12:32

[PHP] PHP PDF attachment

2003-02-25 Thread Steve Jackson
Can anyone help. I have code which will send email with an attachment via PHP however when it arrives to the destination email the PDF file is empty. I have come across a few emails where people have had the same problem but no answers. Any ideas? Using the normal mail() function with the code

[PHP] Fputs including php syntax?

2003-02-25 Thread MIKE YRABEDRA
Is it possible to use 'fputs' to write to a text file and include php code within it? That way the generated page will have working php syntax within. How do I make it so the php code is treated like text and not code? -- Mike Yrabedra President 323, Inc. Home of The MacDock and The

Re: [PHP] FormatDateTime in PHP

2003-02-25 Thread Skyhawk
thanks to all Adrian Portsmouth [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] No don't use the PHP date function, MySQL has an inbuilt function exactly for this. See DATE_FORMAT http://www.mysql.com/doc/en/Date_and_time_functions.html HTH Adrian www.phpscriptsearch.com

php-general Digest 25 Feb 2003 14:37:45 -0000 Issue 1904

2003-02-25 Thread php-general-digest-help
php-general Digest 25 Feb 2003 14:37:45 - Issue 1904 Topics (messages 137026 through 137068): Re: Passing emails to database 137026 by: Justin French Re: PHP Script 137027 by: Leo Spalteholz 137029 by: Stephen Craton Re: PHP_SELF syntax 137028 by: Justin

[PHP] Send mail with hidden copy.

2003-02-25 Thread Skyhawk
How do I make to I send mail with hidden copy? What the correct sintax?? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fputs including php syntax?

2003-02-25 Thread Wico de Leeuw
fput($fp, '? phpinfo(); ?'); should work else try fput($fp, '' . '?' . \n); fput($fp, 'phpinfo() . \n); fput($fp, '?' . '' . \n); Greetz At 09:27 25-2-03 -0500, MIKE YRABEDRA wrote: Is it possible to use 'fputs' to write to a text file and include php code within it? That way the generated

Re: [PHP] Send mail with hidden copy.

2003-02-25 Thread Wico de Leeuw
add an etra header (see mail function) and use the bcc: email header Gr At 11:39 25-2-03 -0300, Skyhawk wrote: How do I make to I send mail with hidden copy? What the correct sintax?? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] editing field value using selectbox with options

2003-02-25 Thread Denis L. Menezes
Hello friends. In an edit form, I need the following select box. select name=MemPicSalutation id=MemPicSalutation option value=Mr.Mr./option option value=Ms.Ms./option option value=Mrs.Mrs./option option value=Dr.Dr./option option

[PHP] Re: preg_replace with /e modifier

2003-02-25 Thread aw2001
Thanks John! Sorry to pester you any more, but how can I match all Ascii characters? I can't seem to find it on 'http://www.php.net/manual/en/pcre.pattern.syntax.php' (The period is matching Ascii characters and giving me this) Unexpected character in input: ' ' (ASCII=23) state=2 Also how many

Re: [PHP] editing field value using selectbox with options

2003-02-25 Thread Rick Emery
$titles = array(Mr.,Ms.,Mrs.,Dr.,Capt.); print select name=\MemPicSalutation\ id=\MemPicSalutation\\n; foreach($titles as $value) { if($row['title]==$value) $sel=SELECTED; else unset($sel); print option value=\$value $sel$value/option\n; } print /select\n; - Original Message -

[PHP] getting data from a HTML table

2003-02-25 Thread Christopher J. Crane
I use a website to get data that I would like with the following code: !--- code start --- function StockLookup($company) { $LookupUrl = http://quote.yahoo.com/l?s=$company;; $Results = implode('', file($LookupUrl)); list($split1, $split2) = split('!--- Background table---', $Results);

[PHP] Processing Form Input and MySQL - Best Practices?

2003-02-25 Thread Mike Walsh
I was hoping someone could point me to an article about some recommended best practices with respect to taking form data (entered by a user), storing it in MySQL, extracting it again and displaying it back on a web page. In particular, I want to make sure someone isn't entering data that could

[PHP] page shown, but browser keeps doing something

2003-02-25 Thread Chris Hayes (SENSE)
hi list, i'm working on my local WAMP on a PHP module to fit in a cms, and i fail to understand what is taking the browser so much time _after_ the page is completely visible. Statusbar says still loading the page. Javascript links and the refresh function of the browser are reluctant. When i

[PHP] Re: new to php, need help..

2003-02-25 Thread Steve Magruder
Jonathan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] all the suggestions didn't work though, could it be as what chris said, my IE doesn't support php? PHP is server-side. IE has no issues whatsoever with loading HTML generated from PHP. The PHP constructs are dealt with on the

[PHP] My server cannot displayed a php extension file.

2003-02-25 Thread Mahmut KARADEMIR
Hi All; I am new to PHP.I have manually installed it to my Windows 2000 server that runs on IIS 5.0 . But also it included a .php file if i write correct url it could not displayed the file on E5.5. What is the problem? Any recomendation will be appreciated. Thanks. Mahmut

RE: [PHP] page shown, but browser keeps doing something

2003-02-25 Thread Cal Evans
are you preloading graphics using JavaScript? * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Chris Hayes (SENSE) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:13 AM To: [EMAIL PROTECTED] Subject: [PHP] page shown,

Re: [PHP] My server cannot displayed a php extension file.

2003-02-25 Thread Chris Hayes
At 16:54 25-2-03, you wrote: I am new to PHP.I have manually installed it to my Windows 2000 server that runs on IIS 5.0 . But also it included a .php file if i write correct url it could not displayed the file on ÝE5.5. What is the problem? * does the server work with html files? * which

Re: [PHP] Send mail with hidden copy.

2003-02-25 Thread Denis L. Menezes
Or just make another mail() function with new variables. Denis - Original Message - From: Wico de Leeuw [EMAIL PROTECTED] To: Skyhawk [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:41 PM Subject: Re: [PHP] Send mail with hidden copy. add an etra header (see

[PHP] server problem?

2003-02-25 Thread Chris Hayes
i made some adjustments to the internet settings via internet explorer on win98, and now when i try to access a file on the localhost (apache) i get with every browser a file download dialog. ie's dialog says when i try http://137.224.157.67 (used to work) filename 137.224.157[1] filetype

RE: [PHP] page shown, but browser keeps doing something

2003-02-25 Thread Chris Hayes
At 17:01 25-2-03, you wrote: are you preloading graphics using JavaScript? well, i turned javascript off so that can't be it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Splitting a date string

2003-02-25 Thread Denis L. Menezes
Hello friends, I have a date string in the format -mm-dd in the MySQL database. In my edit form I need to split this date string to get $Year as , $month as mm and $day as dd . Can someone please help me with the code? Thanks Denis

[PHP] Re: Memory exceeding

2003-02-25 Thread Steve Magruder
Markas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi... I got a big site, which is not very well constructed inside, and the script began to throw (rather often, but NOT always) a fatal error Fatal error: Allowed memory size of 8388608 bytes exhausted , every time in different

Re: [PHP] Splitting a date string

2003-02-25 Thread Ernest E Vogelsinger
At 17:13 25.02.2003, Denis L. Menezes said: [snip] I have a date string in the format -mm-dd in the MySQL database. In my edit form I need to split this date string to get $Year as , $month as mm and $day as dd .

Re: [PHP] server problem?

2003-02-25 Thread Chris Hayes
At 17:06 25-2-03, you wrote: i made some adjustments to the internet settings via internet explorer on win98, and now when i try to access a file on the localhost (apache) i get with every browser a file download dialog. ie's dialog says when i try http://137.224.157.67 (used to work) filename

[PHP] Trouble Passing Variables On Test Server

2003-02-25 Thread Randum Ian
Hi guys, I have installed a test sever from those guys are FirePages.com.au on my Windows XP Machine at home to test websites on http://localhost. The only problem is the forms are not passing on the variables. I have used the same scripts on a webserver and they work fine. Could anyone tell me

Re: [PHP] Trouble Passing Variables On Test Server

2003-02-25 Thread Ernest E Vogelsinger
At 17:49 25.02.2003, Randum Ian said: [snip] Hi guys, I have installed a test sever from those guys are FirePages.com.au on my Windows XP Machine at home to test websites on http://localhost. The only problem is the forms are not passing on the variables.

Re: [PHP] Trouble Passing Variables On Test Server

2003-02-25 Thread Chris Hayes
At 17:49 25-2-03, you wrote: Hi guys, I have installed a test sever from those guys are FirePages.com.au on my Windows XP Machine at home to test websites on http://localhost. The only problem is the forms are not passing on the variables. I have used the same scripts on a webserver and they work

Re: [PHP] Zend Encoder

2003-02-25 Thread Thomas Johnsson
1. Zend does not have a way to decode a php file that was encoded using Zend Encoder. (For those of you paying attention to details, note the word decode, not decrypt. Zend Encoder does not encrypt. US gov't lawyers, please take note :) Are you not allowed, according to US laws, to encrypt

Re: [PHP] derive function that called a function?

2003-02-25 Thread Marek Kilimajer
This is not possible, but future version of zend engine should provide a function stack. Shawn McKenzie wrote: Is there any way to determine what function (if any) called a particular function??? Example: function myFuncA() { myFuncB(); } function myFuncB() { some stufff; } In

[PHP] Re: Editors

2003-02-25 Thread James Hatridge
HI Pierre et al On Sunday 23 February 2003 11:14, Pierre Vaudrey wrote: Hi, The site is http://www.maguma.com Pierre This interested me too. So I looked at the site but was only able to find an exe file. Do you know where I can get a Linux tar ball or RPM file? Thanks JIM

Re: [PHP] Re: Editors

2003-02-25 Thread Richard Whitney
A search on rpmfind.net produced no results Perhaps it has not been ported to linux Quoting James Hatridge [EMAIL PROTECTED]: ### HI Pierre et al ### ### On Sunday 23 February 2003 11:14, Pierre Vaudrey wrote: ### Hi, ### ###The site is http://www.maguma.com ### ### Pierre ### ###

[PHP] help me please

2003-02-25 Thread bionicegg
Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to another site, it does not function. I contacted my hosting company (both sites are on the same server), they told me that I needed to check the script and that it

[PHP] Please help me with this .php file

2003-02-25 Thread bionicegg
Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to another site, it does not function. I contacted my hosting company (both sites are on the same server), they told me that I needed to check the script and that it has

[PHP] help please

2003-02-25 Thread bionicegg
Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to another site, it does not function. I contacted my hosting company (both sites are on the same server), they told me that I needed to check the script and that it

[PHP] help please

2003-02-25 Thread bionicegg
Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to another site, it does not function. I contacted my hosting company (both sites are on the same server), they told me that I needed to check the script and that it

RE: [PHP] Re: Editors

2003-02-25 Thread Pierre Vaudrey
The download address is : http://www.maguma.com/products/download.php Pierre -Message d'origine- De : James Hatridge [mailto:[EMAIL PROTECTED] Envoyé : mardi 25 février 2003 15:40 À : Pierre Vaudrey; Karl James; [EMAIL PROTECTED] Objet : [PHP] Re: Editors HI Pierre et al On Sunday

Fw: [PHP] help me please

2003-02-25 Thread Rick Emery
You don't have to break up the strings: mail($ToName $ToEmail,$ToSubject, $EmailBody, From: $FirstName $Email); What are values of $ToName and $FirstName? why did you submit tghis 3 times? - Original Message - From: bionicegg [EMAIL PROTECTED] To: Sent: Tuesday, February 25, 2003 11:38

Fwd: Re: [PHP] help please

2003-02-25 Thread Chris Hayes
There is no need to post this thrice. Anyway. What went wrong? Did you get an error message? Are both sites on the same machine? At 18:40 25-2-03, you wrote: Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to

[PHP] Uploading Images

2003-02-25 Thread clarionhaze
Hey guys I need to make a place for people to upload images and then I need to make sure the file size is alright and the pixel size too... Could someone please send me in the right direction? -steven

[PHP] Re: help please

2003-02-25 Thread R'twick Niceorgaw
Please don't multi post. How you getting the $ToName $FirstName etc fields ? Are they submitted via a form? If so, check the register_globals setting on the server where it is not working. You need to set it on or use $_POST /$_GET variables. HTH R'twick Bionicegg [EMAIL PROTECTED] wrote in

Re: [PHP] help please

2003-02-25 Thread Chris Hayes
Mark, you've GOT to give us something to work on. We're not ESP, well, at least I am not. Try debugging a bit. Echo all values just before you do the mail(), see whether they really are what you thought they were. Try a simple script that will only send a mail, take the example from the

Re: [PHP] help please

2003-02-25 Thread John Nichel
Do you need an answer for each of the times that you posted it? 1) Posting code is good, however telling us it doesn't work is no good. What are the error messages, if any? Why is it not working, ie what did you expect it to do? 2) What version of php on the old site as compared to the new

RE: [PHP] help please

2003-02-25 Thread Van Andel, Robbert
It would be helpful to find out what error messages you are getting when you run the script. if(!mail($ToName. .$ToEmail.,$ToSubject, $EmailBody, From: .$FirstName..$Email.)) die(Unable to send message); would be a good start. I'm not sure if there is a system error you could replace unable to

Re: [PHP] Uploading Images

2003-02-25 Thread Marek Kilimajer
http://www.php.net/manual/en/ sections 18. Handling file uploads XXX. http://www.php.net/manual/en/features.file-upload.phpFilesystem functions XLI. http://www.php.net/manual/en/ref.filesystem.phpImage functions http://www.php.net/manual/en/ref.image.php clarionhaze wrote: Hey guys I need to

Re: [PHP] help please

2003-02-25 Thread John Nichel
My guess is that register globals is turned off on your new site. Or maybe, the new site isn't set up to parse php with *.html extensions. Being that it's all embedded flash, I can't give you much more than that. bionicegg wrote: John, Im so sorry about the posting three times, I didnt know

[PHP] Out of Range

2003-02-25 Thread Todd Barr
here is my code $Query = SELECT Last_Login and Current_Login from Security where PM_ID=$_SESSION[ID]; $Getdates = odbc_do($link, $Query); while(odbc_fetch_row($Getdates)) { $Last=odbc_result($Getdates, 1); $Now=odbc_result($Getdates, 2); Now I get an error that tells me that #2 is out

[PHP] browscap file problem?

2003-02-25 Thread solex
Hi all I am trying to use the get_browser() function It relies on the browscap directive in php.ini to be set to the absolute path location of the browscap.ini file. I have no control over the php.ini file as I am on a shared server. My hosting company have put the browscap.ini file on the server

[PHP] line number

2003-02-25 Thread Chandler, Jacob R
What function can I use to find out the current line number?

[PHP] simple problem about authentication

2003-02-25 Thread Oliver Witt
Hi, I'm trying to set up a password section on my website. But I don't want a window popping up asking for a username and password. I'd rather like to have a form that submits the data. I did that and it works fine, but the browser seems to not save the username and password, because if i click on

[PHP] Running system commands

2003-02-25 Thread ed
Before I ask, I have read the documentation but nothing seems to work. I want to run a system command from behind the scenes (totally secure area of my server) that creates a directory and changes permissions on it. i.e. system (mkdir $path); Example above uses a value from a form passed to

Re: [PHP] line number

2003-02-25 Thread 1LT John W. Holmes
The constant __LINE__ works well. ---John Holmes... - Original Message - From: Chandler, Jacob R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:21 PM Subject: [PHP] line number What function can I use to find out the current line number? -- PHP General

[PHP] Re: line number

2003-02-25 Thread Justin Garrett
http://www.php.net/manual/en/language.constants.predefined.php Justin Garrett Jacob R Chandler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What function can I use to find out the current line number? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] line number

2003-02-25 Thread Leif K-Brooks
Use the __LINE__ magic constant. Chandler, Jacob R wrote: What function can I use to find out the current line number? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General

[PHP] Output Numerical Month as String?

2003-02-25 Thread CF High
Hey all. Easy question here (can't find the answer in php manual) In Cold Fusion I'm able to format a given numerical month value, say the third month, as #MonthAsString(3)# and it returns March What's the equivalent in PHP? Thanks for any ideas.. --Noah -- -- PHP General

[PHP] Submit buttons

2003-02-25 Thread Greg
Is there any way that I can have a form submit to different pages depending on the submit button that is pressed? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Submit buttons

2003-02-25 Thread Oliver Witt
Greg schrieb: Is there any way that I can have a form submit to different pages depending on the submit button that is pressed? Thanks! dont use submit buttons, but buttons... (type=button) calling a script that submits the form to whatever page you want it to. Olli -- PHP General Mailing

RE: [PHP] Submit buttons

2003-02-25 Thread Cal Evans
using JavaScript you can use an INPUT type='IMAGE' and in the onClick call a function that sets the form's target and then calls document.formname.submit(); =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Greg [mailto:[EMAIL

[PHP] Re: Submit buttons

2003-02-25 Thread Greg
I'm horrible at javascript, does anyone have a script that will do this? Thanks again!! Oliver Witt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greg schrieb: Is there any way that I can have a form submit to different pages depending on the submit button that is pressed?

RE: [PHP] Output Numerical Month as String?

2003-02-25 Thread Dennis Cole
[code] date (F, mktime(0,0,0,6,1,2000)); [\code] Replace 6 with the month number and your on your way -Original Message- From: CF High [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Output Numerical Month as String? Hey all.

Re: [PHP] Submit buttons

2003-02-25 Thread Rick Emery
Yes, you can. Simply give the buttons differnt names: INPUT type=submit name=submit1 value=Submit This INPUT type=submit name=submit2 value=Submit That in the PHP script: extract($HTTP_POST_VARS); is( isset($submit1) ) { } else if( isset($submit2) ) { } - Original Message - From: Greg

[PHP] Empty Query

2003-02-25 Thread Richard Whitney
### I have this: ### ### [serial] ### [model] ### [yr_blt] ### [km] ### [price] ### [hours] ### [details] ### [location] ### double[style] All of the 1 are the variables being passed, the word is hardcoded for clarity What I get half the time: Couldn't insert

Re: [PHP] Submit buttons

2003-02-25 Thread Rick Emery
INPUT type=submit name=submit1 value=Submit This INPUT type=submit name=submit2 value=Submit That in the PHP script: extract($HTTP_POST_VARS); if( isset($submit1) ) header(location: thispage.php); else if( isset($submit2) ) header(location: thatpage.php); - Original Message - From:

Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread Noah
Cool. I'll check it out. Thanks! --Noah - Original Message - From: Dennis Cole [EMAIL PROTECTED] To: CF High [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 12:21 PM Subject: RE: [PHP] Output Numerical Month as String? [code] date (F,

Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread Daniel Guerrier
http://www.zend.com/manual/function.date.php --- CF High [EMAIL PROTECTED] wrote: Hey all. Easy question here (can't find the answer in php manual) In Cold Fusion I'm able to format a given numerical month value, say the third month, as #MonthAsString(3)# and it returns March What's

Re: [PHP] Running system commands

2003-02-25 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: Before I ask, I have read the documentation but nothing seems to work. I want to run a system command from behind the scenes (totally secure area of my server) that creates a directory and changes permissions on it. i.e. system (mkdir $path); Example above uses a value

Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread 1LT John W. Holmes
http://www.zend.com/manual/function.date.php --- CF High [EMAIL PROTECTED] wrote: Hey all. Easy question here (can't find the answer in php manual) In Cold Fusion I'm able to format a given numerical month value, say the third month, as #MonthAsString(3)# and it returns March

[PHP] Javascript

2003-02-25 Thread Todd Barr
I have tried this 3 different ways and none of them worked... I am trying to get javascript to generate a popup, with a variable passed along in the url. echoa class=white href='javascript.openpopup()' $Unique_Id; this doesn't work, neither does stopping PHP and then restarting... Blah, any

[PHP] NEED AN ADVICES: The best way for sending a huge amount of emails

2003-02-25 Thread Jean Fábio Barros
Hi everyone! We will appreciate some advices. We are new to PHP, thus, please, be patient! :) We want to make a script which needs to send a huge amount of emails (The emails are stored in a MySQL DB). We would like to take control of sending errors and put these in a log file. The script

Re: [PHP] Javascript

2003-02-25 Thread 1LT John W. Holmes
Nothing to do with PHP at all but, Pretty sure you have to tack on the URL variables within the window.open() function. When you specify the name of the file to open, try putting the variable there. ---John Holmes... - Original Message - From: Todd Barr [EMAIL PROTECTED] To: [EMAIL

[PHP] WE NEED SOME ADVICES: What is the best way for sending a huge amountof emails?

2003-02-25 Thread Jean Fábio Barros
Hi everyone! We will appreciate some advices. We are new to PHP, thus, please, be patient! :) We want to make a script which needs to send a huge amount of emails (The emails are stored in a MySQL DB). We would like to take control of sending errors and put these in a log file. The script needs

Re: [PHP] Javascript

2003-02-25 Thread Scott St. John
Usually you would have the actual page between the () so it would be: echo a class=\white\ href=\javascript.openpopup('whatever.php?Unique_Id')\; -Scott At 04:10 PM 2/25/2003 -0800, Todd Barr wrote: I have tried this 3 different ways and none of them worked... I am trying to get javascript

[PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jeff Pauls
Hi, I've been playing with this for a while now. Say I had the following variables: $name1 = joe; $name2 = janis; $name3 = joanne; Is there a way in php to increment the variable name not the value? Something like this for ($i = 1; $i = 3; $i++) { $arr_name[$i] = $name.$i; // I

Re: [PHP] Empty Query

2003-02-25 Thread 1LT John W. Holmes
From what I can tell, if $img is an empty string, and $file_dir is not a directory, $sql will not be assigned a value. This could be what's causing your error when you try to run an empty query. ---John Holmes... - Original Message - From: Richard Whitney [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] simple problem about authentication

2003-02-25 Thread 1LT John W. Holmes
I'm trying to set up a password section on my website. But I don't want a window popping up asking for a username and password. I'd rather like to have a form that submits the data. I did that and it works fine, but the browser seems to not save the username and password, because if i click

Re: [PHP] Out of Range

2003-02-25 Thread 1LT John W. Holmes
Probably means that only one row was returned from your query, so 2 is out of range. ---John Holmes... - Original Message - From: Todd Barr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:11 PM Subject: [PHP] Out of Range here is my code $Query = SELECT

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Kevin Stone
Variable variables allows you to define a variable name from a string. http://www.php.net/manual/en/language.variables.variable.php - Kevin - Original Message - From: Jeff Pauls [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:18 PM Subject: [PHP] Auto

Re: [PHP] WE NEED SOME ADVICES: What is the best way for sending a huge amount of emails?

2003-02-25 Thread Chris Knipe
Get mailing list software such as majordomo / mailman. PHP isn't the best way to do these kind of things... -- me - Original Message - From: Jean Fábio Barros [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:59 PM Subject: [PHP] WE NEED SOME ADVICES: What is

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Rick Emery
You're on the right track: for ($i = 1; $i = 3; $i++) { $arr_name[$i] = $name$i; // I want $name1,$name2,$name3 etc } - Original Message - From: Jeff Pauls [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:18 PM Subject: [PHP] Auto Incrementing a

  1   2   >