[PHP] Re: Help - need to quickly optimize a record count!

2005-07-06 Thread Peter
Or even make .txt file with the cron and just include that txt file in your php ? include_once('figures.txt'); ? Then in backgrond with perl(php) and cron you will udate that .txt file :-) So it will be 1 quesry per 15 minutes :-) Peter [EMAIL PROTECTED] wrote: Brian Dunning [EMAIL

Re: [PHP] .INC files

2005-06-03 Thread Peter Brodersen
case a lot of assumptions could cause damage. Poorly implemented high security could be worse than moderate, application based security. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] Japanese with UTF-8 and mysql

2005-06-03 Thread Peter Brodersen
-type. A quick test shows that the HTTP header output from Apache would contain: Content-Type: UTF-8 The correct way - if one wants utf-8 as charset - is: header(Content-Type: index/html; charset=utf-8); -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Retrieving client SSL info

2005-05-30 Thread Peter Brodersen
On Thu, 26 May 2005 21:32:27 +0200, in php.general [EMAIL PROTECTED] (Peter Brodersen) wrote: A phpinfo() only shows that $_SERVER['HTTPS'] has been set to on. The mod_ssl-refrence shows though that a lot of other environment variables should be present: http://www.modssl.org/docs/2.1

[PHP] Re: How to make a script sleep for 5 seconds?

2005-05-30 Thread Peter Brodersen
. Maybe a PEAR project? -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: fopen for http://

2005-05-27 Thread Peter Brodersen
a page on the second web site (that you want to access thorugh fopen() ) that outputs the client's IP address. You'll probably see that your source IP address is not 127.0.0.1. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Retrieving client SSL info

2005-05-26 Thread Peter Brodersen
-generalm=103828683828825w=2 Notice that it is my own site that is running under SSL. I am not trying to connect to a SSL-enabled site using PHP; my users are connecting to my site (with their browsers and certificates). I don't think the openssl functions could be helpful here. -- - Peter Brodersen

[PHP] Re: Retrieving client SSL info

2005-05-26 Thread Peter Brodersen
On Thu, 26 May 2005 21:32:27 +0200, in php.general [EMAIL PROTECTED] (Peter Brodersen) wrote: I have searched the web, in php.general and comp.lang.php without success. The closest info was a reply from Christ Shiflett: http://marc.theaimsgroup.com/?l=php-generalm=103828683828825w=2 What a typo

Re: [PHP] Drop down list - persistant value

2005-04-13 Thread Peter H. Lemieux
and radio buttons. They've made form creation and handling enormously easier. Peter Jacques wrote: I am using PHP. I have a registration page where the user has to select his country form a drop down list. If the username that the user selected for himself exists in the database I am sending him

Re: [PHP] Any personal experience with MySQL/Calendar application

2005-03-29 Thread Peter G. Brown
I have used egroupware in a company setting and found it to be largely satisfactory. It might be overkill in your case but you can restrict module access. www.egroupware.org HTH Peter Brown Todd Cary wrote: I am looking for an open source calendar program that uses MySQL to store the data

[PHP] update of mysql to 4.1

2005-03-02 Thread Peter
Hi, i'm thinking of updating my mysql-server from 3.23 to 4.1.10, and i can't find any serious information if i would have to rebuild php too. anybody tryed this already?? system: debian linux, apache 1.3.31, php 4.3.9, mysql 3.23.52 thanks peter -- PHP General Mailing List (http://www.php.net

[PHP] update of mysql to 4.x

2005-03-02 Thread Peter
Hi, i'm thinking of updating my mysql-server from 3.23 to 4.1.10, and i can't find any serious information if i would have to rebuild php too. anybody tryed this already?? system: debian linux, apache 1.3.31, php 4.3.9, mysql 3.23.52 thanks peter -- PHP General Mailing List (http://www.php.net

Re: [PHP] update of mysql to 4.x

2005-03-02 Thread Peter
sorry, i googled again, read nearly every post wich containes mysql and upgrade but i can't find a useful answer in this list. perhaps its me... so my question is still the same, would i have to recompile php or not peter @NG what means need? nobody needs an internet,using mysql4 would just

[PHP] pbpBB cannot contact MySQL

2005-02-21 Thread Peter Flynn
MySQL-python-0.9.2-4 php-ldap-4.3.10-3.2 I downloaded and unwrapped phpBB.2.0.11 as there doesn't seem to be an RPM for it yet. ///Peter -- BTW last time I mailed this list I got all sorts of weirdo answers from HR units thanking me for applying for the job. Is there something wrong with the list

[PHP] Re: Sorting multidim array and keeping associations

2004-12-11 Thread Peter Lauri
by making the Query correct. /Peter Peter Lauri [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Best groupmember, I have an multidim array that looks something like this: [40] = [1]=32, [2]=55, [total]=87 [22] = [8]=2, [7]=105, [total]=107 [142] = [2]=3, [7]=8, [total]=11 I

[PHP] PHP vs JSP?

2004-12-11 Thread Peter Lauri
Best groupmember, Why should I choose PHP instead of JSP/Servlets when it comes to develop a high-traffic site. Assume that the infrastructure for both are set up. It only comes to efficiency (both coding and running)? What are your experience? -- - Best Of Times /Peter Lauri -- PHP General

[PHP] Re: MySQL Connection problem

2004-12-11 Thread Peter Lauri
It would be nice if you submit code that generates the error. /Peter Mike Francis [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, I have Apache 2, PHP 5 and MySQL 4.1 installed on an XP pro box. I have created a new database 'ijdb' with a single table 'joke' and have entered

[PHP] Re: OT Re: Desparate

2004-12-08 Thread Peter Lauri
I have looked there, did not find what I wanted :) Know of any open MySQL newsgroup? Java newsgroup? /Peter David Robley [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] On Wed, 8 Dec 2004 16:31, Peter Lauri wrote: Best groupmember, I just moved to Bangkok and have a huge

[PHP] Php in Cgi

2004-12-07 Thread Peter Law
I am learning Php and have a web site host where scripts have to be in the cgi-bin. What is put in the original web page to call a script from the cgi-bin? The info from the web host is below. Thanks, Peter Does your webserver support PHP? Yes, our webserver does support PHP version 4. What

[PHP] Desparate

2004-12-07 Thread Peter Lauri
: news.opennewsserver.com I know that this is not supposed to be posted in this group, not relevant to the subject, sorry about that. But I have tried to find a solution for two weeks now. -- - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Sessions in Frames...confused

2004-12-06 Thread Peter Lauri
Do not use frames :) It creates problems for the searchengines. /Peter Ryan A [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, Reading the different articles on phpbuilder/devshed/phpfreaks etc has left me a bit confused.. will start from the beginning so you guys(and girls

[PHP] Re: Session variables not unsetting

2004-12-06 Thread Peter Lauri
Security? Have you called session_start(); ??? /Peter Steve [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Steve wrote: I'm having a problem with session variables. Never mind. Seems that the hosting company decided this week to switch from register_globals off

[PHP] Re: Sessions and subdomains issues

2004-12-06 Thread Peter Lauri
I had a similar problem before. I had my admin at admin.mydomain.com, and the cookies did not transfer. I changed it to www.mydomain.com/admin instead... In my host my subdomain admin.mydomain.com is located in www.mydomain.com/admin, I assume similar structure for you? /Peter Nick Wilson

Re: [PHP] copy() not working

2004-12-05 Thread Peter Lauri
Solution to the problem: instead of trying to write it to /image/filename I write it to ../image/filename, that solves my problem :) /Peter Peter Lauri [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Thank you. Now I am getting somewhere, but I get this error-msg now, I do

[PHP] Re: Stupid question

2004-12-04 Thread Peter Lauri
Do phpinfo() for that, you will find that information there. /Peter Phpu [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, If i have a php and mysql website...how many connections support mysql at one time ? Thanks -- PHP General Mailing List (http://www.php.net

[PHP] Days remaining?

2004-12-02 Thread Peter Lauri
Best groupmember, I have the date 2004-12-24 in a string, and 2004-11-05 in a other. Is there any date function that can assist in calculating the number of days left until 2004-12-24 when it is 2004-11-05. (the dates are just testdates) -- - Best Of Times /Peter Lauri -- PHP General Mailing

[PHP] Days remaining?

2004-12-02 Thread Peter Lauri
Best groupmember, I have the date 2004-12-24 in a string, and 2004-11-05 in a other. Is there any date function that can assist in calculating the number of days left until 2004-12-24 when it is 2004-11-05. (the dates are just testdates) -- - Best Of Times /Peter Lauri -- PHP General Mailing

[PHP] Re: Sessions: Basic Information

2004-12-02 Thread Peter Lauri
. /Peter Lordo [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I have not yet worked with sessions and I don't know why I DO NOT WANT to understand it!! :)) I am a traditional ASPer and I am addicted to cookies. But I want to use sessions if they will make life easier for me

[PHP] Re: Need Help

2004-12-02 Thread Peter Lauri
Use ?php ? if you are implementing php. I think that you can predefine what scriptlanguage to use, and therefore ? ? can be used. /Peter Suneel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi to all any one Could tell me any diffrence between ?php

[PHP] Organisation of classes

2004-12-01 Thread Peter Lauri
to include every file as a .php class in every php that I want to use the class? -- - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Organisation of classes

2004-12-01 Thread Peter Lauri
. Was hoping that it would be some sort of library system that could be used for classes. Package? /Peter John Holmes [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Peter Lauri wrote: For the moment I have all my classes saved in a file called classes.php in a subdirectory /classes

[PHP] Execution time?

2004-12-01 Thread Peter Lauri
Best groupmember, How do I find the execution time for a php-script on a webserver? ms? -- - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] require() in other directories?

2004-11-18 Thread Peter Lauri
as my .php file. I have tried the following: require(../classes.php); require(http://www.mydomain.com/classes.php;); and more. All gives me error messages, why? Anyone that could help me? - Best Of Times /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] require() in other directories?

2004-11-18 Thread Peter Lauri
); But that doesn't work. Help :) Pluance [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] What error happen? On Thu, 18 Nov 2004 09:15:22 +0100, Peter Lauri [EMAIL PROTECTED] wrote: Best groupmember, I have an webapplication that uses different languages and therefor I have

[PHP] PHP-editor connected to FTP?

2004-11-18 Thread Peter Lauri
Best groupmember, What editor do you use when working with websites (php) connected directly to the FTP? I like Eclipse 3.0 with the PHP plugin, but it do not have the future to connect to the FTP. - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Sequrity without HTTPS?

2004-11-18 Thread Peter Lauri
variable with some hacker techniqe? I assume it is easy to listen to the USERNAME and PASSWORD in the POST-form. Someone with some tips and tricks to get a secure system without using HTTPS? -- - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] require() in other directories?

2004-11-18 Thread Peter Lauri
But if I am working on a webserver it would try to find it in the root of my webserver, or am I wrong? For example I use that notation with an image: I use this: img src='/image/theimage.gif' Is this not the case for the PHP-scripting? /Peter Jason Wong [EMAIL PROTECTED] skrev i meddelandet

[PHP] Re: Sequrity without HTTPS?

2004-11-18 Thread Peter Lauri
If you use the Autority HTTP that pops up a login window by default, is that safe against listeners? /Peter Sebastian Mendel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Peter Lauri wrote: Best groupmember, I am about to develop an simple admintool for a webpage. My

[PHP] Re: Sorting multidim array and keeping associations

2004-11-18 Thread Peter Lauri
for this solution. You can find the algorithm in the end of this message. /Peter Array ( [40] = Array ( [1] = 16 [2] = 20 [3] = 20 [4] = 10 [total] = 66 ) [35] = Array ( [1] = 20 [2

Re: [PHP] PHP Supremacy...

2004-11-18 Thread Peter Risdon
are as they are. Regards, Peter. -- the circle squared network systems and software http://www.circlesquared.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[Fwd: Re: [PHP] PHP Supremacy...]

2004-11-18 Thread Peter Risdon
essence of Open Source is that it can't disappear. This is a question to be asked about proprietary software, not open source. The biggest problem might be tact: he's not being terribly bright. Regards, Peter. -- the circle squared network systems and software http://www.circlesquared.com ---End

[PHP] Efficency in looping arrays?

2004-11-17 Thread Peter Lauri
a big array to do this. How do I loop thru the array without the overhead of each()? - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Efficency in looping arrays?

2004-11-17 Thread Peter Lauri
Hey :) But what if the array have a unordered keystructure? What your loop do is to call the value with key $i, or am I wrong? What if the keys are strings? - Best Of Times /Peter Lauri Dirk Kredler [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] hey :) i use for this reason

Re: [PHP] Efficency in looping arrays?

2004-11-17 Thread Peter Lauri
Probably, thank you :) Pluance [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] You mean this? foreach ($arr as $key = $value) { echo \$arr[${key}] = $value; } On Wed, 17 Nov 2004 14:05:23 +0100, Peter Lauri [EMAIL PROTECTED] wrote: Hey :) But what if the array have

[PHP] Re: how to show errors in browser

2004-11-17 Thread Peter Lauri
Check the function error_reporting() or check the settings in the php.ini - Best Of Times /Peter Rayan Lahoud [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hy, i am opening php files from my browser. If there are some errors in the php file i can not see what are the errors

[PHP] Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
this by writing an function myself. But are there any built in functions for this? I have looked at usort, uksort and more, but they do not seem to solve my problem. - Best Of Times /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
this by writing an function myself. But are there any built in functions for this? I have looked at usort, uksort and more, but they do not seem to solve my problem. - Best Of Times /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
I have tried to figure it out how to use it with those, but I can not find a solution. - Best Of Times /Peter Sebastian Mendel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Peter Lauri wrote: Best groupmember, I have an multidim array that looks something like

[PHP] Re: Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
I have tried to figure it out how to use it with those, but I can not find a solution. - Best Of Times /Peter Sebastian Mendel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Peter Lauri wrote: Best groupmember, I have an multidim array that looks something like

[PHP] copy() not working

2004-11-16 Thread Peter Lauri
be seen at www.devdws.com/phpinfo.php Is there anyone that see any errors in the problem? I have checked severeal manuals and this is how it should be. - The Best Of Times Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] copy() not working

2004-11-16 Thread Peter Lauri
[tmp_name] = /tmp/phpugQpuz [error] = 0 [size] = 1054 ) ) - BEST OF TIMES /Peter Burhan Khalid [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED]... On Tue, 2004-11-16 at 14:58 +0100, Peter Lauri wrote: Best groupmember, I am implementing

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Peter Brodersen
, for posts regarding mysql. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] List Etiquette

2004-09-20 Thread Peter Risdon
the lines of: Because it destroys the flow of an argument. Why is top posting bad? Peter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How does work shorten url services?

2004-09-19 Thread Peter Brodersen
-document for handling requests to files that do not exist: ErrorDocument 404 /404handler.php (one could still set a 200 OK-returncode) .. but all this is out of PHP-scope. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Parsing HTML files

2004-09-10 Thread Peter Brodersen
(); xml_parse_into_struct($x,$string,$array); print $array[0]['attributes']['VALUE']; // or, out of curiousity: var_dump($array); ? (and why preg_replace? $1 wouldn't even be set since no capturing parenthesises are used) -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Peter Brodersen
as other_user. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem sending mail

2004-08-30 Thread Peter Brodersen
in: /text.inc and in all include-paths. ... it would also check /var/www/html/scripts/text.inc -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Bug with mktime??

2004-08-30 Thread Peter Brodersen
, you are setting the date to 31. december .. and so on. Since you only look at the month, you would get october, october, december, december, etc. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Get Value

2004-08-26 Thread Peter Brodersen
']); print /pre; print hr; print pre; var_dump($array); print /pre; ? But look at $array[0]['attributes']['HREF'] for the link. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: exploding

2004-08-25 Thread Peter Brodersen
= 8; $test = preg_split('//', $var,-1,PREG_SPLIT_NO_EMPTY); print_r($test); ? Or, a possible faster method, using str_split() (only available in PHP5): http://php.net/str_split ?php $var = 8; $test = str_split($var); // requires PHP5 print_r($test); ? -- - Peter Brodersen -- PHP General

Re: [PHP] Re: exploding

2004-08-25 Thread Peter Brodersen
, otherwise preg_split(). -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] avi to wmv convert

2004-08-21 Thread Peter Clarke
John Nichel wrote: Peter Clarke wrote: John Nichel wrote: Jay Blanchard wrote: [snip] In what manual? [/snip] TFM! I'm sorry, I didn't quite catch that. Could you hold my hand, and point it out to me? If you were a real pal, you would write the code for me too. ;) The only manual I know

Re: [PHP] avi to wmv convert

2004-08-20 Thread Peter Clarke
John Nichel wrote: Jay Blanchard wrote: [snip] In what manual? [/snip] TFM! I'm sorry, I didn't quite catch that. Could you hold my hand, and point it out to me? If you were a real pal, you would write the code for me too. ;) The only manual I know of is at www.php.net It provides a tool for

Re: [PHP] Securing Forms???

2004-08-18 Thread Peter Brodersen
messing up the form. $token = md5(uniqid(rand() )); ought to be sufficient - and works with PHP4 :) -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Securing Forms???

2004-08-18 Thread Peter Brodersen
with uniqid() simply returns a more unique value to md5(), so what's the difference. Err... the only difference is that I removed the second argument, making md5() return a simple hex-encoded string. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Securing Forms???

2004-08-18 Thread Peter Brodersen
is a hexadecimal number. Ah, damn you, parenthesis :) I read it as: md5(uniqid(rand()), true); My bad - sorry! -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Securing Forms???

2004-08-18 Thread Peter Brodersen
that you have grown stronger since our last encounter! -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FW: Help with PHP 5 - code not working since upgrade

2004-08-17 Thread Peter Brodersen
On Tue, 17 Aug 2004 12:40:00 -0700 (PDT), in php.general you wrote: I didn't have to look much further than this. You have a class that was designed in PHP3 and suddenly you're wondering why it work in PHP5? Actually, I too would wonder why it worked :) -- - Peter Brodersen -- PHP General

Re: [PHP] access a file

2004-08-13 Thread Peter Risdon
Curlys wrote: -rwxr-xr-x1 root root 133 Aug 13 15:48 zeed.php group and owner like this , how does it workable plz help chown www /path/to/zeed.php Peter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: apache htaccess mod rewrite with php querystring urls

2004-08-12 Thread Peter Brodersen
be of more help for you. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] The Y2038 bug

2004-08-12 Thread Peter Risdon
have 64 bit systems by 2038, which is reasonably likely, there will be no problem. Peter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Join query

2004-08-10 Thread Peter Brodersen
Hi, On Mon, 9 Aug 2004 18:12:42 +, in php.general you wrote: * Thus wrote Jonathan Haddad: The only problem there is when you group the LEFT JOIN pictures that have a count of 0 return a count of 1. Unfortunately there's no single query that I figured out when I did this same project

[PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread Peter Brodersen
be expanded to as long as possible, e.g.: pattern: /.*/ string: one foo two bar three .. wil match foo two bar and not just foo. .*? on the other hand (or the U pattern modifier) makes the capture ungreedy. ... just trying to clear up a common mix-up in terms :) -- - Peter Brodersen -- PHP General

[PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread Peter Brodersen
. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread Peter Brodersen
: There really is a common mix-up between these two words, as you have just proved :) (I'm pretty sure that we all agree of the actual behaviour of /g, though - this is only an issue regarding words) -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: php tools

2004-08-10 Thread Peter Ellis
*coughs* Pico! Real men don't have enough money to buy all that stone. They just use tissue paper, toilet paper, or whatever's available that breaks down easily enough to hide all errors with zero culpability. -- Peter Ellis - [EMAIL PROTECTED] Web Design and Development Consultant naturalaxis

Re: [PHP] which user is a script executing as?

2004-07-24 Thread Peter Risdon
? These specify which user to run as under suexec. Once that is in place, I generally just create a file from the script to see the uid. Peter. Thanks! on linux $user = `whoami`; print $user; you might need to get rid of \n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] editor for remote files using ssh

2004-07-24 Thread Peter Risdon
a Unix program, preferably a FreeBSD port, but am happy to compile something myself if it will work consistently or at least give some kind of error message if it has difficulty, and not just hang. TIA. Peter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Worried about PECL

2004-07-08 Thread Peter Clarke
(). www.php.net/mcal Note: This extension has been removed as of PHP 5 and moved to the PECL repository. There is no mention of mcal on the pecl website. I appreciate that PECL will more relevant to PHP5, but PHP5 is close is the documentation close too? -Peter -- PHP General Mailing List (http

Re: [PHP] Protecting database passwords

2004-07-01 Thread Peter Risdon
horde), that restricts access to a directory that is intended for configuration files. Peter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protecting database passwords

2004-07-01 Thread Peter Brodersen
On Thu, 01 Jul 2004 06:55:38 -0700, [EMAIL PROTECTED] (Bob Hockney) wrote: What I am concerned about is a local user on the server machine, not access through the web server. It sounds like it can be done if there is a separate user or group for the web server process, but this site specific.

[PHP] Re: crazy readdir bug

2004-06-18 Thread Peter Clarke
$srDirectory so $srDirectory does not exist. -Peter The class is constructed successfully, the function is called successfuly, the if($rDirectory = opendir(/templates)) statement returns true, and the directory most certainly exists, but as soon as an attempt to read the contents of the directory

Re: [PHP] php as CGI and $_POST

2004-06-05 Thread Peter Risdon
David T-G wrote: Peter -- ...and then Peter Risdon said... % % David T-G wrote: % % bash-2.05a$ /usr/local/bin/php -v % PHP 4.3.4 (cli) (built: Jan 6 2004 15:27:52) % % You probably need the cgi version - not the command line one you % actually have. Ooohhh... Ouch. So

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread Peter Risdon
(cli) (built: Jan 6 2004 15:27:52) You probably need the cgi version - not the command line one you actually have. Peter. Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies % % % Curt TIA HAND :-D -- PHP General Mailing List (http

[PHP] Unable to load pages with errors

2004-05-28 Thread peter a
on RedHat 9. Ideas anyone? /peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
Thanks, but that didn't take me anywhere. My browser still seems to hang itself or load a part of the page. I suppose it could be any of my http-processes that freezes up.. but I don't seems like it and I don't know why it would. Doesn't matter which browser I use either. /peter Chris W

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
Nothing complicated at all. It loops out some values from a MySQL database with not more than 20 entries. It's not that.. /peter Chris W. Parker wrote: peter a mailto:[EMAIL PROTECTED] on Friday, May 28, 2004 9:06 AM said: Thanks, but that didn't take me anywhere. My browser still seems

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
It not just that page.. it is all pages the will generate some sort of PHP error. Instead of the usual error output I get nothing. /peter Chris W. Parker wrote: peter a mailto:[EMAIL PROTECTED] on Friday, May 28, 2004 9:12 AM said: Nothing complicated at all. It loops out some values from

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
is there.. it just won't load.. In a working PHP-file I added some code that for sure wouldn't work, and the page froze. Still showed up in the access log though.. but it didn't display any output at all obviously. /peter Peter Risdon wrote: peter a wrote: I have stumbled on something that is new for me

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
PHP configuration has not been changed though... so it's just strange.. I read something about a similiar trouble if you SSL on the server, I have SSL installed but this site is not under https. Anybody now anything about that? /peter Chris W. Parker wrote: peter a mailto:[EMAIL PROTECTED

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
I have not changed my configuration lateley, what I know of. There is another guy working on the server, but he said he had changed nothing either. I've been running this configuration for a couple of months now and it has never caused me any troubles. /peter Michael Sims wrote: peter

Re: [PHP] Sessions simply do not work?

2004-05-25 Thread Peter Risdon
Michael R. Wayne wrote: In my continuing efforts to actually get sessions to work, I upgraded to PHP 4.3.6 and apache 1.3.31. This did not make the slighest difference. So, does ANYone have ideas of how to debug this? Or is PHP simply broken and no longer able to maintain sessions? /\/\ \/\/

Re: [PHP] Re: Now I can't start the session either...

2004-05-25 Thread Peter Risdon
Brian Dunning wrote: On May 25, 2004, at 9:06 AM, Craig wrote: It doesnt necessarily mean the error occured on that line, that may have been the last executed statement post a few more lines or we cant help you. ?php // Start the session if (! session_id()) session_start(); if (not

[PHP] apache suexec, CGI PHP and filesystem stuff

2004-05-23 Thread Peter Risdon
I posted a few days ago about problems with filesystem commands like copy(), move_uploaded_file(), backticked shell commands and so on while using CGI PHP under apache suexec. It seems that these only work in directory trees starting in the directory in which the script itself resides. So if

[PHP] php cgi, apache suexec, filesystem problems

2004-05-21 Thread Peter Risdon
Hi, I am having a lot of problems with any PHP routines that have to access the filesystem - things like exec(), shell_exec(), system(), backticked shell commands, copy(), move_uploaded_file() and so on. I have a non-standard setup with CLI, CGI and mod_php all installed. These scripts are

[PHP] Where to change upload_tmp_dir ini setting

2004-05-21 Thread Peter Risdon
Hi, This page: http://www.php.net/manual/en/function.ini-set.php tells me that upload_tmp_dir is of level PHP_INI_SYSTEM and can therefore only be altered in php.ini or httpd.conf I want to be able to set this by virtual host. My httpd.conf includes a directory which contains seperate files for

Re: [PHP] Where to change upload_tmp_dir ini setting

2004-05-21 Thread Peter Risdon
Peter Risdon wrote: Hi, This page: http://www.php.net/manual/en/function.ini-set.php tells me that upload_tmp_dir is of level PHP_INI_SYSTEM and can therefore only be altered in php.ini or httpd.conf I want to be able to set this by virtual host. My httpd.conf includes a directory which

[PHP] Anyone who can help me????

2004-04-16 Thread Peter Hansen
win2003 Anyone who can help me here??? Regards Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with livestat

2004-04-15 Thread Peter Hansen
://www.flashwebb.com/bflive.php so now i don't know what's wrong i want the page vietnam.pl to come up when i click on the link as you can do can see here http://www.flashwebb.se/bf1942live/vietnam.pl Anyone who can help me here??? Regards Peter -- PHP General Mailing List (http://www.php.net

[PHP] Shell_exec

2004-04-15 Thread Peter Hansen
://www.flashwebb.com/bflive.php so now i don't know what's wrong i want the page vietnam.pl to come up when i click on the link as you can do can see here http://www.flashwebb.se/bf1942live/vietnam.pl Anyone who can help me here??? Regards Peter -- PHP General Mailing List (http://www.php.net

<    4   5   6   7   8   9   10   11   12   13   >