[PHP] Files created by PHP/Apache

2003-07-30 Thread Joachim
value upload_tmp_dir /var/www/web2/phptmp/ -snap- Hint: /var/www/web2 is the homedirectory of web2, he has all rights there. Can anybody help me? What do I have to change? Joachim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Joachim
everybody could do everything with the files. Well, there is the open_basedir setting, put then, what's about other user doing other things (not PHP)? No way? Joachim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Joachim
the problem, that every $virtualuser can access the files. You still have to hope that there is now "bad" $virtualuser. Anyway, thanks :-)! Joachim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Joachim
Curt Zirzow wrote: > * Thus wrote Joachim ([EMAIL PROTECTED]): >> > Yes that is a big security hole. There are some hosting solutions, >> > I cant really help you there, but this concept I think should work >> > would be: >> > [...] >> > user/group:

RE: [PHP] Randomizing 3 different numbers.

2003-10-27 Thread Joachim
Sorry for top-posting, gotta configure my mail client better later. Small error here: }while( ($three == $one) && ($three == $two) ); Change to: }while( ($three == $one) || ($three == $two) ); -Original Message- From: Ray Hunter [mailto:[EMAIL PROTECTED] Sent: den 27 oktober 2003 15:56 T

[PHP] Multisorting an array

2003-02-17 Thread Joachim Krebs
isort this array so it becomes sorted by type first, and then by name. What are the arguments for the function in this case? Joachim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array declarations

2003-02-18 Thread Joachim Krebs
Is there any speed difference at all from the following two code blocks (miniscule or not)? If so, which is faster? $cfg["db"]["host"] = ""; $cfg["db"]["user"] = ""; $cfg["db"]["pass"] = "zzzz"; o

[PHP] open_basedir Option

2003-02-19 Thread Joachim Krebs
How do I set the php.ini setting open_basedir on a per-directory basis? Ideally, I would like to set it using .htaccess files... Joachim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Adding slashes

2003-02-19 Thread Joachim Krebs
PHP seems to automatically be escaping quotes on my $_POST variables. Am I talking rubbish, or is this some setting? It is annoying me greatly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string manipulation

2003-02-20 Thread Joachim Krebs
This is the best method echo substr(strrchr($string, $char), 1); On 21 February 2003 at 00:13:02, Gregory Heinrichs wrote: > little help please, looking for correct functions to use to search for the > last occurrence of a character in a string and truncate everything in > front of i

Re: [PHP] Is it possible to "Include" a php source file ?

2003-02-23 Thread Joachim Krebs
include() include_once() require() require_once() Look those functions up in the PHP docs. On 23 February 2003 at 21:32:46, Rohin Gosling wrote: > First up, I sent this same message a few hours ago, but I do not see it in > the news group, and neither does it appear in my sent messag

Re[2]: [PHP] save all vars in a url to a var?

2002-08-18 Thread Joachim Krebs
For a list of common system variables, refer to: http://cs-people.bu.edu/stevec/cs101/02s/php5_system.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Joachim Krebs
That style is also the one I use. It works well, it is clean, and it is straightforward. Joachim Richard Baskett wrote: on 10/24/03 0:47, Nathan Taylor at [EMAIL PROTECTED] wrote: I am a recent fan of the single-quotes. I used to use double only but when some gurus told me the disadvantages

[PHP] Re: Got myself confused

2003-10-25 Thread Joachim Krebs
Jesus. How drunk were you when you concocted this mess? Joachim Tom Wollaston wrote: I have been trying to write some code for a simple menu system. The idea was that every item on a menu should be tied to anouther to give a menu structure. To do this I have tried to use the following code. Some

[PHP] References and memory efficiency

2003-11-01 Thread Joachim Krebs
s = array(); $db->fetch($myquery, $news); Where fetch($query, &$array) is the header. In the second case, the fetch function would therefore write the rows directly to the array which was passed as a reference rather than returning a copy. Am I right in thinking that this is a better m

[PHP] Re: Persisting MySQL connection accross scripts

2003-11-01 Thread Joachim Krebs
php.net says this as well: "First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection." Joachim Rich w

Re: [PHP] recursive acronym - PHP

2003-11-01 Thread Joachim Krebs
Or LAME for "Lame Ain't an MP3 Encoder" Larry E . Ullman wrote: Why PHP is a recursive acronym?, I know that before was called Personal Home Page, I now is Hypertext PreProcessor, but why is recursive?, I person told me that it could be wroten as Pre Hypertxt Processor, thanks. PHP stands for

[PHP] Re: eliminating dupes from MySQL query results

2003-11-01 Thread Joachim Krebs
Look into the DISTINCT keyword for MySQL. Robb Kerr wrote: It's not exactly a Php problem, but MySQL and Php seem to be so intertwined and this newsgroup has been so unbelievably helpful that I thought I'd post the question here. I've got a query which returns a group of records. the field which

[PHP] Re: Dissecting an email address

2003-11-02 Thread Joachim Krebs
opinion. Joachim Dave Carrera wrote: Hi All, How do you split an email address sent via form post text field. I.e.: split [EMAIL PROTECTED] into me@ hotmail .com It’s the domain bit I am interested in, not the username or tld. Any help is appreciated. Thank you in advance Yours Dave C

Re: [PHP] recursive acronym - PHP

2003-11-02 Thread Joachim Krebs
Perhaps it is time to break the record. Evan Nemerson wrote: How can you forget the Hurd??? http://www.gnu.org/software/hurd/hurd.html#name: "According to Thomas Bushnell, BSG, the primary architect of the Hurd: `Hurd' stands for `Hird of Unix-Replacing Daemons'. And, then, `Hird' stands for `

[PHP-CVS] AW: [PHP-CVS-DAILY] cvs: php4 / NEWS

2001-01-12 Thread Unger, Joachim
UNSUBSCRIBE -- PHP CVS 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-CVS] Mailinglist: -help

2001-01-18 Thread Unger, Joachim
-Ursprungliche Nachricht- Von: changelog [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 17. Januar 2001 03:09 An: [EMAIL PROTECTED] Betreff: [PHP-CVS-DAILY] cvs: php4 / ChangeLog changelog Tue Jan 16 18:09:29 2001 EDT Modified files: /php4 Chan

[PHP] Cache Database-driven site

2001-03-12 Thread Joachim Maier
Hi all, i'm appreciating any comments on this idea: I'm about to create a completely database driven site (mySQL). Almost all of the output is generated from database data. A big part of the data is rather static of nature, eg. updated once a month. A smaller part is quite dynamic, e.g. content

[PHP] How to unsubscribe

2001-04-17 Thread Joachim Fuchs
How to unsubscribe? In typical lists, there is a small info how to unsubscribe. In the php-general list, this is not the case. Several effords failed. Who can unsubscribe "manually"? Best regards, Joachim [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

[PHP] imap_open

2005-09-16 Thread Joachim Person
I tried to make the simple program Mailboxes\n"; $folders = imap_listmailbox($mbox, "{imap.liu.se:993}", "*"); if ($folders == false) { echo "Call failed\n"; } else { foreach ($folders as $val) { echo $val . "\n"; } } echo "Headers in INBOX\n"; $headers = imap_headers($mbox); if

[PHP] imap_open

2005-09-16 Thread Joachim Person
What could be the cause of the error Warning: imap_open(): Couldn't open stream ? I have got the address and the port to the imap server right, but I think that the imap server requires some sort of secure login. Could this be the problem? If yes, how can it be solved? If no, what other causes c

[PHP] Warning: imap_open(): Couldn't open stream

2005-09-16 Thread Joachim Person
What could be the cause of the error Warning: imap_open(): Couldn't open stream ? I have got the address and the port to the imap server right, but I think that the imap server requires some sort of secure login. Could this be the problem? If yes, how can it be solved? If no, what other causes

Re: [PHP] imap_open

2005-09-16 Thread Joachim Person
"John Nichel" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Joachim Person wrote: >> I tried to make the simple program >> >> > $mbox = imap_open("{imap.liu.se:993}", "joape382", "fil"); >> &g

Re: [PHP] imap_open

2005-09-20 Thread Joachim Person
Thanks Viraj, Telneting gives an error like this (translated from Swedish language): Connecting to imap.liu.se...Couldn't connect to the host computer, using port 143: The connection failed. I guess I'm not getting any answer then. Regards, Joachim "viraj" <[EM

Re: [PHP] imap_open

2005-09-20 Thread Joachim Person
work with the php script. Regards, Joachim "viraj" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] did you tried telneting to host's 143 port? if you are getting a response from the IMAP server you better go through the php-imap requirements, it's here..

Re: [PHP] imap_open

2005-09-20 Thread Joachim Person
ce: (null)(): [CLOSED] IMAP connection broken (server response) (errflg=2) in Unknown on line 0 as a response after 30 seconds. Does this mean I have to include a certifcate of some kind in some way? If I need, how to do it? Regards, Joachim "viraj" <[EMAIL PROTECTED]> skrev i m

[PHP] imap + secure connection problems

2005-09-25 Thread Joachim Person
I tried to make the simple program Mailboxes\n"; $folders = imap_listmailbox($mbox, "{imap.liu.se:993}", "*"); if ($folders == false) { echo "Call failed\n"; } else { foreach ($folders as $val) { echo $val . "\n"; } } echo "Headers in INBOX\n"; $headers = imap_headers($mbox); if