Re: [PHP] Isn't it grea...t

2003-03-17 Thread Robert Cummings
Bix wrote: > > I think it is an amazing feat to have a scripting language with such a > comprehensive (with user notes) documentation, helpful community of users > and developers, and a team of writers who for little reward, continue to > develop PHP to make it work better and faster for us all to

[PHP] Re: Problem with pointer in result handle

2003-03-17 Thread Blaine
I resolved the problem by using the mysql_data_seek function to set the pointer to the first record. mysql_data_seek($rsCommunitiesServed, 0); Blaine -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Problem with pointer in result handle

2003-03-17 Thread Jason Wong
On Tuesday 18 March 2003 14:50, Blaine wrote: [snip] > So, what I need to do is move the internal pointer of the result handle > back to the first row of the result set. How can I do this? mysql_data_seek() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems I

Re: [PHP] Reading GIF images in Win2k + Apache + PHP

2003-03-17 Thread Hugh Danaher
//When converting an image from gif to jpeg or png, you need to create an intermediate image the same size as you want output. The following should work, but it's not tested. hope this helps, Hugh - Original Message - From: "Patrick Teague" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

[PHP] Too all who are stuck with PHP/Apache2 under RH8

2003-03-17 Thread Jason Young
Just a quick reiteration of something I found that probably most people already know.. but since I went through the painstaking trouble of removing the PHP and Apache RPMs and building them from scratch (I hate building sources), I wanted to make sure this is out there. If you're having problem

[PHP] Re: Problem with pointer in result handle

2003-03-17 Thread Blaine
I've discovered that it is not the pointer in the array that I am having problems with but rather the pointer in the result handle. From what I gather, when a mysql_fetch function (mysql_fetch_row, mysql_fetch_assoc, mysql_fetch_array) retrieves a row from the result handle (In this case it is

[PHP] Reading GIF images in Win2k + Apache + PHP

2003-03-17 Thread Patrick Teague
I have a class that reads gif images & can then make jpeg or png thumbnails of the gif image, but it only seems to work on linux. Is there any way to open/convert the gif to some other graphic format so I can at least read the gif image in on windows? here's the current code I have for reading in

Re: [PHP] copy ...

2003-03-17 Thread John Taylor-Johnston
John Thanks. John "CPT John W. Holmes" wrote: > If you have "TI: text ¶ TI: text2 ¶" as a string, my first example (if ereg > is greedy by nature) will match " text ¶ TI: text2 " as a single match. It > will be greedy and try to match as much text as it can between any TI: and ¶ > character. The

[PHP] Searching for a file.

2003-03-17 Thread Vincent M.
Hello, I am looking for a way to search a file knowing the beginig of his name. For exemple, I know that the file I am looking for is: montreal_13_120.jpg But I just know: montreal_13 And I can't know _120.jpg So at this time I did this: $dirthumbs = $dir."/thumbs" ; $direc_src_obj2 = di

Re: [PHP] Isn't it grea...t

2003-03-17 Thread Richard Whitney
On St. Paddy's Day, let's all raise a pint and say, Here, Here! Quoting Bix <[EMAIL PROTECTED]>: ### I think it is an amazing feat to have a scripting language with such a ### comprehensive (with user notes) documentation, helpful community of users ### and developers, and a team of writers who f

[PHP] Only one works

2003-03-17 Thread LinuxGeek
Hi, I am having a problem with one of my session variables, no matter what I try I can't get a second one to register. My webpage calls this script directly and I am using the webpage form variables for the variables in this script. I can register the Name variable but not the LoginName vari

[PHP] Isn't it grea...t

2003-03-17 Thread Bix
I think it is an amazing feat to have a scripting language with such a comprehensive (with user notes) documentation, helpful community of users and developers, and a team of writers who for little reward, continue to develop PHP to make it work better and faster for us all to use. So here's to PH

Re: [PHP] stripping slashes before insert behaving badly

2003-03-17 Thread Foong
if Magic_quotes_gpc in you php.ini is set to 'on', php will automatically escape(add slashes) for you. Foong "Charles Kline" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John, > > You are right, something was adding the additional slash. I removed the > addslashes() and it fixe

RE: [PHP] documentation on pg_escape_string()

2003-03-17 Thread John W. Holmes
> Anyone know where to find documentation on this? Who knows what it > escapes? I always look in the manual when I'm looking for documentation, but that's just me. Hell, call me crazy, but I'd probably look in the chapter on the PG functions... but that's just me... and I have no idea what I'm doi

Re: [PHP] complicated but fun, please help.

2003-03-17 Thread Daniel McCullough
Yes sorry for not being clear. I am trying to use exec() and system(). I guess I'm trying to see if there is another way to do it, like write to a file and have acron job run every minute or so, or if there is some way to make it seem like I am doing this with the right permissions. From

[PHP] A possible problem for PHP 4.3.0+MSession 1.21

2003-03-17 Thread irenem
Dear Lady/Sir : I can not find any technical contact in Mohawk's web but this mailling list in the internet. I am looking for solutions. If this e-mail bothers you, I appologize. I found a possible msession problem in V1.21 only, which is based upon phoenix-R1_2_030117E (PHP 4.3.0, RedHat 7.2). I

Re: [PHP] documentation on pg_escape_string()

2003-03-17 Thread Joe Conway
Dennis Gearon wrote: Anyone know where to find documentation on this? Who knows what it escapes? From PostgreSQL source (~/pgsql/src/interfaces/libpq/fe-exec.c): 8< /* --- * Escaping arbitrary strings to get valid SQ

[PHP] documentation on pg_escape_string()

2003-03-17 Thread Dennis Gearon
Anyone know where to find documentation on this? Who knows what it escapes? please cc / bc me as I'm on digest -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help from experienced devr's

2003-03-17 Thread Dennis Gearon
Turns out the adodb guy DOES have a *.tgz file to download. I got it, (it's missnamed in the extension), and was able to extract it fine. Thanks for your help! Ernest E Vogelsinger wrote: At 00:18 18.03.2003, Dennis Gearon said: [snip] Simple question, onl

Re: [PHP] help from experienced devr's

2003-03-17 Thread Ernest E Vogelsinger
At 00:18 18.03.2003, Dennis Gearon said: [snip] >Simple question, only related to this forum in that all of us use >libraries that are compressed. > >I'm trying to use adodb, and I uploaded it's zipped archive to a linux >box and gunzip won't unzip it. Says

[PHP] help from experienced devr's

2003-03-17 Thread Dennis Gearon
Simple question, only related to this forum in that all of us use libraries that are compressed. I'm trying to use adodb, and I uploaded it's zipped archive to a linux box and gunzip won't unzip it. Says 'multiple entries'. Anyone know how to upload it, short of unzipping in on a windbloze box

[PHP] script conflicts

2003-03-17 Thread Sebastian
i have two scripts included into one page, one of them i have been running for a long time .. i recently made another script and when i include it into the same page the other script returns this error: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/pub

Re: [PHP] How to break out of nested loops

2003-03-17 Thread Bix
Cheers matey! Nice to know people are alwyas around to help! ;o) "Erik Price" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Bix wrote: > > I have a for loop within a for loop, and need to break out of both > > together... > > > > for ( blah ) { > > for ( blah ) { > > i

Re: [PHP] Session problem

2003-03-17 Thread shaun
silly me, testing the query (echo $query;) was actually causing the problem! "Pete James" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You need to start the session at the beginning of the script, or use > output buffering. > > Either: > session_start(); > require("... > ... >

[PHP] Re: How to break out of nested loops

2003-03-17 Thread Bix
Cheers buddy, didn't think of that! ;o) "Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://www.php.net/manual/en/control-structures.break.php > > -philip > > On Mon, 17 Mar 2003, Bix wrote: > > > I have a for loop within a for loop, and need to break out of bo

[PHP] Mail

2003-03-17 Thread Stephen
Hi I am trying to get mail working with my php setup. I have an exchange server that I want to send mail to but I get the error Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in I have setup SMTP = my server address and sendmail_from to my

Re: [PHP] How to break out of nested loops

2003-03-17 Thread Erik Price
Bix wrote: I have a for loop within a for loop, and need to break out of both together... for ( blah ) { for ( blah ) { if ( true ) { break; } // only breaks out of this loop, how can I break it out of both loops. } } "break accepts an optional numeric argument which tells it how many nested

[PHP] Re: How to break out of nested loops

2003-03-17 Thread Philip Hallstrom
http://www.php.net/manual/en/control-structures.break.php -philip On Mon, 17 Mar 2003, Bix wrote: > I have a for loop within a for loop, and need to break out of both > together... > > for ( blah ) { > for ( blah ) { > if ( true ) { break; } // only breaks out of this loop, how can I break it

Re: [PHP] Session problem

2003-03-17 Thread Pete James
You need to start the session at the beginning of the script, or use output buffering. Either: or You're trying to output stuff to the screen (which implicitly sends the headers) then trying to send more headers by calling session_register() (which implicitly calls session_start() ) HTH. Pe

[PHP] One set of php for multiple subdomains

2003-03-17 Thread Radu Manole
Hi guys, I have 2 scripts located in a directory and 3 dirs with 3 subdomain. Something like this. /scripts - input.php - output.php /user1 -> subdomain user1.mysite.com /user2 -> subdomain user2.mysite.com /user3 -> subdomain user3.mysite.com What can I do to execute the input.php s

[PHP] Session problem

2003-03-17 Thread shaun
Hi, I get the following error when using using the following script to authenticate a user. The login form is inside a frameset, is this whats causing th eproblem, and is there a way round this? Warning: Cannot send session cookie - headers already sent by (output started at /home/w/o/workmanagem

Re: [PHP] What's this _FILE junk?

2003-03-17 Thread Liam Gibbs
> Is your form enctype set? That might be it and I think it's it and OH yes that was it. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] complicated but fun, please help.

2003-03-17 Thread Erik Price
Daniel McCullough wrote: Where I am having problems at is when they need to update the poppasswd, which is a IMAP or QMAIL file. Plesk has files that will update the system, but it seems that I using the exec() and system() I can access those pl files. From the command prompt it works fine,

[PHP] complicated but fun, please help.

2003-03-17 Thread Daniel McCullough
Okay here is what I have. I thought this was going to be a wham bam slam dunk. I need to update the poppasswd file on a Plesk system, I have it so the Plesk database gets updated, but I need to let people change their password from a web form, without having them need to login to the Plesk sy

Re: [PHP] Loop Problem

2003-03-17 Thread Erik Price
[EMAIL PROTECTED] wrote: Ok, here's what I got. I'm trying to create an entire site that grabs all it's information (Page content, titles, link info, etc.) from a MySQL database. In this site I would like to have sub pages of master pages. For instance, Page 1 is a master page, Page 2 is a

Re: [PHP] Getting false positive on strpos ... despite doublecheck...HELP!

2003-03-17 Thread Rasmus Lerdorf
> case strpos($line,"#date:") == 0 && strpos($line,"#date:") !== false: You can just do a === 0 check here, you don't need the second check to make sure it isn't false. However, that's not really how you use a switch expression anyway. The expressions in the case statement should be con

[PHP] Loop Problem

2003-03-17 Thread Sysadmin
Ok, here's what I got. I'm trying to create an entire site that grabs all it's information (Page content, titles, link info, etc.) from a MySQL database. In this site I would like to have sub pages of master pages. For instance, Page 1 is a master page, Page 2 is a sub page of Page 1, and Pa

Re: [PHP] register_variables

2003-03-17 Thread samug
No it's not. It's a script called LinksCaffe . In file catadd.php "Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is it inside of a function? > > samug wrote: > > >I'm trying to run a script which uses variables p

Re: [PHP] register_variables

2003-03-17 Thread Leif K-Brooks
Is it inside of a function? samug wrote: I'm trying to run a script which uses variables passed via a form, like this: if($lcat_name) { $sql_query = "INSERT into category VALUES ('','$lcat_name')"; $result = mysql_query($sql_query); echo "You add next category $lcat_name"; } but the variable $lca

Re: [PHP] How to manipulate a Access database(MDB file) with PHP.

2003-03-17 Thread ignacio . estrada
Please, refer to the ignacio.estrada email. Atte. Ignacio Estrada F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] register_variables

2003-03-17 Thread samug
I'm trying to run a script which uses variables passed via a form, like this: if($lcat_name) { $sql_query = "INSERT into category VALUES ('','$lcat_name')"; $result = mysql_query($sql_query); echo "You add next category $lcat_name"; } but the variable $lcat_name is empty unless I do this: $lcat_n

Re: [PHP] What's this _FILE junk?

2003-03-17 Thread CPT John W. Holmes
Is enable file uploads turned on in php.ini?? ---John Holmes... - Original Message - From: "Pete James" <[EMAIL PROTECTED]> To: "Liam Gibbs" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 17, 2003 3:33 PM Subject: Re: [PHP] What's this _FILE junk? > Is your form enctype se

Re: [PHP] How to manipulate a Access database(MDB file) with PHP.

2003-03-17 Thread CPT John W. Holmes
> How to manipulate a Access database(MDB file) with PHP. How do I do it? I was expecting a link or something to help me. Or is that your question... ?? Notice the question marks at the end of my questions? ;) ---John Holmes... PS: This question was already asked today... search google or the a

Re: [PHP] Microsoft access + php

2003-03-17 Thread ignacio . estrada
Check the next link: http://www.phpbuilder.com/columns/timuckun/20001207.php3 Enjoy it !! Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6469 (33) 3668-6463, 3668-6469

Re: [PHP] How to manipulate a Access database(MDB file) with PHP.

2003-03-17 Thread Pete James
This was answered just this morning. Please do some research before asking questions. -- the answer from this morning I just tried putting "PHP and Microsoft Access" into Google. The first item has the text "This code is useful for those who want to use a *Microsoft* *Access* database with a

[PHP] Problem with pointer in array

2003-03-17 Thread Blaine
Hello, I am using Dreamweaver MX. It creates a recordset that other code is dependent upon so I cannot alter the recordset code. Within this code mysql_fetch_assoc is called creating an array of records from the results. Later I use mysql_fetch_array on the same results. The code works but the

Re: [PHP] What's this _FILE junk?

2003-03-17 Thread Richard Whitney
A couple of other things: Some versions or settings of PHP don't like the $_FILE thing. If your enctype is set try just print '[]'.$imprintpicture; The brackets are just to print SOMETHING to the page if $imprintpicture produces nothing HTH Quoting Pete James <[EMAIL PROTECTED]>: ### Is your f

Re: [PHP] copy ...

2003-03-17 Thread Erik Price
John Taylor-Johnston wrote: Captn John, What the difference? I recognise the code from my attempts at Perl. What's the diff between ^ and *? Is there a doc I can read up more on? ;) Swabbie John "Cpt John W. Holmes" wrote: What about eregi("TI(.*)¶",$line,$m) might want to use eregi("TI([^¶

Re: [PHP] Using PHP to get a word count of a MSword doc

2003-03-17 Thread -{ Rene Brehmer }-
On Mon, 17 Mar 2003 15:43:07 +1000, Brad Wright wrote about "[PHP] Using PHP to get a word count of a MSword doc" what the universal translator turned into this: >I have a mySQL DB that stores word documents (as a BLOB). I am trying to >find a way of doing a word count on the documents using PHP.

[PHP] How to manipulate a Access database(MDB file) with PHP.

2003-03-17 Thread Héctor Suárez Planas
How to manipulate a Access database(MDB file) with PHP. = Héctor Suárez Planas Lic. en Ciencias de la Computación Administrador de la red Facultad de cultura Física Stgo. = -- PHP General Mailing List (h

Re: [PHP] What's this _FILE junk?

2003-03-17 Thread Pete James
Is your form enctype set? Like so: Liam Gibbs wrote: This line: when clicking submit, produces nothing. I print_r $_FILES["imprintpicture"], I try to echo $_FILES["imprintpicture"]["name"] or ["tmp_name"] and nothing comes up. Any reason? -- PHP General Mailing List (http://www.php.net/)

[PHP] What's this _FILE junk?

2003-03-17 Thread Liam Gibbs
This line: when clicking submit, produces nothing. I print_r $_FILES["imprintpicture"], I try to echo $_FILES["imprintpicture"]["name"] or ["tmp_name"] and nothing comes up. Any reason?

Re: [PHP] copy ...

2003-03-17 Thread CPT John W. Holmes
If you have "TI: text ¶ TI: text2 ¶" as a string, my first example (if ereg is greedy by nature) will match " text ¶ TI: text2 " as a single match. It will be greedy and try to match as much text as it can between any TI: and ¶ character. The second example will match text, but only if it's not (he

Re: [PHP] Getting false positive on strpos ... despite doublecheck... HELP!

2003-03-17 Thread Kevin Stone
- Original Message - From: "-{ Rene Brehmer }-" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 17, 2003 12:54 PM Subject: [PHP] Getting false positive on strpos ... despite doublecheck... HELP! > Hi y'all > > I'm working on the read function for my guestbook, but I'm get

Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
CPT John W. Holmes wrote: Well, the first part is out your butt... :) Yep. I tested it after making the assumption, sure enough I was WRONG. I've got to keep my butt under control, it's getting a little out of hand. To the OP, sorry 'bout that. Erik -- PHP General Mailing List (http://www

Re: [PHP] Apache 2.0 and PHP

2003-03-17 Thread Michael Aaron
Thanks for the info. Do you know if this is specifically in regard to the worker MPM under Apache and not the prefork MPM? Or does this not have anything to do with threading? [EMAIL PROTECTED] wrote: On Fri, 14 Mar 2003, Michael Aaron wrote: Sorry if this has been answered before but I can n

[PHP] Getting false positive on strpos ... despite doublecheck... HELP!

2003-03-17 Thread -{ Rene Brehmer }-
Hi y'all I'm working on the read function for my guestbook, but I'm getting a false positive on the check for the date string. It reads a text file, checks for line headers, and then writes the HTML according to what it finds ... really simple, and works beautifully, except that I get an extra dat

Re: [PHP] copy ...

2003-03-17 Thread John Taylor-Johnston
Captn John, What the difference? I recognise the code from my attempts at Perl. What's the diff between ^ and *? Is there a doc I can read up more on? ;) Swabbie John "Cpt John W. Holmes" wrote: > What about > > eregi("TI(.*)¶",$line,$m) > > might want to use > > eregi("TI([^¶]*)¶",$line,$m) > >

Re: [PHP] copy ...

2003-03-17 Thread CPT John W. Holmes
What about eregi("TI(.*)¶",$line,$m) might want to use eregi("TI([^¶]*)¶",$line,$m) so it's not greedy. ---John Holmes... - Original Message - From: "John Taylor-Johnston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 17, 2003 2:31 PM Subject:

[PHP] Re: php-general Digest 1 Oct 2001 06:54:54 -0000 Issue 908

2003-03-17 Thread Dharmesh Joshi
Hi   I was woundering if you could help me. I have seen your post regarding c.   I am using a fgest function to open a txt file in C, but i do not wont to display all elements of the file. I would like to choose which row or coloum i would like to diaply.   I have attached a file . one is the

Re: [PHP] Microsoft access + php

2003-03-17 Thread Chris Hewitt
Denis L. Menezes wrote: Sorry folks, This question must have been asked many times before, and I must have missed it. Can someone please lead me to some tutorial where I can PHP and Microsoft Access? I just tried putting "PHP and Microsoft Access" into Google. The first item has the text "This

Re: Fw: [PHP] Looking at individual chars of string

2003-03-17 Thread zerof
Try: "; echo "So, echo \$vlr16200{0};returns the FIRST character of \"$vlr16200\", or, \"$vlr16201\"."; echo "and, echo \$vlr16200{9};returns TENTH, character of \"$vlr16200\", ou seja, \"$vlr16202\"."; ?> -- zerof -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] What is the difference: include()

2003-03-17 Thread CPT John W. Holmes
> > If you had a constant named "somefile" or "php" and you use the second > > syntax, the constant would be interpolated/evaluated to the value of the > > constant. > > > > Generally I always use single quoted strings unless there's some need > > for double-quoted strings (like if I want to embed

Re: [PHP] copy ...

2003-03-17 Thread John Taylor-Johnston
Perl, I will never touch again :) Find occurence of "TI:" and "¶" in the string $textarea and extract it only. The problem is the user may have entered \r\n. Therefore making \n out of the question to use as my end marker. John Marek Kilimajer wrote: > I have a strong feeling that POSIX regexs

[PHP] How safe?

2003-03-17 Thread Sebastian
hello all, I have another questions .. I really could use some feedback on this script, I want to make sure it's secure enough. can anyone see any risks? Basically what the script does it get username/password and user access level (passwords are encrypt md5 hash, from the database. I then include

Re: [PHP] What is the difference: include()

2003-03-17 Thread John Nichel
Erik Price wrote: BTW, I'm talking out my butt here. I was wondering what that smell was. :o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Microsoft access + php

2003-03-17 Thread zerof
If you have Dreamweaver MX, you can use PHAkt extension, that allows to work with ODBC. Interakt: http://www.interakt.ro/ Macromedia http://www.macromedia.com/ -- zerof -- "Denis L. Menezes" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] -

Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
Erik Price wrote: If you had a constant named "somefile" or "php" and you use the second syntax, the constant would be interpolated/evaluated to the value of the constant. Generally I always use single quoted strings unless there's some need for double-quoted strings (like if I want to embed

Re: Fw: [PHP] Looking at individual chars of string

2003-03-17 Thread Bix
Much appreciated! "Erik Price" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Kevin Stone wrote: > > > Actually as far as the computer knows strings *are* arrays. Access any > > character within a string in the same mannor as you would access an element > > in an array. For ex

Re: [PHP] Looking at individual chars of string

2003-03-17 Thread Bix
Cheers buddy! "Erik Price" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Bix wrote: > > Is it possible to look at individual chars of a string? > > > > eg: $str = "12345"; > > > > print $str_1 // Gives "1" > > print $str_2 // Gives "2" > > Try this: > >print $str{0}; // giv

Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
Charles Kline wrote: What is the difference as in... why one or the other? include('somefile.php'); include("somefile.php"); Just wondering... If you had a constant named "somefile" or "php" and you use the second syntax, the constant would be interpolated/evaluated to the value of the const

Fw: [PHP] Email always set to server's email, why?

2003-03-17 Thread Kevin Stone
- Original Message - From: "Vernon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 17, 2003 12:09 PM Subject: [PHP] Email always set to server's email, why? > All the email coming from a web site, even though I have set the Reply-To, > have the Reply-To set to [EMAIL PRO

Re: Fw: [PHP] Looking at individual chars of string

2003-03-17 Thread Erik Price
Kevin Stone wrote: Actually as far as the computer knows strings *are* arrays. Access any character within a string in the same mannor as you would access an element in an array. For example: $str = "hello world"; echo $str[4]; // prints o echo $str[6]; // prints w That works but is deprecated

Re: [PHP] Email always set to server's email, why?

2003-03-17 Thread John Nichel
Try it this way. mail ( "$clubemail", "$subject", "$message", "From: $email\r\n" . "Reply-To: $email\r\n" ); Notice the period (.) between the from and reply-to section, instead of the comma, and the added newline (\r\n) after the reply-to address. Vernon wrote: All the email coming from a

Re: [PHP] Looking at individual chars of string

2003-03-17 Thread Erik Price
Bix wrote: Is it possible to look at individual chars of a string? eg: $str = "12345"; print $str_1 // Gives "1" print $str_2 // Gives "2" Try this: print $str{0}; // gives "1" print $str{1}; // gives "2" Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Fw: [PHP] Looking at individual chars of string

2003-03-17 Thread Kevin Stone
- Original Message - From: "Bix" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 17, 2003 12:04 PM Subject: [PHP] Looking at individual chars of string > Is it possible to look at individual chars of a string? > > eg: $str = "12345"; > > print $str_1 // Gives "1" > print

[PHP] Email always set to server's email, why?

2003-03-17 Thread Vernon
All the email coming from a web site, even though I have set the Reply-To, have the Reply-To set to [EMAIL PROTECTED] Anyone have any ideas why? I want the reply-to set to somethign else. Here is what I have: mail("$clubemail", "$subject", "$message" , "From: $email\r\n","Reply-To: $email"); -

Re: [PHP] What is the difference: include()

2003-03-17 Thread Kevin Stone
- Original Message - From: "Charles Kline" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 17, 2003 11:57 AM Subject: [PHP] What is the difference: include() > What is the difference as in... why one or the other? > > include('somefile.php'); > > include("somefile.php"); >

Re: [PHP] What is the difference: include()

2003-03-17 Thread CPT John W. Holmes
> What is the difference as in... why one or the other? > > include('somefile.php'); > > include("somefile.php"); > > Just wondering... No difference as far as include() goes. Read the manual on strings to see how PHP treats strings in single and double quotes differently. ---John Holmes... --

[PHP] Looking at individual chars of string

2003-03-17 Thread Bix
Is it possible to look at individual chars of a string? eg: $str = "12345"; print $str_1 // Gives "1" print $str_2 // Gives "2" Doing this with an array would be handy, maybe using explode or preg_split? Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] What is the difference: include()

2003-03-17 Thread Charles Kline
perfect. thanks for the explanation. cheers, charles On Monday, March 17, 2003, at 02:01 PM, Pete James wrote: Only that you can embed vars in the second one. if $foo='bar'; include('somefile_{$foo}'); will include the file 'somefile{$foo}', where include("somefile_{$foo}"); will include the fi

Re: [PHP] What is the difference: include()

2003-03-17 Thread Pete James
Only that you can embed vars in the second one. if $foo='bar'; include('somefile_{$foo}'); will include the file 'somefile{$foo}', where include("somefile_{$foo}"); will include the file 'somefile_bar' HTH. Charles Kline wrote: What is the difference as in... why one or the other? include('some

[PHP] What is the difference: include()

2003-03-17 Thread Charles Kline
What is the difference as in... why one or the other? include('somefile.php'); include("somefile.php"); Just wondering... - ck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working with dates

2003-03-17 Thread Jim Lucas
you do that same query in mysql Jim - Original Message - From: "Joshua Moore-Oliva" <[EMAIL PROTECTED]> To: "Brad Harriger" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 17, 2003 10:49 AM Subject: Re: [PHP] Working with dates > Switch to postgres! then you can do > > SELE

Re: [PHP] Working with dates

2003-03-17 Thread Joshua Moore-Oliva
Switch to postgres! then you can do SELECT stamp FROM table WHERE stamp BETWEEN timestamp 'today' AND timestamp 'tomorrow'; On March 17, 2003 12:43 pm, Brad Harriger wrote: > I have two variables, $StartDate and &EndDate that contain values read > from MySQL Date fields. How can I determine i

Re: [PHP] Sensibly accounting for timezone differences?

2003-03-17 Thread Joshua Moore-Oliva
On March 17, 2003 07:55 am, M Wells wrote: > Hi All, > > I'm an Australian PHP developer and host most of my web sites on US > servers. One in particular is primarily accessed by Australian visitors > and I want to be able to reflect Australian Eastern Standard Times when > writing / reporting reco

[PHP] Looking for library of functions

2003-03-17 Thread Shawn McKenzie
Can anyone please point me to a set of good functions to search and manipulate HTML? Mainly I'm looking to buffer HTML that is output by another script and fix some issues with it. Such as missing " around property values and many other things. Function examples: Find tags in HTML, replace tags

Re: [PHP] sorting results in PHP

2003-03-17 Thread bill
Aha. Comments like yours made me look again. It turns out that I could use ORDER BY with a GROUP BY but I couldn't have it before a HAVING. Specifically, I had SELECT ... GROUP BY $detailsdb.eid ORDER BY Year, Month, Day HAVING foobar = $numcatchoices To fix it I changed the or

RE: [PHP] Working with dates

2003-03-17 Thread John W. Holmes
> I have two variables, $StartDate and &EndDate that contain values read > from MySQL Date fields. How can I determine if a value entered by the > user is between the two dates? I'm using PHP 4.0.6. I think you can take MySQL timestamps directly into strtotime(). If($user > strtotime($StartDate

Re: [PHP] Working with dates

2003-03-17 Thread Erik Price
Brad Harriger wrote: I have two variables, $StartDate and &EndDate that contain values read from MySQL Date fields. How can I determine if a value entered by the user is between the two dates? I'm using PHP 4.0.6. if ($user_input > $StartDate && $user_input < $EndDate) { // do som

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Pete James
header(), session_start(), etc. can go anywhere in a page (after any content) as long as you start the page using output buffering (ob_start()). Example (bad example) follows: ob_start() print this; print that; if ($forgot) { // oops need to redirect header('Location: foo.php'); } print t

[PHP] Working with dates

2003-03-17 Thread Brad Harriger
I have two variables, $StartDate and &EndDate that contain values read from MySQL Date fields. How can I determine if a value entered by the user is between the two dates? I'm using PHP 4.0.6. Thanks in advance, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

RE: [PHP] A faster way to Redirect pages

2003-03-17 Thread Barajas, Arturo
Just clarifying a little. The header() function doesn't necessarily go at the top. You can make whatever operations you need, but as long as nothing is echoed to the browser, there's no problem. I mean: -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Erik Price
Poon, Kelvin (Infomart) wrote: I know this topic was discussed but I deleted my previous mail so I can't go back and review them. STFA: http://marc.theaimsgroup.com/?l=php-general My question is, is there a faster way to redirect html pages other than just using ? Is there any way we can do

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Oscar F
Kelvin, You can use If you want to do it with PHP. You have to put it at the top of the file, since no other information can be sent before the Location header. HTH, -Oscar F. Poon, Kelvin (Infomart) wrote: Hi, I know this topic was discussed but I deleted my previous mail so I can't go back

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Pete James
Try zero seconds? Poon, Kelvin (Infomart) wrote: Hi, I know this topic was discussed but I deleted my previous mail so I can't go back and review them. My question is, is there a faster way to redirect html pages other than just using ? Is there any way we can do that in php so that it redire

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread John Nichel
Manual->HTTP->Header Poon, Kelvin (Infomart) wrote: Hi, I know this topic was discussed but I deleted my previous mail so I can't go back and review them. My question is, is there a faster way to redirect html pages other than just using ? Is there any way we can do that in php so that it red

[PHP] A faster way to Redirect pages

2003-03-17 Thread Poon, Kelvin (Infomart)
Hi, I know this topic was discussed but I deleted my previous mail so I can't go back and review them. My question is, is there a faster way to redirect html pages other than just using ? Is there any way we can do that in php so that it redirect "FASTER"? Right now I set the redirect time to

Re: [PHP] stripping slashes before insert behaving badly

2003-03-17 Thread Charles Kline
John, You are right, something was adding the additional slash. I removed the addslashes() and it fixed the problem. Something I am doing must already be handling that... will step through the code AGAIN and see if I can find it. - Charles On Monday, March 17, 2003, at 12:19 PM, John W. Holme

RE: [PHP] stripping slashes before insert behaving badly

2003-03-17 Thread John W. Holmes
> I am inserting data from a form into a mySQL database. I am using > addslashes to escape things like ' in the data input (this is actually > being done in PEAR (HTML_QuickForm). > > The weird thing is that the data gets written into the table like: > what\'s your problem? > > WITH the slash. I

  1   2   >