RE: [PHP] file from database work local, but not on server

2006-06-08 Thread Peter Lauri
Some files did work well, while others did not work at all. Is there anyone with reference of a small example of binary storage and retrieval from database? I have performed working solutions for images before, but this should support any file extensions (with exceptions of course). Best

RE: [PHP] file from database work local, but not on server

2006-06-08 Thread Peter Lauri
Hi Tedd, Thank you for your answer. I have it working for images already, the problem comes to Excel, PDF's etc. I will do some more testing using your sample, thanks. /Peter -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 9:29 PM To: Peter

RE: [PHP] Short writage of clauses

2006-06-12 Thread Peter Lauri
Switch($a) { Case 1: Dowhatyouwant(); Case 2: Dowhatyouwant(); Default: Dowhatyouwant(); } -Original Message- From: Barry [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 5:12 PM To: php-general@lists.php.net Sub

[PHP] Setting headers for file download

2006-06-13 Thread Peter Lauri
ix for IE, but I can not find it. Anyone with experience of this? Best regards, Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sending UTF-8 mail with mail()

2006-06-13 Thread Peter Lauri
ncoding: 7bit\n\n") The message is being sent, but the UTF-8 specific characters are not being presented. Is there any fix on this? The messages etc are coming from a form. Is it possible to set the charset for the form? /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Sending UTF-8 mail with mail()

2006-06-13 Thread Peter Lauri
That worked "better". Now I at least am getting something that looks like the same it looks in MySQL database table. However, in the email client (outlook, gmail, hotmail) it is being showed like this: Document name: ´¡¿Ë Document summary: ´¡Ë¿ /Peter -Original Message- F

RE: [PHP] Re: Sending UTF-8 mail with mail()

2006-06-13 Thread Peter Lauri
, and is displayed correct on the web site when retrieving the data from the database and using UTF-8 as the charset on the web site. When sending it in text/plain via mail() and charset=utf-8 it is displayed like below. /Peter -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent

RE: [PHP] Re: Sending UTF-8 mail with mail()

2006-06-13 Thread Peter Lauri
What do you mean with the display fonts? Do you mean the text that is inserted in the form? -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 12:55 AM To: Peter Lauri; 'tedd'; 'Barry'; php-general@lists.php.net Subject: RE: [PH

[PHP] RE: Sending UTF-8 mail with mail()

2006-06-13 Thread Peter Lauri
Yes, that class I am aware of. However, I only want to send text/plain messages, not MIME messages. -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 4:36 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: Sending UTF-8 mail with

RE: [PHP] Setting headers for file download

2006-06-13 Thread Peter Lauri
Hi, when I do that I do not get any download frame showing up. Can that be solved? -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 4:58 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Setting headers for file download

RE: [PHP] Re: Setting headers for file download

2006-06-13 Thread Peter Lauri
#x27;); header('Content-Disposition: attachment; filename="'. basename($file_name) .'"'); header("Content-Length: $file_len"); readfile($file_name); Peter Lauri wrote: > Best group member, > > This is how I try to push files to download using he

RE: [PHP] Re: Setting headers for file download

2006-06-14 Thread Peter Lauri
in WHY the server is not sending the correct headers? This is becoming more and more irritating :) Best regards, Peter Lauri -Original Message- From: Rafael [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 6:28 AM To: php-general@lists.php.net Subject: [PHP] Re: Setting headers

RE: [PHP] Re: Setting headers for file download

2006-06-14 Thread Peter Lauri
headers for file download Peter Lauri schrieb: > Best group member, > > This is how I try to push files to download using headers: > > header("Content-type: $file_type"); > header("Content-Disposition: attachment; filename=$filename"); > print $file; > &

[PHP] Get rid of line breaks

2006-06-18 Thread Peter Lauri
Best group member, I have a variable $content that is taken from a database. It contains line breaks and the $content will be posted with line breaks. I need to use this to insert this into a JavaScript function: $output = 'writeRichText(\'rte1\', \''.$content.'\', 400, 200, true, fals

RE: [PHP] Re: mysql ORDER BY problem

2006-06-18 Thread Peter Lauri
Just do: SELECT * FROM thetable ORDER BY yourfieldyouwanttoorder If you want it in reverse order you add DESC in the end. /Peter -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 5:51 AM To: php-general@lists.php.net Subject: Re: [PHP] Re

RE: [PHP] Only see class member variables, not parent class member variables

2006-06-26 Thread Peter Lauri
Thanks. I will ignore it, it is not a big deal in my Development. Was more curious if where was an easy way :) I am using PHP4 -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 3:50 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re

Re: [PHP] substr?

2008-06-18 Thread Peter Ford
o, 'cos it's been uploaded before your script runs) then you should do a bit more checking before accepting it. The Unix/Linux "file" command can help here. Not perfect, but still... You could also Virus-scan the file before accepting it. All depends on whether your cust

Re: [PHP] substr?

2008-06-19 Thread Peter Ford
Jim Lucas wrote: Peter Ford wrote: Frank Arensmeier wrote: 17 jun 2008 kl. 22.14 skrev Jim Lucas: Jason Pruim wrote: Hi everyone, I am attempting to adopt some code to work more reliably then how it is now... What I am doing is coding a upload form where people could be uploading .zip

[PHP] odbc msaccess php5

2008-07-05 Thread Peter Jackson
r) And before everyone shouts use mySQL postgresql etc that isnt an option at this point in time. I dont need to update the records I just need to be able to read them with php. Oh and whilst I'm here is it possible to read an ms-query via odbc? (eg select * from myquery). Just thinking that may fix one of my problems (Caps and spaces in table/column names aaarrgghh) Peter Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Trying to keep a dropdown selection sticky

2008-07-05 Thread Peter Jackson
} echo ''; echo ''; ?> If I'm reading this correctly you mean if the value has been selected before select it again? If so way I did it was by checking the database value eg echo " $value \n"; Peter Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] odbc msaccess php5

2008-07-05 Thread Peter Jackson
Bastien Koert wrote: On Sat, Jul 5, 2008 at 11:04 AM, Bastien Koert <[EMAIL PROTECTED]> wrote: On Sat, Jul 5, 2008 at 6:51 AM, Peter Jackson <[EMAIL PROTECTED]> wrote: $conn=odbc_connect("Database","",""); works $a = "abcd"; (this va

Re: [PHP] odbc msaccess php5 [Giving Up]

2008-07-06 Thread Peter Jackson
Peter Jackson wrote: well thats it Ive come to the conclusion that its a driver/lib issue. From what I can see mdbtools lib only reads and only does basic select. (eg Select * from table where col =thistext But not tex* % or date. Also looks like the project has died (think the last release

Re: [PHP] how to create a slide show using PHP5

2008-07-08 Thread Peter Ford
e new image was a background image, which was being copied up to the foreground... and I had caching disabled (I was on my development system and hacking some annoying IE/JS problems) so the copying-up was forcing a reload from source... Not broken after all. Faith restored. All is well. --

[PHP] Re: What font/size do you use for programming?

2008-07-10 Thread Peter Ford
randa, but it's raining horizontally at the moment and my keyboard hates being wet. I'm using Lucida Sans for code these days - I finally figured that it didn't really have to be a fixed-width font, since I couldn't find one that wasn't ugly. -- Peter Ford

[PHP] Re: Logic sought

2008-07-10 Thread Peter Ford
ne know if Apache can do such a thing? In a Java environment, I used a session object which cleaned up such folders when it was garbage-collected... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft Interna

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
ging permissions in /var - where is your web root?! It looks like your PHP code has the /usr/local/apache/htdocs path hard-coded, when your web files are actually in /var/something... -- Peter Ford phone: 01580 89 Developer fax: 015

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:06 AM To: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: Hi, Rob: I forgot to mention that I have been using yum install. I

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford

[PHP] Re: Corrupted ZIP files (downloaded via a php script) : Internext Explorer 7

2008-07-17 Thread Peter Ford
t there is *nothing* output to the client before you start pushing the ZIP file out - that definitely leads to corruption of such things, although if you were sending data before changing the headers you would get an error message about that. What I can't understand is why is might work with

Re: [PHP] Trailing Spaces Problem

2008-07-18 Thread Peter Ford
preg_split('/\s+/',$string); echo "1: ". $data[0] . " 2: " . $data[1] . " 3: " . $data[2] . " 4: " . $data[3] . " 5: " . $data[4] ?> Does that work for you? -- Peter Ford phone: 01580 89

Re: [PHP] Code beautifier

2008-07-28 Thread Peter Ford
nstead, I would say But -- pause -- that didn't happen. So, I write it: But, that didn't happen. It's arguably more correct in this case to use ellipsis: But ... I could be wrong :) -- Peter Ford phone: 01580 89 Developer

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-08-01 Thread Peter Ford
string: e.g. $foo = 'You need to pay $dollars...'; compared with $foo = "You need to pay \$dollars..."; Again, it depends on you view of backslashes. -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justc

[PHP] Re: RSS Feed using PHP/MySQL errors

2008-08-07 Thread Peter Ford
use one of: die("ERROR--CAN'T CONNECT TO SERVER"); die('ERROR--CAN\'T CONNECT TO SERVER'); die('ERROR--CANNOT CONNECT TO SERVER'); // English is a very powerful language!! and similar for the other message... There may be other error

Re: [PHP] Re: php File upload

2008-08-08 Thread Peter Ford
am or some such) and the actual size of the data sent in the request is therefore likely to be some fraction bigger than the file itself (like 33% bigger for base-64 encoding) -- Peter Ford phone: 01580 89 Developer fax: 01

Re: [PHP] Google Chrome

2008-09-05 Thread Peter Ford
er to test on Wine or Mono? -Shawn Tried on Wine (version 0.9.60 on OpenSuse) and I could even get the downloader to start. To be fair, I've never really got anything to work on Wine... -- Peter Ford phone: 01580 89 Developer

Re: [PHP] Length of Exception text?

2008-09-09 Thread Peter Ford
You want the php.ini setting: log_errors_max_len It defaults to 1024 characters: presumably that includes the preamble giving you 1015 or so to play with. If you set it to zero then you get unlimited log messages. 'course that might fill your logs up a bit... -- Peter Ford

Re: [PHP] ASCII Captcha

2008-09-11 Thread Peter Ford
Anything else? Cheers, tedd why don't people just check for x/y co-ord's on an image submit instead? Not so good if you're using lynx, or if you're blind, I guess. -- Peter Ford phone: 01580 89 Developer fax: 0

[PHP] Re: AJAX and PHP

2008-10-04 Thread Peter Wang
"Alain Roger" <[EMAIL PROTECTED]> writes: I think both will be ok, it just depends on what's you want:) > HI, > > i'm currently working on some web application and i would like to know what > is the best way to do what i want. > basically like all application i have a menu and based on selected i

[PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Peter Ford
& isset($_SESSION['userInfo']['loggedIn'] && $_SESSION['userInfo']['loggedin'] == TRUE) { You can probably short-circuit some of that - for example if $_SESSION['userInfo']['loggedIn'] is only ever set to TRUE (and is not se

[PHP] Re: PHP Dev Facts

2008-10-22 Thread Peter Ford
*Anything else you use frequently in you're PHP'ing that's worth > mentioning:* > > ps: I'm not asking for any kind of research project, just interested and > interested to know what's most common + might learn something/find some > new tools/toys! > &g

Re: [PHP] It's Sunday, and I'm bored...

2008-11-10 Thread Peter Ford
evant to the original thread) when I commit code to the repository, it asks for a comment to attach to the commit. That's really useful (as I think Richard finds) when I come to do my timesheets, which is usually less often than my commits... Cheers Pete -- Peter Ford

[PHP] Re: Copyrighting PHP, MySql, Apache,perl etc...

2004-01-29 Thread Peter Clarke
Ryan A wrote: Which brings up a little question, any idea of whats ZEND's (or anybody else that matters) opinion of using PHP in a domain name? eg: my-lovely-php-and-apache-website.com Have a look at http://www.php.net/license/ "We cannot really stop you from using PHP in the name of your project

[PHP] Question about php "forwarding" to javascript

2004-02-14 Thread Peter Andersson
p me" is it possible to send that text to a javascript? I am quite stuck here so any help would be greatly appreciated. regards Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about php "forwarding" to javascript

2004-02-15 Thread Peter Andersson
Thanks! It works like a charm! /peter > On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote: > > Could be missing the point here because your question is quite vague. > > However... > >>I am using a web page that uses the following php code to display the >>co

[PHP] Problem with XSLT parser

2004-02-16 Thread Peter Billen
Hello group, I am having problems to transform xml document with xslt_process(). This is my code: test.xml: Peter Billen 16 test.xsl: http://www.w3.org/1999/XSL/Transform";> test2.xsl: http://www.w3.org/1999/XSL/T

RE: [PHP] auto increment

2004-02-17 Thread Peter Billen
execute the following query: SELECT LAST_INSERT_ID(); Peter -Original Message- From: marc serra [mailto:[EMAIL PROTECTED] Sent: dinsdag 17 februari 2004 20:17 To: [EMAIL PROTECTED] Subject: [PHP] auto increment Hi, i use PEAR DB with a mysql database and i want to know if there

[PHP] Wrong IP address

2004-03-30 Thread Peter Albertsson
_FOR'] may be an array if the request was proxied several times. Regards, Peter Albertsson -Original Message- From: ascll [mailto:[EMAIL PROTECTED] Sent: den 30 mars 2004 03:13 To: [EMAIL PROTECTED] Subject: [PHP] Wrong IP address Greetings, I make use of these: - to get the

RE: [PHP] What's the use in OOP?

2004-03-31 Thread Peter Albertsson
performance, discussing whether or not to use OOP in PHP would simply be stupid (don't mean to offend anyone), there is so many other variables that will have a far bigger impact on performance than that. Regards, Peter Albertsson Software Engineer and System Architect -Original Message-

[PHP] copy() not working

2004-11-16 Thread Peter Lauri
cked 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
image/gif [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 La

[PHP] Efficency in looping arrays?

2004-11-17 Thread Peter Lauri
efficient if I have 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 :)

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 <

[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

[PHP] Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
quot;total" and still keep the acc. with the basekey. I know I can easily do 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 L

[PHP] Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
quot;total" and still keep the acc. with the basekey. I know I can easily do 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 L

[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 mul

[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 mul

[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 unsu

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

2004-11-18 Thread Peter Lauri
s.php"); 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, > > &

[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
Can someone from outside set a $_SESSION 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 L

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: Is this not the case for the PHP-scripting? /Peter "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet news:

[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, > > > >

[PHP] Re: Sorting multidim array and keeping associations

2004-11-18 Thread Peter Lauri
t, but it works just fine 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] =&

Re: [PHP] PHP Supremacy...

2004-11-18 Thread Peter Risdon
almost always all *BSD) and leave it running/earning for three years without even a reboot. That's why the figures 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
whole 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.circlesquar

[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
olped. 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 s

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

[PHP] Re: Need Help

2004-12-02 Thread Peter Lauri
Use 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 and .

[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://

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 som

[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 fr

[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 wee

[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 W

[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: 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, > &g

[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

[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 si

[PHP] Retrieving client SSL info

2005-05-26 Thread Peter Brodersen
Shiflett: http://marc.theaimsgroup.com/?l=php-general&m=103828683828825&w=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 opens

[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-general&m=10382868382882

[PHP] Re: fopen for http://

2005-05-27 Thread Peter Brodersen
ss might still be the one of a network interface Try to create 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 Li

[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: &g

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

2005-05-30 Thread Peter Brodersen
t step should be (more) imprecision. Maybe read /proc/cpuinfo and perform n steps of simple loop where n is calculated from the cpu type, mhz and current load. Maybe a PEAR project? -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .INC files

2005-06-03 Thread Peter Brodersen
he latter 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
TF-8 is a charset, not a Content-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 (h

[PHP] Cache/Form Problem

2005-09-25 Thread Peter Justus
& thanks in advance Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP / LAMP Training

2005-10-04 Thread Peter Jackson
Has anyone been to good PHP and/or LAMP training? I was looking around and saw on a blog where they really liked the security aspects of this one: http://www.sans.org/ns2005/description.php?tid=249 Has anyone been to classes by sans.org? Thanks, Peter __ Free 3000MB

[PHP] Sessions, Expire-headers and Firefox's back button

2005-12-02 Thread Peter Brodersen
nd that would reduce the number of requests and make Firefox use the cached page (or cache the page in the first place). -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions, Expire-headers and Firefox's back button

2005-12-02 Thread Peter Brodersen
ng. > I don't really fault Firefox for abiding by the no-store directive, nor > do I fault Internet Explorer for ignoring it. Agreed. Furthermore, the change in cache_limiter makes very good sense in this context and doesn't seem like "just a hack". > Hope that help

[PHP] Re: Why do Sessions use Cookies?

2005-12-02 Thread Peter Brodersen
a user. A client can still open multiple HTTP connections to the same host even when using keepalive. Furthermore we would like the session to survive the smallest hickups (e.g. disconnects, TCP RSTs, ...). -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Sessions, Expire-headers and Firefox's back button

2005-12-05 Thread Peter Brodersen
rivate_no_expire') can get rid of the Expires header as well, but it doesn't seem to be an issue here. It could still be relevant for other reasons though. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] apache and PHP on win2k3 server error

2005-12-20 Thread Peter Palermo
recompile it with -DEAPI) Do you know how I can fix this or where I can download a copy of PHP already compiled with -DEAPI (i am using PHP 4.3.11)? Thank you, Peter Palermo I.T. Coordinator Venetor Group - Hamilton 420 Grays Road Hamilton, ON L8E 4H6 Toll Free: 888.664.5007 Office

<    11   12   13   14   15   16   17   18   19   >