Re: [PHP] ssh command in php script

2003-11-10 Thread Robert Cummings
On Tue, 2003-11-11 at 01:37, Robert Cummings wrote: > On Tue, 2003-11-11 at 01:34, tirumal b wrote: > > Hello All > > > > I have written the following command in PHP script > > echo `ssh `. I have the remote ip > > addr as trusted, dont ask for the password at all. > > when the execute the php fi

Re: [PHP] ssh command in php script

2003-11-10 Thread Robert Cummings
On Tue, 2003-11-11 at 01:34, tirumal b wrote: > Hello All > > I have written the following command in PHP script > echo `ssh `. I have the remote ip > addr as trusted, dont ask for the password at all. > when the execute the php file from the browser it does > not go to the remote ip at all thoug

[PHP] ssh command in php script

2003-11-10 Thread tirumal b
Hello All I have written the following command in PHP script echo `ssh `. I have the remote ip addr as trusted, dont ask for the password at all. when the execute the php file from the browser it does not go to the remote ip at all though this command works fine in a normal bash script. what is t

Re: [PHP] can button onclick executed a bash script

2003-11-10 Thread Robert Cummings
On Tue, 2003-11-11 at 01:25, tirumal b wrote: > Hello All, > > A button tag's onclick event can execute a function > of javascript but can it do the same with bash script > function. I have two buttons. Each button will call > its own function.could anyone tell how to write Directly it cannot do

[PHP] can button onclick executed a bash script

2003-11-10 Thread tirumal b
Hello All, A button tag's onclick event can execute a function of javascript but can it do the same with bash script function. I have two buttons. Each button will call its own function.could anyone tell how to write Thank you __ Do you Yahoo!? Protect your ident

Re: [PHP] displaying numbers up to 2 places of decimal.

2003-11-10 Thread Robert Cummings
http://www.php.net/manual/en/function.number-format.php Cheers, Rob. On Tue, 2003-11-11 at 00:42, Binay wrote: > Hi all ! > > I want to display numbers(integer,float,double) up to 2 places of decimal i.e if > number is interger say 10, then i want to display it like 10.00. > > if the number is

[PHP] displaying numbers up to 2 places of decimal.

2003-11-10 Thread Binay
Hi all ! I want to display numbers(integer,float,double) up to 2 places of decimal i.e if number is interger say 10, then i want to display it like 10.00. if the number is float say 10.12345 i want to display as 10.12 i.e up to 2 places of decimal. Please help me out Thanks in advance Binay

Re: [PHP] help create community newbie guide to security

2003-11-10 Thread Raditha Dissanayake
Nice work chris, you have left precious little for the others to comment on :-) 10. Use htmlentities() on data that will be put through a SQL query to prevent XSS attacks. http://php.net/htmlentities This is a nice suggestion. While htmlentities() cannot be guaranteed to defend against all X

Re: [PHP] help create community newbie guide to security

2003-11-10 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > What I'd like to do is gather enough info to be able to write a good, > short (heck in can be long, I don't care) write up on what it takes to > write a secure app and be able to post a link to said document any time > someone asks a question secur

[PHP] Compiling module problems

2003-11-10 Thread Jonis Maurin Ceará
Hello... i'm trying to compile my test doing these steps: http://www.phpbuilder.com/manual/zend.build.php everything is okbut when i do make (to make php), they just generate .lo for all modules, not .so... what's wrong? thanks!

[PHP] SSH in PHP script

2003-11-10 Thread tirumal b
Hello I have written the following command in PHP script echo `ssh `. I have the remote ip addr as trusted, dont ask for the password at all. when the execute the php file from the browser it does not go to the remote ip at all though this command works fine in a normal bash script. what is the p

Re: [PHP] Personal Conflicts

2003-11-10 Thread Robert Cummings
On Mon, 2003-11-10 at 22:02, Chris Shiflett wrote: > --- Robert Cummings <[EMAIL PROTECTED]> wrote: > > I was merely trying to keep the list on-topic. > > It did not seem that way to me. Your reply appeared to be a deliberate > attempt to rekindle an argument from a day or two ago that most of us

[PHP] Personal Conflicts

2003-11-10 Thread Chris Shiflett
--- Robert Cummings <[EMAIL PROTECTED]> wrote: > I was merely trying to keep the list on-topic. It did not seem that way to me. Your reply appeared to be a deliberate attempt to rekindle an argument from a day or two ago that most of us would rather not have read. > I can retract this behaviour i

[PHP] PHP meetup and new Software Developers meetup

2003-11-10 Thread Steve Magruder - WebCommons.org
Everyone: On top of the amazing success of a PHP meetup (http://php.meetup.com/) with 3,057 members, I would invite everyone to check out the new Software Developers meetup. This sounds like a great way for software developers in general to get together in person around the world to discuss all t

Re: [PHP] \n and

2003-11-10 Thread Robert Cummings
On Mon, 2003-11-10 at 21:44, Chris Shiflett wrote: > --- Robert Cummings <[EMAIL PROTECTED]> wrote: > > This appears to be off-topic, and so to drive the point home in > > your own self-righteous drivel: > > Robert, that is enough of this. Please take your pesonal differences > elsewhere. I was m

[PHP] help create community newbie guide to security

2003-11-10 Thread Chris W. Parker
Ok. I know this has been asked a MILLION times in one form or another but still I have a few holes in my understanding of how to write a secure app*. What I'd like to do is gather enough info to be able to write a good, short (heck in can be long, I don't care) write up on what it takes to write

Re: [PHP] \n and

2003-11-10 Thread Chris Shiflett
--- Robert Cummings <[EMAIL PROTECTED]> wrote: > This appears to be off-topic, and so to drive the point home in > your own self-righteous drivel: Robert, that is enough of this. Please take your pesonal differences elsewhere. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbo

RE: [PHP] Downloading MySQL Files

2003-11-10 Thread Erik Osterman
Urldecode(..) may not be binary safe. I'm not sure exactly what type of content it is you are storing in the database for 'fdata', but it sounds like you're misusing urlencode/urldecode. In short, urlencode(..)/urldecode(..) are for encoding URLs and are not the appropriate way to escape binary dat

Re: [PHP] \n and

2003-11-10 Thread Robert Cummings
On Mon, 2003-11-10 at 20:30, John Nichel wrote: > > This could be why HBO hasn't been knocking on my door and offering me a > few million to do my stand-up routine. > This appears to be off-topic, and so to drive the point home in your own self-righteous drivel: John Nichel spewed one day:

Re: [PHP] location= Construct Doc

2003-11-10 Thread Marek Kilimajer
Lee Stewart wrote: Hi... I'm looking at an existing application that uses a number of statements like: location = "page2.php"; I thought I'd seen it somewhere in the PHP doc, but can't find it now.. Can anyone point me to where it's written up? This would generate parse error in php, but

Re: [PHP] Downloading MySQL Files

2003-11-10 Thread John Hicks
On Monday 10 November 2003 08:07 pm, Stephen Craton wrote: > I have a database which keeps some normal files in > LONGBLOBS. I then call up a file called download.php > to retrieve the file from the database, echo out > it’s contents, and it’s type, and all that so they > download it. > However,

Re: [PHP] \n and

2003-11-10 Thread Chris Shiflett
--- Eugene Lee <[EMAIL PROTECTED]> wrote: > > Can you name a single browser that cannot properly render a > > tag? > > There were rendering problems discovered with one popular web forum > software called vBulletin. That's not a browser. Chris = My Blog http://shiflett.org/ HTTP Deve

Re: [PHP] Random Character Generator

2003-11-10 Thread John Hicks
On Monday 10 November 2003 07:32 pm, Jason Williard wrote: > I would like to have a script that randomly > generates alpha-numeric characters. Does anyone > know of any scripts that can do this or perhaps the > basic code to generate random characters? > > Thank You, > Jason Williard How about th

RE: [PHP] Downloading MySQL Files

2003-11-10 Thread Stephen Craton
Thanks for the help, I found the problem. Turns out nothing was in the blobs, it just wasn't uploading. Fixed now though. Thanks again! Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio -Original Message- From: John Hicks [mailto:[EMAIL PROTECTED] Sent

Re: [PHP] \n and

2003-11-10 Thread John Nichel
Chris W. Parker wrote: John Nichel on Monday, November 10, 2003 5:18 PM said: It was a joke. Maybe I'm just too old. *G* Or maybe you're just not funny. OOOH MOTED! :) Why does it feel like Friday??? p.s. i got your joke and no offense, just teasing. please

Re: [PHP] Running CLI from a web page

2003-11-10 Thread David T-G
Ron -- ...and then Ron Rudman said... % % I have a php cli that creates a file. It works fine when I execute it from % the Linux command line as "php foo > bar". I'm trying to also execute this OK. % by clicking a form button on a web page via "system('php foo > bar')". I Odd, as some hav

Re: [PHP] \n and

2003-11-10 Thread Eugene Lee
On Mon, Nov 10, 2003 at 04:05:07PM -0800, Chris Shiflett wrote: : : --- Eugene Lee <[EMAIL PROTECTED]> wrote: : > : > Warning: nl2br() is not safe because it emits "" tags which do : > not always work on all browsers (especially browsers not explicitly : > advertised to be XHTML-compliant). : : C

RE: [PHP] \n and

2003-11-10 Thread Chris W. Parker
John Nichel on Monday, November 10, 2003 5:18 PM said: > It was a joke. Maybe I'm just too old. *G* Or maybe you're just not funny. OOOH MOTED! :) Why does it feel like Friday??? p.s. i got your joke and no offense, just teasing. please feel free to make fun

Re: [PHP] Delete after 30 Days

2003-11-10 Thread David T-G
Dmitri -- ...and then Dimitri Marshall said... % % Hey, % Here's my situation. I'm making a message board and I want posts to be % deleted after 30 days. OK. % % Does anyone know of a script, or how, I can delete an entry on my database % after a certain amount of time (ie. 30 days) automatic

Re: [PHP] \n and

2003-11-10 Thread John Nichel
Chris Shiflett wrote: --- John Nichel <[EMAIL PROTECTED]> wrote: The old Prodigy 'browser' from the early 90's? ;) Is that a guess or an answer? It was a joke. Maybe I'm just too old. *G* -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.ph

Re: [PHP] Random Character Generator

2003-11-10 Thread Steve Edberg
Well, here's an untested script off the top of my head: function random_string($Ncharacters) { static $CharList = '0123456789abcdefghijklmnopqrstuvwxyz'; $String = ''; $Max = strlen($CharList)-1; for ($i=0; $<$Ncharacters; $i++) { $String .= $CharList{rand(0, $Max)}; } retu

[PHP] Downloading MySQL Files

2003-11-10 Thread Stephen Craton
I have a database which keeps some normal files in LONGBLOBS. I then call up a file called download.php to retrieve the file from the database, echo out it’s contents, and it’s type, and all that so they download it. However, if the user clicks the download link, they download the actual download.p

Re: [PHP] \n and

2003-11-10 Thread Chris Shiflett
--- John Nichel <[EMAIL PROTECTED]> wrote: > The old Prodigy 'browser' from the early 90's? ;) Is that a guess or an answer? I don't see it here: http://browsers.evolt.org/ That's the only place I know to find old browsers with which to test things like this. If you have any other information

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Chris Shiflett
--- Ron Rudman <[EMAIL PROTECTED]> wrote: > I have a report that I would like to run as a cron job, hence the > need for a standalone CLI version that just reads the database and > has no other context. [snip] > I can't see how I would use eval() here, since in the command line: > "php foo", foo

Re: [PHP] Delete after 30 Days

2003-11-10 Thread Rolf Brusletto
Dimitri Marshall wrote: Hey, Here's my situation. I'm making a message board and I want posts to be deleted after 30 days. Does anyone know of a script, or how, I can delete an entry on my database after a certain amount of time (ie. 30 days) automatically. Dimitri Marshall Assuming it uses ep

[PHP] Delete after 30 Days

2003-11-10 Thread Dimitri Marshall
Hey, Here's my situation. I'm making a message board and I want posts to be deleted after 30 days. Does anyone know of a script, or how, I can delete an entry on my database after a certain amount of time (ie. 30 days) automatically. Dimitri Marshall -- PHP General Mailing List (http://www.php.

[PHP] Random Character Generator

2003-11-10 Thread Jason Williard
I would like to have a script that randomly generates alpha-numeric characters. Does anyone know of any scripts that can do this or perhaps the basic code to generate random characters? Thank You, Jason Williard

Re: [PHP] \n and

2003-11-10 Thread Rolf Brusletto
Eugene Lee wrote: On Mon, Nov 10, 2003 at 06:57:54AM -0800, Chris Shiflett wrote: : : --- PHPLover <[EMAIL PROTECTED]> wrote: : > : > is \n same as : : This is not true. : : > I know that \n creates a break in source and not in display. : > Is it possible to make \n does the same function as

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Ron Rudman
I have a report that I would like to run as a cron job, hence the need for a standalone CLI version that just reads the database and has no other context. But...I would also like to run this report on demand from within a web application. It seemed "obvious" that all I'd have to do was execute my

Re: [PHP] \n and

2003-11-10 Thread John Nichel
Chris Shiflett wrote: --- Eugene Lee <[EMAIL PROTECTED]> wrote: Warning: nl2br() is not safe because it emits "" tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a tag?

Re: [PHP] \n and

2003-11-10 Thread Chris Shiflett
--- Eugene Lee <[EMAIL PROTECTED]> wrote: > Warning: nl2br() is not safe because it emits "" tags which do > not always work on all browsers (especially browsers not explicitly > advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a tag? Chris = My B

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Chris Shiflett
--- Ron Rudman <[EMAIL PROTECTED]> wrote: > There are already plenty of echo statements in foo! They DO show up > when I run php foo. It's when I try to use system("php foo") that I > don't get anything. I missed the original question, but why are you trying to use the PHP CLI from within PHP its

RE: [PHP] \n and

2003-11-10 Thread Chris W. Parker
Eugene Lee on Monday, November 10, 2003 3:58 PM said: > Warning: nl2br() is not safe because it emits "" tags which do > not always work on all browsers (especially browsers not explicitly > advertised to be XHTML-compliant). My original response (in my mind) was "W

Re: [PHP] \n and

2003-11-10 Thread Eugene Lee
On Mon, Nov 10, 2003 at 06:57:54AM -0800, Chris Shiflett wrote: : : --- PHPLover <[EMAIL PROTECTED]> wrote: : > : > is \n same as : : This is not true. : : > I know that \n creates a break in source and not in display. : > Is it possible to make \n does the same function as : : No, but you ca

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Ron Rudman
There are already plenty of echo statements in foo! They DO show up when I run php foo. It's when I try to use system("php foo") that I don't get anything. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I have a php cli that creates a file. It works fine whe

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Matt Babineau
Ok, this ended up working well. I'm still wondering why in my example function two() works, without needing to provide the resource identifier to mysql_query(), how can mysql_query() pick up the resource identifier automatically while mysql_list_fields does not? Thx- Matt On Mon, 2003-11-10 at 17

Re: [PHP] Trouble sending an image's contents as output using header Content-Type...

2003-11-10 Thread Manuel Vázquez Acosta
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Manuel Vázquez Acosta wrote: > >>Type http://server.com/getthumbnail.php?fileid=12230983 in the location > >>bar and see what happens. > > > > > > I have already done it; it didn't work. > > > > Manu. > > > Did you see

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Derek Ford
as said, use the global construct. This is a scope problem, read the manual about variable scope. php.net/variables.scope PS: sorry Jay, new mail frontend :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trouble sending an image's contents as output using header Content-Type...

2003-11-10 Thread Marek Kilimajer
Manuel Vázquez Acosta wrote: Type http://server.com/getthumbnail.php?fileid=12230983 in the location bar and see what happens. I have already done it; it didn't work. Manu. Did you see any error? If not, do you have display_errors set to on? -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Jay Blanchard
[snip] Ok, I added the resource identifier, and got an error. I think what is happening now is the resource identifier $db is outside the function one(), so it cannot be referenced from the mysql_list_fields() fuction which is inside. Does that make sense? Is the resource indentifier a GLOBAL thing

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Matt Babineau
On Mon, 2003-11-10 at 16:43, Jay Blanchard wrote: > [snip] > Outside of my custom function I have a mysql_pconnect() statement and a > mysql_select_db() statement. > > So the end result being if I take the connect statement out of the > function one(), it fails, but function two() still works! >

Re: [PHP] php "Losing" apache environment vars

2003-11-10 Thread Keith Greene
After restarting apache, the error is gone. Still not sure what was causing it. The site was running fine to begin with, and the environment vars have been in use for over a year throughout the site. Keith At 12:56 PM 11/10/2003, Keith Greene wrote: Greetings list, I have run into a problem that

RE: [PHP] mysql_list_fields() bug?

2003-11-10 Thread Jay Blanchard
[snip] Outside of my custom function I have a mysql_pconnect() statement and a mysql_select_db() statement. So the end result being if I take the connect statement out of the function one(), it fails, but function two() still works! Am I doing something wrong here? [/snip] It's just a small misu

Re: [PHP] Problems configuring --with-xpm-dir [SOLVED]

2003-11-10 Thread John Nichel
John Nichel wrote: Hi, I'm in the middle of setting up a new box to test Apache/PHP on the new Fedora 1 core, and I'm having some issues getting configure to run with --with-xpm-dir. I've installed the libXpm libraries (libXpm.3.4f-ELF) from ftp://metalab.unc.edu/pub/Linux/libs/X/!INDEX.htm

Re: [PHP] php.ini file contents

2003-11-10 Thread Marek Kilimajer
Teren wrote: Hi, I was browsing through the php.ini file to see if maybe functions = that execute shell commands are disabled, but I didn't see anything, can = somebody confirm this just to make sure i didn't skip over it? I am = still trying to execute shell commands and I have been unsuccessful,

[PHP] mysql_list_fields() bug?

2003-11-10 Thread Matt Babineau
Hey All - just wanted to check in with anyone who has used this function. I currectly have a function that I created, and inside it I have this function. Outside of my custom function I have a mysql_pconnect() statement and a mysql_select_db() statement. I also have another custom function that

RE: [PHP] php.ini file contents

2003-11-10 Thread Jay Blanchard
[snip] Hi, I was browsing through the php.ini file to see if maybe functions = that execute shell commands are disabled, but I didn't see anything, can = somebody confirm this just to make sure i didn't skip over it? I am = still trying to execute shell commands and I have been unsuccessful, I = kn

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
It's version 4.0.3 Lee Chris Shiflett wrote: --- Lee Stewart <[EMAIL PROTECTED]> wrote: Here's a *working* section of code... Note the location = "browse.php"; on line 23 How does that not generate a parse error? I must be missing something. It seems to me that either a dollar sign

Re: [PHP] location= Construct Doc

2003-11-10 Thread Chris Shiflett
--- Lee Stewart <[EMAIL PROTECTED]> wrote: > Here's a *working* section of code... Note the > location = "browse.php"; > on line 23 How does that not generate a parse error? I must be missing something. It seems to me that either a dollar sign is missing, or the line is intended to def

[PHP] php.ini file contents

2003-11-10 Thread Teren
Hi, I was browsing through the php.ini file to see if maybe functions = that execute shell commands are disabled, but I didn't see anything, can = somebody confirm this just to make sure i didn't skip over it? I am = still trying to execute shell commands and I have been unsuccessful, I = know the

[PHP] php "Losing" apache environment vars

2003-11-10 Thread Keith Greene
Greetings list, I have run into a problem that has me at my wits end. We run an affiliate program, and have forum software (phpBB) wrapped in our menu system. There are 2 sides to the site, Affiliates and Admin, and I have 2 installs of the board using the same database. This all works fine. The

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
Here's a *working* section of code... Note the location = "browse.php"; on line 23 $errmsg = ''; if( isset($username) ) { require_once('Connections/mySql.php'); mysql_select_db($database_mySql, $mySql); $rs = mysql_query("select * from employee where initials = '" . strtoupper($us

RE: [PHP] location= Construct Doc

2003-11-10 Thread Chris W. Parker
Lee Stewart on Monday, November 10, 2003 12:42 PM said: > It's not $location = xxx, just > location = "page.php"; > And it seems to work as a redirect... But not part of the header > fuction, and not just setting a variable... Hmm.. Never seen that before an

Re: [PHP] location= Construct Doc

2003-11-10 Thread Chris Shiflett
--- Lee Stewart <[EMAIL PROTECTED]> wrote: > It's not $location = xxx, just location = "page.php"; So the dollar sign is missing? Can you show us all of the code in question? (Or did I miss it?) > And it seems to work as a redirect... But not part of the header > fuction, and not just setting

Re: [PHP] Trouble sending an image's contents as output using header Content-Type...

2003-11-10 Thread Manuel Vázquez Acosta
> Type http://server.com/getthumbnail.php?fileid=12230983 in the location > bar and see what happens. I have already done it; it didn't work. Manu. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SESSION[''] variable not get passed

2003-11-10 Thread Rob Burris
S.P.Vimala wrote: Now the session_id get passwd across forms but the session variable does not get passwed. Any guess what is the problem. -vimala/. You need to call session_start() on frm2.php to resume the session http://us2.php.net/manual/en/function.session-start.php -- [E

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
It's not $location = xxx, just location = "page.php"; And it seems to work as a redirect... But not part of the header fuction, and not just setting a variable... Lee Chris W. Parker wrote: Lee Stewart on Monday, November 10, 2003 12:18 PM said: I see the Locati

Re: [PHP] New module

2003-11-10 Thread Marek Kilimajer
Jonis Maurin Ceara wrote: Hello I'm planing to build a module for debuging like i use in my programs... i can explain... i just wanna do debug some lines from my script, just to know any var or lineand i'll use this function: debug() function debug() will display line number and filenamethi

RE: [PHP] location= Construct Doc

2003-11-10 Thread Chris W. Parker
Lee Stewart on Monday, November 10, 2003 12:18 PM said: > I see the Location: of the Header function there, but what I see in > the code is just a location = and a page name... No header > function... > > Is it the same thing? $location = "page.php"; is nothing m

Re: [PHP] location= Construct Doc

2003-11-10 Thread Chris Shiflett
--- Lee Stewart <[EMAIL PROTECTED]> wrote: > I'm looking at an existing application that uses a number of > statements like: > > location = "page2.php"; > > I thought I'd seen it somewhere in the PHP doc, but can't find it > now.. Can anyone point me to where it's written up? The HTTP header itse

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
I see the Location: of the Header function there, but what I see in the code is just a location = and a page name... No header function... Is it the same thing? Lee Jay Blanchard wrote: [snip] I'm looking at an existing application that uses a number of statements like: location = "page2.php";

[PHP] Problems configuring --with-xpm-dir

2003-11-10 Thread John Nichel
Hi, I'm in the middle of setting up a new box to test Apache/PHP on the new Fedora 1 core, and I'm having some issues getting configure to run with --with-xpm-dir. I've installed the libXpm libraries (libXpm.3.4f-ELF) from ftp://metalab.unc.edu/pub/Linux/libs/X/!INDEX.html, but I get this e

RE: [PHP] location= Construct Doc

2003-11-10 Thread Jay Blanchard
[snip] I'm looking at an existing application that uses a number of statements like: location = "page2.php"; I thought I'd seen it somewhere in the PHP doc, but can't find it now.. Can anyone point me to where it's written up? [/snip] http://www.php.net/header -- PHP General Mailing

[PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
Hi... I'm looking at an existing application that uses a number of statements like: location = "page2.php"; I thought I'd seen it somewhere in the PHP doc, but can't find it now.. Can anyone point me to where it's written up? Thanks, Lee -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] How to handle the POST data

2003-11-10 Thread Chris Shiflett
--- Koala Yeung <[EMAIL PROTECTED]> wrote: > The problem is: right after a submit process, POSTDATA still stored in > the user's browser. When one submit a thread, read the index table of > forum.php, and press "Reflash", the browser will give a message like: > "The page you are browsing contains P

RE: [PHP] How to handle the POST data

2003-11-10 Thread Chris W. Parker
Koala Yeung on Monday, November 10, 2003 11:05 AM said: > When one submit a thread, read the index table of forum.php, and press > "Reflash", the browser will give a message like: > "The page you are browsing contains POSTDATA. >If you Re-submit the information

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Great! Thanks Dan. I'll be making a php version of something similar. Martin "Dan Joseph" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > > sounds like a good idea. How does 'gateway' actually listen in on the > > website session? > > > > Is it simply invoked by the website

[PHP] How to handle the POST data

2003-11-10 Thread Koala Yeung
I wrote a discussion board in PHP recently The board consis of three php files: forum.php, readforum.php, writeforum.php In my design, - The writeforum.php file will generate a form. - Once user submit the form, it return a new thread in POST to the forum.php. - The forum.php will receive the data

[PHP] New module

2003-11-10 Thread Jonis Maurin Ceara
Hello I'm planing to build a module for debuging like i use in my programs... i can explain... i just wanna do debug some lines from my script, just to know any var or lineand i'll use this function: debug() function debug() will display line number and filenamethis is the problem! how ca

Re: [PHP] explode () question

2003-11-10 Thread Malcolm
Thanks to everyone who replied. I have taken the short route and changed the source data. I should have thought of that first I suppose. Now I have a few existing records to edit but from now on I'll be automagic. On Mon, 10 Nov 2003 19:00:52 +0100, Wouter Van Vliet <[EMAIL PROTECTED]> wrot

Re: [PHP] Pausing in PHP

2003-11-10 Thread Chris Shiflett
--- Donpro <[EMAIL PROTECTED]> wrote: > Is there a PHP function that would allow the script execution to pause > 'N' seconds? This is analogous to the dBase inkey() function. When I search Google for "PHP pause", the firt result mentions the sleep() function. Did you try finding the answer yoursel

RE: [PHP] Whats wrong with this query?

2003-11-10 Thread Wouter van Vliet
> -Original Message- > From: Dave Carrera [mailto:[EMAIL PROTECTED] > Sent: maandag 10 november 2003 17:45 > To: [EMAIL PROTECTED] > Subject: [PHP] Whats wrong with this query? > > $addamysqluser = mysql_query("grant > select,insert,drop,update,delete,create,index,alter on $_POST[f2] to >

RE: [PHP] explode () question

2003-11-10 Thread Wouter van Vliet
(after more and more discussion, this will be my first "non-top" post) > > >$rint1= rtrim($rintydata); > > echo $rint1; > > $rint2= explode(":", $rint1); > > > > The data starts like this (from and email, there are many) ; > > > > Time: November 9th 2003, 10:37AM - PST IP Address: xx.xx.xx

RE: [PHP] Pausing in PHP

2003-11-10 Thread Dan Joseph
Hi, > Is there a PHP function that would allow the script execution to pause 'N' > seconds? This is analogous to the dBase inkey() function. sleep(20); 20 = seconds -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] Pausing in PHP

2003-11-10 Thread Donpro
Hi, Is there a PHP function that would allow the script execution to pause 'N' seconds? This is analogous to the dBase inkey() function. Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form not working...

2003-11-10 Thread jas
For some reason my form to edit selected items is not working, I think I need a new set of eyes. Any help is appreciated... Jas // inc.php function db_retrieve() { require 'dbase.inc.php'; $tble = $_SESSION['table']; $show = @mysql_query("SELECT * FROM $tble LIMIT 0, 15",$db)or die(mysql_error(

RE: [PHP] explode () question

2003-11-10 Thread Chris W. Parker
Malcolm on Monday, November 10, 2003 9:13 AM said: >I can't figure out how to do an ereg that will replace just the > colon in Time nor can I find a way to make explode ignore it. This > may even be a completely wrong approach, any help would be > appreciated.

Re: [PHP] explode () question

2003-11-10 Thread Chris Hayes
$rint1= rtrim($rintydata); echo $rint1; $rint2= explode(":", $rint1); The data starts like this (from and email, there are many) ; Time: November 9th 2003, 10:37AM - PST IP Address: xx.xx.xxx.xxx Browser Type: Opera/7.20 (Windows NT 5.1; U) [en] Referer: The problem is that when I do t

[PHP] explode () question

2003-11-10 Thread Malcolm
Hello All, I'm having trouble with this; $rint1= rtrim($rintydata); echo $rint1; $rint2= explode(":", $rint1); The data starts like this (from and email, there are many) ; Time: November 9th 2003, 10:37AM - PST IP Address: xx.xx.xxx.xxx Browser Type: Opera/7.20 (Windows NT 5.1; U)

Re: [PHP] Whats wrong with this query?

2003-11-10 Thread Chris Shiflett
--- Dave Carrera <[EMAIL PROTECTED]> wrote: > $addamysqluser = mysql_query("grant > select,insert,drop,update,delete,create,index,alter on $_POST[f2] to > [EMAIL PROTECTED] IDENTIFIED by $_POST[f3]"); > > What is wrong with the above php based mysql_query? I'm not sure about the query itself, but

RE: [PHP] resource handle - keeping alive?

2003-11-10 Thread Dan Joseph
Hi, > sounds like a good idea. How does 'gateway' actually listen in on the > website session? > > Is it simply invoked by the website with specific arguments? It has a socket connection that waits for an incoming request from the web site, and then it takes what was sent from the web sit

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Hi Dan, sounds like a good idea. How does 'gateway' actually listen in on the website session? Is it simply invoked by the website with specific arguments? Tx, Martin "Dan Joseph" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > > Quick answer: as others before me have als

RE: [PHP] Whats wrong with this query?

2003-11-10 Thread Chris W. Parker
Dave Carrera on Monday, November 10, 2003 8:45 AM said: > $addamysqluser = mysql_query("grant > select,insert,drop,update,delete,create,index,alter on $_POST[f2] to > [EMAIL PROTECTED] IDENTIFIED by $_POST[f3]"); > > What is wrong with the above php based mysql_quer

Re: [PHP] Whats wrong with this query?

2003-11-10 Thread Raditha Dissanayake
Hi Dave, I could be wrong cause i am answering without running your code : 1) your mysql user account probably does not have grant privileges. good thing too. It's very dangerous to just run a grant query like this because it can so easily be abused by a malicious user. (of course you might have

Re: [PHP] Reply to a email with PHP

2003-11-10 Thread Raditha Dissanayake
Hi, You probably didn't find anything in the imap api because mail reply is handled by SMTP. You can use the IMAP library to read your mail, however you need to use either the simple old mail() function or one of the more sophisticated MIME mail classes available to send replies or new messages

[PHP] Whats wrong with this query?

2003-11-10 Thread Dave Carrera
$addamysqluser = mysql_query("grant select,insert,drop,update,delete,create,index,alter on $_POST[f2] to [EMAIL PROTECTED] IDENTIFIED by $_POST[f3]"); What is wrong with the above php based mysql_query ? I am trying to add a user to mysql granting just the specified rights to table defined by the

[PHP] Reply to a email with PHP

2003-11-10 Thread paul.belaval
Hi folks, What I would like to do in PHP is the following: * read my mailbox on the server * select some mails * reply to theses mails. I have looked among the PHP imap API, and I did not found any like imap_reply. What should I do? Many thanks for helping. Paul BELAVAL -- PHP General Mailin

[PHP] DW Php update record form with menu from another table

2003-11-10 Thread Robb Kerr
I'm using Dreamweaver's "Update Record" form wizard to create a record update page. Most of the fields are "text", one is "file" and I want one of them to be a "menu". The "menu" field should be populated with the fields of another table. Here's the problem... If I leave all of the fields as text

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Raditha Dissanayake
Hi Martin, This is unfortunately not something that has an easy work around. I have seen a post by Dan Joseph with what looks like a good suggestion. If my understanding of J2EE is correct, i believe you will be able to persist connections between two different pages if you use java servlets.

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Hi Chris, yes, that's precisely my problem (I had read the notes). This seems like something people would want to do, so I'm surprised no one's found some workaround. Any other ideas? "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Martin Helie <[EMAIL PROTEC

  1   2   >