Re: [PHP] Classified Ad system (was: MySQL vs Flat File)

2001-10-17 Thread Thomas Deliduka

On 10/17/2001 6:11 PM this was written:

 Thomas Deliduka wrote:
 
 On a related note, does anyone here know of a GOOD program in PHP to do
 classified ads?
 
 I just picked up November 2001 Web Techniques today and it has an
 article you can check out for a classified ad system. I haven't played
 with it yet and so can't vouch for its usefulness.
 
 http://www.webtechniques.com/archives/2001/11/argus/
 
 Kris O.

Thanks, I'll check it out!
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] I wan't to use the pthread function in php

2001-10-17 Thread Sil Lee

Hi all,
I wan't to use the pthread function like C language in PHP.
The PHP language don't support these functions...

How cant I use thread function in php?
Any ideas?

Thank in advance,

Sil Lee



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] security question

2001-10-17 Thread Daniel Goldin

Tried this. Get an error from my host: open_basedir restriction in effect.
I'm new at this. Do you know what this means and is there a work around?

-Original Message-
From: Alexander Deruwe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 17, 2001 3:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] security question


On Wednesday 17 October 2001 19:14, Daniel Goldin wrote:
 But I need to protect the files themselves. Is
 their a way to protect the files without adding another level of
 authorization when someone does access them from the browser?

Move these text files one directory below the server root.
E.g: /www/myserver is the root, so you create a directory /www/text-files.
This can then never be accessed from a webbrowser, but PHP can still find
them.

Alexander

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] zip_open in 4.0.6 ?

2001-10-17 Thread Ilya V. Lazarev

Hi !
Has anyone tried zip_open in PHP 4.0.6 ?
It says me that no such function. I've looked at php src and found 
zzip_open(), but this one expect more than 1 arg ( supposedly 2 ).

Any ideas ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] mail function and lots of form fields

2001-10-17 Thread Chip

Great help dude, it works fine now. Much appreciated.
I created mainfile.php which is a form that is submited to thanks.php, which
contains just the small mail function stuff and a call to include 
mailbody.inc, which has all the fields layed out nicely on screen for the 
user to see as well as it being sent to a person in a well formatted message. 
This is all done with test pages, which I can now move over to my production 
site, then after all that is working (there are 5 online forms), I will work 
on getting the data from the forms into a mysql database.

Regards,
--
Chip

On Wednesday 17 October 2001 16:54, Richard Baskett wrote:
 Actually what I meant was that the $body variable would be inside an
 include file just to decrease the amount of coding inside your main file.
 So...

 mainfile.php
 You would have your form and either you can have the form submit to self or
 to another file.. for explanation purposes I will say another file called
 thanks.php

 thanks.php
 this has your form processing information, plus the mail function, and
 tells the user thanks for submitting the form.  This file would include
 mailbody.inc which is the template for the body of your mail message.
 include('mailbody.inc');

 mailbody.inc
 ?
 $body =
 This is the header of the email message

 Greetings $name,

 How are you today, you've spent $amount of dollars in the last $days.

 Thank You!

 Management;
 ?

 Did this make more sense?

 Rick

  On Wednesday 17 October 2001 15:38, Richard Baskett wrote:
  For the body what I usually do, if you're planning on just a regular
  text email, is to make an include file with this type of formatting:
 
  I guess you mean I can use an include file in my variable? Like this:
  $body = newbody.inc
 
  Does the variable need to be quoted? I think most likely, but am not
  sure. I'll check into this more tomorrow at work.
  --
  Chip Wiegand
 
  $body =
  This is the header of the email message
 
  Greetings $name,
 
  How are you today, you've spent $amount of dollars in the last $days.
 
  Thank You!
 
  Management;
 
  In other words when you do something like this you can actually see the
  formatting and all the \n's or \r's will be there.  I have found this to
  bed the easiest way of doing email formatting.  I hope it makes sense to
  you, if not you can always write me back and Ill have another go at
  explaining it :)
 
  Rick
 
  I have a form with around 50 text fields. I have used the mail function
  to send
  forms with simple textarea's, names, and email addresses, but what
  about when
  I have around 50 fields to send?
  I am using the following format for my mails:
?
if(isset($submit)):
  $date = date(M d, Y);
  $to = [EMAIL PROTECTED];
  $subject = Web Site Comments;
  $body = On $date\n $name\n ($email) wrotebrbr .
  $feedback; mail($to, $subject, $body, From:$email\nContent-Type:
  text/html; charset=iso-8859-1\nMime-Version: 1.0\nX-Mailer: PHP/ .
  phpversion()); print(h3Thanks for the comments!/h3\nWe appreciate
  you taking the time to share your thoughts with us.);
else:
?
  The fields $feedback, $name, $email are from the form, but I have
  another form with around 50
  fields. Is there an alternative to listing all 50or so fields on that
  one $body line? I'd like
  the final message to have a reasonable amount of formatting to keep the
  many fields sorted out and easy to read.
  --
  Chip Wiegand
  Computer Services
  www.simradusa.com
  [EMAIL PROTECTED]
  Simrad, Inc
  Lynnwood, WA
  425-712-1138
 
  There is no reason anyone would want a computer in their home.
  --Ken Olson, president, chairman and founder of Digital Equipment
  Corp., 1977
  (-- Then why do I have nine? Somebody help me!)
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED]
 
  --
  --
  Chip W.

-- 
--
Chip W.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Re[2]: [PHP] working with XML

2001-10-17 Thread Philippe Saladin

You would copy php_domxml.dll (found in php\extensions) to win\system32, or
modify extension_dir in php.ini, AND uncomment the line
extension=php_domxml.dll in php.ini.
Regards,

Philippe

Olexandr Vynnychenko [EMAIL PROTECTED] a écrit dans le message news:
[EMAIL PROTECTED]
 Hello Augusto,

 Wednesday, October 17, 2001, 7:20:36 PM, you wrote:

 ACC You'll need to use the DOM XML functions, that you
 ACC can find on PHP Manual.

 ACC You'll need to rebuild PHP with the option
 ACC --with-domxml=dir (I guess).

 But I'm running php on Win2k?

 --
 Best regards,
  Olexandrmailto:[EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]