[PHP] Re: PHP Template Function

2003-12-18 Thread dirk maetens
Hi Cameron,

Seems like http://xaoza.net/software/phpmesh/ could be of some interest to you.
I'm checking it out myself as we speak, so I cannot confirm whether it gives you
template inheritance via subdirectories. It does provide a means to do away with
standard includes anywhere on your site...

HTH  good luck with the project,
dirk

ps: I welcome any insights you might gather on implementing template inheritance
without the need for includes (by any means), as I will be facing a similar
conversion project in the opening weeks of 2004.

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



[PHP] Re: PHP Webpage like MySql- need to be able to see all fields and edit

2003-07-25 Thread dirk . maetens
Hi,

You might want to look at phpFriendlyAdmin at sourceforge
http://sourceforge.net/projects/phpfriendly/

quote
the web developer's answer to simplify content management for the
masses! This package is a remote database management tool made
specifically for web developers who want to ease an audience into the
world of content management
/quote

I recently incorporated it in a homegrown Content Management System and
am very happy with it... As always everything depends on the
knowledgeability of your userbase...

Hope this helps,
Dirk Maetens


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



[PHP] Store file remotely using socket/fopen

2001-10-26 Thread dirk . maetens

Hello list,

Simple Enough Objective: store file remotely (wu-ftp);
MinorSnag: PHP's ftp-functions unavailable at localhost;
BelowWorkaround: works fine for deleting remote file;
MajorSnag: how to STORE a file remotely using socket?

?php
$ftp=fsockopen(ftp.server.com, 21, $errno, $errstr, 60);
if (!$ftp) {
 echo Connection failed: $errstr ($errno);
 exit;
}
else {
 socket_set_blocking($ftp, true);
 echo fgets($ftp,255);
 fputs($ftp,USER ftp_username\r\n);
 echo fgets($ftp,255);
 fputs($ftp,PASS ftp_passw\r\n);
 echo fgets($ftp,255);
 fputs($ftp,DELE /home/httpd/html/test.htm\r\n);
 echo fgets($ftp,255);
 fputs($ftp,QUIT\r\n);
 echo fgets($ftp,255);
 fclose($ftp);
}
?

BTW: I also messed with fopen(ftp://user:pass@...;)
but failed miserably (although it seemed possible before
my mind wandered off).

ANY HELP IS APPRECIATED (using socket, fopen, ...)
--
[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] How upload file(s) using socket/fopen

2001-10-25 Thread Dirk Maetens

Hello list,

Simple Enough Objective: store file remotely (wu-ftp);
MinorSnag: PHP's ftp-functions unavailable at localhost;
BelowWorkaround: works fine for deleting remote file;
MajorSnag: how to STORE a file remotely using socket?

?php
$ftp=fsockopen(ftp.server.com, 21, $errno, $errstr, 60);
if (!$ftp) {
echo Connection failed: $errstr ($errno);
exit;
}
else {
socket_set_blocking($ftp, true);
echo fgets($ftp,255);
fputs($ftp,USER ftp_username\r\n);
echo fgets($ftp,255);
fputs($ftp,PASS ftp_passw\r\n);
echo fgets($ftp,255);
fputs($ftp,DELE /home/httpd/html/test.htm\r\n); === STORE
EQUIVALENT ?
echo fgets($ftp,255);
fputs($ftp,QUIT\r\n);
echo fgets($ftp,255);
fclose($ftp);
}
?

BTW: I also messed with fopen(ftp://user:pass@...;) but failed
miserably (although it seemed possible before my mind wandered off).

ANY HELP IS APPRECIATED (using socket, fopen, ...)
--
[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] Upload file(s) using socket/fopen

2001-10-25 Thread Dirk Maetens

Hello list,

Simple Enough Objective: store file remotely (wu-ftp);
MinorSnag: PHP's ftp-functions unavailable at localhost;
BelowWorkaround: works fine for deleting remote file;
MajorSnag: how to STORE a file remotely using socket?

?php
$ftp=fsockopen(ftp.server.com, 21, $errno, $errstr, 60);
if (!$ftp) {
 echo Connection failed: $errstr ($errno);
 exit;
}
else {
 socket_set_blocking($ftp, true);
 echo fgets($ftp,255);
 fputs($ftp,USER ftp_username\r\n);
 echo fgets($ftp,255);
 fputs($ftp,PASS ftp_passw\r\n);
 echo fgets($ftp,255);
 fputs($ftp,DELE /home/httpd/html/test.htm\r\n);
 echo fgets($ftp,255);
 fputs($ftp,QUIT\r\n);
 echo fgets($ftp,255);
 fclose($ftp);
}
?

BTW: I also messed with fopen(ftp://user:pass@...;) but failed
miserably (although it seemed possible before my mind wandered off).

ANY HELP IS APPRECIATED (using socket, fopen, ...)
--
[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] Passing files from A to B

2001-10-02 Thread Dirk Maetens

Hello PHP-list,

I am not an expert, so explaining the problem might be somewhat tricky.
Please bare with me...

Server A:
PHP 4.01pl2
Safe Mode On
Not configured with ftp functions

Server B: ftp access, no PHP (shame)

On Server A I use output buffering to generate some simple HTML files.
So far so good. My problem starts when I want to copy these files from
Server A to Server B, where the public can get to them. How can I
accomplish this? Any help (RTFM included) is as welcome as it will be
appreciated! (BTW I am subscribed to the digest version of this
php-general list, so a cc: [EMAIL PROTECTED] would be nice)

Thanks.
--
Dirk Maetens
Belgium


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