RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
When the exec'd program executes from the command line, does it output a blank line as its last line? -Original Message- From: Walker, Roy [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 2:05 PM To: '[EMAIL PROTECTED]' Subject: RE: [PHP] Regular Expressions? Help! I just realize

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Walker, Roy
No. I think there is a carriage return (\n), but there is not a blank line at the end. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 3:07 PM To: 'Walker, Roy'; '[EMAIL PROTECTED]' Subject:RE: [PHP] Regular Expressions? Help

Re: [PHP] upload forms, how much was uploaded before upload fails..

2002-03-25 Thread Rasmus Lerdorf
There is only an upload_tmp_dir. Not sure where you think this second tmpdir is coming from. Once the upload is finished the file is written to the upload_tmpdir and you then have to do something with the file from there. -Rasmus On Mon, 25 Mar 2002, Gerhard Hoogterp wrote: > On Sunday 24 Mar

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
Do this. Execute the command at the command line and re-direct output to a file: xxx. Open file xxx with an editor, such as vi. Is there a blank line, or line with JUST a carriage-return (\n) as the last line? -Original Message- From: Walker, Roy [mailto:[EMAIL PROTECTED]] Sent: Monday

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread heinisch
At 25.03.2002 14:26, you wrote: > >Perhaps it is how I am calling the $lines in a while loop.? I have tried >`$cmd`, exec(), exec($cmd, $ouput) (to capture the output as an array), >system(), shell_exec(). None of them let me capture the STDOUT from the >program. There has to be a way to do th

Re[4]: [PHP] [newbie] Something is messed up, anybody can help?

2002-03-25 Thread Mantas Kriauciunas
Hey PHP General List, Well it didn't work with $_session["logged"] and now i found one more interesting thing. it works if i do like this: . $row = mysql_fetch_row($result); $session["uzeriz"]=$uzr_name; $session["logged"]=1; . then i pass: . draw_admin_menu($session["uzeriz"]); ...

[PHP] Re: Another Session Question

2002-03-25 Thread javier
Have you got the url? John Fishworld wrote: > I've seen various tutorials on sessions where they specify the session id > instead of just using one > generated by php ! > > Why ? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Darren Gamble
Good day, exec() isn't very good at capturing output. It will only return the last line of output, which is designed mostly to capture error conditions. You would be best off using popen() and attaching a pipe to the output, and then just read from the pipe. More information can be found about

[PHP] FTP RAW

2002-03-25 Thread Chris
Can anyone help me with the command I need for a RAW FTP file upload? I can create connections and they empty file, but I have no idea how to get the data into the file and I have tried everything. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

RE: [PHP] what's "undefined index" ?

2002-03-25 Thread Martin Towell
$KundeRemark = stripslashes($val["KundeRemark"]); ^^^ \ This is fine, you're assigning TO this \ It's this bit that's undefined as you said: > which is a field from a SQL result which currently doesn't exist... so, in a way,

[PHP] PHP 4.1.2 as napi

2002-03-25 Thread Donald McKnight
Hi php compiled fine but when i restarted the webserver I recieved this error msg. conf_init: Error running init function load-modules: dlopen of /SuperPages/ns-home/bin/libphp4.so failed (ld.so.1: ns-httpd: fatal: relocation error: file /usr/local/lib/libsablot.so.0: symbol __pure_virtual: refe

[PHP] Private Data and Methods for Classes

2002-03-25 Thread Rick Emery
The following is directed to the PHP development team. I would like to suggest a capability be added to PHP's class implementation. Specifically, provide the capability to segregate class data and methods into private methods and data from those that are available for direct invocation from the o

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
exec() can capture ALL output from a command if you supply an array as the second argument to it -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 3:58 PM To: 'Walker, Roy'; '[EMAIL PROTECTED]' Subject: RE: [PHP] Regular Expressions? Help! Go

[PHP] php and javascript

2002-03-25 Thread Scott
I have some image urls that I have stored in a mysql database. I want to be able to display the images in a popup window using javascript. But I haven't been able to figure out how to get the get the info to mysql so that the image loads when the popup window appears. Below is an example of

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Walker, Roy
The problem is that exec() is looking for an immediate output and since I am calling a command line program it doesn't return fast enough for it (I think). The popen or fopen looks like it would work, but I don't understand how to execute the command. Ie. -Original Message- From: R

[PHP] Re: Include Error on PHP 4.1.2

2002-03-25 Thread Julio Nobrega
ini_set ('include_path', '/new/path'). Change '/new/path' to (usually) your website root. Beleza? ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca "Alberto Wagner" <[EMAIL PROTECTED]> wrote in message LI41WQTNUO1TTQHGHBGEGBBAWVWUB0E.3ca4d9dd@alberto">news:

Re[4]: [PHP] [newbie] Something is messed up, anybody can help?

2002-03-25 Thread Miguel Cruz
On Mon, 25 Mar 2002, Mantas Kriauciunas wrote: > Well it didn't work with $_session["logged"] $_session is not the same thing as $_SESSION miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mime type prepeded at file upload

2002-03-25 Thread Miguel Cruz
On Mon, 25 Mar 2002, David McInnis wrote: > When I save a file that has been uploaded through PHP it prepends (adds > to the beginning of the file) the mime type. This renders the file > unusable when it is downloaded as MS Word cannot open the file and tries > to install some kind of converter.

[PHP] how to compile a dynamic extension

2002-03-25 Thread Charmaine Tian
Hi there, I have my own extension and I need to compile it with PHP. I was able to use the automatic build system to compile it as a static module (--with-mymodule or --enable-mymodule). However, I cannot find any documentation on how to compile it as a shared module. Can anybody enlgihten me how

Re: [PHP] Program control question

2002-03-25 Thread Miguel Cruz
On Mon, 25 Mar 2002, Brad Harriger wrote: > I'm trying to debug a program written by someone else. There are two > files that I'm having problems with. File A uses require_once to call > file B. Near the beginning of File B is a Header("Location:") that > calls File A. Can anyone tell me i

Re: [PHP] Regular Expression Challenge

2002-03-25 Thread Cameron Just
No luck on any of those suggestions people but thanks anyway :( I had a feeling it was a bit too complex for a regexp. > Oh, I didnt read the bit at the bottom about the times appearing any > number of times. Off the top of my head I think this should work... > > PREG: > > "/'([a-z]+)-([a-z]+

Re: [PHP] how to compile a dynamic extension

2002-03-25 Thread Thalis A. Kalfigopoulos
Maybe I'm missing something, but if you mean that you want to add some new functionality into your PHP module e.g. for the GD image library, then you create the libphp.so all over again (don't you?) --t. On Mon, 25 Mar 2002, Charmaine Tian wrote: > Hi there, > > I have my own extension and

RE: [PHP] Mime type prepeded at file upload

2002-03-25 Thread David McInnis
I have no such statements in my code. This is looking like a known issue in PHP. I gather that is taken care of in later releases. David McInnis -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 3:47 PM To: David McInnis Cc: [EMAIL PROTECTED

RE: [PHP] Mime type prepeded at file upload

2002-03-25 Thread Miguel Cruz
In that case, I don't think I understand what you're asking. Are you saying that the file stored on the server's filesystem after a multipart/form-data POSTing has the MIME type added to its content? Because our servers handle thousands of such transactions daily and it's certainly not happeni

[PHP] mail() function returns TRUE but no email is sent

2002-03-25 Thread Kevin Stone
Anyone run into this problem before? I've got a simple email parser that I've set up for our clients to access from their websites. It just uses the simple mail() function to send the parsed HTML to their account. The mail() function is returning TRUE but the email no email is being received.

Re: [PHP] mail() function returns TRUE but no email is sent

2002-03-25 Thread Rasmus Lerdorf
Sure, it just passes it off to the MTA. If the MTA drops the ball later on we don't know about it. Check your logs. On Mon, 25 Mar 2002, Kevin Stone wrote: > Anyone run into this problem before? I've got a simple email parser > that I've set up for our clients to access from their websites.

Re: [PHP] getenv and ISAPI: solution?

2002-03-25 Thread Kai Schaetzl
Your message of Mon, 25 Mar 2002 09:42:11 -0800 (PST): Ah, I see, thanks for the quick response. Reminds me, that I should possibly switch off global registering, anyway ... Ahm, comparing (count($HTTP_GET_VARS)) with my expression below (!$HTTP_POST_VARS) shouldn't then (!$HTTP_GET_VARS) do

Re: [PHP] what's "undefined index" ?

2002-03-25 Thread Kai Schaetzl
Your message of Mon, 25 Mar 2002 09:39:06 -0700: > The error message refers to the "KundeRemark" in $val["KundeRemark"], not > "$KundeRemark" which you are trying to assign the result to. The former is > (if it existed) an index, the latter is a variable. > Oh, yeah, I see. Stupid me. Thanks!

Re: [PHP] User validation and Session management

2002-03-25 Thread Justin French
There is a pretty good tutorial on a simular topic on Site Point... it deals with restricting SOME pages of a website, and would be reasonably easy to adapt to work with a permissions table -- although I'd keep the user_id in a session, and check if *THIS USER* has permission for *THIS PAGE*, rath

RE: [PHP] what's "undefined index" ?

2002-03-25 Thread Martin Towell
Just a follow up - I've been doing some debugging of my own code and here are the three different errors to do with undefined varariables: Undefined variable - variable not set/declared Undefined offset- numeric index doesn't exist Undefined index - alphanumeric index doesn't exist (I m

[PHP] Re: PHPTriad Error in Windows XP.

2002-03-25 Thread Peter Ruan
I did started MySQL server first. "Avdija A . Ahmedhodzic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > says... > > Hi, > > I installed PHPTriad under Windows XP and I keep gettting the > > following error

Re: [PHP] Regular Expression Challenge

2002-03-25 Thread Christopher William Wesley
You won't be able to do that with a regexp alone. Recursively matching isn't possible. You'll need a little help from some additional code. \n" . $matches[2] . "\n" ); while( list( $key, $val ) = each( $times ) ){ print( trim( ${val} ) . "\n" ); } ?> That seems

[PHP] RE: Does anyone use UltrDev?

2002-03-25 Thread Jerry Artman
Just gave it up for GoLive6 :) The php model never worked well. I even purchased impAKT and Nextensio. The 1.1 version somewhat worked, the 1.2 was DOA. Most of those features are in the GL6. Samples illustrate edit in lists and list and edit areas on same page. Sessions not as easy. MacOSX N

Re: [PHP] Regular Expression Challenge

2002-03-25 Thread Cameron Just
Brilliant. (Sort of) Thats the answer I needed thankyou. I was not sure as to whether regexp could do recursive matching and now I know. Thankyou for your help. > You won't be able to do that with a regexp alone. Recursively matching > isn't possible. You'll need a little help from some addit

RE: [PHP] mail() function returns TRUE but no email is sent

2002-03-25 Thread Demitrious S. Kelly
I would check the mail logs on the smtp server ?(if you have access) or... try this and see if ANY mail is bveing sent to you (assumes a unix server with sendmail (or compatible) binary installed) $fp=fopen('./tmp', 'w'); fputs($fp, 'Subject: '.$reportsubject.chr(10)); fputs($fp, $

[PHP] Database connection problem

2002-03-25 Thread Omland Christopher m
Hi, can anyone help me with this problem. I'm trying to connect to a MySQL database on my computer, I don't have a hostname for it, so I just insert the IP, something like this. ... mysql_cos? Thanks. -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

RE: [PHP] Database connection problem

2002-03-25 Thread Demitrious S. Kelly
I have no idea what you meant to ask... but instead of an ip address I would use the hostname 'localhost' which most servers are setup by default to understand as 127.0.0.1 (loopback). And you can add an entry to /etc/hosts or C:\windows\hosts or c:\winnt\(?system(?32?)\?)hosts But that's just me

[PHP] Re: Database connection problem

2002-03-25 Thread Cameron Just
Hi, Genenally you can use 'localhost' as the hostname username 'root' and the password is blank. I beleive this is a default user when mysql is installed. The details about how to connect are in the database 'mysql' and the table 'user'. You should probably add a new user specifically for your p

[PHP] File Edit

2002-03-25 Thread Randy Johnson
Hello, I want to be able to edit part of a file. via a text box using php how do i read a file and get the part i want to read and edit it and then write it back to that file here is an example: . case "$1" in start) 100.123.456.789 321.654.987.231 123.45.456.789 123.456.789.12 ;;

Re: [PHP] File Edit

2002-03-25 Thread Rasmus Lerdorf
You read the entire file into memory (an array using file() perhaps) and then edit it in memory and write the entire new file back out. -Rasmus On Mon, 25 Mar 2002, Randy Johnson wrote: > Hello, > > > I want to be able to edit part of a file. via a text box using php how do i read a >file an

Re: [PHP] File Edit

2002-03-25 Thread Randy Johnson
How do I know what part of it to read in the array? - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Randy Johnson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 9:03 PM Subject: Re: [PHP] File Edit > You read the entire file into memory (an

[PHP] which php book 2 buy ?

2002-03-25 Thread Septic Flesh
I wanna buy a book from amazon . . .but don't know which one.. Do you know where I will find examples of shopping carts ? (which book ?) thanks.. -- Sapilas@/dev/pinkeye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] File Edit

2002-03-25 Thread Rasmus Lerdorf
You read all of it On Mon, 25 Mar 2002, Randy Johnson wrote: > How do I know what part of it to read in the array? > - Original Message - > From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> > To: "Randy Johnson" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Monday, March 25, 2002 9:03 P

[PHP] Find if a html tag was closed

2002-03-25 Thread Julio Nobrega
Hi all, I am trying to build a regex to check if an array of allowed html tags were closed. For example: Wrong: text Should give me something like: Tag was not closed. Here's what I came up so far: $tags_to_check = Array('a','b','i','p'); foreach ($tags_to_check as $tag_check) { i

Re: [PHP] File Edit

2002-03-25 Thread Randy Johnson
ok i read all the file into an array, now do i search each line in the array . based on my example i do not know how to proceed after reading it into the array case "$1" in start) 100.123.456.789 321.654.987.231 123.45.456.789 123.456.789.12 ;; - Original Message - From: "R

Re: [PHP] FTP RAW

2002-03-25 Thread Analysis & Solutions
Hi Chris: On Mon, Mar 25, 2002 at 02:05:30PM -0700, Chris wrote: > Can anyone help me with the command I need for a RAW FTP file upload? > I can create connections and they empty file, but I have no idea how to get > the data into the file and I have tried everything. Have you tried first creati

Re: [PHP] Is there anyway to save a file into Mysql database

2002-03-25 Thread Miguel Cruz
On Mon, 25 Mar 2002, Jack wrote: > Can someone pls tell me is php will be able to grep text from MS Word and > then save that word file into MYSQL database? Which means is MYSQL will be > able to store files into it's table? You can pipe the Word document through a program like catdoc (http://ww

Re: [PHP] Bad Email Addresses

2002-03-25 Thread Analysis & Solutions
Hey Steven: On Mon, Mar 25, 2002 at 09:40:01AM -0800, Steven Walker wrote: > I have PHP automated emails sent from my website. Does anybody know a > good way to filter returned mail? What I want to do is extract the bad > email addresses from returned mail and delete them from my database. Ar

Re: [PHP] XML Comparison?

2002-03-25 Thread Analysis & Solutions
Chris: On Mon, Mar 25, 2002 at 08:38:16AM -0500, Chris Hilbert wrote: > I was wondering if anyone would know how I could go about checking two XML > files for differences, similar to the "diff" command in *nix. I'm having a > heck of a time getting a function written to achieve this task. Which

[PHP] Re: HTTP_REFERER

2002-03-25 Thread Jim Koutoumis
Tom, I sort of do the same here,... think you'll find that index.html is the 'default index' for a directory when a page isn't specified on your web server and that she's going to http://www.domain.com Hope this helps. Jim. "Tom Hilton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED

[PHP] Re: Session Variables

2002-03-25 Thread bob
On Mon, 25 Mar 2002 18:18:33 -, [EMAIL PROTECTED] (Chad Gilmer) wrote: >Hi There, > >I am a beginner to PHP and I am tring to use session variables on my site. > >I am trying to use Session Variables in PHP on the iPLANIT.tv site > >When I use the following code: > > $ses_counter++; > > sessi

Re: [PHP] header and session?

2002-03-25 Thread bob
On Mon, 25 Mar 2002 08:54:27 -0700, [EMAIL PROTECTED] (Johny? ?rk) wrote: >Do you have register_globals turned on or off in php.ini? What values are $a >and $b being set to? > >Kirk > >> -Original Message- >> From: bob [mailto:[EMAIL PROTECTED]] >> Sent: Sunday, March 24, 2002 4:21 PM >>

Re: [PHP] Regular Expression Challenge

2002-03-25 Thread Matt Moreton
You can do recursive matching using the (?R) syntax in preg functions (Perl Compatible Regular Expression). - Original Message - From: "Christopher William Wesley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Cameron Just" <[EMAIL PROTECTED]> Sent: Tuesday, March 26, 2002 1:01 AM Subj

Re: [PHP] Re: Non-Cache in forms?

2002-03-25 Thread David Robley
On 25 Mar 2002 at 0:29, [EMAIL PROTECTED] wrote: > yes, but i send them back to the previous page > and it shows the form... > > What would be a way around this? > - Original Message - > From: "David Robley" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, March 24, 2002 11:

Re: [PHP] Regular Expression Challenge

2002-03-25 Thread Richard Archer
At 11:30 AM +1000 26/3/02, Cameron Just wrote: >I was not sure as to whether regexp could do recursive matching and now I >know. This is crazy! There used to be clue on this list! \n"; } } ?> Output: $tok[0] = wed $tok[1] = thurs $tok[2] = 9:35 $tok[3] = 14:56 $tok[4] = 18:35 $tok[5]

[PHP] PEAR installation correct?

2002-03-25 Thread lmlweb
How do I know if my web hosting server installed PEAR correctly? I'm trying to create a Search Engine from the PHP Developer's Cookbook, and so far, here's what I know: PHP has the PEAR installed ('--with-pear' according phpinfo.php) And having telnetted into my server, was able to find the PEA

Re: [PHP] Re: Non-Cache in forms?

2002-03-25 Thread eric.coleman
I am putting certin code within comment tags, so it isn't seen... - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 11:00 PM Subject: Re: [PHP] Re: Non-Cache in forms? > On 25 Mar 2002 at 0:29, [EM

Re: [PHP] php and javascript

2002-03-25 Thread Dennis Moore
Your popup window should be an normal PHP page calling your images in the database. You can then setup your form to call the popup windows via javascript using the window.open() method. /dkm - Original Message - From: "Scott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday,

Re: [PHP] File Edit

2002-03-25 Thread Jason Wong
On Tuesday 26 March 2002 10:41, Randy Johnson wrote: > ok i read all the file into an array, > > now do i search each line in the array . Yes. Based on the fragment of file that you've given, here's some psuedo-code. initialise 3 arrays, $top, $middle, $bottom; $found_middle = 0; $found_bottom;

Re: [PHP] Regular Expression Challenge

2002-03-25 Thread Matt Moreton
Very nice. I was going to suggest: But uhhh, your way is much nicer :] - Original Message - From: "Richard Archer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 26, 2002 4:04 AM Subject: Re: [PHP] Regular Expression Challenge > At 11:30 AM +1000 26/3/02, Cameron Ju

[PHP] Cookies

2002-03-25 Thread Chuck \"PUP\" Payne
Can someone point me to a webset that example how to do cookies? I try to do what the mannual said but, when I go to my temp dir, there no cookie file. I know it working because my file would print a phrasing error. Thanks, | Chuck Payne | | Magi Desi

[PHP] RESOLVED --> RE: [PHP] Mime type prepeded at file upload

2002-03-25 Thread David McInnis
This was a problem with the version of PHP that I had installed. PHP-4.0.4pl1. Apparently there is a bug that causes this to be written to the front of the file. Solution? Upgrade. David McInnis -Original Message- From: David McInnis [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25,

<    1   2