Re: [PHP] Regular Expressions

2004-07-15 Thread Matt M.
> Obviously the new-line is missed. Any thoughts on this? > > sample code: > ereg("Last Name:\s*(.*)\n", $strInput, $regs) > echo $regs[1]; try this: ereg("Last Name:\s*(.*[^\n])", $strInput, $regs); echo $regs[1]; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] File locking in PHP???

2004-07-15 Thread Matt M.
> Hi! I saw the php function flock(), since I never used it before so I > thought I would ask you folks a couple of questions. did you read all of the user comments on http://us2.php.net/flock There is a bunch of good info in there -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Checking for character absence with regular expressions

2004-07-16 Thread Matt M.
> I need to check that the substring " R" (that's a space followed by an > uppercase R) is not contained within my haystack. Just one way to do it: $strings[] = 'Blah Blah R 99.99'; $strings[] = 'Blah Blah R99.99'; $strings[] = 'Blah Blah 99.99CR'; foreach($strings as $value) { if (preg_match('/

Re: [PHP] Putting $_POST into string to send to ASP

2004-07-16 Thread Matt M.
> How do I gather up all the variables in $_POST and attach them as a > string after the question mark? Thanks. this is untested: $arr = array(); foreach($_POST as $key => $value) { $arr[] = $key.'='.urlencode($value); } $URL = "https://example.com/script.asp?".implode('&',$arr); header

Re: [PHP] Populating a Dropdown Menu From a Query

2004-07-16 Thread Matt M.
> I have a form where one option is a dropdown menu. I'd like that menu to > only have items in it that are actually available. Selecting the items with > a query is easy enough but I wondered if anyone could tell me where to start > wit the code. I dont know what kind of db so I will just use mys

Re: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Matt M.
> Thanks for the helpful examples. One other question. Is there an > advantage to sending the URL via a header as opposed to doing http_post > like this? > http://shiflett.org/hacks/php/http_post > Jeff Like someone mentioned earlier. URL's have length limits. That would be one reason to do a po

Re: [PHP] quotes in text.

2004-07-16 Thread Matt M.
> Ok then, I want to know how to do it the right way but just using > $_POST['text'], as stated before, in my query still cuts off the text at > the quote. > > While passing this field between pages I don't do anything to it but when > I want to show it to the user I would use stripslashes($_POST[

Re: [PHP] Importing Excel data using PHP

2004-07-19 Thread Matt M.
> Anyway to do it using PHP? Com objects or use perl http://search.cpan.org/~kwitknr/Spreadsheet-ParseExcel-0.2603/ParseExcel.pm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Money format

2004-07-20 Thread Matt M.
> Hi to all, > is there any function wich can format a "double" or "string" into "money > format".for example: 1526789,99 to 1.526.789,99 or something like that.? > Regards Lukas > You could try http://us2.php.net/manual/en/function.money-format.php or http://us2.php.net/manual/en/function.numbe

Re: [PHP] Problem of a beginner with Array

2004-07-20 Thread Matt M.
> Now, I want to know which numbers have been checked by the player. > I have a : > "input name="Grid1" type="checkbox" > for the first grid. Grid2 for the grid #2... if the user checks any Grid1[] boxes then $_POST['Grid1'] will be an array and so on. -- PHP General Mailing List (http://www.

Re: [PHP] textarea/display question...

2004-07-20 Thread Matt M.
> ps.. to you guys who said that the doesn't have a value=''.. it > does... Where did you find this out? I was pretty sure that is did not have the value attribute. http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/textarea.asp http://www.w3.org/TR/REC-html40/interact/forms.htm

Re: [PHP] file_exists() to search for *.xml file with a wild card???

2004-07-20 Thread Matt M.
> I would like to use the file_exists() or something similar to check for the > existance of any of the xml files regardless of what filename it use. Like > file_exist("*.xml") for example. Anyone know?? http://us3.php.net/readdir -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] htmlArea look-a-like

2004-07-21 Thread Matt M.
> I am developing an app in which my visitors must be able to enter text and > do some minimal HTML formatting including making some of the text > hyperlinks. I like the looks of htmlArea, but can't get either available > version to work in any Mac browsers. I've also found EditLive! and am > intri

Re: [PHP] Problem of a beginner with Array

2004-07-21 Thread Matt M.
> I would prefer to have if possible: > input name="Grid1[]" type"checkbox" //1st grid, 1st > checkbox > input name="Grid1[]" type"checkbox" //1st grid, 2nd > checkbox... > > That's what Matt M proposed. > If I do: echo $_P

Re: [PHP] URL

2004-07-21 Thread Matt M.
d about it http://marc.theaimsgroup.com/?l=php-general&m=109000692120133&w=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Coding Advice

2004-07-21 Thread Matt M.
> I am writing an app and right now im working on code that will display x > number of items on one page, and if there is overflow, provide a link to > the next. The url coming into the page looks something like: > > projects.php?action=view&completed=no&start=0 > > My code so far, i just took t

Re: [PHP] how to use session?

2004-07-21 Thread Matt M.
> If I don't want to use session cookie , how to set it? > thanks. ini_set('session.use_cookies','0'); before all of your session_start() calls. or set it in the php.ini, .htaccess or httpd.conf file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Matt M.
what do you get when you print_r($_SESSION) ? try session_write_close() at the end of your scripts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] run perl script with php

2004-07-22 Thread Matt M.
> I never tried but i think it is possible using the pecl extension: > > http://pecl.php.net/package/perl Here is a short tutorial http://www.zend.com/php5/articles/php5-perl.php?print=1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Alternative to file_exists()???

2004-07-22 Thread Matt M.
> I have decided to look for an alternative to file_exists() because it is > taking too long. Is fopen() a good alternative or what? maybe stat() http://us4.php.net/manual/en/function.stat.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mutiple copies of php with windows iis6

2004-07-22 Thread Matt M.
> If anyone knows how to setup IIS6 to allow the same .php extension to be used > with dedicated copies of php.exe + ini files I would really appreciate the > assistance. Maybe some clue I am missing about the behavior of the web extensions > manager or a method of defeating it? Have you tried a

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

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 head

[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: Now, I'd like to catch the error made by eval: // ... try { eval($code); } catch (Exception

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 th

[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 ""; 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 be bkdlnfblzdfnsdfdsfg(); instead! Ok, seriously n

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 i

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

[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. I

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 i

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

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

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

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 n

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: You can't trust this info. $lock_query = "SELECT id, locked_by_user FROM locked_payments WHERE id = '$request_id'"; WARNING :: SQL INJECTION :: WARNING $lock_result = mssql_quer

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 i

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

[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: The problem is, that the file on server has 16857 bytes and saved file has 16858. In another case downloaded file has everytime 1 byte more than

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

[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

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

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

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.= 'http://www.zoneofsuccessclub.com'">link '; Try

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: http://www.ma

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

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? checkWWW();

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 = file_get_contents($_FILES['

[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: '. " Paul! "; $html = preg_replace('\s]+))?)+\s*|\s*)/?

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

[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 .=" "; ideally I would like to have $myimage1 = "image1.jpg"; $myimage2 = "image2.jpg"; $myimage3 = "image3.jpg"; and put them into the HTML body variable. I have tried es

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 lookin

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

[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] Can I install a newer version of php over an older version

2008-05-14 Thread Tony M
uninstall the php-5.2.5-win32-installer.msi version first. TIA Tony M

[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 convert;

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 approa

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

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

[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(): suppli

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 lo

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

[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: $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 the inode, modification time and f

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

2007-06-23 Thread M. Sokolewicz
ochem 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: this is what I thought - actually I originally used dechex() - which gave the same output as sprint

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

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 Gener

[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 %squid,test,test1 in to another array.. could you help me to find the solution? Thanks, Siva What does your array look like _exactly_? ie. var_dump style output. Is it: array( array('s

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

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

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

2007-07-08 Thread M. Sokolewicz
, this does not mean 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

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

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 f

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 won

[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: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 o

[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

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

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

[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 = "SE

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 o

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 ""; } if you look at the source i

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

Re: [PHP] PDO_SQLite Transactions

2007-07-29 Thread M. Sokolewicz
error checking before you even bother to insert, 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,

<    2   3   4   5   6   7   8   9   10   11   >