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

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: 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] 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

[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] 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:

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) > >

[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] 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

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] 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] 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

[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] 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] 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] 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.

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] 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

[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] 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

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 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] 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

[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] 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

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] 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

[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] 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

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

[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] 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,

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

[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

[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

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] 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] 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] 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

[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

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("... > ... >

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

[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

[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

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

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

[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] 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] 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] 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

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] 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

[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

[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

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] 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] 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] 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

[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] 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

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]>

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

[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] 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

<    1   2