[PHP] content management

2004-01-26 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Does anybody know of an extremely simple CMS (to serve pages, documents, not 
news based like most of them) that can store pages in various languages and 
comes with interface in various languages (or that it is translatable) ?
- -- 
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAFZ2stCepaMf3unIRAoL7AJ9BEpUAho0tCl4j8lM1B4XWfjqTVQCeJZml
ilhhFqh2ItDx68ad0okMvFs=
=Jugz
-END PGP SIGNATURE-

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



Re: [PHP] Stop neurotic posting

2003-08-14 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 06 August 2003 03:40, Jason Wong wrote:
 On Wednesday 06 August 2003 14:35, John Manko wrote:
  perhaps there should be two lists (novice and advanced), and the
  advanced listed shouldn't
  answer questions if it's considered trivial enough for the novice list
  to answer.

 On many lists you get this kind of suggestion. Almost always the rebuttal
 is that the people who are in a position to help would then mostly
 congregate to the 'advanced' list leaving the helpless to fend for
 themselves on the 'beginners' list.

 In other words its usually a BAD idea.

Another thing that can be done, maybe, is create specific list like:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
as they're needed.

Thank you.

- -- 
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/MLi2Lr8z5XzmSDQRAhnQAJ9ndVFldDRZ8TrY8RLd7PVT2v6YFACeM2/B
0EkChumwHBnG5I+O6qirzWc=
=36rW
-END PGP SIGNATURE-


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



[PHP] pass by reference

2003-01-13 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I did a complex class that works with XML parsing and complex structured where
I used references extensivly and now I'm surprised with:

Warning: Call-time pass-by-reference has been deprecated - argument passed by
value; If you would like to pass it by reference, modify the declaration of
array_push(). If you would like to enable call-time pass-by-reference, you
can set allow_call_time_pass_reference to true in your INI file. However,
future versions may not support this any longer.

I can't modify the php.ini since I'm in a shared but the problem is deeper.
Why was it deprecated ? what replaced it ? is there any work arround ?
My 200 lines of code without references could take much, much longer and be
much, much more messy.
Any ideas ?
Thanks.
- --
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+I02cLr8z5XzmSDQRAs/0AKCyf+UG0uZdbwG30WFU0UUNVWO7BwCgnCn5
2LmOOJi8uX+1dOqUfCTatSE=
=5obN
-END PGP SIGNATURE-


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




Re: [PHP] pass by reference

2003-01-13 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 13 January 2003 20:01, Tom Rogers wrote:
 Hi,

 Tuesday, January 14, 2003, 9:36:57 AM, you wrote:
 P -BEGIN PGP SIGNED MESSAGE-
 P Hash: SHA1

 P I did a complex class that works with XML parsing and complex structured
 where P I used references extensivly and now I'm surprised with:

 P Warning: Call-time pass-by-reference has been deprecated - argument
 passed by P value; If you would like to pass it by reference, modify the
 declaration of P array_push(). If you would like to enable call-time
 pass-by-reference, you P can set allow_call_time_pass_reference to true in
 your INI file. However, P future versions may not support this any longer.

 P I can't modify the php.ini since I'm in a shared but the problem is
 deeper. P Why was it deprecated ? what replaced it ? is there any work
 arround ? P My 200 lines of code without references could take much, much
 longer and be P much, much more messy.
 P Any ideas ?
 P Thanks.
 P - --
 P Pupeno: [EMAIL PROTECTED]
 P http://www.pupeno.com
 P - ---
 P Help the hungry children of Argentina,
 P please go to (and make it your homepage):
 P http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
 P -BEGIN PGP SIGNATURE-
 P Version: GnuPG v1.0.7 (GNU/Linux)

 P iD8DBQE+I02cLr8z5XzmSDQRAs/0AKCyf+UG0uZdbwG30WFU0UUNVWO7BwCgnCn5
 P 2LmOOJi8uX+1dOqUfCTatSE=
 P =5obN
 P -END PGP SIGNATURE-

 I am sure array_push accepts the array as a reference so there is no need
 to use the  operator in the call. At least thats how it works in a simple
 class.
No, I mean, what you're pushing inside the array is a reference:
array_push($anArrayOfReferences, $thisIsAVariable);
that doesn't work, but I replaced by
$anArrayOfReferences[count($anArrayOfReferences)] = $thisIsAVariable;
Thanks :)
- -- 
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+I2FvLr8z5XzmSDQRAjjOAKCm0pwkFAVC8vFfF2r8v/enZp4NhwCffIfV
x0ipECbUUmn72eJbEw0eg60=
=oFaa
-END PGP SIGNATURE-


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




[PHP] ~E_NOTICE, why not ?

2003-01-07 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm using error reporting E_ALL that helps me debugging, but Smarty generates
some E_NOTICEs because of not defined variables, so, I want to disable 
E_NOTICE before displaying.
I'm doing this:
$oer = error_reporting(E_ALL  ~E_NOTICE);
$tpl-display(index.html);
error_reporting($oer);
but it still reports notices, any idea ?
Thanks.
- --
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+G2P3Lr8z5XzmSDQRAl8LAJ9jzLHmNuarcsG6M7JKjwKM313w1gCg2Dq1
79u/+bnOLvaNWCTxxdNVZXo=
=qM1i
-END PGP SIGNATURE-


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




Re: [PHP] Zend IDE vs. PhpEd

2003-01-07 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday 07 January 2003 18:48, Jason Wong wrote:
 On Wednesday 08 January 2003 02:45, Maxim Maletsky wrote:
  Isn't it a little bit too much of paranoia for autocompletion? In
  programming schools they make you writing the programs on paper so you
  understand it better :)
 
  I, personally, only care about the code highlighting. Autocompleting
  often exposes you to make silly mistakes (not always, of course) and
  these are the hardest ones to debug. Copying, pasting and replacing is
  much safer, IMHO.

 I thought autocompletion would help you _avoid_ silly mistakes. For
 example, defining $varName then trying to use $varname when you really
 meant to use $varName.
Configuring error reporting to E_ALL will help you with that and some other 
things as well, all my scripts run in E_ALL.
But I still think that autocompletation is very useful.
Have fun.
- -- 
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+G2eYLr8z5XzmSDQRAsH+AKCPrW2nGliNZu8kGOaAeaO8AC+9AgCg4q1D
0Ki998HRDqC2ER6eDYTby9s=
=Bp+V
-END PGP SIGNATURE-


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




[PHP] changing uid/gid

2003-01-05 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Is it posible to change the current uid/gid in a script that is being running
? of course, having the user and password ? like running su.
I'm writting a script that has to perform some operations on the files on the
server, make some directories in the place where the web is and make some
symlinks, the other option, is to make a bash script that would do the work
of making some globaly writeable directories to later let php do the job and
I don't like that option.
Thanks
Carpe diem.
- --
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+GSorLr8z5XzmSDQRAn6iAJ96NIQIdVwUqeEpMbSkwAQAEHIfdwCgtfCf
eOfVoJXVBd/wzZ0aEwiWEZU=
=P6Tf
-END PGP SIGNATURE-


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




[PHP] Performance

2002-11-15 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm very intresting in achiving high performances with my scripts.
I have a couple of questions about performance.
When passing arrays (they are not very huge anyway) to a function, passing 
them as reference is faster, isn't it ?
And when I have a chain of ifs, is ti better (from the performance point of 
view) to change it for a switch ?
And by the way, do you know of any documents related to performance in PHP ?
Thank you.
- -- 
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE91ZljLr8z5XzmSDQRAmIEAJoCvB/jpYbwkXjc1tjqY4+sNON4TQCePEoT
EZkh5dHGguO8C4J5MRppQTo=
=bi6p
-END PGP SIGNATURE-


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




[PHP] posible bug, require and symlinks

2002-11-13 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I think I've found a posible bug, or at least, an unexpected behaviour.
I'm requesting a page, the file that is called is index.php, but this file is 
a symlink from somewhere else.
When I require a file from index.php, if there's no .. on the path (a relative 
path, but not going back), the relative path is from where the original file 
is, but if there's a .. on the path, the relative path is from where the 
symlink is (although php identifies the script as the original file in the 
error message).
I'm using PHP 4.2.3-1mdk (Mandrake 9.0).
I'm searching the bug database to see if there's an already reported bug, but 
I can't find it...
Maybe something is wrong here, so I'd like if someone can confirm this or add 
any comments or tell me if it is a bug, reported, or just a weird behaviour.
Thank you.
- -- 
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE90viPLr8z5XzmSDQRAp8yAJ9GhzdcyxMl8dfoM9IVUK50fxvfJQCfUthZ
Yyh5vNZokFSsyHg4DM0ZESQ=
=2Hao
-END PGP SIGNATURE-


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




[PHP] bulk mail

2002-08-27 Thread Pupeno

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I know a lot has been discussed in this topic, but I still don't find any 
solution.
What I want to do is send a lot of mails triggered from a web page using 
php.
I've found diferent solutions but all of them has some problem:
1) using set_time_limit() to allow the script to run longer while sending 
e-mails, my prefered solution but I won't let someone waiting a lot of time 
with a loading browser because they'll stop, reload, and at best, just not 
like it. So, I would like to launch a background process changing the 
set_time_limit() in that process (if needed), the problem is that I wasn't 
able to run a background process in PHP, were you ? I know I could use at 
(atd) to run a background process but in my shared server, there's no at 
available.

2) Queuing instead of sending. I've seen that some people improved the 
'sending' (well, it's not sending anymore) by queuin only. Then some people 
tell me that sendmails always queue and I'm a bit confused. Does sendmail 
queue or sends mails ? if it queue, why is it send imediatly if the queue 
is procesed once an hour or so ? I don't care if my mails are procesed once 
an hour for this mails, I don't need them to be sent imediatly. I can't 
change sendmail configuration (since it's a shared server) and I wouldn't 
want to because I have other 'mail cases' when I want to send the mails 
imediatly. I can't change the way PHP calls sendmail (again, it's a shared 
server) but I'm using PHPMailer and I can change the way PHPMailer uses 
sendmail, will `/usr/sbin/sendmail -O DeliveryMode=q` queue the mails I'm 
sending ?

3) Someone told me to do it using cron, do you have any idea of how to do it 
with cron ?

Thanks.
- -- 
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9bAiPLr8z5XzmSDQRAncrAJ9aJNbANVfW0yWglY7n/33vQrN3UQCbB6N0
2ba6H7dP1U4Qb0xfI4M8SSE=
=cQ0X
-END PGP SIGNATURE-

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




[PHP] Background process (sending mails)

2002-08-21 Thread Pupeno

I know this issue have been discussed a lot of times but I checked a lot of 
archives and documents and I couldn't find any solution.
What I want to do is send a lot of mails (belive me, it's not spamming) and 
I thought about running the process of sending mails in background 
(detached from the PHP script that runs it), so the page will return 
immediatly and the other process will continue sending the mails in the 
background.
I didn't find any way to run a process in the background from PHP 
succesfully.
The manual says that using system(), if the stdout is redirected to a file, 
it's run in background, I tryed redirecting stdout, stderr and stdin 
to/from files and it still waits for the termination of the process, I 
tryed adding  at the end of the process line and it didn't work neither.
Any idea of how I can do this (without using at, but maybe cron, I don't 
know how) ?
Thank you.

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




Re: [PHP] Background process (sending mails)

2002-08-21 Thread Pupeno

Rasmus Lerdorf wrote:

 Simply configure your MTA to queue requests coming from PHP.  Your php.ini
 file has the sendmail invocation line that is used by PHP's mail()
 function.  Most MTA's out there have a sendmail-like interface and most
 have a way to tell it to simply queue the request and return immediately.
 
 For sendmail you tell it to queue by adding a option to the command line
 specified in php.ini using the -o flag.  Check your sendmail docs for the
 actual option, but on my system my docs say:
 
   DeliveryMode=x
 Set  the  delivery mode to x.  Delivery modes are `i' for
 interactive (synchronous) delivery, `b' for background
 (asynchronous) delivery, `q' for queue only - i.e., actual
 delivery is done the next time the queue is run,  and
 `d'  for  deferred - the same as `q' except that database
 lookups for maps which have set the -D option (default
 for the host map) are avoided.
 
 Don't forget that if you just queue the mssages, you need to flush the
 queue every now and then.  Traditionally that is done by a cron job that
 runs periodically and calls sendmail to flush the queue.

But I'm running on a shared hosting server, I'm not able to modify 
Sendmail's configuration :(
Thank you anyway for your help, any other idea ?
--
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar

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