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 r

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 ($v

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

[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: Do students and interns still

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: This is all fine and dandy and works as generically as it can. BUT, the problem is that I need to make sure the user didn

[PHP] Re: how can I decode such a string ?

2006-06-27 Thread M. Sokolewicz
Al wrote: nicolas figaro wrote: Hi, I'd like to convert a string generated by a mail client like the following one : "test nf =?ISO-8859-15?Q?=E9_123456789012?=" back to the original one "test nf é 123456789012". Is there a (simple) way to do this ? thanks N F Yes, with a regex expre

Re: [PHP] running multiple updates on a single line

2006-07-04 Thread M. Sokolewicz
Ryan A wrote: --- Chris <[EMAIL PROTECTED]> wrote: Ryan A wrote: Hi, in phpmyadmin, in the SQL part where you can write a query if I have a double update such as this: it works without a problem as I am ending each sql statement with a simicolon, but in my scripts when I try to ru

Re: [PHP] php_mysql.dll

2006-07-10 Thread M. Sokolewicz
although not specifically mentioned anywhere, make sure that your libmysql.dll file is *also* in the PATH of windows. If PHP misses that lib, it will bail out with the error below aswell. - tul Bagus Nugroho wrote: if windows, you may add php directory to the PATH of Windows [Environment Var

[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. "Some text...href="http://www.somethin

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

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

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

[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... randomize('css'); ?> ...HTML... randomize('x

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

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: .DAT file with PHP

2006-03-08 Thread M. Sokolewicz
Barry wrote: Jabez wrote: I want to use PHP to show the contents of the DAT from back to front. HOw do I do that? Thanks! Put it into an array and sort it backwards with krsort() Greets Barry why use such an cpu-intensive function? using array_reverse is a lot faster... - tul

Re: [PHP] .DAT file with PHP

2006-03-08 Thread M. Sokolewicz
Jabez Gan wrote: Sorry im new but, how do we read from a file to an array? I've studied C but not with PHP and it's not working for me... Suggestions? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 9:58 PM To: [EMAIL PROTECTED];

Re: [PHP] array_search and multi-dimensional arrays

2006-03-14 Thread M. Sokolewicz
List Manager wrote: jonathan wrote: I'd like to return the first key value in the following array such that England would return 1 rather than 3 which is the second key value. Any help would be greatly appreciated. $c[1][]="Vietnam"; $c[1][]="China"; $c[1][]="Thailand"; $c[1][]="England";

[PHP] Re: Fatal error: Call to undefined function preg_match()

2006-03-20 Thread M. Sokolewicz
Barry wrote: Evert wrote: Hi all! Recently I am getting the following error on some of my PHP-enabled websites. I think it started when I went from PHP4 -> PHP5. Here is an example (from http://wos.poboxes.info/) : Fatal error: Call to undefined function preg_match() in /var/www/wos.pobo

Re: [PHP] private $foo

2006-03-28 Thread M. Sokolewicz
Anthony Ettinger wrote: On 3/28/06, Joe Henry <[EMAIL PROTECTED]> wrote: On Tuesday 28 March 2006 1:12 pm, Jochem Maas wrote: {$k})) { return $this->{$k}; } throw new Exception("non existing property!"); } function __set($k, $v)

[PHP] Re: Array Question

2006-03-29 Thread M. Sokolewicz
cybermalandro cybermalandro wrote: So, I have an array that looks like this rray(3) { [0]=> array(8) { ["line"]=> string(1) "1" ["ponbr"]=> string(5) "34474" ["emt"]=> string(3) "yes" ["qty"]=> string(1) "5" ["price"]=> string(2) "19" ["shipdate"

[PHP] Re: Php Script Stumped!

2006-04-06 Thread M. Sokolewicz
o "human-readable" format. If you want to adjust it to your time, simply add your GMT offset to it, making: gmdate('d-m-Y', time()+(10*60*60)); This adds 10 hours (10 hours x 60 min x 60 seconds) to your "base" GMT timestamp, and then formats it. Not sure how big t

Re: [PHP] Best way to start a CRON

2006-04-20 Thread M. Sokolewicz
Actually, you can even use less "code" to do exactly the same thing (since you can EITHER make an excutable file with the shebang, which you start doing, but never actually do, OR call php to just read the file and execute the code inside it, which you in the end do). Basically, either: #!/usr

[PHP] Re: SQL result

2006-04-20 Thread M. Sokolewicz
Mohsen Pahlevanzadeh wrote: Dear all, I remember that i use a func that it return an array what it consist of result of my sql query. Please name me that. Yours,Mohsen it's called "RTFM" glad to be of help, - tul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] unexpected T_NEW on object property

2006-04-21 Thread M. Sokolewicz
Jochem Maas wrote: Paul Barry wrote: .. Then I have another class: this is wrong. you can define the property in the class with a constant or scalar value (i.e. literal string, numeric value or an array) but not a return value of a function or a 'new' object. just to nag, an array is not

Re: [PHP] Using Header() to pass information...

2006-04-22 Thread M. Sokolewicz
Jochem Maas wrote: Todd Cary wrote: If I use if ($send) header("location: mypage.php?message=" . $message); the data ($message) is passed in the URL. Is there a way to pass the data as though it was a POST method i.e. not in the URL? probably, but I don't know how off the top of m

[PHP] Re: Booleans in lowercase or uppercase

2006-04-24 Thread M. Sokolewicz
Jesper Forsberg wrote: Hello, I've seen the usage of both TRUE, true, FALSE and false all over the php.net site. Yet, there does not seem to be a clear distinction between the uppercase and lowercase variants. Will it make any difference if i use lowercase or uppercase? I would be thankful if s

Re: [PHP] causing HTTP error status

2006-05-05 Thread M. Sokolewicz
Nic wrote: Hi Rabin "Rabin Vincent" <[EMAIL PROTECTED]> writes: On 5/5/06, Nic <[EMAIL PROTECTED]> wrote: But /mydir/some.php doing: header("HTTP/1.1 404 Rubbish!!!") _never_ causes the error document to be picked up. That's right. Apache's not going to take action based on the heade

Re: [PHP] Quotation marks considered harmful

2006-05-05 Thread M. Sokolewicz
thank god PHP doesn't have qq// and q//, it's one of the few things I can't stand in Perl (along with the 100 different ways of calling the same variable (@var, $var, %var, etc.). Just use a standard delimiter with standard, normal, quotes. It's really not that hard. Anthony Ettinger wrote:

[PHP] Re: To Capture HTTP Headers

2006-05-10 Thread M. Sokolewicz
Kaushal Shriyan wrote: I have put the below in test.php I am getting the below information which is not formatted [snip] ...[/snip] Actually If I run my test.cgi file I get well formatted one and also If you can see from the output HTTP_USERNAME nick="amit",Master="0",acct_no_hash="1B2M2

[PHP] Re: PHP daemons

2006-05-16 Thread M. Sokolewicz
Well, by looking into my cristal ball I think your problem lies at line 12 of file x.php for sure!! It's probably the I_have_not_seen_any_code_at_all("so I can't tell you anything about it") function there. goodluck! - tul Martin Marques wrote: I've been using PHP for a while with a daemon I

[PHP] Re: Including Functions; one file or many?

2006-05-26 Thread M. Sokolewicz
Mark Kelly wrote: Hi I'm writing a set of db abstraction functions for an internal app which will give us a set of simple function calls for dealing with the db, like $result = db_AddEmployee($EmployeeData); $EmployeeData = db_GetEmployee($EmployeeID); etc. There will be quite a few funct

[PHP] Re: Why does this preg_replace function not work?

2006-05-26 Thread M. Sokolewicz
Dave M G wrote: PHP List, In the code below, I want to take the text within $content, and change every instance of [h3] into , and every instance of [/h3] into . And then do the same for [em], [/em], [strong], and so on. However, this code does absolutely nothing to the text stored in

[PHP] Re: Column 'movie_type_id' in order clause is ambiguous

2006-05-28 Thread M. Sokolewicz
What part of "This is a PHP list" and "This is not a mysql list" do you not understand? *TRY A MYSQL MAILINGLIST, or RTFM (mysql manual in this case)* Mark Sargent wrote: Hi All, I get this, Column 'movie_type_id' in order clause is ambiguous for this code, $query = "SELECT movie.movie_name

[PHP] Re: More about converting text strings

2006-05-30 Thread M. Sokolewicz
Are you sure you're not including the BOM? (byte-order-mark) If you are, PHP doesn't understand it, and thus just outputs it. Thus creating output, thus creating problems with headers for you. (so don't use BOM) - tul Jonas Rosling wrote: While I'm using UTF-8 as char set in my documents Ja

[PHP] Re: SSL support for pgsql module in Windows binary distribution

2006-06-07 Thread M. Sokolewicz
Peter Kuma wrote: Hi Is there any reason why SSL support for pgsql module is disabled by default in binary distribution for Windows (PHP 5.1.4 zip package)? I thing it'd be very useful if this feauture were compiled in. I sent this question to php-windows a few days ago with no response. Regard

[PHP] Re: Equivelant to mysql_fetch_row for normal array

2006-06-22 Thread M. Sokolewicz
Dave M G wrote: PHP List, Very frequently I use mysql_fetch_row in a while statement to while($variable = mysql_fetch_row($mysqlResult)){ echo $variable[text1]; echo $variable[text2]; } Pretty standard. But what do I do when I want to do the same kind of while loop not with a MySQL result

Re: [PHP] Extracting XMP tags from pictures

2006-06-24 Thread M. Sokolewicz
tedd wrote: At 1:44 PM +1000 6/24/06, chris smith wrote: This link: http://www.photography-on-the.net/ee/beta/cs_xmp_to_exif.php was on this page: http://www.php.net/manual/en/function.exif-read-data.php The manual usually has something useful. I continue to be amazed by the amount of info

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

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

[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 http://bugs.php.n

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

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=value&name2=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: COM objects

2004-01-27 Thread pete M
I personally abandoned using any com object a few months ago as maintaining and identifying similar problems took mmore time that writing effective code to make the system steady... C C wrote: Hi, I am running PHP 4.3.4 on Windows 2000 server with Apache 2.0.48. I am using COM objects in some o

[PHP] My PHP file is not parsed

2004-02-02 Thread Reem M.
I have installed Apache 2.0.43 (win32) on my XP machine, together with PHP 4.2.3. I have configured the server to recognise PHP, local directories etc. Apache starts - no errors, and will accept PHP documents from my browser. But when I run my PHP pages, php is not parsed. I've put syntax erro

[PHP] Re: array data

2004-02-11 Thread pete M
Think this is what u want Imran Asghar wrote: Hi, Is not working, is it correct way File1.php $v { ?> File2.php echo $colors[1]; echo $colors[2]; echo $colors[4]; ?> imee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] preg guru question

2004-02-13 Thread pete M
Im trying to scan a file and lift the image name from the ie where there could be ' or " I messed around but am 2 embarassed to post code cos it dont work ;-( thanks in advance pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] regular expressions

2004-02-17 Thread pete M
Getting completely confused how this stuff works !!! Anyone recommend a book for a regex newbie ? pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: DCOM , PHP on Linux

2004-02-18 Thread pete M
Which EntireX pete onrad Strydom wrote: Hi there guys, We have a PHP application on a remote linux machine that needs to interoperate with a COM based interface on a windows machine. If both where on the same win32 machine things would have been easy , but unfortunately they aren't. What are

Re: [PHP] Finding orphan functions

2004-02-18 Thread pete M
Wicked - that's the best tip I've seen for a long time... TA Gareth Williams wrote: Well if you are a unix/linux/os x user, drop to the command line, go to the directory with all the php files, and type in: grep php or if your php files are scattered around a load of sub-directories, then go

[PHP] Re: sending reply, the continuing

2004-02-20 Thread pete M
Does this mean the end of the script termination does NOT need to be sent back to the browser ? This smacks of something I needed recentyle with sending reports The way I got around it was to Create a flatfile database table with the job entries in it Create a crontab that executed and cheked

[PHP] preg guru again.....

2004-02-23 Thread pete M
Am trying to do a strange thing with php.. Extract the urls from the Internet Explorer index.dat history files (dont ask why!) Here is a snippet ð­ :2002020720020208:[EMAIL PROTECTED]://www.lyricsworld.com/cgi-bin/search.cgi?q=Bruce +Springsteen&m=phrase&ps=20&o=0&wm=wrd&ul=

[PHP] Re: Can anyone tell me why this code doesn't insert anything?

2004-02-23 Thread pete M
Brian Dunning wrote: This inserts nothing into the database, but returns no error that I can see. How come? What's wrong with it? $dbname = "my_database"; $dbconnection = mysql_connect("mysql05.powweb.com","my_user","my_pass"); mysql_select_db($dbname, $dbconnection); $query = "INSERT INTO invoi

[PHP] preg_guru

2004-02-23 Thread pete M
I'm trying to group matches.. the string is (all one line) :2002020720020208: [EMAIL PROTECTED]://www.azlyrics.com __ continued... /s/springsteen.html?dsd=sadsa&etc=tec here the first bit I'm trying to match :2002020720020208: preg_match("(:[0-9]{16}:)", $contents, $match); and then the default@ w

[PHP] Re: Sessions and PHP

2004-03-31 Thread pete M
THis does the same http://0x00.org/php/phpApplication/ pete Patrik Fomin wrote: Hi,, is there anyway to get the number of people connected to the site? in asp you just use Application and session_terminate to accomplish this is there anyway to do this in PHP ? regards patrick -- PHP General Ma

[PHP] Re: Executing PHP shell script in PHP

2004-04-06 Thread pete M
Brent Clark wrote: Hi Does anyone know of how to execute a php shell script in a php file. Kind Regards Brent Clark assuming *nix php myscript.php or stick at the beginning of the file #!/bin/php and then run ./myscript.php hope it helps pete -- PHP General Mailing List (http://www.php.net

RE: [PHP] smarty

2004-04-08 Thread Antonio M
You need people like me so you can point your fingers and say "hey theres the bad guy!" So what does that make you? Good guys? Don't kid yourselves. You're no better than me. You just know how to hide -- and how to lie. Me I don't have that problem..Me I always tell the truth--even when I lie.

[PHP] Re: Convert an array in an object instance

2004-10-25 Thread M. Sokolewicz
Francisco M. Marzoa Alonso wrote: Hi, Is it possible to convert an array in an object instance? I can convert an object in an array as follows: $Test = new MyClass (); $TestArray = (array) $Test; Then I've an array with all members of the object $Test, but it seems that I cannot simp

Re: [PHP] Substr

2004-10-25 Thread M. Sokolewicz
split() uses the POSIX regular expressions engine, and thus also uses regular expressions. The loading of this engine is a massive overhead when dealing with simple splitting of a string. To do basic things like this it's a lot faster to use explode(). - Tul Francisco M. Marzoa Alonso

[PHP] Re: Php files with .html extension?

2004-10-25 Thread M. Sokolewicz
Phpu wrote: Hi, How can i do a php script with a html extensionsuch as http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html Thanks when using eg. apache, you can add a .htaccess file with the following line: AddType application/x-httpd-php .html That will overwrite the "normal" w

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Matt M.
> How can i do a php script with a html extensionsuch as > http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html > apache could do this a couple ways http://httpd.apache.org/docs/mod/mod_mime.html#addhandler http://httpd.apache.org/docs-2.0/mod/core.html#setinputfilter http://h

Re: [PHP] PHP + Javascript, immediate database update

2004-10-27 Thread Matt M.
> I have a webform which my users are expecting to act like a Windows program, > they only need to check the box and it is automatically written to the > database. you could try this http://developer.apple.com/internet/webcontent/iframe.html or this http://jibbering.com/2002/4/httprequest.html

[PHP] Re: php mail help

2004-10-28 Thread M. Sokolewicz
*cough*quotes*cough* Patrick E Phillips wrote: I have php installed on my PC as well as an apache webserver and mysql. I am using cox.net as my cable internet provider. They block port 25 but I do not know if that affects what I am trying to do... which is: use the mail() function to send email for

Re: [PHP] PHP and send XML

2004-10-28 Thread Matt M.
> I'm trying to pass XML file from Site A to Site B for Site B to parse. > Site B is maintained by other company, so I only need to worry about sending > over the XML file. I've been hinted that fsockopen() can do the job. if you have to do this I would suggest giving pear a try, no need to reinv

[PHP] Re: Require_once(_)...when does it reset?

2004-10-28 Thread M. Sokolewicz
Greg Beaver wrote: Mike wrote: I am playing with PEAR_Info on my server. It was working fine, then I upgraded some classes, now it is not. I think it is because PHP is holding on to the old code from some require_once functions. I may be totally wrong but that is all I can think of what would cause

[PHP] Re: Review: Function that measures the width of a text string in pixels.

2004-10-28 Thread M. Sokolewicz
Jacob Friis wrote: I have created a function that will measure the width of a text string in pixels. It works ok. If you have optimizations, please let me know. Thanks, Jacob function txt_width ($txt) { $width = 0; $txt_len = strlen($txt); for ($n = 1; $n <= $txt_len; $n++) {

Re: [PHP] exec() or system() to run *.exe and let php continue with code

2004-10-29 Thread Matt M.
> Hi all im new to PHP and im trying to let a process (*.exe file) to run in > background(localhost) and let php continue processing the script. But PHP > always stops and wait for the (*.exe) stops/close! > > Anyone here can help me by giving me an simply example to let PHP run the > exe file and

Re: [PHP] Friday afternoon - being thick

2004-10-29 Thread Matt M.
> I've got some text that contains carriage returns, which are not . > what tag do I need to use to display the text with the carriage returns? > Can't even remember whether it's html or php. html, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] MultiSelect List Box in PHP

2004-10-31 Thread M. Sokolewicz
-[ input.html ]-- one two three -[]-- -[ input.php ]-- -[]-- -[ output ]-- Array ( [select] => Array ( [0] => 1 [1] => 2 ) [

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread M. Sokolewicz
Brian T. Allen wrote: Chris Shiflett wrote: --- "Brian T. Allen" <[EMAIL PROTECTED]> wrote: Well, in fairness, it's one of the worst ideas you've ever heard because you know of this limitation. Of course. That wasn't a dig at you or anything - just a comment. You're free to heed or ignore it

Re: [PHP] PHP Working With Excel File ?

2004-11-01 Thread Matt M.
> Can PHP work with Excel files as database ? > If not, how can I conver it to MySQL format and > reconvert it to Excel 'coz I need it to report it > in Excel format, if you are on windows you could use a com object. if you have access to perl, you could use http://search.cpan.org/~kwitknr/Sprea

[PHP] Re: mailparse or imap* ?

2004-11-03 Thread M. Sokolewicz
Per Jessen wrote: Per Jessen wrote: I need functions to parse an email and I've been using mailparse sofar. Works pretty well, except it has a couple of shortcomings - will only retrieve last of the Received:-headers, does not decode quoted-printable body-parts, does not decode RFC2047-encoded fi

Re: [PHP] what am i doing wrong..??

2004-11-04 Thread M. Sokolewicz
well ofcourse it "keeps the get variables" as you put it. PHP_SELF is the path and arguments that php was called with. use phpinfo(); to find out which variables hold the real path, make sure to add some random "get variables" when calling that script so you see the difference Jack Van Zanen wr

[PHP] Re: settin mine type while saving files

2004-11-04 Thread M. Sokolewicz
Merlin wrote: Hi there, I am creating pdf files inside my application and do save them to the server file system. Now I have sent some of the emails by the system via email and found that the mine type is not set. So the pdf file apears in the attachement, but one has to select the application f

[PHP] Re: Syntax highlighting of odd language

2004-11-05 Thread M. Sokolewicz
Aaron Gould wrote: Could any of you privide some leads in regard to highlighting syntax of an odd language? I have a large amount of snippits of legacy code from our company's primary application. The code used is "BBx" (a variant of Basic). I'm attempting to show this code on a web page, but

Re: [PHP] Syntax highlighting of odd language

2004-11-05 Thread M. Sokolewicz
Aaron Gould wrote: Bruno B B Magalhães wrote: $code = 'function what() { do oddname; %oddsyntax }'; function highlight_code($code) { $oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3'); for($i = 0; $i <= count($oddsyntax)-1; $i++) { $highlighted_code = eregi_replace($o

[PHP] Re: keywords generation

2004-11-05 Thread M. Sokolewicz
Bruno b b magalhães wrote: Hi People, well, I am building a very sophisticated(?) CMS, and I am thinking to implement a keyword automatically generation function... I thought on the following structure: == $submited_text = 'Lorem ipsum dolor sit amet, consectetuer adipiscing eli

[PHP] Re: Initializing variables

2004-11-05 Thread M. Sokolewicz
Stuart Felenstein wrote: I'm reading PHP security paper by Chris Shiflett. Trying to figure out what is meant by first initializing a variable. Now, just for the record, I'm not completely dumb. I know you can start with a $var = 2 What I want to know is if the variable assignment is unknown,

Re: [PHP] Re: keywords generation

2004-11-05 Thread M. Sokolewicz
it] => 0 > [present] => 0 > [lupttum] => 0 > [zzril] => 1 > [delenit] => 1 > [ugue] => 1 > [duis] => 1 > [te] => 4 > [fcilisi] => 0 > ) > > Which is the word and it total occurren

[PHP] Re: Questions about mysql_real_escape_string and addslashes

2004-11-06 Thread M. Sokolewicz
Stuart Felenstein wrote: First I'm a bit unsure , because in the manual it states that you must use mysql_real_escape_string on binary data. So first question, what constitutues binary data, a file or just an integer? any data that might contain a null-byte (\0) is usually seen as the definition

[PHP] Re: image uploads - part 2

2004-11-06 Thread M. Sokolewicz
Jaskirat Singh wrote: Thanks Robby Russell, Jason Wong , Greg Donald, raditha dissanayak and every one else who answered part 1 of my email concerning image uploads. It was about where to store images uploaded by website users and question was database vs filesystem and dedicated vs shared hosting

Re: Re: [PHP] Problem with fopen(...) -

2004-11-06 Thread P M
Well, since I'm using the latest version of the PHP plugin, it can't be that I'm using the $_FILES variable ($HTTP_POST_FILES is for older versions of php as far as I know). Nevertheless, I tried it.. and it didn't work. To clarify my problem.. I'm using a form to get a file name and some other

Re: [PHP] images doesn't seem to cache

2004-11-06 Thread M. Sokolewicz
Anders Thoresson wrote: This code seems to work. Have I got it right? No. I have not. Sometimes the images are viewed from the cache, just to get downloaded from the server again next time, just a minute later, when I try again. My local development server is running IIS, my production serve

Re: [PHP] Recover POST form

2004-11-06 Thread M. Sokolewicz
Christian Ista wrote: echo ''; print_r($_POST); echo ''; I have something like that : Array ( [5980915] => on [ToDo5980915] => N [5941846] => on [ToDo5941846] => N [5916500] => on [ToDo5916500] => N [5907115] => on [ToDo5907115] => N [5900019] => on [ToDo590

Re: [PHP] Re: NMax

2004-11-07 Thread M. Sokolewicz
count() is prefered over mysql_num_rows, because the later requires a full resultset to be tranfered, while the first doesn't. (so, the 2nd is more resource intensive if you don't require the resultset) [EMAIL PROTECTED] wrote: Yeah definitely use COUNT(*) or mysql_num_rows() function. Nate -

[PHP] Re: Syntax problem - dynamic static member access

2004-11-07 Thread M. Sokolewicz
hi, it's a limitation, and not allowed in PHP. There was a whole line of posts about it in internals. - Tul Jake Press wrote: Hello All, I am having an interesting syntax problem. :( I have been battling this little bugger for the last week and a half, I have exhausted google and numerous php ch

[PHP] Re: Adding to a Date

2004-11-07 Thread M. Sokolewicz
or the next month if I want to add 4 days to 2004-11-29, so the result would be 2004-12-03, not 2004-11-33. It would need the same functionality in moving the year to 2005-01-02 when I add 3 days to 2004-12-30. I hope that I've explained my objective clearly. I have tried getting the date

Re: [PHP] loking for a item in string?

2004-11-07 Thread M. Sokolewicz
I'd rather suggest using strpos(), seen as it's quite a bit faster than using a regular expression engine (especially when you don't need one) Greg Donald wrote: On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks <[EMAIL PROTECTED]> wrote: I am opening a file and then have to look

[PHP] Re: recursive function not returning anything..

2004-11-07 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: function recursePathLookup($CatID, $Path = array()) { //Get the catid for this subcat $sql = "SELECT SubCategoryID, Name FROM categories WHERE CategoryID = '".$CatID."'"; $query = mysql_query($sql); if(mysql_num_rows($query) == 1) { $data

[PHP] Re: Is that something like perldoc in PHP ?

2004-11-07 Thread M. Sokolewicz
Exile wrote: Thanks in advise, Exile is what like perldoc? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Question: array_walk

2004-11-07 Thread M. Sokolewicz
Stuart Felenstein wrote: This array_walk() looks like a good function Would this be a legitimate call: array_walk($myarray, 'mysql_real_escape_string'); ? Thank you, Stuart array_map() is faster :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: chmod difficulties...

2004-11-10 Thread M. Sokolewicz
you can have apache SU to a user with enough permissions to do what you are trying :) (passthru('SU ...')) Scott Fletcher wrote: Hi, I'm using the AIX or UNIX system... When I tried the ... --snip-- passthru('chmod -R a+rw ../WebHelp/* 2>&1'); --snip-- I get an error message, "Operation Is Not P

[PHP] Re: Unsetting vars when not needed?

2004-11-12 Thread pete M
Unsetting class objects does take time and is really of no benefit unless there are memory problems as for freeing resuslts - the same applies pete Jordi Canals wrote: Hi all, I was working now in a new site developed with PHP 5.0.2 and a wonder came to me: Is usefull and recommended to unset a c

[PHP] Re: Current URL?

2004-11-12 Thread pete M
$_SERVER['REQUEST_URI']; Matthew Weier O'Phinney wrote: * Jason Paschal <[EMAIL PROTECTED]>: Trying to get the current viewed page's URL (query string intact). this works, but infrequently: $url = $_SERVER['URI']; and this ignores the query string: $url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SEL

[PHP] Re: What am I doing wrong - PHP

2004-11-12 Thread M. Sokolewicz
Stuart Felenstein wrote: Ok, hopefully I can explain this clearly, even though I think I might be an idiot since Ive been going on about this for a few days. I have a table that holds values and labels i.e. 1 = New York 2 = Boston 3 = Kansas City 4 = Amsterdam I want to put this ta

[PHP] PDO __construct question (mysql)

2004-11-12 Thread M. Sokolewicz
hi, currently I'm experimenting with PDO a bit. I run a local mysql server, version 4.1.4, so I tried connecting to that. Here is my code at this point: try { $link = new PDO('mysql:dbname=mydb;host=localhost', 'me', 'pw', array(PDO_ATTR_AUTOCOMMIT => 0, PDO_ATTR_PERSISTENT=>

[PHP] Re: Pagination need help again

2004-11-13 Thread M. Sokolewicz
Matthew Weier O'Phinney wrote: * Scott McWhite <[EMAIL PROTECTED]>: I'm using an HTML search form that passes the "searchterm" to a php file. In my case the "searchterm" can have 1000s of records in my database, so I implemented a limit which displays 20 records per page. The pagination function

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