[PHP] Re: How to download a multi-part file at the server side?

2013-11-02 Thread Ajay Garg
I just came across http://www.w3schools.com/php/php_file_upload.asp, and tested it.. It works fine, when the file is uploaded via a form. It does seem that the client-method might indeed play a role. Here is my Java code for uploading the file ::

[PHP] Re: How to upstream code changes to php community

2013-08-12 Thread David Robley
Shahina Rabbani wrote: Hi, I have done some modifications to the php source code and i tested it with php bench and I observed some improvement. I wanted to upstream these code changes to PHP community. I searched the wed but i didnt find proper guide to upstream the code to php.

[PHP] Re: how to see all sessions sets in server

2013-08-05 Thread Alessandro Pellizzari
Il Sun, 04 Aug 2013 20:47:37 +0430, Farzan Dalaee ha scritto: Please use better quoting. So best way is use a script(javascript) to send ajax to server every 5 second to check users is logged in or not? Is that okey? It depends. I want to write chat module like facebook and i need a

[PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Alessandro Pellizzari
Il Sun, 04 Aug 2013 13:32:55 +0430, Farzan Dalaee ha scritto: hi i want to write online user module for my site and i want to check $_SESSION['userID'] to find all users id who loged in but when i echo this code its return only current user detail how i can see all sessions? You can't. or

[PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Tim Streater
On 04 Aug 2013 at 11:28, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Like Matijn said, unless you're using some kind of client-side method to continually poll the server, you can't know if they've just closed their browser. There are Javascript events for exiting a page, but they don't

Re: [PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
On Sun, 2013-08-04 at 13:27 +0100, Tim Streater wrote: On 04 Aug 2013 at 11:28, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Like Matijn said, unless you're using some kind of client-side method to continually poll the server, you can't know if they've just closed their browser.

[PHP] Re: How to delete 3 months old records in my database?

2013-08-02 Thread Jim Giner
On 8/2/2013 6:58 AM, Karl-Arne Gjersøyen wrote: Hello again, folks! I wish to delete records in my database that is older than 3 months. $todays_date = date('Y-m-d'); $old_records_to_delete = ??? if($old_records_to_delete){ include(connect.php); $sql = DELETE FROM table WHERE date =

[PHP] Re: How to extract php source code from joomla

2013-07-23 Thread Tedd Sperling
On Jul 23, 2013, at 12:15 AM, elk dolk elkd...@yahoo.com wrote: I study for MSc degree at university. Are you in an advanced class? Ok, congratulations -- you are studying for an MSc -- but that didn't answer the question. So, let me repeat the question: [1] Are you in an advanced PHP

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal csanyi...@gmail.com wrote: Tamara Temple tamouse.li...@gmail.com writes: Csanyi Pal csanyi...@gmail.com wrote: It is interesting.. that when I switch to English language for Moodle installation ( on the web interface ), then I get not this error, but if I switch back to

[PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Csanyi Pal
Tamara Temple tamouse.li...@gmail.com writes: Csanyi Pal csanyi...@gmail.com wrote: Tamara Temple tamouse.li...@gmail.com writes: Csanyi Pal csanyi...@gmail.com wrote: It is interesting.. that when I switch to English language for Moodle installation ( on the web interface ), then I get

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal csanyi...@gmail.com wrote: Tamara Temple tamouse.li...@gmail.com writes: My ../apache2/conf.d directory is a symlink to the ../conf.d directory. This might indeed be the problem. Yes. My system was Debian Squeeze and I just upgraded it to Debian Wheezy. Some configuration

[PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Csanyi Pal
Adam Szewczyk adam...@gmail.com writes: On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote: Hi, I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP extension: I can't enable it. I have installed following packages related to this issue: curl, libcurl3,

[PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Csanyi Pal
Tamara Temple tamouse.li...@gmail.com writes: Csanyi Pal csanyi...@gmail.com wrote: I have installed following packages related to this issue: curl, libcurl3, libcurl3-gnutls, php5-curl. All good. I have in /etc/php5/mods-available/curl.ini ; configuration for php CURL module ;

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Tamara Temple
Csanyi Pal csanyi...@gmail.com wrote: It is interesting.. that when I switch to English language for Moodle installation ( on the web interface ), then I get not this error, but if I switch back to Hungarian language for installation, I get it again. I am completely unfamiliar with Moodle,

[PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Csanyi Pal
Tamara Temple tamouse.li...@gmail.com writes: Csanyi Pal csanyi...@gmail.com wrote: It is interesting.. that when I switch to English language for Moodle installation ( on the web interface ), then I get not this error, but if I switch back to Hungarian language for installation, I get it

[PHP] Re: how to insert html code with PHP

2013-04-11 Thread Jim Giner
On 4/11/2013 7:34 AM, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say div id=#submenu.../div (so based on its ID and tagname) and inside it to insert my PHP/HTML code.

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread Rafnews
On 11.04.2013 14:14, Jim Giner wrote: On 4/11/2013 7:34 AM, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say div id=#submenu.../div (so based on its ID and tagname) and

[PHP] Re: how to insert html code with PHP

2013-04-11 Thread Rafnews
On 11.04.2013 13:34, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say div id=#submenu.../div (so based on its ID and tagname) and inside it to insert my PHP/HTML code.

[PHP] Re: how to insert html code with PHP

2013-04-11 Thread Jim Giner
On 4/11/2013 10:48 AM, Rafnews wrote: On 11.04.2013 13:34, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say div id=#submenu.../div (so based on its ID and tagname) and

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread Rafnews
On 11.04.2013 19:19, Jim Giner wrote: On 4/11/2013 10:48 AM, Rafnews wrote: On 11.04.2013 13:34, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say div

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread tamouse mailing lists
On Thu, Apr 11, 2013 at 1:12 PM, Rafnews raf.n...@gmail.com wrote: On 11.04.2013 19:19, Jim Giner wrote: On 4/11/2013 10:48 AM, Rafnews wrote: On 11.04.2013 13:34, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i

[PHP] Re: How to limit source IP in PHP

2012-09-18 Thread Ian
On 14/09/2012 20:08, Curtis Maurand wrote: On 9/14/2012 7:20 AM, Ian wrote: On 12/09/2012 14:53, Tonix (Antonio Nati) wrote: Is there a way to force a PHP script to bind to a prefixed IP? Actually, while you can assign more IPs to Apache for listening, assigning domains to specific IPs, it

Re: [PHP] Re: How to limit source IP in PHP

2012-09-18 Thread Daniel Brown
On Tue, Sep 18, 2012 at 9:15 AM, Ian php_l...@fishnet.co.uk wrote: Hi Curtis, I am suffering from sleep deprivation due to a new family addition and I fail to see how your code will prevent a malicious user from binding to an IP that I do not want him to. It appears to be an example of how

Re: [PHP] Re: How to limit source IP in PHP

2012-09-18 Thread Tonix (Antonio Nati)
Il 18/09/2012 16:24, Daniel Brown ha scritto: On Tue, Sep 18, 2012 at 9:15 AM, Ian php_l...@fishnet.co.uk wrote: Hi Curtis, I am suffering from sleep deprivation due to a new family addition and I fail to see how your code will prevent a malicious user from binding to an IP that I do not want

[PHP] Re: How to limit source IP in PHP

2012-09-14 Thread Ian
On 12/09/2012 14:53, Tonix (Antonio Nati) wrote: Is there a way to force a PHP script to bind to a prefixed IP? Actually, while you can assign more IPs to Apache for listening, assigning domains to specific IPs, it looks like any PHP script can freely choose which IP to bind. Instead I'd

Re: [PHP] Re: How to limit source IP in PHP

2012-09-14 Thread Curtis Maurand
On 9/14/2012 7:20 AM, Ian wrote: On 12/09/2012 14:53, Tonix (Antonio Nati) wrote: Is there a way to force a PHP script to bind to a prefixed IP? Actually, while you can assign more IPs to Apache for listening, assigning domains to specific IPs, it looks like any PHP script can freely choose

Re: [PHP] Re: How to use wsdl files?

2012-08-31 Thread Louis Huppenbauer
Hi there 2012/8/31 Michelle Konzack linux4miche...@tamay-dogan.net Hello Matijn Woudt, Am 2012-08-30 16:44:53, hacktest Du folgendes herunter: You could start by looking at the PHP SoapClient [1], which takes a URI to a WSDL descriptor as argument. You can enter the URL to the WSDL file

[PHP] Re: How to use wsdl files?

2012-08-30 Thread Michelle Konzack
Hello Matijn Woudt, Am 2012-08-30 16:44:53, hacktest Du folgendes herunter: You could start by looking at the PHP SoapClient [1], which takes a URI to a WSDL descriptor as argument. You can enter the URL to the WSDL file there, like this: $client = new

[PHP] Re: How to best set per-site PHP session storage under suPHP/WordPress?

2012-08-13 Thread Ian
On 13/08/2012 06:01, Philip Amadeo Saeli wrote: I'm administering WordPress sites under suPHP on a CentOS LAMP server and would like to know how I can set PHP to keep the session files under the WP user's dir without having do duplicate the entire php.ini file for each WP site while still

Re: [PHP] Re: How to best set per-site PHP session storage under suPHP/WordPress?

2012-08-13 Thread Philip Amadeo Saeli
* Ian php_l...@fishnet.co.uk [2012-08-13 09:50:51 +0100]: On 13/08/2012 06:01, Philip Amadeo Saeli wrote: I'm administering WordPress sites under suPHP on a CentOS LAMP server and would like to know how I can set PHP to keep the session files under the WP user's dir without having do

[PHP] Re: How to write and read serial or parallel port

2012-07-27 Thread Ian
On 26/07/2012 13:37, Alex Nikitin wrote: snip Real question is why in the world would you want to use PHP for this to begin with. snip Hi, I cannot speak for the OP, but personally I am doing this so I can hook up to a web application and re-use existing code. Regards Ian -- -- PHP

[PHP] Re: How to write and read serial or parallel port

2012-07-26 Thread Ian
On 26/07/2012 11:12, viper wrote: hi all! is it possible to write and read data on a COM or LPT port? is there any function or class in PHP? anyone has already done something similar? thanks, viper Hi, There is a class here: php-serial

[PHP] Re: how to walk async recursively over an object, doing work (in right order) per leaf

2012-06-14 Thread rene7705
I think I've got it figured out now.. My solution is to async build up a flat list of items (from the recursive object) to process first, then do another async loop (which I'll build soon) to do the work per item, and when that's done, replace the placeholder with the result. This code works on

[PHP] Re: how to walk async recursively over an object, doing work (in right order) per leaf

2012-06-14 Thread rene7705
oops; printNextLevel : function (pvCmd) { if ( typeof pvCmd.val == 'object' typeof pvCmd.val.hmStats == 'object' typeof pvCmd.val.hmData == 'object' ) { //if (pvCmd.keyValueName pvCmd.keyValueName!='')

Re: [PHP] Re: How to send XML requests from PHP?

2012-05-09 Thread ma...@behnke.biz
Michelle Konzack linux4miche...@tamay-dogan.net hat am 8. Mai 2012 um 20:25 geschrieben: Hello Jim Lucas, Am 2012-05-08 11:08:13, hacktest Du folgendes herunter: Look into cURL http://php.net/curl I know curl but I do not know, HOW to send the XML stuff. $ch = curl_init ();

[PHP] Re: How to send XML requests from PHP?

2012-05-08 Thread Michelle Konzack
Hello Jim Lucas, Am 2012-05-08 11:08:13, hacktest Du folgendes herunter: Look into cURL http://php.net/curl I know curl but I do not know, HOW to send the XML stuff. The XML code is generated using a temp file for logging, which mean, I can see any changes on the system... Thanks, Greetings

Re: [PHP] Re: How to send XML requests from PHP?

2012-05-08 Thread Jim Lucas
On 05/08/2012 11:25 AM, Michelle Konzack wrote: Hello Jim Lucas, Am 2012-05-08 11:08:13, hacktest Du folgendes herunter: Look into cURL http://php.net/curl I know curl but I do not know, HOW to send the XML stuff. The XML code is generated using a temp file for logging, which mean, I can

[PHP] Re: How can I convert these to hex or strings?

2012-03-21 Thread Jim Giner
Did you do a search of the php manual? I did one on hex and found function bin2hex. Not sure how you mac address is actually built, but I would try converting it char by char and see what the function returns. Or maybe just pass the whole string to it. Just a guess. -- PHP General Mailing

Re: [PHP] Re: How can I convert these to hex or strings?

2012-03-21 Thread David OBrien
Damn I'm an idiot... sorry :\ On Wed, Mar 21, 2012 at 9:34 AM, Jim Giner jim.gi...@albanyhandball.comwrote: Did you do a search of the php manual? I did one on hex and found function bin2hex. Not sure how you mac address is actually built, but I would try converting it char by char and see

Re: [PHP] Re: How can I convert these to hex or strings?

2012-03-21 Thread Jim Giner
Not until you find out if it actually works. Then, maybe David OBrien dgobr...@gmail.com wrote in message news:CAF=yd_3rbr-gkonpjdbtogssiufwzeqteanqneproh6hhyu...@mail.gmail.com... Damn I'm an idiot... sorry :\ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: How can I debug wsf/php in eclipse?

2012-02-07 Thread Ali Asghar Toraby Parizy
Can anybody help me in this regard? On Mon, Feb 6, 2012 at 10:15 PM, Ali Asghar Toraby Parizy aliasghar.tor...@gmail.com wrote: Hi. I'm developing a wsf/php web service. I'm using doc/lit messaging format and every thing is OK. But I don't know how i can debug my web services using eclipse.

Re: [PHP] Re: How can I debug wsf/php in eclipse?

2012-02-07 Thread Sharl.Jimh.Tsin
在 2012-02-07二的 12:11 +0330,Ali Asghar Toraby Parizy写道: Can anybody help me in this regard? On Mon, Feb 6, 2012 at 10:15 PM, Ali Asghar Toraby Parizy aliasghar.tor...@gmail.com wrote: Hi. I'm developing a wsf/php web service. I'm using doc/lit messaging format and every thing is OK.

Re: [PHP] Re: How can I debug wsf/php in eclipse?

2012-02-07 Thread Ali Asghar Toraby Parizy
:( Thanks for your help. Is it the only way? On Tue, Feb 7, 2012 at 12:44 PM, Sharl.Jimh.Tsin amoiz.sh...@gmail.comwrote: 在 2012-02-07二的 12:11 +0330,Ali Asghar Toraby Parizy写道: Can anybody help me in this regard? On Mon, Feb 6, 2012 at 10:15 PM, Ali Asghar Toraby Parizy

[PHP] Re: How to use a variable variable in an array walk?

2011-12-13 Thread Nils Leideck
Anyone?:-( is my description too unclear? On 11.12.2011, at 11:25, Nils Leideck wrote: this is my first post to the PHP general list. I have an issue with a variable variable (http://php.net/manual/en/language.variables.variable.php) My use case: I have an array called $myArray.

[PHP] Re: How to use a variable variable in an array walk?

2011-12-13 Thread Al
On 12/13/2011 5:43 PM, Nils Leideck wrote: Anyone?:-( is my description too unclear? On 11.12.2011, at 11:25, Nils Leideck wrote: this is my first post to the PHP general list. I have an issue with a variable variable (http://php.net/manual/en/language.variables.variable.php) My use

[PHP] RE: How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Eric
if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) { echo p style=\color:red;font-weight:bold;margin-left:95px\; echo Username must only contain A-Z and 0-9/p; include(register.html); exit; } I used the code above but I now get this error message Warning: preg_match()

Re: [PHP] RE: How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Marco Lanzotti
Il 22/09/2011 17:54, Eric ha scritto: if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) { Whi this '(.*)'? For '.' and '..' problem use is_file(). Bye, Marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Shawn McKenzie
On 09/22/2011 10:54 AM, Eric wrote: if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) { echo p style=\color:red;font-weight:bold;margin-left:95px\; echo Username must only contain A-Z and 0-9/p; include(register.html); exit; } I used the code above but I now

Re: [PHP] RE: How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Nilesh Govindarajan
On 09/22/2011 09:24 PM, Eric wrote: if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) { echo p style=\color:red;font-weight:bold;margin-left:95px\; echo Username must only contain A-Z and 0-9/p; include(register.html); exit; } I used the code above but I now

[PHP] Re: how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Negin Nickparsa
i mean my tables in Mysql

[PHP] Re: How to write a PHP coding to list out all files and directories aslinks to them?

2011-04-28 Thread Mitch
On 4/14/2011 6:16 PM, Mikhail S wrote: How to write a PHP coding to list out all files and directories as links to them? This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous

[PHP] Re: How to write a PHP coding to list out all files and directories aslinks to them?

2011-04-16 Thread Shawn McKenzie
On 04/14/2011 06:16 PM, Mikhail S wrote: How to write a PHP coding to list out all files and directories as links to them? This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with

Re: [PHP] Re: How to write a PHP coding to list out all files and directories aslinks to them?

2011-04-16 Thread Ashley Sheridan
On Sat, 2011-04-16 at 15:02 -0500, Shawn McKenzie wrote: On 04/14/2011 06:16 PM, Mikhail S wrote: How to write a PHP coding to list out all files and directories as links to them? This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML

[PHP] Re: How to write a PHP coding to list out all files and directories as links to them?

2011-04-14 Thread David Robley
Mikhail S wrote: How to write a PHP coding to list out all files and directories as links to them? This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous ones after it is

[PHP] Re: How is this possible???? (addslashes)

2011-02-17 Thread Nisse Engström
On Thu, 17 Feb 2011 06:56:33 +0700, Paul S wrote: Can anyone please tell me how the addslashes output (note = Everyone''s a card on the \earth) in the following example is possible. It is addslashes output but this result is consistent with the output from post when runtime is set: 1): a

[PHP] Re: How to send a GPG signed EMail with a PDF attached?

2010-12-29 Thread Michelle Konzack
Hello Tommy Pham, Am 2010-12-29 10:38:39, hacktest Du folgendes herunter: Phpclasses.org naturally may not have all possible solutions. Thus, the existence of search engines like google. Try keywords 'php mime encode gpg'. Already done and it returns 56.000 results where the first 500

[PHP] Re: how would I do this?

2010-12-27 Thread Michelle Konzack
Hello David McGlone, Am 2010-12-27 16:13:50, hacktest Du folgendes herunter: foreach ($services as $service){ echo ulliraquo; a href=index.php?page=$service$service/a/li/ul; } Could anyone give me a hand? Obviously I don't understand arrays very well :-/ Maybe: echo ulliraquo; a

Re: [PHP] Re: how would I do this?

2010-12-27 Thread David McGlone
On Monday, December 27, 2010 04:47:34 pm Michelle Konzack wrote: Hello David McGlone, Am 2010-12-27 16:13:50, hacktest Du folgendes herunter: foreach ($services as $service){ echo ulliraquo; a href=index.php?page=$service$service/a/li/ul; } Could anyone give me a hand? Obviously

Re: [PHP] Re: how would I do this?

2010-12-27 Thread David McGlone
On Monday, December 27, 2010 04:53:08 pm David McGlone wrote: On Monday, December 27, 2010 04:47:34 pm Michelle Konzack wrote: Hello David McGlone, Am 2010-12-27 16:13:50, hacktest Du folgendes herunter: foreach ($services as $service){ echo ulliraquo; a

[PHP] Re: How does one reply to messages on this list?

2010-12-16 Thread Jo�o C�ndido de Souza Neto
As I use outlook, I just hit Reply to Group. -- João Cândido de Souza Neto Sam Smith a...@itab.com escreveu na mensagem news:aanlktikarnvhn-gzexe8qedngeewgqqgs7cpchzav...@mail.gmail.com... If I just hit 'Reply' I'll send my reply to the individual who created the message. If I hit 'Reply

[PHP] Re: How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Tamara Temple
On Sep 11, 2010, at 10:46 PM, Shawn McKenzie wrote: It could however be a problem if there is a BOT or something that continually submits to your page. In that case (and in general) I would recommend using a form token that helps guard against this. I've seen this on some sites, but I'm

[PHP] Re: How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Shawn McKenzie
On 09/12/2010 02:38 AM, Tamara Temple wrote: On Sep 11, 2010, at 10:46 PM, Shawn McKenzie wrote: It could however be a problem if there is a BOT or something that continually submits to your page. In that case (and in general) I would recommend using a form token that helps guard against

[PHP] Re: How to handle a submitted form with no changes -- best practices sought

2010-09-11 Thread Shawn McKenzie
On 09/11/2010 11:52 AM, Tamara Temple wrote: I have a general question and am looking for best practices. Suppose I present a user with a form for editing an entry in a table, i.e., the form has filled in values from the existing table entry. Now, suppose they click on 'submit' without

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Jan G.B.
, Andre - Original message - From: Nathan Rixham nrix...@gmail.com To: tedd t...@sperling.com Date: Thursday, August 19, 2010, 12:03:12 PM Subject: [PHP] Re: How safe is a .htaccess file? tedd wrote: Hi gang: The subject line says it all. How secure is a .htaccess file to store

RE: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Brad Broerman
Message- From: Jan G.B. [mailto:ro0ot.w...@googlemail.com] Sent: Tuesday, August 24, 2010 9:09 AM To: Andre Polykanine Cc: Nathan Rixham; tedd; php-general@lists.php.net Subject: Re: [PHP] Re: How safe is a .htaccess file? 2010/8/19 Andre Polykanine an...@oire.org: Hello Nathan, Sorry, could you

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Peter Lind
On 24 August 2010 15:43, Gary php-gene...@garydjones.name wrote: Jan G.B. wrote: The weakness of MD5 is mainly because MD5 collisions are possible. That means, that different strings can have the same MD5-hash... http://en.wikipedia.org/wiki/MD5#cite_note-1 It's worth noting that that

RE: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Bob McConnell
From: Peter Lind On 24 August 2010 15:43, Gary php-gene...@garydjones.name wrote: Jan G.B. wrote: The weakness of MD5 is mainly because MD5 collisions are possible. That means, that different strings can have the same MD5-hash... http://en.wikipedia.org/wiki/MD5#cite_note-1 It's worth

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Jan G.B.
2010/8/24 Bob McConnell r...@cbord.com: From: Peter Lind On 24 August 2010 15:43, Gary php-gene...@garydjones.name wrote: Jan G.B. wrote: The weakness of MD5 is mainly because MD5 collisions are possible. That means, that different strings can have the same MD5-hash...

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Peter Lind
On 24 August 2010 16:25, Jan G.B. ro0ot.w...@googlemail.com wrote: 2010/8/24 Bob McConnell r...@cbord.com: From: Peter Lind On 24 August 2010 15:43, Gary php-gene...@garydjones.name wrote: Jan G.B. wrote: The weakness of MD5 is mainly because MD5 collisions are possible. That means, that

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Jan G.B.
2010/8/24 Peter Lind peter.e.l...@gmail.com: On 24 August 2010 16:25, Jan G.B. ro0ot.w...@googlemail.com wrote: 2010/8/24 Bob McConnell r...@cbord.com: From: Peter Lind On 24 August 2010 15:43, Gary php-gene...@garydjones.name wrote: Jan G.B. wrote: The weakness of MD5 is mainly because

[PHP] Re: How safe is a .htaccess file?

2010-08-19 Thread Nathan Rixham
tedd wrote: Hi gang: The subject line says it all. How secure is a .htaccess file to store passwords and other sensitive stuff? Can a .htaccess file be viewed remotely? Semi-safe, .htaccess is prevented from being served by configuration options (which come as default), however these

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-19 Thread Andre Polykanine
/m_elensule Facebook: http://facebook.com/menelion - Original message - From: Nathan Rixham nrix...@gmail.com To: tedd t...@sperling.com Date: Thursday, August 19, 2010, 12:03:12 PM Subject: [PHP] Re: How safe is a .htaccess file? tedd wrote: Hi gang: The subject line says it all

[PHP] Re: How safe is a .htaccess file?

2010-08-19 Thread Nathan Rixham
tedd wrote: tedd wrote: Hi gang: The subject line says it all. How secure is a .htaccess file to store passwords and other sensitive stuff? Can a .htaccess file be viewed remotely? Semi-safe, .htaccess is prevented from being served by configuration options (which come as default),

[PHP] Re: How to set socket_read time out

2010-07-19 Thread Gary .
On Mon, Jul 19, 2010 at 9:45 AM, Gary wrote: How can I get calls to scoket_read to timeout if the server stops responding? Sorry. Found it: socket_set_option($sock, SOL_SOCKET, SO_RCVTIMEO, array('sec' = 1, 'usec' = 0)); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: how to use HTML Symbol Entities with mail() ?

2010-07-06 Thread cr.vegelin
From: Ashley Sheridan To: Manuel Lemos Cc: cr.vege...@gmail.com ; php-general@lists.php.net Sent: Saturday, July 03, 2010 1:22 PM Subject: Re: [PHP] Re: how to use HTML Symbol Entities with mail() ? On Fri, 2010-07-02 at 22:58 -0300, Manuel Lemos wrote: Hello, on 07/01/2010 10:34

Re: [PHP] Re: how to use HTML Symbol Entities with mail() ?

2010-07-03 Thread Ashley Sheridan
On Fri, 2010-07-02 at 22:58 -0300, Manuel Lemos wrote: Hello, on 07/01/2010 10:34 AM cr.vege...@gmail.com said the following: Hi List, I am working on generated emails, using the mail() function. Works fine, but when including characters like #8743 (= and;) or #8744; (= or;) in

[PHP] Re: how to use HTML Symbol Entities with mail() ?

2010-07-02 Thread Manuel Lemos
Hello, on 07/01/2010 10:34 AM cr.vege...@gmail.com said the following: Hi List, I am working on generated emails, using the mail() function. Works fine, but when including characters like #8743 (= and;) or #8744; (= or;) in the message, these characters are displayed as ? in the emails.

[PHP] Re: how to update array keys and keep element order ?

2010-05-21 Thread Al
On 5/21/2010 5:56 AM, cr.vege...@gmail.com wrote: How do I update an array key without disturbing the element order ? Suppose an existing array(FR, values ...) where I want to change 0 = FR to country = FR and keep the original element order. TIA, Cor I short on time; but, it seems

[PHP] Re: How to prevent duplicate record insertion after refreshing php page

2010-05-19 Thread Nathan Rixham
Deva wrote: Hi, If I do refresh after submission of a form, records are getting stored multiple times. I have two pages. /submission-form/ and /thank-you/ I was trying header('Location: /thank-you/'); on submission-form page after successful validation and insertion into db. Still if I do

[PHP] Re: How define if javascript is on with php

2010-04-17 Thread Manuel Lemos
Hello, on 04/16/2010 08:50 AM Paulo-WORK said the following: Hello and thanks for any replies that this message may get. I have a issue to solve regarding PHP. My website relies heavlly on jquery and does not dowgrade properly. I use codeigniter framework as this website has a backend . Is

Re: [PHP] Re: how to overload accessible methods

2010-04-16 Thread Ryan Sun
thanks for all your reply, since all these classes have main entry in cron.php, I have moved validation there. Richard, your solution seems interesting, maybe I can use it later :) On Thu, Apr 15, 2010 at 4:46 AM, Richard Quadling rquadl...@googlemail.com wrote: On 13 April 2010 17:25, Ryan Sun

Re: [PHP] Re: how to overload accessible methods

2010-04-15 Thread Richard Quadling
On 13 April 2010 17:25, Ryan Sun ryansu...@gmail.com wrote: this is a class for corntab job, and the validation is very simple, just check if the status of user is active when cron job runs, if not, throws an exception, other developers won't want to overwrite this validation. which method of

[PHP] Re: how to overload accessible methods

2010-04-13 Thread Nathan Rixham
Ryan Sun wrote: As we all know, __call() can overload non-accessible methods, eg. Class User { public function __call($name, $args) { //validate user $this-_validate(); $this-_{$name}($args); } private function _validate() {

[PHP] Re: how to overload accessible methods

2010-04-13 Thread Ryan Sun
I'm writing an abstract parent class which only contain a validate method, other developers will extend this class and add many new public methods, every new methods will need to perform a validate first. Won't it be good if validate get called automatically before every method call so that they

Re: [PHP] Re: how to overload accessible methods

2010-04-13 Thread Ashley Sheridan
On Tue, 2010-04-13 at 12:03 -0400, Ryan Sun wrote: I'm writing an abstract parent class which only contain a validate method, other developers will extend this class and add many new public methods, every new methods will need to perform a validate first. Won't it be good if validate get

[PHP] Re: how to overload accessible methods

2010-04-13 Thread Nathan Rixham
Ryan Sun wrote: I'm writing an abstract parent class which only contain a validate method, other developers will extend this class and add many new public methods, every new methods will need to perform a validate first. Won't it be good if validate get called automatically before every

[PHP] Re: how to overload accessible methods

2010-04-13 Thread Ryan Sun
this is a class for corntab job, and the validation is very simple, just check if the status of user is active when cron job runs, if not, throws an exception, other developers won't want to overwrite this validation. which method of user class will be called is configurable via website backed

[PHP] Re: how to get the local time

2010-03-15 Thread Gary
You should be able to get the local time for Sweden by adding ?php date_default_timezone_set('Stockholm/Sweden'); echo date('l F jS, o');? However, I dont know about getting the local time of someone visiting from a different time zone. gary saeed ahmed saeed@gmail.com wrote in

Re: [PHP] Re: how do I use php://memory?

2010-01-30 Thread Shawn McKenzie
Daniel P. Brown wrote: (Typing from the DROID, so forgive the top-posting.) Shawn, would you take a few moments to submit this as a bug at http://bugs.php.net/? I know you well enough that, if you say the docs suck, they probably do. On Jan 29, 2010 10:47 PM, Shawn McKenzie

Re: [PHP] Re: how do I use php://memory?

2010-01-30 Thread Daniel Brown
On Sat, Jan 30, 2010 at 12:18, Shawn McKenzie nos...@mckenzies.net wrote: Done.  Thanks Dan.  http://bugs.php.net/bug.php?id=50886 Thank you, sir. I thanked you on Facebook when I saw the report come in, but wanted to thank you properly here as well. -- /Daniel P. Brown

[PHP] Re: how do I use php://memory?

2010-01-29 Thread Shawn McKenzie
Mari Masuda wrote: Has anyone ever successfully used php://memory before? If so, what can I do to use it in my code? Thank you. No, but I was intrigued to try it, so I tested this: $text = 'Some text.'; file_put_contents('php://memory', $text); echo file_get_contents('php://memory'); And

Re: [PHP] Re: how do I use php://memory?

2010-01-29 Thread Eric Lee
On Sat, Jan 30, 2010 at 9:00 AM, Shawn McKenzie nos...@mckenzies.netwrote: Mari Masuda wrote: Has anyone ever successfully used php://memory before? If so, what can I do to use it in my code? Thank you. No, but I was intrigued to try it, so I tested this: $text = 'Some text.';

Re: [PHP] Re: how do I use php://memory?

2010-01-29 Thread Shawn McKenzie
Eric Lee wrote: On Sat, Jan 30, 2010 at 9:00 AM, Shawn McKenzie nos...@mckenzies.netwrote: Mari Masuda wrote: Has anyone ever successfully used php://memory before? If so, what can I do to use it in my code? Thank you. No, but I was intrigued to try it, so I tested this: $text = 'Some

Re: [PHP] Re: how do I use php://memory?

2010-01-29 Thread Daniel P. Brown
(Typing from the DROID, so forgive the top-posting.) Shawn, would you take a few moments to submit this as a bug at http://bugs.php.net/? I know you well enough that, if you say the docs suck, they probably do. On Jan 29, 2010 10:47 PM, Shawn McKenzie nos...@mckenzies.net wrote: Eric Lee wrote:

[PHP] Re: How to change a filename for download (e.g. jpeg, pdf etc.)

2010-01-25 Thread Richard
Hi, Can anyone point me to tutorials on how to change a filename for each download? My goal is to give the downloader a random name for a picture or a document, so he will never know what the original filename is. Try adding a Content-Disposition header: ?php header('Content-disposition:

[PHP] Re: how to retrieve a dom from innerHTML......

2010-01-20 Thread Pete Ford
I am on the top of the world! Borlange University wrote: hello, i can obnot retrieve a select ject from div innerHTML. what i want to do is that when a page is loaded, first selector,say #1, would be shown in the first div by sending a request.then i choose one option from #1, fire change event

[PHP] Re: How do I remove unused GET parameters from the URL?

2010-01-20 Thread Nathan Rixham
Daevid Vincent wrote: BTW, I want to use GET so that the page can be bookmarked for future searches of the same data (or modified easily with different dates, etc.), so that's why I don't use POST. to do as you say on the clientside you'd probably be best to write a short js script to build

[PHP] Re: How to make the PHP know the real SCRIPT_FILENAME?

2009-11-17 Thread Nathan Rixham
Dong Wang wrote: I am trying to use PHP as backend, which communicate with apache-2.3's mod_proxy_fcgi But I have noticed that the SCRIPT_FILENAME has been changed to proxy:balancer://xx, it cann't be recognized by the remote PHP backend. So the request failed. In my opinion, the

[PHP] Re: How to call DLL in Javascript

2009-11-17 Thread Nathan Rixham
Peter wrote: Hi All, I want to call dll in javascript I tried the following script, but i got the error message 'ActiveXObject is undefined' (Note : i have the feedback.dll in the same path only) HTML HEAD script type='text/javascript' language='javascript' function

[PHP] Re: How to make the PHP know the real SCRIPT_FILENAME?

2009-11-17 Thread Dong Wang
ur... you mean use this in the php script? but the php-cgi still doesn't know which scriptfile to execute, isn't it? php-cgi tries to find the aimed script using SCRIPT_FILENAME, but this variable is changed by the mod_proxy_fcgi, so php-cgi can not find the real scriptfile, that's the point, I

  1   2   3   4   5   6   7   8   9   10   >