Re: [PHP] Understanding behavior of 'directories below files'

2004-06-26 Thread Marek Kilimajer
This behavior is used to make search engine friendly urls. If you 
don't want the broken images, add this to the head section:

base href=http://www.hcpartnership.org/;
KEVIN ZEMBOWER wrote --- napísal::
I'm a system administrator who's dabbled a bit in PHP, but am not very experienced in 
it. My PHP developer came to me with a behavior which neither of us can understand.
If you go to this URL, you'll get a broken version of the main home page on our site: http://www.hcpartnership.org/index.php/search . We can't understand this, because 'index.php' is a file, not a directory. (The correct web page is just at http://www.hcpartnership.org/index.php.) 

Here's another example:
http://www.hcpartnership.org/path_test.php/search : does not generate a 404 error
http://www.hcpartnership.org/path_test.html/search : generates a 404 error
This is despite the fact that both of these two files are empty:
www:/var/www/hcpartnership/htdocs# ls -l path*
-rw-r--r--1 rmcpeak  wwwadmin0 Jun 25 10:09 path_test.html
-rw-r--r--1 rmcpeak  wwwadmin0 Jun 25 10:10 path_test.php
www:/var/www/hcpartnership/htdocs# 

Can anyone explain to me why this is happening? Is this a danger? Can this be turned 
off? Is this controlled in the .php code, in the php.ini file or in the Apache 
configuration, or elsewhere?
We didn't even know how to describe this problem well, so our searches of the archives 
of this mailing list and Google weren't successful. Let me know  if we overlooked 
something.
Thanks so much for your suggestions and thoughts.
-Kevin Zembower
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Crontab PHP Script

2004-06-26 Thread Ryan Schefke
Hi,

 

Can someone please give me some guidance.  I'd like to run a php script
every minute (in reality every night, but just testing).  I've done some
reading and found that a crontab is the best way to go (I think).  I'm using
Plesk 7 on a Linux box and I have root access.

 

I made a quick php script called crontab.php to email me.

 

==

?php   //send email on domain

/* subject */

$str_subject = crontab test;



/* message */

$messagecontent = this is a test to see
if crontab working nightly\n\n;



/* to */

$to = [EMAIL PROTECTED];



/* from */

$headers .= From: tgWedding
[EMAIL PROTECTED]\r\n;



/* bcc */

//  $headers .= Bcc:
[EMAIL PROTECTED];



mail($to, $str_subject, $messagecontent,
$headers);

?

 

 

Then I setup my crontab command as:
/home/httpd/vhosts/tgwedding.com/httpdocs/tgwedding/crontab.php
https://217.160.251.56:8443/sysuser/crontab_edit.php?cte_src=CTEJKgkqCSoJKg
kvaG9tZS9odHRwZC92aG9zdHMvdGd3ZWRkaW5nLmNvbS9odHRwZG9jcy90Z3dlZGRpbmcvY3Jvbn
RhYi5waHA= 

 

 

I used  *  for every field except M, which I set to  01  to run every
minute.

 

 

It's not working...can someone guide me along and let me know what I've done
wrong.

 

Thanks,

Ryan



Re: [PHP] Crontab PHP Script

2004-06-26 Thread Marek Kilimajer
Ryan Schefke wrote --- napísal::
Hi,
 

Can someone please give me some guidance.  I'd like to run a php script
every minute (in reality every night, but just testing).  I've done some
reading and found that a crontab is the best way to go (I think).  I'm using
Plesk 7 on a Linux box and I have root access.
 


Then I setup my crontab command as:
/home/httpd/vhosts/tgwedding.com/httpdocs/tgwedding/crontab.php
The crontab command should be:
/path/to/php /path/to/your/crontab.php
Add -q parameter if the php executable is cgi and not cli
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Crontab PHP Script

2004-06-26 Thread Scot L. Harris
On Sat, 2004-06-26 at 19:34, Ryan Schefke wrote:
 Hi,
 
  
 
 Can someone please give me some guidance.  I'd like to run a php script
 every minute (in reality every night, but just testing).  I've done some
 reading and found that a crontab is the best way to go (I think).  I'm using
 Plesk 7 on a Linux box and I have root access.
 

You need to add #!/usr/bin/php
At the start of your script so it knows how to run it.  You will also
need to set the permission bits to allow execution 
chmod 700

Change the path to where you have the cli version of php on your system.


-- 
Scot L. Harris [EMAIL PROTECTED]

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



Re: [PHP] image upload woes

2004-06-26 Thread Marek Kilimajer
Edward Peloke wrote --- napísal::
I have code which attempts to upload some files and create thumbnails.  The
same code on one server works ok, the same code on another server throws an
error everytime I hit submit that says The document contains no data...it
appears to be a javascript error.  It is not an error that I am throwing.
Has anyone ever had this problem?
Thanks,
Eddie
I bet that the script is dying for some reason. Turn display_errors on 
or check the logs, the real reason should be there somewhere. And it's 
not javascript.

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


[PHP] Construction

2004-06-26 Thread Jason Davidson
If you instantiate a child class, the parent class constructor is not
called, is there a reason for this?  anyone know of plans to change
this at all, 
the obvious workaround is to call the parents constructor inside the
childs constructor, but this seems kinda strange.

Jason

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



Re: [PHP] Crontab PHP Script

2004-06-26 Thread Tim Traver
Not sure if this is different in linux, but usually the first parameter is 
the minutes, and if you had 01 in it, that means that it would do it once 
an hour (i.e. 12:01, 1:01, 2:01, etc...

They should all have stars to do it once a minute.
In freeBSD, it would look like this :
*   *   *   *   root/usr/local/bin/php 
home/httpd/vhosts/tgwedding.com/httpdocs/tgwedding/crontab.php

Tim.
At 04:34 PM 6/26/2004, Ryan Schefke wrote:
Hi,

Can someone please give me some guidance.  I'd like to run a php script
every minute (in reality every night, but just testing).  I've done some
reading and found that a crontab is the best way to go (I think).  I'm using
Plesk 7 on a Linux box and I have root access.

I made a quick php script called crontab.php to email me.

==
?php   //send email on domain
/* subject */
$str_subject = crontab test;

/* message */
$messagecontent = this is a test to see
if crontab working nightly\n\n;

/* to */
$to = [EMAIL PROTECTED];

/* from */
$headers .= From: tgWedding
[EMAIL PROTECTED]\r\n;

/* bcc */
//  $headers .= Bcc:
[EMAIL PROTECTED];

mail($to, $str_subject, $messagecontent,
$headers);
?


Then I setup my crontab command as:
/home/httpd/vhosts/tgwedding.com/httpdocs/tgwedding/crontab.php
https://217.160.251.56:8443/sysuser/crontab_edit.php?cte_src=CTEJKgkqCSoJKg
kvaG9tZS9odHRwZC92aG9zdHMvdGd3ZWRkaW5nLmNvbS9odHRwZG9jcy90Z3dlZGRpbmcvY3Jvbn
RhYi5waHA=


I used  *  for every field except M, which I set to  01  to run every
minute.


It's not working...can someone guide me along and let me know what I've done
wrong.

Thanks,
Ryan

SimpleNet's Back !
http://www.simplenet.com