[PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Maciek Sokolewicz
Edward Diener wrote: I have a PHP file which does an: echo someresponse to return some data. When I run it from a Windows client program, the response I am seeing is not only the someresponse above but also has the entire HTML form in the PHP file appended to it. Naturally I do not want

[PHP] Re: E-Shop system

2008-08-02 Thread Maciek Sokolewicz
Alain Roger wrote: Hi, i'm currently analyzing an e-shop system. i understand how to display products and so on, however i still have some question marks on the following topics: 1. what is the best way for showing product image ? - to store them in DB or onto filesystem as simple image files

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Maciek Sokolewicz
Edward Diener wrote: Benjamin Hawkes-Lewis wrote: Edward Diener wrote: Does not the script 'exit' when the PHP code reaches the ending '?' tag ? Not exactly. PHP processes the remainder of the file too, it just doesn't find any PHP code to execute therein. It does find some text to output,

Re: [PHP] Unsubscribe issues

2008-08-22 Thread Maciek Sokolewicz
Andrew Ballard wrote: On Fri, Aug 22, 2008 at 9:10 AM, Ashley Sheridan [EMAIL PROTECTED] wrote: I assume Ronald won't see this, but I've mentioned it before. The emails coming from the mailing list all have an unsubscribe link in the header information. Just my 2p (I'm British, we don't do

Re: [PHP] Unsubscribe issues

2008-08-22 Thread Maciek Sokolewicz
www.ashleysheridan.co.uk Subject: Re: [PHP] Unsubscribe issues From: Maciek Sokolewicz [EMAIL PROTECTED] Date: Fri, 22 Aug 2008 15:51:38 +0200 To: Andrew Ballard [EMAIL PROTECTED] To: Andrew Ballard [EMAIL PROTECTED] CC: PHP

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread Maciek Sokolewicz
Thiago Melo de Paula wrote: Hello Yeti! This is a very good question, because it shows that you're interested in get the max from your PHP codes. In my research about php optimization, I couldn't find any relevant article about this specific issue, but some sites tell us that using commas

Re: [PHP] Re: Variable name as a string

2008-08-27 Thread Maciek Sokolewicz
tedd wrote: At 1:58 PM -0500 8/27/08, Shawn McKenzie wrote: ioannes wrote: Actually, you are right, as you just put the checkbox index in the POST and get the value from there. So you just need the number of checkboxes...sorry. for ($i = 1; $i = 4; $i++) { $a = 'a' . $i; $b =

[PHP] Re: [PHP-DEV] T_PAAMAYIM_NEKUDOTAYIM

2008-09-01 Thread Maciek Sokolewicz
Jochem Maas wrote: redirecting to generals mailing list ... Diogo Neves schreef: php -r 'class B { private static function a() {} public function __callStatic($method, $parms) { echo $method, \n; } } $a = new B; $a::a();' Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in

[PHP] [Fwd: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong]

2008-09-12 Thread Maciek Sokolewicz
Forwarding to php-general. Original Message Subject: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong Date: Fri, 12 Sep 2008 10:51:45 -0400 From: [EMAIL PROTECTED] (Tanveer Bhurani) To: miau dot jp at gmail dot com [EMAIL PROTECTED] Newsgroups: php.doc.bugs

Re: [PHP] localization folder for web site

2008-09-13 Thread Maciek Sokolewicz
Alain R. wrote: so how can i do the same ? i mean to have 1 single PHP page and to localize, but to have the URI with /en, or /fr or /de ? i know how to localize the complete website i already done it, but what you told ? One would hope that unless it's a pretty small static site those

Re: [PHP] localization folder for web site

2008-09-13 Thread Maciek Sokolewicz
Alain R. wrote: Maciek Sokolewicz wrote: 2. google apache mod_rewrite, that way you can rewrite urls of the form www.example.org/de/whatever to www.example.org/whatever?lang=de or even stick the de part into an environment variable $_ENV['lang'] = 'de' - Tul the mod_rewrite is possible

[PHP] Re: Version Control Software

2008-09-19 Thread Maciek Sokolewicz
David Lidstone wrote: Benjamin Darwin wrote: After reading a topic on the list here about someone losing their website, and having a minor mistake on my own that cost me a week's work on a file (basically, tested the file, then uploaded to the live site and took the daily backup off the live

[PHP] Re: Header() - POST

2008-09-21 Thread Maciek Sokolewicz
Lupus Michaelis wrote: Michelle Konzack a écrit : Why using JS? echo meta http-equiv=\refresh\ content=\0; . $FULL_URL \; would do the trick... No, because it'll not send back the datas in the hide form. And if you suggest to pass datas in a HTTP GET, I'll answer XSS in the scope :)

Re: [PHP] Re: OOP - Calling methods from classes that are inheriting?

2008-09-21 Thread Maciek Sokolewicz
class myClass { public function func() { return Yay!!; } } class otherClass extends myClass { public function otherFunc() { echo $this-func(); } } $class=new otherClass(); echo $class-otherFunc(); oh yes, it's that simple. 2

Re: [PHP] The Data Literacy Test

2008-09-24 Thread Maciek Sokolewicz
tedd wrote: At 12:25 PM +0100 9/24/08, Ashley Sheridan wrote: On Wed, 2008-09-24 at 09:20 +0800, Shelley wrote: http://phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-testThe Data Literacy Test: http://www.phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test

[PHP] Re: Math problems (No not high school math!)

2008-09-25 Thread Maciek Sokolewicz
Jason Pruim wrote: So I'm trying to figure out how to do a little math in php to add up the number of hours that people have worked (Still on the timecard for anyone following along at home) I have it inserting time in and timeout as timestamps into a MySQL database, from there, I use a

[PHP] Re: Check Variable with true or not

2008-09-29 Thread Maciek Sokolewicz
Carlos Medina wrote: Hi @ all: Question: what is quickly? if( true == isset( $var ) ){} or if( isset( $var ) ){} Can somebody explain ( not think or believe ), what happend on the Zend Engine when the first or the second code will be use? Regards Carlos The _exact_ same thing happens.

[PHP] Re: strrev() for persian language!

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: hi all, for reversing of characters, strrev() is good. but for persian characters it doesn't work! Thanks How nice of you to let us know! Now, is there a question in here somewhere? or is that all you wanted to say? -- _assuming_ you want to know why this is:

[PHP] Re: return language of a word

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. Thanks How exactly would you expect this to work? I can't think of any way to be 100% sure

[PHP] Re: return language of a word

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: Thanks for reply U+103A0 ... U+103DF How can I use of it? Something along the lines of: http://www.php.net/manual/en/function.ord.php should return the ordinal, which can then be compared to that. If you really want to do more with unicode and low-level twiddling

[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

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

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

[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

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

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

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

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

[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

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

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

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

[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

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

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

[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] 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: 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);

[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

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

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

[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

[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

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

[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

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

[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

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){

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

[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

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

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: 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] 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: 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] 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.

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

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

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

[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

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

  1   2   >