[PHP] Re: Sending PHP mail with Authentication

2013-09-26 Thread Maciek Sokolewicz
On 25-9-2013 22:11, dealTek wrote: Hi All, Semi newbie email question... I have used the - mail() — Send mail php function to send email from a site. now it seems the server is blocking this for safety because I should be using authentication Q: mail() does not have authentication -

[PHP] Re: assign database result to iinput text box

2013-09-18 Thread Maciek Sokolewicz
On 18-9-2013 7:33, iccsi wrote: I have following html code to show my input text box and php to connect server and select result from database server. I would like to know how I can I use php to assign the value to my input text. Your help and information is great appreciated, Regards, Hi

Re: [PHP] files and folders windows permission

2013-08-23 Thread Maciek Sokolewicz
On 23-8-2013 16:37, Matijn Woudt wrote: On Fri, Aug 23, 2013 at 4:03 PM, Emiliano Boragina emiliano.borag...@gmail.com wrote: Hi everyone, sorry my ugly english. I did an upload file form. Works very good. Upload the files in the right folder, with the right name. I use chmod 0644, and for

[PHP] Re: gibberish output when using the loadHTMLFile() function.

2013-08-12 Thread Maciek Sokolewicz
On 12-8-2013 2:54, atar wrote: Hi there!! When I'm trying to load an external html document with the loadHTMLFile() function and then I use the saveHTML() function to output its content, some text in the external html document which is written in hebrew is displayed in a gibberish format. is

[PHP] Re: Thread-Hijacking (was: Re: [PHP] Fwd: Is it possible???)

2013-06-25 Thread Maciek Sokolewicz
On 25 June 2013 10:02, Tamara Temple tamouse.li...@gmail.com wrote: Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: Please please please please don't do this! Please Please Please Do Not Hijack Threads. Hijacking would be starting a completely different discussion in the same thread

Re: [PHP] Fwd: Is it possible???

2013-06-24 Thread Maciek Sokolewicz
On 24-6-2013 14:27, n...@nobswolf.info wrote: You should give a complete programm so we can run exactly the same you do, like this: ?php $item_amount_in_store = 223; print ($item_amount_in_store); Please please please please don't do this! First of all, I don't know why you would use the

[PHP] Re: One more newbie question. About foreach..

2013-06-23 Thread Maciek Sokolewicz
On 23-6-2013 17:11, Karl-Arne Gjersøyen wrote: Hello again. I Got the solution for my last mention problem. Now I can update several rows at once by one single submit action. [...] I have tried to search in google and on PHP.net but can't fine anything that explain my problem. I like to have

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Maciek Sokolewicz
On 20-5-2013 22:14, Tim Schofield wrote: Matijn There are well over half a million lines of source code in PHP. It seems a little unhelpful to tell someone to go and read half a million lines of C when you could just tell them the answer? Thanks Tim Course View Towers, Plot 21 Yusuf Lule

Re: [PHP] timezone

2013-04-15 Thread Maciek Sokolewicz
On 15-4-2013 22:12, Larry Martell wrote: On Mon, Apr 15, 2013 at 1:59 PM, Lester Caine les...@lsces.co.uk wrote: Larry Martell wrote: No, I don't - this app runs in different locations all over the world. I found some code at php.net that does this:

Re: [PHP] timezone

2013-04-15 Thread Maciek Sokolewicz
On 15 April 2013 23:06, Larry Martell la...@software-horizons.com wrote: But UCT is not the timezone. When this app runs in New Mexico (where I am) it's Mountain time. When it runs in NY it's Eastern. When it runs in Tokyo it's JST, etc. The user has the option of setting the timezone all

Re: [PHP] webform spam prevention

2013-04-04 Thread Maciek Sokolewicz
On 4-4-2013 14:27, tamouse mailing lists wrote: On Apr 4, 2013 3:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: One type I've seen (and use myself) which is gaining traction is that of asking for a human type of response to a question, or have them perform a simple mathematical

Re: [PHP] Date weirdness

2013-03-28 Thread Maciek Sokolewicz
On 28-3-2013 22:40, Larry Martell wrote: On Thu, Mar 28, 2013 at 2:44 PM, Steven Staples sstap...@mnsi.net wrote: I think I am losing my mind. I have some time zone converting code, and I just don't understand what I am seeing. Also my system seems to return the wrong time after I do some date

Re: [PHP] variable type - conversion/checking

2013-03-17 Thread Maciek Sokolewicz
On 16-3-2013 19:20, Matijn Woudt wrote: On Sat, Mar 16, 2013 at 6:52 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: Hi, I have tried to find a way to check if a character string is possible to test whether it is convertible to an intger ! any suggestion ? BR georg All

[PHP] Re: modulo function

2013-03-17 Thread Maciek Sokolewicz
On 17-3-2013 22:23, georg wrote: Guess there should be one in PHP but cant find it (tnx for many earlier answers) Br georg You mean the modulus operator? 10%3 = 1 http://www.php.net/manual/en/language.operators.arithmetic.php -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] variable type - conversion/checking

2013-03-16 Thread Maciek Sokolewicz
Hi, I have tried to find a way to check if a character string is possible to test whether it is convertible to an intger ! any suggestion ? BR georg All responses in this thread have been very nice; but you could also try a much simpler 2-step check: 1. is_numeric 2. if true check if

Re: [PHP] Re: Accessing Files Outside the Web Root

2013-03-14 Thread Maciek Sokolewicz
On 14-3-2013 17:43, Dale H. Cook wrote: At 11:20 AM 3/14/2013, Jim Giner wrote: And use a captcha (which I personally can never read!) to keep the robots at bay. I dislike CAPTCHAs, and some bots are pretty good at beating them. I'm exploring alternatives that exploit the differences

[PHP] Re: UNLESS Statement Equivalent

2013-03-11 Thread Maciek Sokolewicz
On 11-3-2013 22:32, Angela Barone wrote: I'm looking for an 'unless' statement, but as far as I can tell, PHP doesn't have one. Hopefully someone can help me rewrite my statement. In English, I want to say: always do something UNLESS these 3 conditions are met. The

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Maciek Sokolewicz
On 4 March 2013 09:32, Terry Ally (Gmail) terrya...@gmail.com wrote: You could echo HTML code e.g. Which is still purely HTML and has nothing whatsoever to do with PHP. form action=result.php method=post Number: input id=quantity type=text / button type=button

[PHP] Re: Open form in new window

2013-03-03 Thread Maciek Sokolewicz
On 4-3-2013 6:44, John Taylor-Johnston wrote: I have many different submit button. input value=Update type=submit input name=DPRmode value=Enter Data type=submit When php processes value=Enter Data, I would like to open a new window, but only if I click this one. Possible? I knw ther is an

Re: [PHP] Joining fixed text to a SUBJECT variable

2013-03-02 Thread Maciek Sokolewicz
On 2-3-2013 12:23, Lester Caine wrote: Michael CALDER wrote: $Subject = RVRA Contact Form - ,$MessageSubject; Can anyone please advise or point me in the right direction for instructions on how to combine the fixed text with the variable $MessageSubject. The quick fix is simply $Subject =

[PHP] Re: preg_replace question

2012-12-12 Thread Maciek Sokolewicz
On 12-12-2012 17:11, Curtis Maurand wrote: I have several poisoned .js files on a server. I can use find to recursively find them and then use preg_replace to replace the string. However the string is filled with single quotes, semi-colons and a lot of other special characters. Will

Re: [PHP] storing searching docs

2012-12-12 Thread Maciek Sokolewicz
On 12-12-2012 21:03, Paul M Foster wrote: Second, you've hit on one of my pet peeves. Never never store huge blocks of text in SQL files. It slows them down and there's no real reason for it. There's no reason to force a DBMS to schlep around massive clumps of text or binary data. That's what

[PHP] Re: preg_replace question

2012-12-12 Thread Maciek Sokolewicz
On 12-12-2012 21:10, Curtis Maurand wrote: On 12/12/2012 12:00 PM, Maciek Sokolewicz wrote: On 12-12-2012 17:11, Curtis Maurand wrote: I have several poisoned .js files on a server. I can use find to recursively find them and then use preg_replace to replace the string. However the string

Re: [PHP] storing searching docs

2012-12-12 Thread Maciek Sokolewicz
On 12-12-2012 21:40, Maciek Sokolewicz wrote: On 12-12-2012 21:03, Paul M Foster wrote: Second, you've hit on one of my pet peeves. Never never store huge blocks of text in SQL files. It slows them down and there's no real reason for it. There's no reason to force a DBMS to schlep around

[PHP] Re: Variables with - in their name

2012-11-19 Thread Maciek Sokolewicz
On 19-11-2012 10:49, Alessandro Pellizzari wrote: Il Sun, 18 Nov 2012 01:09:11 -0500, Ron Piggott ha scritto: echo select name=\distributor- . $row['promo_code_prefix'] . - . $row['promo_code_suffix'] . \ style=\text-align: center;\\r\n; It could be wrote: ?php echo $distributor-42-2;

[PHP] Re: Date comparison going wrong, wrong, wrong

2012-11-11 Thread Maciek Sokolewicz
On 11-11-2012 22:47, Jim Giner wrote: Besides the minor fact that the code has syntax errors, the problem with it is your if is backwrads. The facts are: today is less than end date, so your if should show The show has ended since you are asking if today IS GREATER than the end date. BTW -

[PHP] Re: The require and include

2012-11-10 Thread Maciek Sokolewicz
On 10-11-2012 17:38, andrej arshinow wrote: I knew that before the function require a faster because All files are included before run the script. Now is this? And how to use it? I don't understand your question, could you please try to elaborate? Are you asking whether include is faster

Re: [PHP] Help using PHP 5.3.3 mail() with Apache James

2012-10-25 Thread Maciek Sokolewicz
On 23-10-2012 23:54, Steven Pogue wrote: Dan, I assume you meant to add a system() call into it...if so, here is what was presented. -rwxrwxrwx. 1 root root 3878 Sep 6 14:45 /opt/james-2.3.2/bin/sendmail.py -rwxrwxrwx. 1 root root 3878 Sep 6 14:45 /opt/james-2.3.2/bin/sendmail.py Steve

Re: [PHP] Re: User Timezone

2012-10-21 Thread Maciek Sokolewicz
On 21-10-2012 01:11, Karl DeSaulniers wrote: Thanks for the response. Yes, for the US I plan on calculating by state, but this website is not geared to just the US. So I am looking for a solution that lets me also calculate by country/region. Was looking on google and found geoip, but not sure

[PHP] Re: User Timezone

2012-10-20 Thread Maciek Sokolewicz
On 20-10-2012 09:39, Karl DeSaulniers wrote: Hello all, Happy weekend. Hoping you can help me with an age old question. I am trying to get a users timezone for a purchase online. I know that php is not really able to get a timzone of a user because its a server side execution with the date

Re: [PHP] Table help needed

2012-10-20 Thread Maciek Sokolewicz
On 20-10-2012 07:52, tamouse mailing lists wrote: Surprised no one else has jumped on the Don't use mysql anymore thing here. Quick and dirty PDO implementation: https://gist.github.com/3922192 I'm actually more surprised that the OP hasn't even bothered to check the standard HTML syntax

Re: [PHP] Table help needed

2012-10-20 Thread Maciek Sokolewicz
On 20-10-2012 21:52, admin wrote: Chris, Let me first apologize for a couple syntax errors I had in the real quick explanation. I answered your question in relationship to your knowledge of the subject based on the question it's self. I want to apologize for the comments that

Re: [PHP] Beneficial site spamming framework

2012-10-13 Thread Maciek Sokolewicz
On 13-10-2012 01:55, Ashley Sheridan wrote: On Fri, 2012-10-12 at 01:59 +0200, Maciek Sokolewicz wrote: On 11-10-2012 22:18, Ashley Sheridan wrote: I've been getting spam comments on my personal blog (runs on self-written PHP blog software). I'd like to test some methods I've devised

Re: [PHP] Beneficial site spamming framework

2012-10-13 Thread Maciek Sokolewicz
On 13-10-2012 09:24, Ashley Sheridan wrote: I think it might be an issue with your email client/server, as this one just came through 3 times too! That is very odd, because it only shows up once in the newsgroup, only once in my own mailclient (Thunderbird) and only once in the archives of

Re: [PHP] appreciation

2012-10-12 Thread Maciek Sokolewicz
On 12-10-2012 06:10, tamouse mailing lists wrote: if ( ! is_dir($dirBase./.$get_the_album) // this is not a directory || ! strpos($get_the_album, '.') // directory name does not contain a period || ! strpos($get_the_album, '\') // directory name does not contain

Re: [PHP] Beneficial site spamming framework

2012-10-11 Thread Maciek Sokolewicz
On 11-10-2012 22:18, Ashley Sheridan wrote: I've been getting spam comments on my personal blog (runs on self-written PHP blog software). I'd like to test some methods I've devised to prevent or block it. Does anyone know of a very lightweight framework for simulating an automated form

Re: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Maciek Sokolewicz
On 05-10-2012 22:50, iostream wrote: If you want to execute some code... I'm sure you've all heard of the new goes to operator by now, but I hope it might be new to somebody. $i = 10; while ($i -- 0) { // while $i goes to 0 echo $i .\n; } Haha, nice one :) Also: don't toppost

Re: [PHP] problem with my login script

2012-10-02 Thread Maciek Sokolewicz
On 02-10-2012 11:59, Bálint Horváth wrote: The problem was already solved. I forgot to send a copy to the list... Rodrigo, break!? Ohh man, it's a crazy idea... A developer DOES NOT use break at all (in a loop)... (switch is an exception) I personally find this statement to be utter bullshit.

[PHP] Re: relative url and path_info

2012-09-30 Thread Maciek Sokolewicz
On 30-09-2012 14:21, Tom Sparks wrote: I have created a php script that use $_SERVER['PATH_INFO'], for the different sub-sections the links now looks like this http://localhost/collection/popups.php/models/bttf/car01/ my web browser cant load my images/javascripts/etc because it is

Re: [PHP] about lock some codes.

2012-09-27 Thread Maciek Sokolewicz
On 27-09-2012 11:31, lx wrote: Hello: I have a question now.the code is: $ftemp = fopen($fdoc_tmp/temp_proxy, 'w'); fwrite($ftemp, $content); fclose($ftemp); exec(/usr/local/bin/gdnsproxy -a -f $fdoc_tmp/temp_proxy

Re: [PHP] about lock some codes.

2012-09-27 Thread Maciek Sokolewicz
On 27-09-2012 15:13, Jim Giner wrote: Even simpler - use the 'tempnam' or 'tmpfile' functions to always have a unique name and avoid having to check for an existing file. Amazing what the php Manual has in it... Good find, I completely forgot about the existence of those functions ;) It's

[PHP] Re: memory allocation

2012-09-25 Thread Maciek Sokolewicz
On 25-09-2012 12:49, Marcelo Bianchi wrote: Dear list, I developed a script that have to create considerable array of integer numbers in memory. Currently my script has to accommodate in memory two arrays of around 120.000 numbers (for one year of data, I would like to reach a 2 years per

Re: [PHP] Images can execute php script?

2012-09-23 Thread Maciek Sokolewicz
On 23-09-2012 21:30, admin wrote: Jpgs can hold other data rather than image data One thing to try is to run strip_tags($image) to remove any php code http://stackoverflow.com/questions/3499173/my-php-site-was-hacked-by-codes-u ploaded-as-image

[PHP] Re: Need help to understand a code

2012-09-22 Thread Maciek Sokolewicz
On 22-09-2012 12:34, Ashickur Rahman Noor wrote: Hi all I need some help to understand a code. The code is like this $result = mysql_query($sSQL) or die(err: . mysql_error().$sSQL); if($row = mysql_fetch_array($result)) { foreach($row as $key =$value){

Re: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Maciek Sokolewicz
On 22-09-2012 16:19, Samuel Lopes Grigolato wrote: +1 to bad maintainability of the code. As a suggestion, one better solution could be something like: [...] class Entity { public $id; public $name; } [...] $entity = new Entity(); foreach [...] $entity-$$key = $value; [...]

[PHP] Re: CURL vs Exif_imagetype()

2012-09-20 Thread Maciek Sokolewicz
On 20-09-2012 13:48, Rango wrote: Hi, I host a flash painting tool on my site, and wanted to add ability for the users to add a background image from a given url, but I have to make sure the url they add truely refers to a real jpg file, and not something else. I found a methoed with

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Maciek Sokolewicz
On 20-09-2012 18:03, Jim Lucas wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated, unsupported and therefore insecure and inefficient

Re: [PHP] PHP to XLS Security Alert issue

2012-08-30 Thread Maciek Sokolewicz
On 29-08-2012 19:28, admin wrote: -Original Message- From: Matijn Woudt [mailto:tijn...@gmail.com] Sent: Tuesday, August 28, 2012 3:55 PM To: admin Cc: php-general@lists.php.net Subject: Re: [PHP] PHP to XLS Security Alert issue I believe that's normal, and that it does that with any

Re: [PHP] Display Array Tree as Menu - Can't figure out how to finddepth with something over 2 levels : ANSWERED

2012-08-20 Thread Maciek Sokolewicz
On 16-08-2012 20:28, Tristan wrote: Thanks for all your help. The answer was so simple in the end. Thanks Tim for clearing that up!!! Perfect little script now for creating navigation. Just feed it an array like posted at the bottom of this message. function createTree($list, $parent){

[PHP] Re: php script can't self reference

2012-06-20 Thread Maciek Sokolewicz
On 20-06-2012 15:55, Tim Dunphy wrote: Hello list, I just wanted to bounce a slight issue that I'm having off you regarding self referencing a php script. Moving from the 'sendemail.htm' page where a form is used to the 'sendemail.php' page that is in the form action works fine! But if you

[PHP] Re: define()

2012-06-16 Thread Maciek Sokolewicz
On 16-06-2012 08:36, Karl DeSaulniers wrote: Quick question phprz. Is it ok to put a token inside a define() statement? IE: define('TOKEN', $sometoken); I guess what I am really after is if this can be read by a hacker? I may be misguided as to what define()'s parameters are. Once you define

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-06 Thread Maciek Sokolewicz
On 06-06-2012 05:11, Jim Giner wrote: Govindagovinda.webdnat...@gmail.com wrote in message news:72497398-3a6c-4faa-89f2-565c18fd2...@gmail.com... On 2012-06-05, at 10:54 PM, Devangnp wrote: I know how to pass variable but having difficulties when I use the dynamic form field in HTML that add

[PHP] Re: Crudin - CRUD INterface Generator - Open Source Project

2012-05-25 Thread Maciek Sokolewicz
On 25-05-2012 23:09, Rodrigo de Almeida Rodriguez wrote: Hi, I am the creator of a open source project called Crudin (http://crudin.smarc.com.br/en) Crudin is a system for generation of fron-ends in the MySQL, writted in PHP Without needing to program nothing you get a complete platform with

[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Maciek Sokolewicz
On 23-05-2012 06:12, Ashwani Kesharwani wrote: Hi , I have a query w.r.t. mail() function in php. I have hosted my site and i have created an email account as well. when i am sending mail to different recipient from my php script using above function it is getting delivered to respective

Re: [PHP] errors not showing

2012-05-20 Thread Maciek Sokolewicz
On 20-05-2012 07:17, tamouse mailing lists wrote: Are these syntax errors or run-time errors? The former won't display to the page at all, as they abort PHP before that point. Those written to wherever PHP is set to log errors, which might be the same as the apache error log unless you've set

[PHP] Re: PHP Subroutine Call Blowing UP with Strings

2012-05-06 Thread Maciek Sokolewicz
On 06-05-2012 14:54, George R Smith wrote: root@dellT710:/var/www# php qm_get_clients.php *** glibc detected *** php: free(): invalid next size (fast): 0x0a2c3998 *** Sounds like a segfault to me, which is fully the fault of the extension, and not something you're doing in PHP. Try asking the

[PHP] Re: Watch out for automatic type casting

2012-04-07 Thread Maciek Sokolewicz
On 07-04-2012 16:37, Bogdan Ribic wrote: This is *not* typecasting at all, this is assignment of a result of boolean operator, and it boils down to operator precedence. It's equivalent to this code: $b = $x == 11; in the part that right side of equation sign is calculated first, then assigned

Re: [PHP] Variable representation

2012-04-02 Thread Maciek Sokolewicz
On 02-04-2012 07:15, tamouse mailing lists wrote: As for doing what you originally asked, that requires doing an eval() on the statement utilizing string interpolation, like so: eval('echo image $i is $image_' . $i . '.PHP_EOL;'); but I think that's a bit harder to read and understand

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-02 Thread Maciek Sokolewicz
On 02-04-2012 10:12, Simon wrote: Thanks Simon. you got my hopes up there for a second. From the php docs page: Critics further argue that it is pointless to use a Singleton in a Shared Nothing Architecture like PHP where objects are uniquewithin the Request only anyways. I want the the

Re: [PHP] whats wrong

2012-03-31 Thread Maciek Sokolewicz
On 31-03-2012 10:29, tamouse mailing lists wrote: On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmedmycomputerbo...@gmail.com wrote: i have made a php script with a tutorial helpi dont know where is a error.please have a look Before you actually run code in a browser, check your syntax with

Re: [PHP] Watch out for automatic type casting

2012-03-31 Thread Maciek Sokolewicz
On 30-03-2012 09:47, Arno Kuhl wrote: -Original Message- From: Simon Schick [mailto:simonsimc...@googlemail.com] Sent: 29 March 2012 07:19 PM To: a...@dotcontent.net Cc: php-general@lists.php.net Subject: Re: [PHP] Watch out for automatic type casting Hi, Arno FYI: I found a page in

Re: [PHP] Re: Uploading and creating an email attachment, WITHOUT aDB on server

2012-03-27 Thread Maciek Sokolewicz
On 27-03-2012 15:16, Bastien Koert wrote: On Tue, Mar 27, 2012 at 8:41 AM, Christopher Svanefalk christopher.svanef...@gmail.com wrote: Addendum: what standard functions could I invoke to accomplish the file system view part? On Tue, Mar 27, 2012 at 2:37 PM, Christopher Svanefalk

Re: [PHP] Function mktime() documentation question

2012-03-10 Thread Maciek Sokolewicz
On 09-03-2012 14:11, Daniel Brown wrote: (To the list, as well. First day with my new fingers, apparently) On Fri, Mar 9, 2012 at 08:09, Daniel Browndanbr...@php.net wrote: On Thu, Mar 8, 2012 at 21:23, Tedd Sperlingtedd.sperl...@gmail.com wrote: This starts getting a bit

Re: [PHP] Function mktime() documentation question

2012-03-10 Thread Maciek Sokolewicz
On 10 March 2012 19:06, Matijn Woudt tijn...@gmail.com wrote: On Sat, Mar 10, 2012 at 6:20 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 09-03-2012 14:11, Daniel Brown wrote: (To the list, as well. First day with my new fingers, apparently) On Fri, Mar 9, 2012

[PHP] Re: Connect to Google

2012-02-16 Thread Maciek Sokolewicz
On 16-02-2012 03:56, John Taylor-Johnston wrote: I'm a teacher. I want to use PHP to interface with Google and see if a student has plagiarized. I don't see many open-source projects on the subject, so I want to create my own script. How can I use PHP to interface with Google and see if this

[PHP] Re: Cannot make bzip2 stream on the fly

2012-01-31 Thread Maciek Sokolewicz
On 31-01-2012 15:34, Michael Shestero wrote: header(Content-Description: File Transfer); header(Content-Disposition: attachment; filename=f.bzip2); header(Content-Type: application/x-bzip2); //header(Content-length: . strlen($zippedfile) . \n\n); header(Content-Transfer-Encoding: binary);

Re: [PHP] Re: Getting Column Names from an AS400 Database

2012-01-26 Thread Maciek Sokolewicz
On 26-01-2012 16:40, Cheryl Sullivan wrote: Thanks for your response... I changed the $outval line to $outval = odbc_columns($rs, DB#LIBNAME, %, TABLENAME, %); ...but still got the same error - Warning: odbc_columns() expects parameter 1 to be resource, object given in

Re: [PHP] Re: sql injection protection

2012-01-26 Thread Maciek Sokolewicz
On 26-01-2012 15:46, Haluk Karamete wrote: when we do b64e and then back b64d, you are saying. we get the org input all as clear text but this time as a string. because it is now a string, (which by definition can not be executed) what's the difference between b64e+b64d vs (string) casting

[PHP] Re: Settings to Allow Precise File Upload Bytes

2012-01-20 Thread Maciek Sokolewicz
Your problem here is the fact that you do not seem to grasp what is hapenning when a file is being uploaded, hence your question. So let me explain: 1. A user goes to your page by entering it into the browser. 2. The page is downloaded to the client, and the connection is closed. 3. The user

[PHP] Re: Settings to Allow Precise File Upload Bytes

2012-01-20 Thread Maciek Sokolewicz
solutions may do this. On Fri, Jan 20, 2012 at 11:50 AM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: Your problem here is the fact that you do not seem to grasp what is hapenning when a file is being uploaded, hence your question. So let me explain: 1. A user goes to your page

Re: [PHP] count clicks to count most important news

2012-01-01 Thread Maciek Sokolewicz
On 01-01-2012 20:08, Ashley Sheridan wrote: On Sun, 2012-01-01 at 11:49 -0500, Tedd Sperling wrote: On Jan 1, 2012, at 11:26 AM, muad shibani wrote: I have a website that posts the most important news according to the number of clicks to that news the question is : what is the best way to

Re: [PHP] compare dates

2011-12-01 Thread Maciek Sokolewicz
On 01-12-2011 02:17, Floyd Resler wrote: On Nov 30, 2011, at 5:04 PM, Matijn Woudt wrote: On Wed, Nov 30, 2011 at 11:00 PM, Marc Frommmarc.fr...@wwu.edu wrote: I'm puzzled why the if statement executes as true when the first date (job_closedate) is not less than the second date (now). The

Re: [PHP] compare dates

2011-12-01 Thread Maciek Sokolewicz
On 01-12-2011 02:17, Floyd Resler wrote: On Nov 30, 2011, at 5:04 PM, Matijn Woudt wrote: On Wed, Nov 30, 2011 at 11:00 PM, Marc Frommmarc.fr...@wwu.edu wrote: I'm puzzled why the if statement executes as true when the first date (job_closedate) is not less than the second date (now). The

Re: [PHP] compare dates

2011-12-01 Thread Maciek Sokolewicz
On 01-12-2011 02:17, Floyd Resler wrote: On Nov 30, 2011, at 5:04 PM, Matijn Woudt wrote: On Wed, Nov 30, 2011 at 11:00 PM, Marc Frommmarc.fr...@wwu.edu wrote: I'm puzzled why the if statement executes as true when the first date (job_closedate) is not less than the second date (now). The

Re: [PHP] IE7 forçando download de arquivo *.php

2009-01-06 Thread Maciek Sokolewicz
Zechim wrote: Boa tarde pessoal, estou com um problema no ie7, tenho um atendimento on-line em um site, funciona corretamente em outros browers, mas no ie7, quando tento abrir a página do chat, ela força o download e não exibe o html na tela, como se fosse um link para download. What makes

[PHP] Re: Question on if() priorities

2008-12-12 Thread Maciek Sokolewicz
Frank Stanovcak wrote: I can't seem to find a reference to this in the manual, but is there an order of precedence for and or xor in an if statement? Kind of like PPMDAS or polish notation for math (PPMDAS = Powers. Parenthacies. Multiplication...) I ask because this seems to be working for

[PHP] Re: file_exists and wildcard/regex

2008-12-09 Thread Maciek Sokolewicz
Daniel Kolbo wrote: What is the preferred method with php to test and see if a file [pattern] exists? For example, i only need to search in one directory, that may have any number of files named such as afile1.txt, afile2.txt, afile3.txt, And also, bfile1.txt, bfile2.txt, bfile3.txt,

Re: [PHP] error messaages - $DOXPath Wrong

2008-12-05 Thread Maciek Sokolewicz
ddg2sailor wrote: Hi Here are the error messages: Warning: move_uploaded_file(C: mpp\htdocs\dox/th_dsc_076.jpg) [function.move-uploaded-file]: failed to open stream: Invalid argument in C:\xampp\htdocs\dox.php on line 40 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to

Re: [PHP] Accessing the 'media' attribute in php

2008-12-02 Thread Maciek Sokolewicz
Clancy wrote: Oh? Unfortunately I have had great difficulty trying to find out how things really work, as all the books I have seen are recipe books, which tell you how to achieve particular results, but not what is going on behind the scenes. I had assumed that when you hit the 'print'

Re: [PHP] Re: Parsing XML

2008-11-27 Thread Maciek Sokolewicz
Ashley Sheridan wrote: On Thu, 2008-11-27 at 22:13 +, Ashley Sheridan wrote: On Thu, 2008-11-27 at 20:56 +, Nathan Rixham wrote: Ashley Sheridan wrote: Hi All, I've run into a bit of a problem. I need to parse some fairly detailed XML files from a remote website. I'm pulling in the

[PHP] Re: Displaying information from table graphically

2008-11-21 Thread Maciek Sokolewicz
[EMAIL PROTECTED] wrote: I have a PHP application that accesses data from MySQL. There is table called rooms, and table called beds. There is another table called patients. Patients are being placed into beds, and beds are in the rooms. PHP application currently displays all information in

[PHP] Re: pdt-2.0 error

2008-11-12 Thread Maciek Sokolewicz
András Csányi wrote: Hi all! I don't know which is the right place to make an bugreport. I installed on my linux desktop the pdt-2.0 all-in-one but i have a nice, big exception. :( So, my question is, where can I send an bugreport? Thank you for help and patience! András I've never heard

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Maciek Sokolewicz
Dee Ayy wrote: On Mon, Nov 10, 2008 at 5:26 PM, Dee Ayy [EMAIL PROTECTED] wrote: My bad. I urlencoded the %20 LOL %20 works. And just in time to go home. Thanks. if you use rawurlencode() instead of urlencode() this won't be a problem; since that does change spaces to %20 instead of +.

[PHP] Re: strtotime

2008-11-08 Thread Maciek Sokolewicz
gilles wrote: Avec la version 4 de php, strtotime(20080950) fonctionne correctement en allant sur le mois d'octobre, alors qu'en version 5: 19700101. Merci de votre aide This is an ENGLISH list, please rephrase your question in english and people might understand. Cette liste est une

Re: [PHP] Random number generator

2008-11-06 Thread Maciek Sokolewicz
WEISD wrote: Computer functions to generate random numbers are not designed to do what their name suggests. Software testing requires repeatability, and this includes random number generation. Without knowing how PHP seeds the generator it is difficult to predict what it will do. I

Re: [PHP] phpbb forum site login integratio

2008-11-02 Thread Maciek Sokolewicz
Richard Heyes wrote: Hi All I am looking to integrate phpbb forum with an existing site login system. Not having looked at it, you could look at using HTTP auth. Might make things easier. Then again, it might not. [shrugs] Ask on the phpbb forums, I don't know how they handle logins exactly

[PHP] Re: Simple app to Fill in TBL/Access Control Function.

2008-11-02 Thread Maciek Sokolewicz
bruce wrote: Hi guys... Forgive me! I'm looking for a simple app that has the user complete a TBL (don't care what), and has an access control process, along with an ADMIN function I have no idea what you want, that explenation is _so_ vague (a TBL (don't care what... means... what

Re: Fwd: [PHP] Count the Number of Elements Using Explode

2008-10-31 Thread Maciek Sokolewicz
Kyle Terry wrote: -- Forwarded message -- From: Kyle Terry [EMAIL PROTECTED] Date: Fri, Oct 31, 2008 at 9:31 AM Subject: Re: [PHP] Count the Number of Elements Using Explode To: Alice Wei [EMAIL PROTECTED] I would use http://us2.php.net/manual/en/function.array-count-values.php

[PHP] Re: Waste of storage space?

2008-10-29 Thread Maciek Sokolewicz
Frank Arensmeier wrote: 29 okt 2008 kl. 00.00 skrev Maciek Sokolewicz: Frank Arensmeier wrote: Hi all. In short, I am working on a system that allows me to keep track of changes to a large amount of short texts (a couple of thousand text snippets, two or three sentences per text). All text

Re: [PHP] Re: FImage $aSubDir

2008-10-29 Thread Maciek Sokolewicz
Ashley Sheridan wrote: On Tue, 2008-10-28 at 23:52 -0400, John Taylor-Johnston wrote: Could it be this easy? $chopped= strlen($aFn) - 4; $filename = $chopped..txt; printbrfont face='Arial, Helvetica, sans-serif' size=2 color='#99'; include($filename); print/font; John

[PHP] Re: Waste of storage space?

2008-10-28 Thread Maciek Sokolewicz
Frank Arensmeier wrote: Hi all. In short, I am working on a system that allows me to keep track of changes to a large amount of short texts (a couple of thousand text snippets, two or three sentences per text). All text is stored in a database. As soon as a user changes some text (insert,

[PHP] Re: Replacing with f*ck and f*cking

2008-10-26 Thread Maciek Sokolewicz
Ryan S wrote: Hey! I'm just trying to replace some of the more bad words with their slightly censored counterparts like so $bad_words = array(/*Well you know the words so am not going to write them here*/); $bad_words_replacements = array(f*ck, f*cking); $comment =

[PHP] Re: class and inheritance

2008-10-21 Thread Maciek Sokolewicz
Alain Roger wrote: Hi, I'm trying to create a class that has as public members some other class object. for that i use almost the same syntax as under C# or C++. header class: ?php class CARMainHeader { // title of the main table header private $mTitle = null; // holds the

[PHP] Re: Brain dead... write image to file

2008-10-15 Thread Maciek Sokolewicz
Ryan S wrote: Hey all, am feeling a bit brain dead, pulled an all nighter and would appreciate some help as have already wasted over 2hrs on this :( just not thinking straight. I got this script off the net, cant even remember where :( its basically to resize an uploaded image (i have a

Re: [PHP] Re[2]: The 'at' sign (@) variable prefix

2008-10-09 Thread Maciek Sokolewicz
ANR Daemon wrote: Greetings, Ashley Sheridan. In reply to Your message dated Wednesday, October 8, 2008, 23:08:37, If you're using it to deal with possible empty input data, you'd better do it explicitly enstead. Something like this: if(!array_key_exists('from_year', $_POST) ||

Re: [PHP] strtotime problem

2008-10-08 Thread Maciek Sokolewicz
Thodoris wrote: Actually strtotime accepts all kinds of things... Last week Thursday midnight for example works perfectly. You could do an explode on the field and then reorder the array anyway that you want... ?PHP $date = 13/01/2008; $datearray = explode(/, $date); echo

Re: [PHP] Create DLL of PHP class

2008-10-03 Thread Maciek Sokolewicz
Per Jessen wrote: Manoj Singh wrote: Hello All, I have the task to create DLL of PHP class. Please advise how to do it. I think you'll have to look up how to write a PHP extension. Then you implement your class in C as a PHP extension, and build that as a DLL. /Per Jessen, Zürich Which

Re: [PHP] Php4 = Php5

2008-10-03 Thread Maciek Sokolewicz
Thiago H. Pojda wrote: On Fri, Oct 3, 2008 at 11:42 AM, Operacion Control [EMAIL PROTECTED] wrote: Hi Lists, I am planning to migrate from Php4 to Php5 in a few days. Do anyone know which applications/services are upset with the migration? I dont have enough servers to instalt each using Php4

Re: [PHP] Selecting all records between a date range

2008-10-02 Thread Maciek Sokolewicz
Dan Joseph wrote: On Thu, Oct 2, 2008 at 12:35 PM, Jason Pruim [EMAIL PROTECTED] wrote: SQLTEST: SELECT * FROM `timeStore` WHERE`timein` BETWEEN 1222315200 AND 122292 Could not perform query: Query was empty [EMAIL PROTECTED] Put a ' around your timestamp numbers. I

[PHP] Re: photo file size

2008-10-01 Thread Maciek Sokolewicz
elk dolk wrote: Hi All, I have some photos with different file sizes like 100KB 125KB 200KB ,… I want to shrink them and reduce the file size to Max 60KB without sacrificing image quality and size! Without sacrificing size AND quality? So you don't want to lose enough data to get to a

  1   2   >