Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Vitalii Demianets
On Wednesday 25 May 2011 07:05:18 Negin Nickparsa wrote: my code is this: $query1=select * from patient where id=.$_POST['txt']; it works but Holy Jesus! Can't wait to send to your server POST request with txt=1;DROP DATABASE; -- Of course, if you'll switch to prepare statement instead of

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Bálint Horváth
Of course have to use filters and etc... Bálint Horváth On 25 May 2011 09:53, Vitalii Demianets vi...@nppfactor.kiev.ua wrote: On Wednesday 25 May 2011 07:05:18 Negin Nickparsa wrote: my code is this: $query1=select * from patient where id=.$_POST['txt']; it works but Holy Jesus! Can't

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Ashley Sheridan
Vitalii Demianets vi...@nppfactor.kiev.ua wrote: On Wednesday 25 May 2011 07:05:18 Negin Nickparsa wrote: my code is this: $query1=select * from patient where id=.$_POST['txt']; it works but Holy Jesus! Can't wait to send to your server POST request with txt=1;DROP DATABASE; -- Of course, if

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Andre Polykanine
(mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Negin Nickparsa nickpa...@gmail.com To: php-general@lists.php.net Date created: , 7:05:18 AM Subject: [PHP] simple question abt convert to integer

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Negin Nickparsa
Tnx to all:D Paul you are absolutly right:D it was a bad mistake from me there was no need 2 convert it Balint helped me n with mysql_error i found that my code hasn't any mistake i just forgot the BIG thing! selecting db:D i totally forgot it because i had array keys with if statement n in there

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Bálint Horváth
The problem is that if you set the post directly to the query it's available to be an attach code in the field... (eg. DROP DATABASE;) it's called to SQL injection... what I mean on filtering: always check the values in query eg.: $id = $_POST['id']; if(is_numeric($id)){...}else{bad post} and at

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Negin Nickparsa
i got it tnx Balint

[PHP] simple question abt convert to integer

2011-05-24 Thread Negin Nickparsa
my code is this: $query1=select * from patient where id=.$_POST['txt']; it works but i think because i have error in next line: *Warning*: mysql_num_rows() expects parameter 1 to be resource, boolean given $num2=Mysql_num_rows($result1); i echoed $ query1 and the result was this=select * from

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Bálint Horváth
Hi, I've a simply idea... If you have integer in your mysql, don't use at that field in the query... Try this: $query=select * from patient where id=.$id.; There isn't apostrofy in the mysql query... Bálint Horváth On 25 May 2011 06:06, Negin Nickparsa nickpa...@gmail.com wrote: my code is

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Negin Nickparsa
$id=(int)$_POST['txt']; $query1=select * from patient where id=.$id.; echo $query1; $result1=mysql_query($query1); echo $result1; $num2=Mysql_num_rows($result1); $num3=Mysql_num_fields($result1); still it has previous error Here is my output:select * from patient where id=1 *Warning*:

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Negin Nickparsa
Bálint Horváth, the second post of me is using your idea your idea is working but why i have error still?

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Negin Nickparsa
$result1=mysql_query($query1); echo $result1; it can't echo $result1 i don't know why?

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Bálint Horváth
If the query is incorrect u get boolean: false, if its correct u get a resource id... Bálint Horváth On 25 May 2011 06:28, Negin Nickparsa nickpa...@gmail.com wrote:

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Negin Nickparsa
i recieve nothing not a resource id and nore false

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Paul M Foster
On Wed, May 25, 2011 at 08:57:18AM +0430, Negin Nickparsa wrote: $id=(int)$_POST['txt']; $query1=select * from patient where id=.$id.; You're not *thinking* about what you're doing. The above is silly. Think about it: you're sending a string to MySQL. If $_POST['txt'] returns a string which

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Bálint Horváth
Problem solved succesfully after changed the query integer apostrofyless.. and printed the mysql_errno() and mysql_error()... Remember: -In the script languages as php the apostrofy ' or or sg. like these means the string marker... -While ure developing show all error codes and messages... -If

[PHP] Simple question on simplexml

2007-04-06 Thread Timothy Murphy
I have a catalog in XML format: ?xml version=1.0 encoding=iso-8859-1 ? catalog book ... book book ... book ... /catalog Now I want to add another book, which I have as a SimpleXMLElement: $book = new SimpleXMLElement($string); where $string reads book ... book

Re: [PHP] Simple question on simplexml

2007-04-06 Thread Jochem Maas
there is this: http://php.net/manual/en/function.simplexml-element-addChild.php which will allow adding of string data (so you won't be needing to create the new SimpleXMLElement object as per your example below). obviously you will have to first load tghe complete xml document into simplexml

Re: [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-05 Thread Rasmus Lerdorf
James Williams wrote: No You don't declare variables in PHP. You just start using them. Perhaps you mean assign? Since your example of var = variableName; is actually an assignment in Javascript. In PHP you simply do: $one_var = $another_var; -Rasmus You are however, when dealing

Re: [PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

2005-05-05 Thread Rasmus Lerdorf
Jon M. wrote: So, are you saying that it is absolutely PHP-illegal to do: Yes, it is illegal. Inside a class definition you can define properties like this, but for regular variables it is simply not supported. And it makes no sense. If you can't stop your hands from typing this stuff, do

Re: [PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

2005-05-05 Thread bala chandar
hi, On 5/5/05, Jon M. [EMAIL PROTECTED] wrote: Oops!! What I meant was: JavaScript: var varName; PHP: var $varName; I can't believe I did that (I have been writing JavaScript for a few years, and know better -I gotta get more sleep). So, are you saying that it is absolutely

[suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread Jon M.
I know in JavaScript, that you declare vars like so: var = variableName; So I'm assuming that in PHP you do it like this: var = $variableName; But there doesn't seem to be a single shred of documentation on PHP.net (or in ANY book) that covers this. All they say is that it's good

[PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread Rasmus Lerdorf
Jon M. wrote: I know in JavaScript, that you declare vars like so: var = variableName; So I'm assuming that in PHP you do it like this: var = $variableName; But there doesn't seem to be a single shred of documentation on PHP.net (or in ANY book) that covers this. All they say is

[PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread bala chandar
Hi On 5/5/05, Jon M. [EMAIL PROTECTED] wrote: I know in JavaScript, that you declare vars like so: var = variableName; So I'm assuming that in PHP you do it like this: var = $variableName; I think you can do like this inside a class var $variableName; But there doesn't seem to be a

Re: [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread James Williams
No You don't declare variables in PHP. You just start using them. Perhaps you mean assign? Since your example of var = variableName; is actually an assignment in Javascript. In PHP you simply do: $one_var = $another_var; -Rasmus You are however, when dealing with OOP

[PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread Jon M.
Oops!! What I meant was: JavaScript: var varName; PHP: var $varName; I can't believe I did that (I have been writing JavaScript for a few years, and know better -I gotta get more sleep). So, are you saying that it is absolutely PHP-illegal to do: var $varName; in PHP???

[PHP] Simple Question: Reading exec(locate) results into an array

2005-04-27 Thread Karl Fry
Hello all, I'm sure this is very rudimentary, sorry if this sounds ignorant. I've only dabbled a bit in other languages and I'm working with a small knowledge of php since I only use it on-and-off at my job. I scribbled up this script today at work off the top of my head for a customer who was

Re: [PHP] Simple Question: Reading exec(locate) results into an array

2005-04-27 Thread John Nichel
Karl Fry wrote: Hello all, I'm sure this is very rudimentary, sorry if this sounds ignorant. I've only dabbled a bit in other languages and I'm working with a small knowledge of php since I only use it on-and-off at my job. I scribbled up this script today at work off the top of my head for a

[PHP] simple question

2005-01-31 Thread Pagongski
I have this function: function supscript($texto) { print(sup.$texto./sup); } But when i do: print 2.supscript(3); I get the 3 before the 2, how is that posible? And: print(supscript(3).2); makes the 2 appear before the 3. I am confused!

Re: [PHP] simple question

2005-01-31 Thread Robby Russell
On Tue, 2005-02-01 at 01:41 +, Pagongski wrote: I have this function: function supscript($texto) { print(sup.$texto./sup); } But when i do: print 2.supscript(3); I get the 3 before the 2, how is that posible? And: print(supscript(3).2); makes

Re: [PHP] simple question

2005-01-31 Thread Jason Wong
On Tuesday 01 February 2005 09:41, Pagongski wrote: Please use a *descriptive* subject. I have this function: function supscript($texto) { print(sup.$texto./sup); } But when i do: print 2.supscript(3); I get the 3 before the 2, how is that posible? And:

Re: [PHP] simple question

2005-01-31 Thread Pagongski
Thank you so much, it was really stupid of me, basic mistake. I solved it differently, although your solution is miles away better than mine. Heres what i did: function supscript($texto) { global $supa; $supa = sup.$texto./sup; } supscript(3); print (2.$supa);

Re: [PHP] simple question

2005-01-31 Thread John Holmes
Pagongski wrote: I have this function: function supscript($texto) { print(sup.$texto./sup); } But when i do: print 2.supscript(3); I get the 3 before the 2, how is that posible? Your function should return the value, not print it. The way you have it now, the function must be ran

Re: [PHP] simple question

2005-01-31 Thread Robert Cummings
On Mon, 2005-01-31 at 20:41, Pagongski wrote: I have this function: function supscript($texto) { print(sup.$texto./sup); } But when i do: print 2.supscript(3); I get the 3 before the 2, how is that posible? And: print(supscript(3).2); makes the 2

Re: [PHP] Simple question: $_POST

2005-01-18 Thread Richard Lynch
Stuart Felenstein wrote: When using $_POST vars is it required that a form is used ? In other words I can create an href link and echo variable and pick them up using $_GET in the following page. No so with $_POST ? Google for PostToHost and Rasmus Lerdorf if you want to use PHP to send

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Jochem Maas
Stuart Felenstein wrote: When using $_POST vars is it required that a form is used ? In other words I can create an href link and echo variable and pick them up using $_GET in the following page. No so with $_POST ? in order to create POST vars the proper request headers need to sent to the

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Santa
14 2005 16:48 Stuart Felenstein (a): When using $_POST vars is it required that a form is used ? exactly

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Jason Wong
On Friday 14 January 2005 21:48, Stuart Felenstein wrote: When using $_POST vars is it required that a form is used ? Better worded as if you want to pass values from one page to another and you want said values to be available in $_POST then yes, you *have* to use a form. -- Jason Wong -

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Jochem Maas
Jochem Maas wrote: Stuart Felenstein wrote: When using $_POST vars is it required that a form is used ? In other words I can create an href link and echo variable and pick them up using $_GET in the following page. No so with $_POST ? in order to create POST vars the proper request headers need

RE: [PHP] Simple question: $_POST

2005-01-15 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Stuart Felenstein Sent: 14/01/05 13:48 When using $_POST vars is it required that a form

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Bret Hughes
On Fri, 2005-01-14 at 07:48, Stuart Felenstein wrote: When using $_POST vars is it required that a form is used ? In other words I can create an href link and echo variable and pick them up using $_GET in the following page. No so with $_POST ? You could probably create hidden vars and

[PHP] Simple question: $_POST

2005-01-14 Thread Stuart Felenstein
When using $_POST vars is it required that a form is used ? In other words I can create an href link and echo variable and pick them up using $_GET in the following page. No so with $_POST ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Simple question

2004-03-19 Thread webmaster
Im sure this question seems primitive to most of you, im new to using foreach with forms my question is how is the best way to keep from getting the submit button from comming through with the variables below is my code. form method=post action=?fm=newAdvertisera=insert centerpreb Advertiser

Re: [PHP] Simple question

2004-03-19 Thread John W. Holmes
webmaster wrote: how is the best way to keep from getting the submit button from comming through with the variables Don't name it? Just remember that users can send _any_ variable they want through a form... blindly looping through and accepting $_POST as a whole is probably a bad idea. --

Re: [PHP] Simple question

2004-03-19 Thread Richard Davey
Hello, Saturday, March 20, 2004, 6:08:36 AM, you wrote: w Im sure this question seems primitive to most of you, im new to w using foreach with forms my question is how is the best way to keep w from getting the submit button from comming through with the w variables below is my code. Two ways:

[PHP] Simple question

2003-12-28 Thread Labunski
Hello, I have only one simple question.. I'm using this method to get the values from the text box: if(isset($_POST[Submit]) $_POST[Submit]==Submit) { $add = $_POST['textbox'] ; } But I don't know how to write the source for this: If the value from the textbox ($add) is Hello then.. do

[PHP] Simple question I hope

2003-12-16 Thread Christopher J. Crane
I am using Pdf-Php to create pdf docs. I have a long text line that wraps automatically when outputted in the pdf. That is what it is suppose to do, however, it also outputs the new lines of the text in the source of the php file. That is not what I want. So I do a string replace for the \n and

Re: [PHP] Simple question I hope

2003-12-16 Thread Robert Cummings
On Tue, 2003-12-16 at 15:02, Christopher J. Crane wrote: I am using Pdf-Php to create pdf docs. I have a long text line that wraps automatically when outputted in the pdf. That is what it is suppose to do, however, it also outputs the new lines of the text in the source of the php file. That

Re: [PHP] Simple question I hope

2003-12-16 Thread Christopher J. Crane
That worked. Thanks Robert. Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 2003-12-16 at 15:02, Christopher J. Crane wrote: I am using Pdf-Php to create pdf docs. I have a long text line that wraps automatically when outputted in the pdf. That is what it is

[PHP] Simple Question on Date conversion

2002-11-20 Thread Jack
Dear all Can anyone pls tell me how i can turn number : 10 to Oct? i counting on the month, that's why i won't to convert the result to month! Thx a lot Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Simple Question on Date conversion

2002-11-20 Thread John W. Holmes
Dear all Can anyone pls tell me how i can turn number : 10 to Oct? i counting on the month, that's why i won't to convert the result to month! $months = array(1='January',2='February',3='March',...); echo $months[$your_month_number]; You could also use a combo of date() and mktime(). echo

[PHP] simple question

2002-10-14 Thread Jean-François Marseaut
Where can I found last version of the GD library ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] simple question

2002-10-14 Thread Jon Haworth
Hi, Where can I found last version of the GD library ? http://www.boutell.com/gd/ HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple question

2002-10-14 Thread Timothy Hitchens
http://www.boutell.com/gd/http/ is a good start!! Jean-François Marseaut wrote: Where can I found last version of the GD library ? -- Timothy Hitchens Technologist / Entrepreneur e-mail: [EMAIL PROTECTED] mobile: 0419 521 440 - HiTCHO Group

RE: [PHP] simple question

2002-10-14 Thread Simon Taylor
http://www.boutell.com/gd/ -Original Message- From: Jean-François Marseaut [mailto:[EMAIL PROTECTED]] Sent: 14 October 2002 13:51 To: [EMAIL PROTECTED] Subject: [PHP] simple question Where can I found last version of the GD library ? -- PHP General Mailing List (http://www.php.net

[PHP] Simple question I guess.

2002-07-22 Thread Raymond Lilleodegard
Hi! I have a site with all my movies and stuff stored in a database. And I have made a admin page where I can add, delete and update records. When I add new records, I have made a listbox for the category (ex. action, comedy etc.) so I dont have to write it every time I add a new record. But

RE: [PHP] Simple question I guess.

2002-07-22 Thread John Holmes
I have a site with all my movies and stuff stored in a database. And I have made a admin page where I can add, delete and update records. When I add new records, I have made a listbox for the category (ex. action, comedy etc.) so I dont have to write it every time I add a new record. But

Re: [PHP] Simple question I guess.

2002-07-22 Thread Evan Nemerson
Okay im not sure i understand you- you want to create a page where it will suck an item out of a database, and use it to choose which item in a drop down menu should be selected? If so, you can try something like select name=catagory option value=0?php if ($catagory == 0) {echo

[PHP] simple question

2002-04-02 Thread Denis L. Menezes
Hello friends. I am able to add and query my database using php. I now wish to build webpages with textboxes and search the database with criteria from the textboxes. Can someone tell me the resources for building these pages? Thanks Denis -- PHP General Mailing List (http://www.php.net/)

[PHP] Simple Question

2001-12-12 Thread Tom Ray
I have a quick question that I haven't been able to find the answer to yet. I've made a couple of guest books via PHP but the biggest problem I'm having is if any one inputs a ' or or anything like that, the output in the book shows the stupid \ for the escape. So the word Tom's looks like

RE: [PHP] Simple Question

2001-12-12 Thread Martin Towell
stripslashes() -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 2:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Simple Question I have a quick question that I haven't been able to find the answer to yet. I've made a couple of guest books via

[PHP] Simple(?) Question

2001-12-05 Thread Andrew Forgue
Hello, Is there a way to post to a script without any user interventions... e.g The user posts to a script, and the script posts back to the original one. Thanks!

RE: [PHP] Simple(?) Question

2001-12-05 Thread Martin Towell
Forgue [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 9:32 AM To: [EMAIL PROTECTED] Subject: [PHP] Simple(?) Question Hello, Is there a way to post to a script without any user interventions... e.g The user posts to a script, and the script posts back to the original one. Thanks!

Re: [PHP] Simple(?) Question

2001-12-05 Thread Brian Clark
* Andrew Forgue [EMAIL PROTECTED] [Dec 05. 2001 17:35]: Is there a way to post to a script without any user interventions... e.g The user posts to a script, and the script posts back to the original one. (Please set your mail client to wrap at 72 chars) cURL can do this, among other things:

[PHP] Simple Question: PHP, MySQL, HTML Form and NULL

2001-12-04 Thread sgibbs
I have added a new column in an existing MYSQL table called event_date - type: DATE, NULL default. This database field will be filled if and when the field in the HTML form is complete. When I added the new field to MySQL, it automatically assigned NULL to all the existing records - which is

Re: [PHP] Simple Question: PHP, MySQL, HTML Form and NULL

2001-12-04 Thread David Robley
On Wed, 5 Dec 2001 09:01, [EMAIL PROTECTED] wrote: I have added a new column in an existing MYSQL table called event_date - type: DATE, NULL default. This database field will be filled if and when the field in the HTML form is complete. When I added the new field to MySQL, it

RE: [PHP] Simple Question, I think

2001-10-03 Thread Ralph Guzman
: http://www.domainname.com/dir_03;); break; } Ralph -Original Message- From: Ratfish [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 7:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Simple Question, I think All I want to do is what an ASP page I have is doing. I just want

RE: [PHP] Simple Question, I think

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
ottobre 2001 10.03 To: Ratfish; [EMAIL PROTECTED] Subject: RE: [PHP] Simple Question, I think I would suggest you implement this at the web server level. If using Apache, use virtual hosting or perhaps a rewrite condition if needed. If you must do this in PHP, and you want to do is redirect the user

RE: [PHP] Simple Question, I think

2001-10-03 Thread Ralph Guzman
: http://www.domainname.com/dir_03;); break; } Ralph -Original Message- From: Ratfish [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 7:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Simple Question, I think All I want to do is what an ASP page I have is doing. I just want

[PHP] Simple Question, I think

2001-10-01 Thread Ratfish
All I want to do is what an ASP page I have is doing. I just want to host multiple sites with one page like the one in the article below until I can get my head around the real way of doing it. http://www.zdnet.com/devhead/stories/articles/0,4413,2418330,00.html Surely there is a PHP

Re: [PHP] Simple Question, I think

2001-10-01 Thread Kath
Perhaps check the URL and direct as such using header();. Use phpinfo(); to find what var holds the current URL. - k - Original Message - From: Ratfish [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 01, 2001 10:25 PM Subject: [PHP] Simple Question, I think All I

Re: [PHP] Simple Question, I think

2001-10-01 Thread Ratfish
Thanks guys, that's just what I wanted to hear.and so quick too! From: [EMAIL PROTECTED] (Lawrence Sheed) Newsgroups: php.general Date: Mon, 1 Oct 2001 22:40:29 -0400 To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] Simple Question, I think Simple to do it in php, but i

[PHP] simple question...

2001-09-20 Thread Ker Ruben Ramos
ey guys.. how do i check if the postdata is a valid time format? something like '2001-09-15' I hate it when they'll be entering garbage in it... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] simple question...

2001-09-20 Thread Ker Ruben Ramos
] simple question... Original message From: Ker Ruben Ramos [EMAIL PROTECTED] Date: Thu, Sep 20, 2001 at 08:56:03PM -0700 Message-ID: 00f801c14251$5aa288b0$bb05aacb@weblinqproxy Subject: [PHP] simple question... ey guys.. how do i check if the postdata is a valid time format? something

RE: [PHP] simple question...

2001-09-20 Thread Eric O'Connell
One more thing... If I got '2001-09-01' Is there a fast way of incrementing the month of it? making it '2001-10-01' ? list($year, $month, $day) = explode(-, $date); $month++; if ($month == 13) $month = 1; $date = $year-$month-$day; Eric O'Connel -- PHP General Mailing List

Re: [PHP] simple question...

2001-09-20 Thread * RzE:
Original message From: Ker Ruben Ramos [EMAIL PROTECTED] Date: Thu, Sep 20, 2001 at 09:36:55PM -0700 Message-ID: 012b01c14257$0afb3db0$bb05aacb@weblinqproxy Subject: Re: [PHP] simple question... One more thing... If I got '2001-09-01' Is there a fast way of incrementing the month

Re: [PHP] simple question...

2001-09-20 Thread * RzE:
You should date() do the work here. So just take the month and then +1. Date() will take care the result is a valid date. Below is some example... Well... I meant: let mktime() do the work... not date(). Date() only shows the result of mktime() in a proper format. Mktime() makes sure it's a

Re: [PHP] simple question...

2001-09-20 Thread Ker Ruben Ramos
, September 20, 2001 6:46 AM Subject: Re: [PHP] simple question... You should date() do the work here. So just take the month and then +1. Date() will take care the result is a valid date. Below is some example... Well... I meant: let mktime() do the work... not date(). Date() only shows

Re: [PHP] simple question...

2001-09-20 Thread * RzE:
Original message From: Ker Ruben Ramos [EMAIL PROTECTED] Date: Thu, Sep 20, 2001 at 10:16:01PM -0700 Message-ID: 016101c1425c$819cdcd0$bb05aacb@weblinqproxy Subject: Re: [PHP] simple question... again.. one more thing How do I know how many days date differ? let's say '2001-09-01

Re: [PHP] simple question...

2001-09-20 Thread Jason G.
Well, Here is a function that may be helpful. The bad part is that I never finished it, so it only accepts dates in the MDY format... http://www.deltacron.com/source/check_date.php -Jason Garber www.deltacron.com At 08:56 PM 9/20/2001 -0700, you wrote: ey guys.. how do i check if the

Re: [PHP] simple question...

2001-09-20 Thread Jason G.
Well, Here is a function that may be helpful. The bad part is that I never finished it, so it only accepts dates in the MDY format... http://www.deltacron.com/source/check_date.php BTW... If you already have a connection to MySQL, you could send simple queries to it to take advantage of its

[PHP] Simple question (what's ISAPI ?)

2001-08-13 Thread Tribun
Hi folks. Can someone tell me what ISAPI is? I've requested how I could run PHP faster, if 20 USER's access my files at the same time. In my case, PHP run's the php.exe (ca. 5 MB) every time seperatly, and this eats my win-resources! Someone guides me to use it as an ISAPI module but

Re: [PHP] Simple question (what's ISAPI ?)

2001-08-13 Thread Phil Driscoll
On Monday 13 August 2001 08:46, Tribun wrote: Hi folks. Can someone tell me what ISAPI is? It's microsoft's API for running software in IIS. I've requested how I could run PHP faster, if 20 USER's access my files at the same time. Using ISAPI means that php stays alive while the server is

[PHP] simple question

2001-07-08 Thread ReDucTor
is there a function to turn all chars that are not alphanumric to show \xhh but hh being the hex version of it :)?

Re: [PHP] simple question

2001-07-08 Thread teo
Hi ReDucTor! On Mon, 09 Jul 2001, ReDucTor wrote: is there a function to turn all chars that are not alphanumric to show \xhh but hh being the hex version of it :)? you mean bin2hex() under String Function section? :) -- teodor -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] simple question

2001-07-08 Thread Chris Lambert - WhiteCrown Networks
PROTECTED] Sent: Sunday, July 08, 2001 10:18 AM Subject: [PHP] simple question is there a function to turn all chars that are not alphanumric to show \xhh but hh being the hex version of it :)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] simple question

2001-07-08 Thread Chris Lambert
[EMAIL PROTECTED] To: Chris Lambert - WhiteCrown Networks [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 11:45 AM Subject: Re: [PHP] simple question | nice, but i might change it to have lower case and numbers...hehehe | | btw thx | - Original Message - | From: Chris Lambert - WhiteCrown

Re: [PHP] simple question

2001-07-08 Thread ReDucTor
)(\x5c)m192(\x5c)168(\x5c)0(\x5c)2(\x5c)27015 and \x5c is \ ne1 know why? - Original Message - From: Chris Lambert [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 09, 2001 2:47 AM Subject: Re: [PHP] simple question Lowercase letters are included

Re: [PHP] simple question

2001-07-08 Thread Chris Lambert - WhiteCrown Networks
- www.whitecrown.net */ - Original Message - From: ReDucTor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 1:28 PM Subject: Re: [PHP] simple question this is wierd, i have the following... $buffer = eregi_replace([^A-Z0-9], (\\x.dechex(ord(\\1)).) , $buffer

Re: [PHP] Simple question about mail() limitations (if any :)

2001-03-22 Thread Greig, Euan
on IIS it is much better solution for more than few mails is to put them simply in pickup directory of smtp server, I am also sure that there is a similar possibility on linux How can I identify the location of the pickup directory for the smtp server (on NT)? Euan Greig Technical Consultant

[PHP] Simple question about mail() limitations (if any :)

2001-03-21 Thread SED
Hi, Before I try it myself and kill my server :), is it safe to send via mail() function multiply e-mails like: while (expr) { mail ($to, $subject, $message); } Are there any limitation in this? (e.g. 100 mails? 100.000? 1.000.000?) If so, is it possible

Re: [PHP] Simple question about mail() limitations (if any :)

2001-03-21 Thread almir
on IIS it is much better solution for more than few mails is to put them simply in pickup directory of smtp server, I am also sure that there is a similar possibility on linux -almir ""SED"" [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Before I try

[PHP] Simple question!!!

2001-03-02 Thread Ricardo D'Aguiar
Hi, Imagine the following script: HTML TITLESome Title/TITLE BODY ?php $var = 1; if ($var == 1) { die ("I'm dead"); } echo "I'm alive"; ? /BODY /HTML If I try to execute via Internet Explorer ("5.x") apparently every thing works fine. It shows the string "I'm dead". But

Re: [PHP] Simple question!!!

2001-03-02 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ricardo D'Aguiar) wrote: Imagine the following script: HTML TITLESome Title/TITLE BODY ?php $var = 1; if ($var == 1) { die ("I'm dead"); } echo "I'm alive"; ? /BODY /HTML If I try to execute via Internet

Re: [PHP] Simple question!!!

2001-03-02 Thread Ricardo D'Aguiar
Hi, CC wrote: (...)Another option would be to echo the closing tags from within the conditional, prior to calling the die(). I already thought that, but if I want to use the die function inside another function that can be called anywhere in the script (inside a table or form) I've possibly