RE: [PHP] probelm : delete files using PHP

2002-07-24 Thread Simon Ritchie
> I am using PHP 4.1.1, Postgresql 7.2 and Perl 5.6.0 on Linux. > > I want to delete files in a directory,which were created 15 days back. > > I can not do it, with PHP filesystem and directory functions, as > PHP runs as > "nobody" user. To delete a file the user running the web server needs to

RE: [PHP] need help reg. User Accounts

2002-07-30 Thread Simon Ritchie
issue commands as the user running it, the potential damage is limited to what that user can do, which is not much. Simon Ritchie Download my introduction to PHP for $25: http://merrowinternet.com/downloads?source=ml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Page title changes when call functions!!

2002-08-01 Thread Simon Ritchie
ery top of your browser window, not in the address line. Simon Ritchie Download my introduction to PHP for $25: http://merrowinternet.com/downloads?source=ml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] include()

2002-08-01 Thread Simon Ritchie
pache for each site, each running under a different user, and they would need to run on separate ports, which is a nuisance. Simon Ritchie Download my introduction to PHP for $25: http://merrowinternet.com/downloads?source=ml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] include()

2002-08-01 Thread Simon Ritchie
is to write your open function to check for this. Simon Ritchie Download my introduction to PHP for $25: http://merrowinternet.com/downloads?source=ml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] calculating psysical path (a first try)

2002-08-01 Thread Simon Ritchie
ript name as long as it appears at the end of the string. The second argument is the replacement string (nothing), the third is the string to search. I cover regular expression pattern matching in my introduction to PHP (see below). However, the root directory is an Apache variable and these

RE: [PHP] sort results into two columns

2002-08-01 Thread Simon Ritchie
estion, you either want to use a SELECT query with an ORDER BY clause or you want to output the result within HTML table tags. Simon Ritchie Download my introduction to PHP for $25: http://merrowinternet.com/downloads?source=ml -- PHP General Mailing List (http://www.php.net/) To unsubs

RE: [PHP] exec / mkdir question

2002-08-12 Thread Simon Ritchie
to connect to the server) must own the directory The worst case is when your user and the web server user are not in the same group. In that case, you will need to grant write access to all users. This introduces potential security risks - any user can also remove or rename files in that di

RE: [PHP] SMS Again, UK

2002-07-01 Thread Simon Ritchie
Well, funnily enough, your question has much the same answer ... If you have a mobile phone and your service provider offers a web gateway, you can use it to send SMS messages. They will provide a script that you can use. If you have an Orange phone, see the Orange web site. If it's a Voda, see

RE: [PHP] SMS Again, UK

2002-07-01 Thread Simon Ritchie
Oh yes, I forgot about email, which was mentioned in another answer to this FAQ. Some providers give you an email address with your phone, for example I believe that One2One (or whatever it's called today) give you @one2one.com. Email sent to that address arrives at your phone as an SMS. Somebo

RE: [PHP] work with mobile by PHP !!

2002-01-01 Thread Simon Ritchie
> How can I send msg to PHP ?=20 > what I need and what I must read ?? Try http://www.sms-wap.com Simon -- 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: [

RE: [PHP] apache authentication

2002-01-14 Thread Simon Ritchie
Your question is not very clear, not to me anyway. Are you trying to write some PHP code that remembers a user name and password over several requests? If so, I can answer that. According to me, it's hard. The problem is that PHP (in fact Apache itself) doesn't remember any information between

RE: [PHP] Compile problems php 4.1.1

2002-01-15 Thread Simon Ritchie
> I'm trying to compile php 4.1.1 and when it gets to the > --with-apxs option it errors out with the following: > > Sorry, I was not able to successfully run APXS. Possible reasons: > > 1. Perl is not installed; . . . Some systems (eg Red Hat Linux) come with a version of the apxs tool, but no

RE: [PHP] Extending PHP

2002-01-16 Thread Simon Ritchie
The PHP system is built using GNU tools, which are described on the GNU web site www.gnu.org. The documentation on extending PHP on the zend web site is not terribly clear and I suspect that does not match the current system. However, it does refer you to the gnu web site for information about th

RE: [PHP] Extending PHP

2002-01-16 Thread Simon Ritchie
For what they are worth, here are some notes that I took. I don't think they answer the actual question you asked, but they may be useful. Extensions to PHP are written in C. (I haven't seen a statement to that effect anywhere in the documentation, but I mave missed something.) Assume that you

RE: [PHP] Job Needed !!!

2002-01-16 Thread Simon Ritchie
> However, have you considered that this guy was maybe offering > to help in a free > software project? Call me cynical, but I think the clue was in his use of the phrase "Any on can hire me". I interpreted that to mean "can anyone hire me?" rather than "I would like to make my enforced period o

RE: [PHP] apache authentication

2002-01-16 Thread Simon Ritchie
64 form. The PHP // manual entry for fsockopen(0 advises you to put CR chars at the // end of each line as well as LFs. // // Copyright 2002 Simon Ritchie, Merrow Internet Services // (www.merrowinternet.com) $server = "intra.local.sys"

[PHP] Online PHP training course

2002-05-22 Thread Simon Ritchie
of 17.5%. For more details visit http://www.merrowinternet.com. Simon Ritchie Merrow Internet Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php