[PHP] last updated ?

2002-11-30 Thread Paul O';Neil
Dumb question here but whats the general practice regarding putting a
"website last updated:" entry on a web page? Does the web master manually
enter in today's date in a database table entry and let PHP display. Is it
statically added to the HTML page? Etc...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] touch file on shared web server?

2003-07-12 Thread Paul O';Neil
you can only TOUCH a file that you own. Usually PHP is *nobody*. Is there a
way for a script to create a file on the web server?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.498 / Virus Database: 297 - Release Date: 7/8/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] touch file on shared web server?

2003-07-12 Thread Paul O';Neil
Yes, create a temp directory like this -rw-rw-rw-   1 nobody   nogroup

-Original Message-
From: Paul O'Neil [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 12, 2003 5:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] touch file on shared web server?


you can only TOUCH a file that you own. Usually PHP is *nobody*. Is there a
way for a script to create a file on the web server?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.498 / Virus Database: 297 - Release Date: 7/8/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.498 / Virus Database: 297 - Release Date: 7/8/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.498 / Virus Database: 297 - Release Date: 7/8/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] automatic job execution

2002-07-25 Thread Paul O';Neil

I have a php script I would like run like a cron job every so many minutes.
How is this done?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] automatic job execution

2002-07-25 Thread Paul O';Neil

I looked at some old posts and I found #!/usr/local/bin/php -q should be
included at the top of the script but I don't think I have permission on the
system I'm on.

-Original Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 6:25 AM
To: Paul O'Neil
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] automatic job execution


On second thought, do you just want the script to run and sleep or
actually schedule it as a job?  You could just use sleep().

set_time_out(0);

while ($i = 0){
your code

sleep(60);
}

We use this at my company for a file parsing program, it runs, sleeps 15
minutes and repeats.

-Scott



On Thu, 25 Jul 2002, Paul O'Neil wrote:

> I have a php script I would like run like a cron job every so many
minutes.
> How is this done?
>
>
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] automatic job execution

2002-07-25 Thread Paul O';Neil

awe shit, that did work. thanks!

-Original Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 6:25 AM
To: Paul O'Neil
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] automatic job execution


On second thought, do you just want the script to run and sleep or
actually schedule it as a job?  You could just use sleep().

set_time_out(0);

while ($i = 0){
your code

sleep(60);
}

We use this at my company for a file parsing program, it runs, sleeps 15
minutes and repeats.

-Scott



On Thu, 25 Jul 2002, Paul O'Neil wrote:

> I have a php script I would like run like a cron job every so many
minutes.
> How is this done?
>
>
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] cookies

2002-06-22 Thread Paul O';Neil

If a browser has cookies blocked , anyone have code if unable to set cookie
then  goto another page.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] cookies

2002-06-22 Thread Paul O';Neil

isset worked for me thanks.

-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 22, 2002 4:37 PM
To: Paul O'Neil
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] cookies


This is sometimes a confusing issue for people, but remember that
cookies work like this:

1) client requests a resource from a Web server
2) Web server returns a response to the client including a request to
set cookies ("Set-Cookie" header)
3) client requests another page from the Web server and includes the
cookies ("Cookie" header) in the request

Some people want to know how they can tell whether the client accepts
cookies after step 1 (during the processing that results in step 2).
This is simply impossible.

However, you can adequately tell whether someone has cookies enabled
after you receive a second HTTP request from that person. On this
"second" page, simply test to see whether the cookie that you previously
set exists (isset is a good function for this). If it doesn't exist, the
client does not accept cookies. Some developers want this "check" to
appear as if it were performed on a single transaction and force the
client to make the second request.

Chris

Paul O'Neil wrote:

>If a browser has cookies blocked , anyone have code if unable to set cookie
>then  goto another page.
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] simple Apache question I'm sure

2003-09-05 Thread Paul O';Neil
This is more Apache related but I have a php/apache config'd box at home I
want to test stuff out on before uploading to a public server. Every
directory except wwwroot dir I must place a '/' after the dir name to get a
listing such as http:://192.168.1.1/mydirectory will not load the index.php
file until I type in the '/' like so http://192.168.1.1/mydirectory/ what
gives?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/2003

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] simple Apache question I'm sure [solved]

2003-09-06 Thread Paul O';Neil
Thanks for that answer. that was it. Theres alot going on in apache!

-Original Message-
From: David Otton [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 06, 2003 4:40 AM
To: Paul O'Neil
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] simple Apache question I'm sure


On Fri, 5 Sep 2003 20:30:22 -0700, you wrote:

>This is more Apache related but I have a php/apache config'd box at home I
>want to test stuff out on before uploading to a public server. Every
>directory except wwwroot dir I must place a '/' after the dir name to get a
>listing such as http:://192.168.1.1/mydirectory will not load the index.php
>file until I type in the '/' like so http://192.168.1.1/mydirectory/ what
>gives?

[Assuming that "::" is a typo]

"http://192.168.1.1/mydirectory"; is an invalid URL - that resource doesn't
exist on that server.

When a server receives a request for "http://example.com/some/dir";, instead
of throwing a 404 error it politely issues a 301 (Moved Permanently),
telling the browser to go to "http://example.com/some/dir/"; instead.

The "example.com" bit is taken from httpd.conf. Look for the line:

ServerName example.com

to modify.

Your request for "http://192.168.1.1/mydirectory"; is being 301'd into
"http://example.com/mydirectory/";

This is why leaving training a '/' off a URL is a bad idea, even though it
appears to work - it causes a second HTTP roundtrip before you get your
file.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/2003

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP script locations

2001-03-18 Thread Paul O';Neil

Dumb question here but where does one typically keep there PHP form scripts,
like

web/index.htm
images/image.jpg
phpscripts/login.php
cgi-bin/perlscript.pl
secure/secureforms.here

Is there a problem keeping everything in the WEB directory, is it a security
issue or management of files issue? Both?



-- 
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] unable to fine /htdocs on my linux machine :(

2001-03-19 Thread Paul O';Neil

I had problems getting Apache, PHP and MySQL to work using the RPM's on
Redhat 7.0. I ended up deleting all of them and installed manually using the
tar's.
- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 18, 2001 11:32 PM
Subject: Re: [PHP] unable to fine /htdocs on my linux machine :(


> On Mon, 19 Mar 2001 05:53, Nilesh Parmar wrote:
> > Hi!
> >I am trying to install php on my Redhat Linux 7.0  box and
> > following all instructions correctly, but i am unable to locate the
> > directory /htdocs in my machine I tried all tricks and trials but of no
> > use .Can anyone tell me what to do now!! my httpd.conf file is in
> > /etc/httpd/conf/ ..Apache is working fine as it is loading the test
> > page with http://localhost I installed php4 rpm .
> > waiting eagerly for a solution
> >  thanking you all in advance
> > bye
> >
> >  Nilesh Parmar
>
> This is rather an Apache question, but. It will depend on how you
> configured Apache as to where or even whether you will find the htdocs
> directory. For clues, check your httpd.conf file and look under
> ServerRoot and DocumentRoot.
>
> --
> David Robley| WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet| http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
> --
> 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] scripts

2001-05-05 Thread Paul O';Neil

If I have PHP scripts I want in a directory other people can't access, how
do I let those scripts be read by the sever? Like scripts that contain user
and password info or is just have them named "filename.php" secure enough?


-- 
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] Sos

2001-05-07 Thread Paul O';Neil

That's what I did to get mine working on 7.0

-Original Message-
From: Altunergil, Oktay [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 7:32 AM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: [PHP] Sos


Remove both rpms + apache

Do a source install. Using redhat is no excuse for installing
PHP+MySQL+Apache from rpms. You will be glad you did it when you're done.
It's much easier to usually.

oktay

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 10:30 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Sos


Hi,

   My name is Younes Khabchaouy , and am working as a junior system
administrator .
   i hade a request to install the php with apache .I did install both
with the RPM because we use the Red Hat platform
   And i did the changes in apache ( httpd.con) Load Modules and Add
modules  and i change the permission in the file to test the php
   and i steel get the same error wich is ( premature end of script) if you
can help me i apriciate




Many thanks


-- 
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 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] installing php4

2001-05-22 Thread PAUL O';NEIL

I had a little trouble with RedHat using the RPM's to get those packages to
work. It only worked best when I used the tar.gz files on all three and
followed the instructions. I felt that since these are critical components
that need to work for me and I was doing it by hand anyway why even use
RedHat. I recently installed the latest SuSe and its awesome. They kept
everything pretty standard as far as I can tell. You could still install the
tar.gz's and conform to RedHat's way but unless you know a little bit this
can cause some problems. 

-Original Message-
From: AJDIN BRANDIC
To: [EMAIL PROTECTED]
Sent: 5/22/01 8:37 AM
Subject: [PHP] installing php4

Hi

I am building a web server.  I installed RH6.2 and Apache was installed
with it (as binary I guess). I have also installed MySQL (server/client)
from binary RPM.  I want to install PHP4 source now.  Is there any way I
could install it without compiling Apache source version or do I need to

get Apache
source and compile(make/make install) the two apps (Apache/PHP4)?  I 
guess MySQL can stay as it is. 


Regards

Ajdin

-- 
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]