[PHP] Re: Executing PHP

2007-10-25 Thread M. Sokolewicz
Philip Thompson wrote: Hi. Feel free to tell me this is a duh question. I don't know which PHP executable (php.exe, php-cgi.exe, php-win.exe) is being run - how can I tell? I am on a Win2k3 server running PHP5 (manual install) and IIS6. I've pointed to the php5isapi.dll in IIS. I'm assuming b/c

[PHP] Re: Email question

2007-10-31 Thread M. Sokolewicz
Jake wrote: while($begin $end) { if ($start == 'false') { if (empty($temp[$begin])) { $start = 'true'; } } else { $data .= chop($temp[$begin]) . \n; } $begin++; } return $from|$subject|$data; } You have got to be joking me.

[PHP] Re: mysql_fetch_array

2007-11-03 Thread M. Sokolewicz
Eduardo Vizcarra wrote: I have a WHILE sentence to retrieve all records from a SELECT query in a database and am using mysql_fetch_array to store them in a matrix, the sentence is like this: while($row=mysql_fetch_array($fotos)) { $fotos_mostrar[] = $row; } $fotos contains all

Re: [PHP] Cannot send a hyperlink

2007-11-11 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: The Answer is quiet simple. $E_MAIL = [EMAIL PROTECTED]; $to = [EMAIL PROTECTED]; $headers = MIME-Version: 1.0\r\n; $headers .= Content-type: text/html; charset=iso-8859-1\r\n; $headers .= To: Their Name[EMAIL PROTECTED] \r\n; $headers .= From: your email [EMAIL

Re: [PHP] Cannot send a hyperlink

2007-11-15 Thread M. Sokolewicz
Brad, please, try solving these kinds of things yourself. Especially seen as the parse error which you posted here was already found and shown to you in one of your earlier posts to this list (if I'm not mistaken). So, your problem is: $body.= 'a href='http://www.zoneofsuccessclub.com'link

Re: [PHP] Open Source BTS??

2007-11-16 Thread M. Sokolewicz
Richard Heyes wrote: I am needing to install a bug tracking system on a web server and looking for a good PHP open source solution. Looking for a pretty mature system that still has active development. Thanks for any suggestions. The only one I have had experience of is Mantis:

[PHP] Re: getenv ... i think

2007-11-22 Thread M. Sokolewicz
Steven Macintyre wrote: Hi all, http://steven.macintyre.name/myscript.phps is my code as it stands The purpose of the code is as follows; Its for a non-profit company - wanting to offer support banners for users who pay for them right ... as in donation. They want to be able to restrict

[PHP] Re: Fatal error: Function name must be a string

2008-01-02 Thread M. Sokolewicz
Adam Williams wrote: I'm getting the following error and I don't see whats wrong with my line. Any ideas? *Fatal error*: Function name must be a string in */var/www/sites/intra-test/contract/perform.php* on line *57* and my snippet of code is: if ( $_POST[perform] == View Contracts )

[PHP] Re: Where is FAM ?

2008-01-31 Thread M. Sokolewicz
Anup Shukla wrote: Hi all, The manual says, XXXVII. File Alteration Monitor Functions .. .. Note: This extension has been moved to the » PECL repository and is no longer bundled with PHP as of PHP 5.1.0. .. .. But i am unable to locate it on PECL either. Is there any way to use FAM/GAMIN

Re: [PHP] www. not working

2008-02-16 Thread M. Sokolewicz
Jim Lucas wrote: Valedol wrote: On Fri, 15 Feb 2008 23:46:57 +0300, nihilism machine [EMAIL PROTECTED] wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas? ?php class URL

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread M. Sokolewicz
Daniel Brown wrote: On Wed, Feb 27, 2008 at 5:08 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-02-27 at 16:38 -0500, Keikonium wrote: Thank you again Robert, and thank you too Daniel. I have gotten both methods to work flawlessly so far :). I am slowly learning by trial and

Re: [PHP] Re: Variable post as array

2008-03-05 Thread M. Sokolewicz
And you don't do: $txtPhotoData = addslashes(fread(fopen($_FILES['txtPhoto']['tmp_name'], r), filesize($_FILES['txtPhoto']['tmp_name']))); because ? - Tul P.S. if you want more readable code (PHP = 4.3.0, which you should have anyway) use: $txtPhotoData =

[PHP] Re: Return or not to return, that is the question

2007-05-30 Thread M. Sokolewicz
Richard Davey wrote: Hi all, Just a quick straw-poll really: What is your take on using 'return' when you end a function, if you don't actually need to return a value? If you have to return say a true/false as the result of an operation, then it's an obvious choice. But what if all the

[PHP] Re: local v remote

2007-05-31 Thread M. Sokolewicz
Jared Farrish wrote: Jared Farrish wrote: On my localhost this works fine $result= mysql_query(SELECT date_format(date, '%d/%m/%Y') as date, title, id, display FROM NEWS); while ($row = mysql_fetch_assoc($result)) { but on my remote i get a mysql_fetch_assoc(): supplied argument is not a

Re: [PHP] Re: Removing a row from an Array

2007-06-04 Thread M. Sokolewicz
I've never heard of, nor seen array_grep() before and AFAIK it's also not a built-in php function. Check it at http://www.php.net/array_grep, it doesn't exist. No need to advise that which does not exist :) - Tul Al wrote: Can you be more specific? Show us a line of code, or so. There are

[PHP] Re: Faulting module php4ts.dll

2007-06-08 Thread M. Sokolewicz
zerof wrote: Chris Boget escreveu: We are running PHP 4.3.11 in a Windows Server 2003 environment using ApacheSSL v1.3. Starting just the other day, we starting seeing the following error pop up in the windows eventvwr: Faulting application Apache.exe, version 0.0.0.0, faulting module

[PHP] Re: generate an etag header that apache can subsequently use, how?

2007-06-22 Thread M. Sokolewicz
hey Jochem, as far as I can see, this should work for you: ?php $stats = stat('/dev/shm/file'); $etag = sprintf('%x-%x-%x', $stats['ino'], $stats['size'], $stats['mtime']); // lowercase hexadecimal numbers separated by dashes header('Etag: '.$etag); ? Assuming your apache is configured to use

Re: [PHP] Re: generate an etag header that apache can subsequentlyuse, how?

2007-06-23 Thread M. Sokolewicz
Maas wrote: hi Tul, thanks for the feedback ... can I borrow your brain for a little longer? M. Sokolewicz wrote: hey Jochem, as far as I can see, this should work for you: ?php $stats = stat('/dev/shm/file'); $etag = sprintf('%x-%x-%x', $stats['ino'], $stats['size'], $stats['mtime

[PHP] Re: parsin XML with DOM

2007-06-26 Thread M. Sokolewicz
Mikey wrote: [EMAIL PROTECTED] wrote: [snip] its type is not DomNode, but DomText. Only the 2nd child - $NODE = $NODE-nextSibling; has $NODE-tagName channel. My question is - why is the first child after rss DomText? Thank you, Iv My guess is the whitespace between the nodes :o) HTH,

Re: [PHP] HELP - I have tried to unsubscribe from this listmutiple times but cannot.

2007-06-29 Thread M. Sokolewicz
Paul Scott wrote: On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? Read the footer on every single mail posted to this list to unsubscribe --Paul

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread M. Sokolewicz
Chris wrote: M. Sokolewicz wrote: Paul Scott wrote: On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: I no longer have a need for this list and My mailbox is getting flooded, Can someone assist ? Read the footer on every single mail posted to this list to unsubscribe --Paul

Re: [PHP] simple OCR in php

2007-06-29 Thread M. Sokolewicz
Robert Cummings wrote: On Fri, 2007-06-29 at 11:32 -0500, Jay Blanchard wrote: [snip] I am looking for a way to incorporate some simple OCR into a php script. The user will bulk scan a pile of invoices. I want the php script to look at each invoice and read a number off the invoice. The image

[PHP] Re: Anybody had luck compiling memcache with php6 ?

2007-07-02 Thread M. Sokolewicz
PHP 6 is about as broken as can be, and buggy as hell... why would you even want to compile it? or extensions for it...? - Tul Cathy Murphy wrote: I am trying to compile memcache 2.1.2 with php6 , but getting errors . Anybody had luck with this? Thanks, Cathy www.nachofoto.com -- PHP

[PHP] Re: spliting the elements in array

2007-07-04 Thread M. Sokolewicz
sivasakthi wrote: Hi Guys, I have the array like below, squid %tu %tl %mt %A test %st.%hs %a %m %tu %th %Hs %Ss test1 %tv %tr %Hs.%Ss %mt In that i need to split the log name of each line, example : squid,test,test1 in to another array.. could you help me to find the solution?

[PHP] Re: what trick is this? How to do it?

2007-07-07 Thread M. Sokolewicz
Man-wai Chang wrote: I'm listening to the song now without logging in, just running this in the URL bar: javascript:floatingWindow.hide(); and the login window is gone :) So is there a proper way to create a modal window inside a browser? There is no proper way. You have various tools to

[PHP] Re: About DOM function in PHP

2007-07-08 Thread M. Sokolewicz
Kelvin Park wrote: I'm getting the following fatal error message: *Fatal error*: Cannot instantiate non-existent class: domdocument in * /home/hosting/infotechnow_com/htdocs/admin/inventory/catalog.php* on line *3 * when running this code: // Initialize new object for DOMDocument $doc = new

Re: [PHP] Re: About DOM function in PHP

2007-07-08 Thread M. Sokolewicz
they are also enabled! There are hosts which build php with --disable-dom, there are also hosts which build php with --disable-libxml thus disabling all xml-related functionality. - Tul Nathan Nobbe wrote: On 7/8/07, M. Sokolewicz [EMAIL PROTECTED] wrote: You don't have the DOM extension installed

[PHP] Re: Php code in html buttons

2007-07-10 Thread M. Sokolewicz
Well, your first problem is that you don't understand the difference between a serverside-script and a client-script. Here's what happens: 1. A user clicks on a link 2. the browser sends a request for that page to the server 3. the server runs the script 4. the server sends the output of that

Re: [PHP] How to pass connection as global variable ?

2007-07-11 Thread M. Sokolewicz
C.R.Vegelin wrote: C.R.Vegelin wrote: I have various PHP scripts that use the same database. The startup script default.php sets the connection once for all the scripts. This connection is set in $_SESSION to make it a global variable for all scripts. When switching from page default to page

Re: [PHP] Array Push question

2007-07-12 Thread M. Sokolewicz
Stut wrote: Zoltán Németh wrote: 2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta: John Comerford wrote: Hi Folks, Is there a better way of doing the following: $Rows[] = array(); $currentRow = count($Rows) - 1; $Rows[$currentRow]['test'] = this is a test; Specifically I am

[PHP] Re: Single Quote in String functions

2007-07-12 Thread M. Sokolewicz
Sancar Saran wrote: Hi, I cannot do any operation wiht single quote like explode(',$strContent); Did I miss someting ? Regards Sancar what do you mean by 'cannot do' ? If I do: ?php $string = part1 ' part2; print_r(explode(', $string)); it will return Array( [0] = part1 [1] =

Re: [PHP] acerca de extensiones SQL Server

2007-07-14 Thread M. Sokolewicz
That's assuming he wanted specifically MySQL. The OP's post did not actually state _which_ extension he wants to use, nor to which RDBMS he wants to connect (at all). To the OP: SQL is simply a language, what you want is a database-system which works with that language. There are a lot of good

[PHP] installing php5.2.3 on apache2.2 \w mod_fastcgi

2007-07-16 Thread M. Sokolewicz
Good day, I've been struggling with this problem for quite a while now, I've looked on google, but to no avail, documentation doesn't help me out either. Now, I know this isn't a pure php problem as such, but rather a problem in the cooperation of apache2.2, php and fastcgi. So, here's what

[PHP] Re: installing php5.2.3 on apache2.2 \w mod_fastcgi

2007-07-17 Thread M. Sokolewicz
M. Sokolewicz wrote: Good day, I've been struggling with this problem for quite a while now, I've looked on google, but to no avail, documentation doesn't help me out either. Now, I know this isn't a pure php problem as such, but rather a problem in the cooperation of apache2.2, php

[PHP] Re: If MySQL column/field values are in an PHP array

2007-07-19 Thread M. Sokolewicz
kvigor wrote: I created an array using the following: $in_list = '.join(',',$cen_chiefs).'; //$cen_chiefs is an array $query_cen_chiefs = SELECT * FROM central WHERE CONCAT(strName,' ',strCity,' ',strState) IN({$in_list}); How would I go about adding an AND clause to the above query to

[PHP] Re: Problem compile 5.2.3 souce under SUSE 10.1

2007-07-23 Thread M. Sokolewicz
Jeff Lanzarotta wrote: Hello, I am not sure if this is the right mailing list or not, but here goes... I am attempting to compile php 5.2.3 from source under SUSE 10.1. The compile is fine, it is the 'make test' that is failing... When I run 'make test' I am getting:

[PHP] Re: day in week

2007-07-26 Thread M. Sokolewicz
Christian Hänsel wrote: Good morning fellas, I was wondering if there was a function like is_this_week()... What I have is a statistics table for the last week, from strtotime(Last Monday) to strtotime(Last Sunday)... now I wanna put a different background colour on the rows where the shown

Re: [PHP] No is_date() function?

2007-07-26 Thread M. Sokolewicz
This is top-posting Ken Tozier wrote: On Jul 25, 2007, at 10:37 AM, Edward Kay wrote: PS: Please don't top post on mailing lists. I'm unfamiliar with the term top post. What does it mean? and this is bottom-posting. Generally on mailinglists it's common to bottom-post and not top-post.

[PHP] Re: DOM

2007-07-26 Thread M. Sokolewicz
Man-wai Chang wrote: Does Web 2.0 or maybe 3.0 offer some new input types, say something like a real grid, or maybe a modal child popup? Java is just a specialized DOM... in my opinion. Where did you get this weird idea... JAVA by itself has nothing to do with the web or documents... It's

[PHP] Re: How to get stored procedure return values via PDO?

2007-07-26 Thread M. Sokolewicz
Richard Davey wrote: Hi, I'm calling a MySQL Stored Procedure via PDO (PHP 5.2.3) $stmt = $dbh-prepare('CALL forum_post(?, ?, ?, ?, ?, @status, @thread_id, @message_id)'); At the moment in order to get the values of status, thread_id and message_id I need to issue a second query: $sql =

Re: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-26 Thread M. Sokolewicz
Daniel Brown wrote: On 7/26/07, Daniel Brown [EMAIL PROTECTED] wrote: or am I going retarded again? This has been confirmed. For whatever reason, Gmail isn't showing me the [PHP] mark in the subject for this thread. Perhaps because I'm the OP. /me shrugs. It's not the

Re: [PHP] Hide the real URL

2007-07-26 Thread M. Sokolewicz
Paul Novitski wrote: At 7/26/2007 06:18 AM, elk dolk wrote: I want to hide the real URL to my images by masking it with PHP the code looks like this: $query = SELECT * FROM table; $result=mysql_query($query); while ($row = mysql_fetch_array($result)) { echo img

[PHP] PDO_SQLite Transactions

2007-07-28 Thread M. Sokolewicz
I've been having this problem for a while now, when I use transactions in SQLite with PDO it stalls on me with an error stating my statements are in progress. I've tried closing all cursors to my statements, but that does not seem to resolve this for me. This is my code, (obviously shortened

Re: [PHP] PDO_SQLite Transactions

2007-07-29 Thread M. Sokolewicz
, and then do a single statement, which won't even need a transaction, since any one statement is atomic. Perhaps I'm missing something, but it seems like you've needlessly complicated the DB side of things. On Sat, July 28, 2007 8:57 pm, M. Sokolewicz wrote: I've been having this problem

Re: [PHP] audio recorder

2007-07-30 Thread M. Sokolewicz
Tijnema wrote: On 7/31/07, John Pillion [EMAIL PROTECTED] wrote: Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio

Re: [PHP] if inside an echo.

2007-07-31 Thread M. Sokolewicz
Edward Kay wrote: -Original Message- From: Hulf [mailto:[EMAIL PROTECTED] Sent: 31 July 2007 12:11 To: php-general@lists.php.net Subject: [PHP] if inside an echo. I am outputting a selectbox and want to do the follwoing. How can I add the IF statement inside the the echo? for

[PHP] Re: magic quotes

2007-07-31 Thread M. Sokolewicz
KVIGOR wrote: Never Mind I figured it out. KVIGOR [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If magic quotes is on and I dont have access to the php.ini. Is there any way I can strip quotes from the form field with out using AJAX? I have no idea how you would do it _WITH_

[PHP] Re: PHP list as a blog

2007-07-31 Thread M. Sokolewicz
Michelle Konzack wrote: Sorry for the late fdrop in... Am 2007-07-28 21:31:01, schrieb Børge Holen: On Thursday 14 June 2007 00:41, Philip Thompson wrote: On Jun 13, 2007, at 1:15 PM, Richard Lynch wrote: On Wed, June 13, 2007 12:21 am, Crayon Shin Chan wrote: snip Do students and interns

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-02 Thread M. Sokolewicz
Tijnema wrote: On 8/2/07, Brad Bonkoski [EMAIL PROTECTED] wrote: Dan Shirah wrote: Greetins all, In my form I have an area where the user enters in the payment amount: input type=Text value= size=20 maxlength=16 name=payment_amount This is all fine and dandy and works as generically as it

[PHP] Re: Regular Expression just one step away from what I need....

2007-08-17 Thread M. Sokolewicz
Jay Blanchard wrote: Given the string 'foo''bar''glorp' (all quotes are single quotes)I had hoped to find a regular expression using preg_match that would return an array containing just those words without having to go through additional gyrations, like exploding a string to get an array. I

Re: [PHP] Cookies and sent headers

2007-08-18 Thread M. Sokolewicz
On a sidenote, 99% of the world never calls ob_flush (or any such function) since PHP flushes the buffer automatically at the end of its execution. The reason why setting cookies for you doesn't work is because of the way a HTTP response is structured. It consists of 2 parts: header and body

Re: [PHP] Cookies and sent headers

2007-08-18 Thread M. Sokolewicz
bullshit, what he sees is a warning emitted by PHP, his redirect is done using JavaScript (which is clientside and has no, 0.0 effect on what PHP emits). Now, I'm not going to go into how redirecting that way won't work (or at least shouldn't), but a hint would be to do it properly using

[PHP] Re: PHP eval() fatal error

2007-08-20 Thread M. Sokolewicz
Maarten Balliauw wrote: Here's the thing: I'm trying to do some dynamic code compilation within PHP using eval(). The code I'm trying to compile raises an E_ERROR (Fatal). Here's a simple example: ?php $code = ' $returnValue = 12*A+; '; // Clearly incorrect code :-) $returnValue = 0;

Re: [PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-20 Thread M. Sokolewicz
Chris wrote: John Mendenhall wrote: Is the only valid response to problems with php4 to upgrade to php5? Or, are there still some people out there still using php4 and possibly have had problems with install such as the following? If php5 is the only answer, I guess we'll just have to go with

Re: [PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-21 Thread M. Sokolewicz
Chris wrote: M. Sokolewicz wrote: Chris wrote: John Mendenhall wrote: Is the only valid response to problems with php4 to upgrade to php5? Or, are there still some people out there still using php4 and possibly have had problems with install such as the following? If php5 is the only answer

[PHP] Re: php/mysql - getting ID of query

2007-08-21 Thread M. Sokolewicz
John Pillion wrote: This is as much a mysql question as it is php. What is the most reliable way to retrieve an auto_increment key/id for a query you just inserted? In other words, I compile all my data, insert it into a new row, and now I want to retrieve the ID it created for it in

[PHP] Re: ptting the variable inside the input

2007-08-22 Thread M. Sokolewicz
Hulf wrote: This does not work echo $title=$row['title']; echo trtdinput name=\title\ type=\text\ value=\$title\ //td; Ta, R. With my psychic powers I know it is because on line 20316 of file sdlhfdsbks.php you have a line that looks like bkdlnfblzdfng(); which has a huge typo! It should

Re: [PHP] Re: Announcement: Releasing CORE GRASP for PHP. An open source, dynamic web application protection system.

2007-08-22 Thread M. Sokolewicz
mike wrote: I thing a good FAQ entry would be how this patch fits in with Suhosin and what are the comparable/conflicting concepts, are they compatible with each other etc. http://www.hardened-php.net/suhosin/a_feature_list.html Both systems are liable to appeal to the same sort of people so

[PHP] Re: Table shows even when if () is false

2007-08-22 Thread M. Sokolewicz
I'm pretty sure if(!empty($result_deferred_comments)) { does something else than you think it does. $result_deferred_comments = mssql_query($deferred_comments) or die(mssql_error()); if it fetches any rows it will return a RESOURCE (yes, a resource which is NEVER empty()), if it has 0 rows,

[PHP] Re: Out of Memory error

2007-08-23 Thread M. Sokolewicz
Naz Gassiep wrote: I'm getting out of memory errors in my image handling script, I *think* its because I'm handling images that are too large to fit in memory, but I thought I'd check before just upping the setting to 32mb. It is currently set to 16mb and I am working with a 2048x1536 image.

Re: [PHP] Pragmatically changing a Record Number

2007-08-30 Thread M. Sokolewicz
Stut wrote: Jason Pruim wrote: Hi Everyone, Hi Dr Jason. I think after I get this question answered, I can stop asking for awhile since my project will be done, at least until the users say What happened to XYZ then I'll ask again :) I asked on a MySQL list about Resetting a auto

[PHP] Re: text to HTML

2007-08-31 Thread M. Sokolewicz
Dan wrote: As I know there's no real WYSIWYG text to html converters. Plus this wouldn't do much more than handling paragraphs and new lines. If you're looking for a way to write html from a textbox check out FCKEditor. Sorry I couldn't help much. If you really do have only the limited

[PHP] Re: for loop inside a switch

2007-09-02 Thread M. Sokolewicz
jekillen wrote: On Aug 31, 2007, at 6:26 PM, Robert Cummings wrote: On Fri, 2007-08-31 at 15:56 -0700, Dan wrote: Sanjeev is right. You're thinking about the problem backwards. You're trying to build a Switch inside a loop. Remember, if you ever have to do some operating multiple times

[PHP] Re: Public Announcement

2007-09-10 Thread M. Sokolewicz
1. Who are you? 2. What is this? 3. Why should I care? 4. Don't spam. Sascha Braun - CEO @ Braun Networks wrote: The Spectral Authoring System is able to keep round about 300.000 Document Kategories in one Application. 1.4 Million Screentexts are in use, while still providing fast access. The

Re: [PHP] PHP Installer on Vista

2007-09-12 Thread M. Sokolewicz
Rahul Sitaram Johari wrote: Ave, Is it true that the PHP Installer does not work on Windows Vista? And if it does, it only installs the CGI version? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL

Re: [PHP] Finding next recored in a array

2007-09-17 Thread M. Sokolewicz
Rick Pasotto wrote: On Sun, Sep 16, 2007 at 06:04:45PM -0700, Richard Kurth wrote: Richard Kurth wrote: Rick Pasotto wrote: On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the

Re: [PHP] Finding next recored in a array

2007-09-17 Thread M. Sokolewicz
Richard Kurth wrote: What I am trying to is get all the days from a table where email campaign = number. and then look at the last day that was sent and find it in the list and get the next day that follows that day. At this point the script below is not working. So if you have any Ideas that

Re: [PHP] Empty Array?

2007-10-05 Thread M. Sokolewicz
I'll just put my comments inline for you... Dan Shirah wrote: Okay, gotcha! I changed it to this and it works: ?php $request_id = $_GET['id']; $current_user = substr($_SERVER['AUTH_USER'], 13); You can't trust this info. $lock_query = SELECT id, locked_by_user FROM locked_payments WHERE

Re: [PHP] Reference return buggy notice?

2007-10-19 Thread M. Sokolewicz
Philip Thompson wrote: On 10/19/07, Stut [EMAIL PROTECTED] wrote: Ondra Zizka wrote: Hello, please look at the code bellow and tell if it does not conform to rules of returning a reference from a function. In the first method, I return reference to $sRet variable, and PHP is quiet. But in

[PHP] Re: newbie questions

2007-10-21 Thread M. Sokolewicz
Ravi wrote: Guys, I am fairly new to PHP. Here are a few questions, if anybody can answer it will help me get started. Thanks I am trying to build a website and I would like to do the following in my scripts 1. I want to return response to the browser and AFTERWARDS make a log entry in

[PHP] Re: Different size of file on server and on output

2007-10-22 Thread M. Sokolewicz
Pavel Janda wrote: Hello to everybody, I have this problem with downloading files via PHP. For illustration - I am using this fragment of code: ?php header(Content-type: $contenttype; name=\$outputfilename\); header(Content-disposition: form-data; filename=\$outputfilename\);

[PHP] Re: Regex

2006-08-21 Thread M. Sokolewicz
Nadim Attari wrote: Hello, I have some text in a table... the text contains hyperlinks (but not html coded, i.e. plain Some text...http://www.something.com;) When i retrieve these texts from the table, i want the hyperlinks to become clickable, i.e. a href etc added automatically. Some

[PHP] Re: Why small big?

2006-08-23 Thread M. Sokolewicz
I'm not quite sure, but consider the following: Considering the fact that most JPEG images are stored with some form of compression usually ~75% that would mean the original image, in actual size, is about 1.33x bigger than it appears in filesize. When you make a thumbnail, you limit the

[PHP] Re: cURL and sending an POST with an @ as first char.

2006-08-24 Thread M. Sokolewicz
Mathijs wrote: Mathijs wrote: Hello there, I Have a question about cURL and sending POST data. I have an array with values which are needed for an POST. There is one value which starts with an @. This gives me a error: ErrorNo.: 26, ErrorMsg: 'failed creating formpost data'. This is

[PHP] Re: strip slashes from beginning and end of string in one expression

2006-08-31 Thread M. Sokolewicz
Dave M G wrote: PHP list. This is another regular expression type of question. The very handy PHP function trim() takes excess white space off the beginning and end of a string. I'd like to be able to do the same thing, except instead of white spaces, trim excess slashes: / So for

[PHP] Re: Functions vs html outpuit

2006-09-01 Thread M. Sokolewicz
Dave Goodchild wrote: Hi all, this may seem like a silly question, but I am creating a library of html form element generation function, for example a textarea fucntion that takes rows and cols as parameters, a function that generates a day, month and year select box, etc. My question is - is it

[PHP] Re: Execution time

2006-09-08 Thread M. Sokolewicz
André Medeiros wrote: Hello everyone. This may seem as a silly question, but I went through the documentation and it wasn't explicit on this issue, at least for me. Let's say that I'm on an 128kb/s upload. I need to upload an 100mb file through a POST. PHP has, by default, 90 seconds execution

[PHP] Re: PHP 4 OOP, re-using a object?

2006-09-10 Thread M. Sokolewicz
Micky Hulse wrote: Hi, I am slowly learning how to use classes properly... quick question: # Create the object: $doSplash = new RandomSplash(); // Create the object. Shouldn't I be able to call that object like below, throughout my page: ...HTML... ?php $doSplash-randomize('css'); ?

[PHP] Re: Is there a list of all Timezones as an array or someting?

2006-09-21 Thread M. Sokolewicz
Mathijs van Veluw wrote: Hello there, I need to have a selectbox filled with the available timezones of PHP. We are using v5.1.x, and it supports the date_default_timezone_set() etc.. As value you can give a string to what timezone. I want all these strings within an array or something so i

Re: [PHP] Re: Most stable combination of AMP?

2006-09-21 Thread M. Sokolewicz
Pawel Miroslawski wrote: On 9/20/06, Kae Verens [EMAIL PROTECTED] wrote: James Tu wrote: Hi: I'm trying to setup a dev environment using Apache, MySQL and PHP...to develop an application that will go to production. What is the most stable versions of the AMP components should I can

[PHP] Re: problem with this regex to remove img tag...

2008-03-16 Thread M. Sokolewicz
Ryan A wrote: Hey All, After searching I found this regex to remove img tags from a post, but running it is giving me an error, being a total noob with regex i have no idea what the heck is wrong heres the whole script as its tiny: ?php $html = hello .'img

Re: [PHP] Re: problem with this regex to remove img tag...

2008-03-16 Thread M. Sokolewicz
Jim Lucas wrote: M. Sokolewicz wrote: Ryan A wrote: Hey All, After searching I found this regex to remove img tags from a post, but running it is giving me an error, being a total noob with regex i have no idea what the heck is wrong heres the whole script as its tiny: ?php $html

Re: [PHP] question about customized error

2008-03-21 Thread M. Sokolewicz
Jim Lucas wrote: Sudhakar wrote: if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would like to display a customized page

[PHP] Re: putting variables in a variable

2008-03-28 Thread M. Sokolewicz
Hulf wrote: Hi, I am making and HTML email. I have 3 images to put in. Currently I have $body .= table tr tdimg src=\image1.jpg\/td /tr tr td/td /tr /table ; ideally I would like to have $myimage1 = image1.jpg; $myimage2 = image2.jpg; $myimage3 = image3.jpg; and put them

Re: [PHP] convert associative array to ordinary array

2008-03-28 Thread M. Sokolewicz
Daniel Brown wrote: On Fri, Mar 28, 2008 at 2:27 PM, It Maq [EMAIL PROTECTED] wrote: Hi, i have an associative array and i want to use it as an ordinary array, is that possible? what i mean is instead of $arr['fruit'] i want to call it by its position in the array $arr[3] Did you

Re: [PHP] Cannot modify header information - headers already sentby ...

2008-04-21 Thread M. Sokolewicz
Jim Lucas wrote: Waynn Lue wrote: Actually, I think I fixed it by moving the style sheets below the instantiation of the facebook client, where I *think* set_user was being called. I'm still curious if it's possible to get stack trace information on errors, though. :) You are probably

[PHP] Re: how to use passthru ()

2008-04-24 Thread M. Sokolewicz
J. Manuel Velasco - UBILIBET wrote: Hello, I have two perl scripts that runs fine in the shell. But when I build a page with them, only in one case the results are shown in the other case i see a blank page. I have done different test and I don't understand this issue. I don't know what i

[PHP] Re: adding the results of mysql_query

2008-05-06 Thread M. Sokolewicz
It Maq wrote: Hi, I need to add the result of 4 calls to mysql_query (4 different queries) to the same object so that i can mysql_fetch_object in the same loop. Is that possible? otherwise is there any other alternative? Thank you

[PHP] Re: euro currency convert

2008-05-17 Thread M. Sokolewicz
Yui Hiroaki wrote: hi! Does anyone know how to convert euro ? For example; French to German, Italy to French currency so on. Regards, Yi\ui I must be missing something, but the French Euro is the exact same currency as the German Euro, as is the Italian euro. There is nothing to

Re: [PHP] Re: HTML 5

2008-06-12 Thread M. Sokolewicz
Nathan Nobbe wrote: On Thu, Jun 12, 2008 at 7:37 AM, Colin Guthrie [EMAIL PROTECTED] wrote: Pavel wrote: В сообщении от Thursday 12 June 2008 16:43:59 Richard Heyes написал(а): This may be of interest (HTML 5 diffences to HTML 4 overview): what about xHTML? html died few years ago and i

[PHP] Re: why are passwords stored encrypted in databases even when the datathey protect is stored in the same database?

2008-06-13 Thread M. Sokolewicz
Dietrich Bollmann wrote: Hi, As far as I remember, in all books I read about PHP and SQL, the password was stored in an encrypted form, even when all the data which should be protected by the password was stored in the same database. Can anybody tell me what is the motivation behind this

[PHP] Re: why are passwords stored encrypted in databases even when thedatathey protect is stored in the same database?

2008-06-13 Thread M. Sokolewicz
Dietrich Bollmann wrote: Hi tul, So this was a very long and informative answer :) Thank you very much! On Fri, 2008-06-13 at 12:02 +0200, M. Sokolewicz wrote: [...] However, people usually write code which may (and will most of the time) containt exploitable sections which might give

Re: [PHP] How to check if $string contains Hebrew characters?

2008-06-25 Thread M. Sokolewicz
or do the same but with strtr() Will Fitch wrote: If your goal is to eventually convert Hebrew chars to something else, you could just use str_replace or stri_replace and have each Hebrew char as an array element, replaced by another array element as a match. Example in English:

[PHP] Re: No Database Connection possible (mySQL)

2008-07-04 Thread M. Sokolewicz
David Robley wrote: Aviation Coding wrote: Hi all, I am having problems with a connection to a mysql database. I am using function con() { mysql_connect(localhost,user,pass) or die(mysql_error()); mysql_select_db(tava) or die(mysql_error()); } Now, when I call the _function_ (!)

[PHP] Re: rfc822_write_address() / CVE-2008-2829 problem

2008-07-07 Thread M. Sokolewicz
Matt Graham wrote: Hello, list. A few days ago, a security scan said that our machines that were running PHP had potential vulnerability CVE-2008-2829 , a buffer overflow in rfc822_write_address(). Discussions about this are relatively easy to find with Google, but check out

[PHP] Re: rfc822_write_address() / CVE-2008-2829 problem

2008-07-07 Thread M. Sokolewicz
Matt Graham wrote: From: M. Sokolewicz [EMAIL PROTECTED] Matt Graham wrote: PHP had potential vulnerability CVE-2008-2829 http://bugs.php.net/bug.php?id=42862 for a reasonable discussion and an (unofficial) patch. I'm just curious as to what other PHP users are doing about the problem, since

Re: [PHP] Relocating and POSTing

2008-07-10 Thread M. Sokolewicz
Shawn McKenzie wrote: Daniel Brown wrote: On Thu, Jul 10, 2008 at 2:32 PM, Richard Heyes [EMAIL PROTECTED] wrote: 1. Use the query string. Eg header('Location: http://www.xxx.com?name=valuename2=value2'); That's GET, not POST, as the subject requests. ;-P 2. Use sessions

[PHP] Re: PHP documentation parsing?

2008-07-18 Thread M. Sokolewicz
Christian A. Reiter wrote: As you maybe know, the program kdevelop under Linux has a built in documentation browser which uses the online php documentation which was on the homepage of the Minnesota university. Since this homepage isn't available any more the documentation is broken. I tried

[PHP] Re: buffering headers before send

2005-05-07 Thread M. Sokolewicz
Claudio wrote: Hi, is there a way to buffering headers before sending like ob_start() ? Thanks, Claudio ob_start buffers both `normal` output AND headers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reducing size of htm output

2005-05-07 Thread M. Sokolewicz
Rory Browne wrote: First of all as Rasmus said, this 'compression' is barely(if at all) going to make a difference, after your pages have been compressed wth gzip, There are two reasons for this: 1 compression techniques detect repeated strings(such as spaces or newlines), and replaces them with

  1   2   3   4   5   >