Re: [PHP] stop time out

2001-10-23 Thread Tim Zickus

On Tue, 2001-10-23 at 15:34, Gary wrote:
 On sending a large number of newsletters out, how would you stop php 
 from timing out if you do not have access to the .ini file?


http://www.php.net/manual/en/function.set-time-limit.php


-- 
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] PHP Uptime error

2001-06-25 Thread Tim Zickus


Check the permissions on the files in /proc, which is where uptime gets its
info from, most likely.

You could probably even read the pseudo-file '/proc/loadavg' as 'nobody'
directly from PHP given the appropriate file permissions.

- Tim
  http://www.phptemplates.org

 Richard Lynch's advice was correct, I cannot run uptime under nobody for
 some reason.  Does anyone know how to change this?  The permissions are
set
 to allow everyone to execute it.



-- 
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] how do i hide my .inc files in apache??

2001-01-17 Thread Tim Zickus

Combine these options:

http://httpd.apache.org/docs/mod/mod_access.html#allow
http://httpd.apache.org/docs/mod/core.html#files

to exclude access to anything matching *.inc.

The safest/easiest thing is to move the files outside of the document path
and add that directory to your php include path.  That way you're not
relying on a special apache configuration if you were to move to a new
server, etc...your files could become inadvertently unprotected.

- Tim
  http://www.phptemplates.org

can anyone tell me how i get apache to never send out the contents of my
include files (*.inc) to users?



-- 
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] Populating table rows

2001-01-16 Thread Tim Zickus

You need a while loop:

$sqlCurrentTraces = sqlExecute(...)
while ($result = sqlFetchObject( $sqlCurrentTraces ) {
  ... your table stuff ...
}

- Tim
  http://www.phptemplates.org

- Original Message -
From: "Wade Halsey" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 4:47 AM
Subject: [PHP] Populating table rows


Hi

Ive selected some details from a database and now want to loop through the
result and populate a row in a table each time.

...


-- 
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] Variables in 'friendly' urls

2001-01-16 Thread Tim Zickus

You need to parse some of the environment variables to get this data,

$pathArray = explode("/",$HTTP_SERVER_VARS[PATH_INFO])

seems to be particularly helpful.

Put a call to phpinfo() into your file and see what's there.

- Tim

 Is there a way to pass variables as 'friendly' urls? So instead of
 haveing a url like www.blah.co.uk/profile.php?team=tigers i could have
 www.blah.co.uk/profile.php/team/tigers which would call profile.php and
set
 team to tigers.
 I've been playing with it but i can't seem to get it to set the
 variables. It will run the script (profile.php) but the variable $team if
 still unset.



-- 
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] mixing HTML and PHP code

2001-01-12 Thread Tim Zickus

In Dreamtime, we'd just have a template that looks like this:

table
{:each:output}
  tr
 td{output}/tdtd{more_output}/td
  /tr
  {:next:more_output}
{:end}
/table

Even a pot-smoking mac-using hippie web designer can understand that. :-)
And it's readable in Dreamweaver or GoLive or any of those visual HTML
tools.  For Dreamweaver I added a little custom definition that makes a nice
icon wherever it sees a template tag in the HTML file.

...and our PHP geeks just stuff a results array into the template.  Too
easy.

- Tim
  http://www.phptemplates.org

 TABLE
 ?
 while (fetch_row_from_query()){
$output = data_from_fetched_row();
$more_output = more_data_from_fetched_row();?
TR
   TD?echo $output?/TD
   TD?echo $more_output?/TD
/TR
 ?}?
 /TABLE



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