Re: [PHP-DB] Using text files instead of a DB

2001-03-12 Thread Phillip Bow
It is absolutely possible though for anything big I would spring for the db access. PHP shares a lot of the functionality that makes Perl a good tool for this type of job so either language is a good choice. For PHP you will want to check out the f-functions(fopen, fread, fwrite), and some of th

Re: [PHP-DB] SSI and PHP?

2001-03-12 Thread Phillip Bow
In other words there doesn't seem to be a way to use SSI's with PHP, but PHP has functions that can do the same things. -- phill "Fernando Gabriel Ranea" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear Dan, > > Yes, you can! In PHP you must use: > > i

Re: [PHP-DB] How to display HTML code?

2001-03-19 Thread Phillip Bow
Well you don't need PHP to do it, but you can replace the greater than and less than signs with their html entities(< and >) which the browser will parse, and it will display the appropriate chars. So... will print the html without parsing it. Now if only the newsreader doesn't parse this as htm

Re: [PHP-DB] How to display HTML code?

2001-03-20 Thread Phillip Bow
Now that is cool. I wish I had noticed that one before. Would have saved a lot of odd keystrokes. -- phill ""Joe Brown"" <[EMAIL PROTECTED]> wrote in message 996a64$k3a$[EMAIL PROTECTED]">news:996a64$k3a$[EMAIL PROTECTED]... > try: > echo htmlentities("Home"); > ?> > ""Osman Omar"" <[EMAIL PRO

[PHP-DB] Re: Persistent connection Oracle 8.0.5 and PHP 4.0.6

2001-07-17 Thread Phillip Bow
Also are you running the ISAPI version of PHP or are you running it as a CGI? -- phill "Jean Castonguay" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I try to make a persistent connection with Oracle because I retrieve > information in Oracle but eac

[PHP-DB] Re: php script showing up on web page!!!!

2001-07-24 Thread Phillip Bow
Well unless you set up your webserver to parse .htm pages then your code will not be parsed and is displayed as plain text. -- phill "Tony" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Here is the link to the problem page, > http://www.youngsmall.com

[PHP-DB] Re: (preg_match ?

2001-07-26 Thread Phillip Bow
This works only if the list is space delimited because of the \b: $search = "TheName"; $data = "TheName TheAddress ThePhone"; if (preg_match("/\b$search\b/i", $data)) { echo "True"; } else { echo "False"; } However as your list is now this works: $search = "TheName"; $data = "TheName,TheAddress,

[PHP-DB] Re: PHP redirect?

2001-08-02 Thread Phillip Bow
JavaScript would allow them to immediately be sent to the page. -- phill "Webmaster" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a form and based off of this form if my user selects option a then I > want them to be redirected to another page. If the

[PHP-DB] Re: Can PHP exclude % characters in external txt file?

2001-08-13 Thread Phillip Bow
I can't think of a simple way to do it off of an include, but off the top of my head: -- phill "Brian Tegtmeier" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Whats up everybody? I am setting up a PHP script that has a text file, but in the actual text file