RE: [PHP] Display strings with single quotes

2003-02-20 Thread Rea_David
Thanks everyone! -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 13:40 To: [EMAIL PROTECTED] Subject: Re: [PHP] Display strings with single quotes > On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote: > > At 13:16 20.02.2003, Tom

[PHP] Display strings with single quotes

2003-02-20 Thread Rea_David
Hi all, Have simple but annoying issue, I want to display a string within an input field. This string contains ' & so when it's being display the, anything after the ' is being left out. Here is the code I'm using: $string = str_replace("'", "''", $string); $string = stri

RE: [PHP] How can you execute UNIX scripts from PHP

2003-02-18 Thread Rea_David
My mistake Kevin, I did not put the full path of the shell script into the $script variable. Thanks very much for your help Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 18 February 2003 14:21 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] H

RE: [PHP] How can you execute UNIX scripts from PHP

2003-02-18 Thread Rea_David
Hi Kevin, Thanks very much for your reply, but I'm having no luck with it. In the test that I'm doing, I'm using the same code as you provided. It's on a Solaris system & the permissions & ownership of the shell script is correct. The shell script is also located in the same directory as t

[PHP] How can you execute UNIX scripts from PHP

2003-02-18 Thread Rea_David
Hi everyone, How can you execute UNIX scripts from PHP. If somebody could let me know it would be great. Thanks Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What are the functions to copy a directory structure & then rename?

2003-02-18 Thread Rea_David
Hi all, I want to copy an already existing directory structure with generic files & then rename it while keeping it's permissions, but I was unable to find a suitable function in the manual to carry out this operation. Can anyone help me with this please. Thank you Dave -- PHP General M

RE: [PHP] Adding a variable to oracle that contains quotation marks??

2003-01-21 Thread Rea_David
Thanks Rick & Henry, but I am still unable to add single quotation marks '. When I added the \' to the variable as given below (thanks again Rick) I get the following error when trying to add anything, regardless of ': Warning: Ora_Parse failed (ORA-00911: invalid character -- while processing OCI

[PHP] Adding a variable to oracle that contains quotation marks??

2003-01-21 Thread Rea_David
Hi All, I'm trying to add a variable to an oracle database but it fails due to the fact that it contains quotation marks. These have to be present for the end user. My Script is as follows: === if ($conn == true) {

RE: [PHP] How can I remove the last character from a one line file?

2002-05-30 Thread Rea_David
Hi all, The problem is nearly solved. I need my if statement to read the last character from the file & if it ends with an o, then remove the one character. My current if statement allows the action to take place if there is an o anywhere in the file. Can somebody help me with this. M

[PHP] How can I remove the last character from a one line file?

2002-05-28 Thread Rea_David
Hi all, How can I remove the last character from a one line file? i.e. I need to change Jacko to Jack I would really appreciate a response on this! Thank you! Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

RE: [PHP] Directory Contents Listing

2001-11-28 Thread Rea_David
Here's an example code I use \n"); // get each entry within the directory & return to user with the link $myDirectory = dir("."); while($entryName = $myDirectory->read()) { if ($entryName != "." && $entryName != ".." && $entryName != "index.php"){