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

[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

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

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

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

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

[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

[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

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

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

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

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

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

[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

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

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

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

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

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

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

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

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

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

[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

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] 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] 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] 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[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"]); ...

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

2002-03-25 Thread heinisch
At 25.03.2002 15:10, you wrote: > > >hi.. is there any way to use the php oracle function to check to see if >there are any records in the selected set before calling ora_fetch? >ora_exec doesn't error if ther are no records, and ora_num_rows doesn't >return the numbe of rows in the set., > >than

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Walker, Roy
Sorry. Yes. It looks exactly like it should. And I see the ouput from the command like it should on the screen, I just can't capture it in the script. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 2:59 PM To: 'Walker, Roy'; '[EMAIL

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
Again, I ask: Does $mycmd contain the command you expect to see $mycmd = "$prog $cmdline $trimline &"; print $mycmd; $output = exec($mycmd); -Original Message- From: Walker, Roy [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 2:56 PM To: 'Rick Emery'; '[EMAIL PROTECTED]' Sub

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

2002-03-25 Thread Mantas Kriauciunas
Hey PHP General List, Well thanks for helping but still i get nothing and i have no idea why. I changed the line as you said to: if( $session["logged"]==1 ) { draw_admin_menu($uzeriz); } and took out that while. It shows the box but the $uzeriz that i pass doesn't show up :/ maybe anybody se

[PHP] Program control question

2002-03-25 Thread Brad Harriger
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 if the part of file B that comes after the Header(

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Walker, Roy
The cmd is running running correctly as I see the output on the screen (this is being run from a command line). The command output is seen on the screen and nothing gets set to $output. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 2:50

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
exec() works for me. Remember, though, it returns only the LAST line. Have you tried the following to ensure it's constructing the command you think it is: $mycmd = "$prog $cmdline $trimline &"; print $mycmd; $output = exec($mycmd); -Original Message- From: Walker, Roy [mailto:[EMAIL P

[PHP] New Chat interface on weberdev to the #PHP channel

2002-03-25 Thread Boaz Yahav
Hi One of the ways to get PHP support is from IRC channels that exist for this purpose (you can see them listed on http://www.php.net). If you don't have a way to connect to the IRC servers for any reason, or just prefer a web based client, try the ActiveX client (assuming you are using IE) on

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Walker, Roy
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 this. Anyone? Thanx -Original Me

[PHP] oracle exec

2002-03-25 Thread matthew clay shultz
hi.. is there any way to use the php oracle function to check to see if there are any records in the selected set before calling ora_fetch? ora_exec doesn't error if ther are no records, and ora_num_rows doesn't return the numbe of rows in the set., thanks! matt -- PHP General Mailing List (h

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
exec() -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 realized why nothing I was trying for the regular expressions wasn't working. The command I am runnin

Re: [PHP] HTTP_REFERER

2002-03-25 Thread Erik Price
On Monday, March 25, 2002, at 02:52 PM, tom hilton wrote: > This is working fine for most users, but one user is telling me that > even > though she is following the link from the index page, she's still > getting > the error message, and are being bounced back to the index page. She > is

Re: [PHP] HTTP_REFERER

2002-03-25 Thread Dan Harrelson
Have you checked that your user is indeed coming from "http://www.somedomain.com/index.html";? There are lots of other ways to load your homepage: "http://xxx.xxx.xxx.xxx/index.html"; (ip address, not domain) "http://www.somedomain.com/"; "http://www.somedomain.com"; "http://xxx.xxx.xxx.xxx"; "h

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Walker, Roy
I just realized why nothing I was trying for the regular expressions wasn't working. The command I am running is a C program on the command line of a Linux box. I can't capture the output, it just gets output onto the screen. I just echo'd $output after the command was run and it was empty. Any

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Walker, Roy
There will be a specific number of variables returned. I just wanted to set all the output to a string and just run through it to grab the variables. Thanx -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 1:28 PM To: 'Walker, Roy'; '[

[PHP] PHP and Oracle

2002-03-25 Thread Scarbrough, Jeb (ISS Atlanta)
Is it possible to create a transaction the involves multiple pages using PHP and oracle. For example, can I log onto oracle using OCIPLogon on one page named master, insert information, go to the next page named detail, insert information and commit both transactions at the same time? -- PHP Ge

[PHP] HTTP_REFERER

2002-03-25 Thread tom hilton
Hi, I am using the $HTTP_REFERER variable to ensure that users of a website are getting to a certain page through a link from the index.html page, and not going straight to the page through a bookmark. $page=$HTTP_REFERER; if ($page!="http://www.somedomain.com/index.html";) { echo "Please log

[PHP] Mime type prepeded at file upload

2002-03-25 Thread David McInnis
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. Any ideas for me? David McInnis -- PHP Genera

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

2002-03-25 Thread Gerhard Hoogterp
On Sunday 24 March 2002 23:14, Rasmus Lerdorf wrote: > You'll probably need PHP 4.2 for uploads that big to work well. Before > 4.2 uploads were buffered in ram, so no, you have no way to recover a > broken upload. But what, in that case, is the use or purpose of upload_tmp_dir ?? Moving fro

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
With there be a specifc number of variables returne? Or can the number of variables vary? -Original Message- From: Walker, Roy [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 1:26 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Regular Expressions? Help! I am trying to do a match fo

[PHP] Regular Expressions? Help!

2002-03-25 Thread Walker, Roy
I am trying to do a match for an expression and it to a variable from the output of a command: How can look through $output to set the information returned as different variables the output would look like: variable1:"some information" variable2:"some information" I want to set each variable

RE: [PHP] Session Variables

2002-03-25 Thread Rick Emery
it means you've already output some HTML or a blank line -Original Message- From: Chad Gilmer [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Session Variables Hi There, I am a beginner to PHP and I am tring to use session variable

[PHP] Session Variables

2002-03-25 Thread Chad Gilmer
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: I get the following error Warning: Cannot send session cookie - headers already sent by (output started at /

[PHP] Re: Debugging tool

2002-03-25 Thread Julio Nobrega Trabalhando
http://www.google.com/search?q=php+debugger&sourceid=opera&num=0&ie=utf-8&oe =utf-8 Google good! ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 "Mor

Re: [PHP] reg-ex

2002-03-25 Thread Rasmus Lerdorf
"^[ A-Za-z---]*$" On Mon, 25 Mar 2002, John Fishworld wrote: > How can I change this to accept spaces as well ? > > (ereg("^[A-Za-zÀ-ÖØ-öø-ÿ]*$", $str)) > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing Li

Re: [PHP] GIF support in PHP

2002-03-25 Thread Rasmus Lerdorf
Depends on whether you have GD without GIF enabled already built into your PHP already. Check with phpinfo(). If you don't you have build a shared gd extension against a version of GD that has GD support and add that dynamically without recompiling PHP. If you do have GD in there already you ha

[PHP] Debugging tool

2002-03-25 Thread Morten Nielsen
Hi, Can anybody tell me if it is possible to use a debugger with PHP? And what is the name of it? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date ("j") not working on Unix - any ideas

2002-03-25 Thread Rasmus Lerdorf
Because 'j' was probably added somewhere in between the two versions... On Mon, 25 Mar 2002, geoff wrote: > Any ideas why date ("j") doesn't appear to work when I use it on my ISP > that has a Unix Server, but on my Windows ISP , it works fine ? The other > date() functions Y,m,d etc all wo

[PHP] Re: Login displays the pass and user in url

2002-03-25 Thread Martha S
You have to add an extra tag into the form tag (method="post"), it should read as follows: (" "David Orn Johannsson" <[EMAIL PROTECTED]> wrote in message 003001c1d418$7126b3f0$6500640a@gandalf">news:003001c1d418$7126b3f0$6500640a@gandalf... Can I some how prevent the browser from displayin index

Re: [PHP] getenv and ISAPI: solution?

2002-03-25 Thread Rasmus Lerdorf
if(count($HTTP_GET_VARS)) On Mon, 25 Mar 2002, Kai Schaetzl wrote: > I transferred an application from Linux/Apache to .NET/IIS6 and it > appeared to be working fine, first. A bit later I found that it > wouldn't switch to most functions derived from a GET variable. The > reason being that $quer

[PHP] mimeexplode counterpart in php?

2002-03-25 Thread Jimmy Lantz
Hi! I wonder if there's such a thing as a counterpart in PHP for MimeExplode in PERL? MimeExplode takes a email and splits the attachments and text so that you can save it automatically to a certain dir by using .forward files. Or something alike to it in PHP. I've been looking at IMAP functions

[PHP] Bad Email Addresses

2002-03-25 Thread Steven Walker
Hi, 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. For now I have the return path sent to me, and I manually weed the bad ones out

[PHP] RE: [PHP-WIN] How to Pass the Username which from Windows Login

2002-03-25 Thread Vail, Warren
Are you referring to the userid on the machine where your web application runs (your server) or the userid of the user who connects to your website with his browser? I suspect you mean the latter and would be very interested in how this could be done as well. Warren Vail Tools, Metrics & Quality

RE: [PHP] undefined variable when using if ($var) {}

2002-03-25 Thread Darren Gamble
Good day. What is this message that you get, that you don't want? A cursory glance of the code reveals two "else" statements attached to the same "if" statement. You should address that. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue

[PHP] getenv and ISAPI: solution?

2002-03-25 Thread Kai Schaetzl
I transferred an application from Linux/Apache to .NET/IIS6 and it appeared to be working fine, first. A bit later I found that it wouldn't switch to most functions derived from a GET variable. The reason being that $query seems to be empty, so it always defaults to this action: $query = gete

RE: [PHP] list(), each()

2002-03-25 Thread Rick Emery
change to: list( $policy_num, $policy_year, $application_reference ) = explode( "--", $policy ); -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 11:22 AM To: PHP General Subject: [PHP] list(), each() Ok, I've got to be doing something wrong

Re: [PHP] e-mail list app

2002-03-25 Thread Dan Harrelson
Check out Ciao EmailList Manager: http://www.technobreeze.com/php/emaillist/ -Dan --- "Michael A. Peters" <[EMAIL PROTECTED]> wrote: > Anyone know of a free app that allows users to submit- > > name, nickname, e-mail addy > > app sends a url confirm to e-mail addy. > upon confirm, the info g

Re: [PHP] list(), each()

2002-03-25 Thread Chris Boget
> Why do you put each(explode()) ? Just list() = explode() is what you > want. I did that because I thought they were complimentary functions? Just about every example I've seen of list() uses each(). Just using explode() makes it work. Obviously I'm going to have to go back and read more abo

  1   2   >