Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Myron Turner
uses io_readFile. Glad to see you are now crediting Shakespeare. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Myron Turner
Edward Vermillion wrote: On Jun 18, 2007, at 3:30 PM, Myron Turner wrote: I've written a plugin for DokuWiki which uses the following DokuWiki function for reading files: function io_readFile($file,$clean=true){ $ret = ''; if(@file_exists($file)){ if(substr($file,-3) == 

[PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Myron Turner
ead a non-existent file. I was just wondering whether there is some difference in the way his PHP version handles the @ operator in: if(@file_exists($file)) That is, is it possible that by suppressing errors, this expression somehow returns true? And is it

Re: [PHP] Re: Previous and Next Month and Year

2007-06-17 Thread Myron Turner
Y', mktime(0, 0, 0, date("m")-6, date("d"), date("Y"))); $next_month = date('F Y', mktime(0, 0, 0, date("m")+6, date("d"), date("Y"))); See http://ca3.php.net/manual/en/function.date.php for just this example. -- _

Re: [PHP] Extract specific div element from page

2007-06-15 Thread Myron Turner
e and read that when the page gets back to the server, then write it to the file. -- _____ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] XSLT and DocBook

2007-06-07 Thread Myron Turner
;s all offline processing, so performance isn't a huge issue. Thanks. [1] http://www.docbook.org/tdg/en/html/docbook.html [2] http://www.sagehill.net/docbookxsl/ [3] http://xml.apache.org/ [4] http://us.php.net/manual/en/ref.xsl.php You might get help from comp.text.xml -

Re: [PHP] ownership and permissions

2007-06-07 Thread Myron Turner
r. '/' .$file); } remdir($dir); -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Data Mining/Data Scraping

2007-05-22 Thread Myron Turner
Tijnema wrote: On 5/22/07, Myron Turner <[EMAIL PROTECTED]> wrote: > On Sat, May 19, 2007 10:22 pm, Shannon Whitty wrote: > >> I'm looking for a piece of software or coding that will let me post a >> form >> to another URL, accept the response, search it fo

Re: [PHP] PHP Data Mining/Data Scraping

2007-05-22 Thread Myron Turner
)) { $result .= fgets($fp, 128); } fclose($fp); echo $result; } ?> You have to adhere to the above sequence. The posted data comes last and it is preceded by a content-length header which tells the receiving server how long the posted data is. The returned result is the ht

Re: [PHP] printing out this nested array

2007-05-14 Thread Myron Turner
Jim Lucas wrote:-- "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Unknown Malvolio,12th Night, III.iv -- _____ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_

Re: [PHP] php5 include() problem

2007-05-13 Thread Myron Turner
the CGI script, and if you remove the variables it will work. Tijnema See the examples on this page: http://ca.php.net/include/ What you probably want to do is to change the cgi script to php and then give the full url, incuding http. -- _ Myron Turner http://www.r

Re: [PHP] Need a new shared host with php

2007-05-10 Thread Myron Turner
y in $US you get the advantage of the higher US dollar. It's an excellent service for VPS and stand-alone server access. I've used them for both over a period of about 4 years. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org

Re: [PHP] Killing a process with php

2007-05-09 Thread Myron Turner
to see if the current timestamp is greater than the timestamp a minute before midnight. If it is, then exit. Or set a flag in the signal handler that is accessed elsewhere in your script which tells the script that it's time to exit. -- _____ Myron Turner http://ww

Re: [PHP] sorting multi array

2007-04-25 Thread Myron Turner
the indexes if poss. Many thanks, jon This works for me: function cmp($a, $b) { $aq = $a['quantity']; $bq = $b['quantity']; if ($a == $b) { return 0; } return ($aq < $bq) ? -1 : 1; } uasort($data, "cmp"); To reverse the sort order: ret

Re: [PHP] Separating words based on capital letter

2007-04-24 Thread Myron Turner
eplace('/([A-D])/', " \\1", $string)); _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] retrieve POST body?

2007-04-23 Thread Myron Turner
whole post should be made available in PHP. Good luck with your solution, Myron _____ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: how to detect type of image

2007-04-22 Thread Myron Turner
when what you are sending is a time bomb. M. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] retrieve POST body?

2007-04-22 Thread Myron Turner
Richard Lynch wrote: On Sat, April 21, 2007 10:56 pm, Myron Turner wrote: trick for you.You use the Perl script in the action attribute of your form. The Perl script saves the entire posted output to a file, then it sends back a page which uses Javascript to redirect back to the php

Re: [PHP] retrieve POST body?

2007-04-21 Thread Myron Turner
Justin Frim wrote: Richard Lynch wrote: On Thu, April 19, 2007 10:28 pm, Myron Turner wrote: that should be necessary at this time. For instance, if it's necessary to pass in CGI parameters at the same time as sending out a file, the parameters can be tacked onto a query string and

Re: [PHP] retrieve POST body?

2007-04-19 Thread Myron Turner
Gregory Beaver wrote: Myron Turner wrote: That's not been my experience. I've tested it with enctype="multipart/form-data", since that's what you asked for, though the enctype wasn't included in my sample code. I've run it on PHP Version => 5.1.6 (Fed

Re: [PHP] retrieve POST body?

2007-04-19 Thread Myron Turner
he $_POST and the $_GET arrays. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] retrieve POST body?

2007-04-19 Thread Myron Turner
ning as an Apache module on FreeBSD exhibit this behaviour.) And before anyone asks, it *is* a requirement to accept multipart/form-data submissions because that's the only way you can properly implement a file upload on a web form. -- _ Myron Turner http://www.room5

Re: [PHP] retrieve POST body?

2007-04-19 Thread Myron Turner
Tijnema ! wrote: On 4/19/07, Myron Turner <[EMAIL PROTECTED]> wrote: André Medeiros wrote: > php://stdin perhaps? > > On 4/18/07, Justin Frim <[EMAIL PROTECTED]> wrote: >> André Medeiros wrote: >> >> > Reading from php://input on a webserver will re

Re: [PHP] retrieve POST body?

2007-04-19 Thread Myron Turner
{'CONTENT_LENGTH'}); } print $buffer; -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP4 vs PHP5

2007-04-07 Thread Myron Turner
of code. It would be no small task to convert such a project over to the PHP 5 OO model. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about form submitting

2007-04-03 Thread Myron Turner
ity d) etc. My question is how do i make all these possibilities show a different error message without leaving subscribe.php ? I know that the for action must be subscribe.php, from there i'm blind as a bat. Any help would be appreciated. Warm Regards -- _____ Myron T

Re: [PHP] finding the index name of an associative array

2007-04-01 Thread Myron Turner
keys* ( array $input [, mixed $search_value [, bool $strict]] ) *array_keys()* returns the keys, numeric and string, from the /input/ array. http://www.php.net/manual/en/function.array-keys.php -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http:/

Re: [PHP] Parsing database variables

2007-03-30 Thread Myron Turner
Myron Turner wrote: Jake McHenry wrote: thought about that, I would need to do one ereg for each variable then correct? as of right now, there are 0 variables in the first field, and 17 in the second... so it would be 17 ereg replaces... then if i add or change anything, possibly more

Re: [PHP] Parsing database variables

2007-03-30 Thread Myron Turner
n that one. function set_func(&$var1, &$var2 . . . &var17) { $return_var = RETURNVAR "this is $var1 and $var2. . . ."; RETURNVAR ; return $return_var; } _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_P

Re: [PHP] Gnome and MIME types

2007-03-30 Thread Myron Turner
kens? The return value to exec is the last line of the command's output. The error message you get at the command line is from bash, not from the bogus command. You can pass in a final parameter and get the status but it won't tell you much from a bogus command. -- __

Re: [PHP] crontab, PHP and MACOSX

2007-03-28 Thread Myron Turner
s an error it should/may be reported there (again I'm not sure about OS X). Otherwise, or in addition, check your system error logs. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing

Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-28 Thread Myron Turner
Zoltán Németh wrote: 2007. 03. 28, szerda keltezéssel 14.42-kor Mario Guenterberg ezt írta: On Wed, Mar 28, 2007 at 07:20:37AM -0500, Myron Turner wrote: It's hard to see how this could be a browser issue. Firefox does not parse the scripts. The scripts are parsed on the s

Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-28 Thread Myron Turner
with php 5.2.1. Greetings Mario It's hard to see how this could be a browser issue. Firefox does not parse the scripts. The scripts are parsed on the server, under Apache. The server outputs the result of the parsing and the browser displays the result. -- _

Re: [PHP] using for loop in function

2007-03-28 Thread Myron Turner
( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) count($ExplodeIt) = 4 -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] usage of flock

2007-03-27 Thread Myron Turner
Richard Lynch wrote: On Fri, March 23, 2007 10:34 pm, Myron Turner wrote: I've never used locks in PHP, but have used them in Perl. In Perl a lock is automatically released on exit or when the locked file is closed. Is that not the same in PHP? According the the man page for the C ve

Re: [PHP] usage of flock

2007-03-23 Thread Myron Turner
ught using a signal handler that can exit the process. If you use LOCK_NB with a loop, you can also break out of the loop and exit after a time as well. You'd probably want to use sleep to time your loop, not a counter, since the counter might swallow up cpu. --

Re: [PHP] Question before upgrading to 5

2007-03-22 Thread Myron Turner
http://www.example.com:8080/somepage.html -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Random Unique ID

2007-03-21 Thread Myron Turner
o the right way to go about doing this? Best, Craig . I suggest looking into a GUID sort of thing, it is all coded for you and it works just like you want. If you are running Linux, you can get this using: $GUID = exec("uuidgen"); -- _________ Myron Turner http://www.r

Re: [PHP] Re: Keep the PHP list ON TOPIC!

2007-03-21 Thread Myron Turner
Jochem Maas wrote: I would have made a similar comment - but I have soap stuck between my teeth atm :-P Just use a little of that saliva that you've been wasting on spitballs. ;-) -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturne

Re: [PHP] Re: Keep the PHP list ON TOPIC! (was: [PHP] MYSQLyog)

2007-03-21 Thread Myron Turner
ld be wrong, of course. But I'm certainly not wrong to believe that the remedy for a foul mouth is soap and water. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Amazon AWS + SimpleXML

2007-03-20 Thread Myron Turner
p You can download the class files at http://www.mturner.org/XML_PullParser/ If you decide to use it, download the most recent version, which is 1.3.2. -- _____ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Ma

[PHP] Re: PHP code only works on 1 server

2007-03-19 Thread Myron Turner
make sure that apache redirects the 404 to your custom error message? http://httpd.apache.org/docs/2.2/mod/core.html#errordocument -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Getting last record ID created from DB

2007-03-17 Thread Myron Turner
Robert Cummings wrote: On Sat, 2007-03-17 at 09:43 -0500, Myron Turner wrote: An earlier post called attention to a concurrency problem. Wouldn't getting the last inserted ID from LAST_INSERT_ID() suffer from the same limitations as any of the other solutions which do a select t

Re: [PHP] Re: Getting last record ID created from DB

2007-03-17 Thread Myron Turner
hat would use the email address as a condition in the WHERE clause to extract the ID? -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 2 errors I can not understand

2007-03-15 Thread Myron Turner
Ford, Mike wrote: On 14 March 2007 22:52, Richard Lynch wrote: On Wed, March 14, 2007 6:52 am, Myron Turner wrote: Richard Lynch wrote: On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: The = operator takes precedence, and $d is set to 0. But why? According to

Re: [PHP] Regex error

2007-03-14 Thread Myron Turner
this part of the regex supposed to be doing: [a-z0-9-\.\/] ? Your problem is this: 0-9-, which causes a bad range error. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Myron Turner
Robert Cummings wrote: On Wed, 2007-03-14 at 12:57 +0100, Tijnema ! wrote: On 3/14/07, Myron Turner <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: This did fix the problem but I am amazed that $s%$d=0 wo

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Myron Turner
modulus operator has precedence over the equals! So shouldn't this expression resolve to: ($s % $d) = 0 which gives an error? -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Myron Turner
1 php script: "tjon2.php" 78L, 447C written You have an infinite loop going: if ($s%$d=0) should be: if ($s%$d==0) --otherewise your loop keeps going: while ($d<$s) since $d (0) will be less and $s -- _____ Myron Turner http://www.room535.org h

Re: [PHP] $35 to the first person who can do this XML-parsing PHP script

2007-03-12 Thread Myron Turner
long run than scratching out a few regular expression hacks that have limited local applicability. Myron Turner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] xml parsing

2007-03-12 Thread Myron Turner
using the following: $string = the above xml; $xml = simplexml_load_string($string); foreach($xml->Item as $item ){ trim($item->Label); echo $item->Label . ""; if(isset($item->Tekst)) { trim($item->Tekst); echo $item->Tekst . ""; } }

Re: [PHP] Why won't this query go through?

2007-03-11 Thread Myron Turner
Jochem Maas wrote: Tijnema ! wrote: On 3/11/07, Mike Shanley <[EMAIL PROTECTED]> wrote: Hi, I am just not understanding what I could have possibly done wrong with this query. All of the variables are good, without special characters in any sense of the word... So why isn't it importing

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Myron Turner
round here but they are all wrong? Tijnema -- _____ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Myron Turner
fect scripts and their length is not know in advance. The same holds true for files which contain SSI. _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Myron Turner
Myron Turner wrote: Tijnema ! wrote: On 3/10/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: 2007. 03. 10, szombat keltezéssel 12.42-kor Riyadh S. Alshaeiq ezt írta: > Actually if right click on any file or folder on a machine you will see that > there are two values (Size on

Re: [PHP] FW: looking for two remote functions

2007-03-10 Thread Myron Turner
ilesize uses stat). Also, in the PHP manual, the fread example uses filesize to set the number of bytes to read: |contents = fread($handle, filesize($filename)); |The point of this is to read in the exact number of bytes for the file, not the entire size of the file's stora

Re: [PHP] Urgent: Way to XML-parse data with tags?

2007-03-08 Thread Myron Turner
Myron Turner wrote: Rob Gould wrote: The problem I'm having is that the XML data that comes back from the host doesn't just have tags. It has n="eventname">datahere tags, and I don't know how to get the XML parser to read the values using that format. (And I

Re: [PHP] Urgent: Way to XML-parse data with tags?

2007-03-08 Thread Myron Turner
Myron Turner wrote: Rob Gould wrote: The problem I'm having is that the XML data that comes back from the host doesn't just have tags. It has n="eventname">datahere tags, and I don't know how to get the XML parser to read the values using that format. (And I

[PHP] Re: I almost get what you're saying...

2007-03-08 Thread Myron Turner
: function startElement($parser, $name, $attrs) { global $insideitem, $tag, $eventname, $venuename, $venuecity; /if(isset($attrs['venuecity'])) { $venuecity = $attrs['venuecity']; } // etc. } _ Myron Turner http://www.room535.or

Re: [PHP] Urgent: Way to XML-parse data with tags?

2007-03-08 Thread Myron Turner
s['venuecity'], etc. --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/

[PHP] Re: [PHP-DB] array field type

2007-03-06 Thread Myron Turner
using **wddx_deserialize()* . -- _____ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem generating a file link

2007-03-05 Thread Myron Turner
iterally in the html source? I'm using Smarty so the link doesn't appear as HTML as such. This is what the browser (guessed wrong - I'm using Firefox) shows in the status bar. George -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/

Re: [PHP] Eregi error

2007-03-01 Thread Myron Turner
Roberto Mansfield wrote: Myron Turner wrote: M.Sokolewicz wrote: $pattern = '^[a-z0-9\!\_ \.- ,/]*$'; if(!eregi($pattern, $input)){ the problem is that the hyphen is interpreted as regex range operator:

Re: [PHP] Eregi error

2007-03-01 Thread Myron Turner
z0-9\!\_ \.- ,/] Rewrite this as [a-z0-9\!\_ \. ,/-] with the hyphen in the last position. -- _____ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] base64-encoding in cookies?

2007-02-10 Thread Myron Turner
n do about it because you don't have control over the installation. Each language has its strengths. What's true of Perl, I think is probably true of Python as well. There are lots of programmers and web sties that must mix Python and PHP. -- _ Myron

Re: [PHP] Text Editor for Windows?

2007-02-08 Thread Myron Turner
ating macros, and it can be highly customized for individual use. It will not, however, find syntax errors. -- _________ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Myron Turner
Jochem Maas wrote: Myron Turner wrote: Christopher Weldon wrote: You actually don't even have to run a second instance of Apache. From what I've heard of other hosting companies doing, you can use the same Apache installation and run PHP4 and PHP5 concurrently. if y

Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Myron Turner
lls on the same server, which I'd done for myself. But this solution is really cool! -- _________ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] JS prompt -> php

2007-02-07 Thread Myron Turner
Yahoo! Mail Beta. Google Ajax How-to or Ajax How-to POST The 3rd or 4th item for plain how-to is: http://swik.net/Ajax/How+to+use+XMLHttpRequest This first item for how-to POST: http://www.captain.at/howto-ajax-form-post-request.php -- _ Myron Turner http

Re: [PHP] preg_match

2007-02-06 Thread Myron Turner
e: if (! (preg_match( "/\/index.php$/", $_SERVER['PHP_SELF'] ))) { -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Peristent Listen over an HTTP connection

2007-02-04 Thread Myron Turner
to my previous, try this: http://www.devshed.com/c/a/PHP/Socket-Programming-With-PHP/ It needs IE (as opposed to Firefox). -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.

Re: [PHP] Peristent Listen over an HTTP connection

2007-02-04 Thread Myron Turner
you could store data in temporary files on the server or in temporary database entries, or you could simply pass data back and forth using POST. The script which handles the AJAX requests would be the "component" that resides on the server. _ Myron Turner http://www.r

Re: [PHP] Pop up window in PHP code

2007-02-03 Thread Myron Turner
oblem quotation marks? And Is this in fact the actual html that you are outputting? javascript:poptastic( Details Shouldn't it be: hello Without the a tag, it just prints the javascript pseudo-url to the screen as text. -- _ Myron Turner http://ww

Re: [PHP] Help with matching numbers 0-100

2007-02-03 Thread Myron Turner
$matches[1] < 20) { echo $matches[1] . " is in range\n"; } else echo $matches[1] . " out of range\n"; } ?> -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing mail file

2007-01-30 Thread Myron Turner
Jim Lucas wrote: he wants a cut/paste answer to his problem. He doesn't want to build something and learn how it all works. He just wants it to work out of the box. Why would someone want to read an RFC if he didn't have to? Maybe we should all start by writing our own GUI's. Nothing like

Re: [PHP] Re: [BULK] [PHP] Use array returned by function directly?

2007-01-29 Thread Myron Turner
, it turns out, simply returns the string "Array". Not at all! Watch this: I thought the issue was this: $array = 'O M F G'; $needle = ' '; $array_2 = array('O', 'M', 'F', 'G'); assert($array == explode($needle, $a

Re: [PHP] Re: [BULK] [PHP] Use array returned by function directly?

2007-01-29 Thread Myron Turner
rray[3] is a string. But explode($needle, $array), it turns out, simply returns the string "Array". -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.ph

Re: [PHP] Can a class instance a property of another class

2007-01-27 Thread Myron Turner
u mean by that? I could be missing something, but at the moment the two classes and their calls seem pretty straight-forward. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] navigation

2007-01-27 Thread Myron Turner
koen wrote: How to creat the effect of the explorers back and forward buttons in php? It's a javascript issue, using the javascript history object. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP Ge

Re: [PHP] php & javascript interaction

2007-01-26 Thread Myron Turner
ca.php.net/manual/en/language.variables.predefined.php Form data is captured in PHP in a number of different predefined variables accessible from your scripts. This page defines these varibables. -- _________ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturne

Re: [PHP] Re: two php.ini on the same server

2007-01-26 Thread Myron Turner
sic values for configure to work with. -- _____ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parsing AJAX post data -- The Way

2007-01-25 Thread Myron Turner
en $_POST should have an array, as expected. But $HTTP_RAW_POST_DATA will not be available. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XML Parsing simpleXML Arrays Question

2007-01-15 Thread Myron Turner
echo $xml->vcrSummary->vcr[1] ."\n"; echo "Min Price: " . $xml->vcrSummary->vcr[1]['minPrice'] ."\n"; /* Result: Result: VCR - 0 AA Min Price: 1667 VCR - 1 PR Min Price: 1374 */ ?> -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Counting the occurences of items in an array

2006-12-24 Thread Myron Turner
unction will be used as a word count for text documents, and some of them have over 5000 words. So if there's a better way of doing this I'd love to know. Thanks. Dotan Cohen http://what-is-what.com/what_is/html_email.html http://lyricslist.com/lyrics/artist_albums/162/distur

[PHP] Re: PHP and XML

2006-11-24 Thread Myron Turner
t/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ --

[PHP] Re: XML parser error ..

2006-11-22 Thread Myron Turner
: Reserved XML Name" even i created two more php files but it give same message as out put. I am unable to understand why its come. Please help me out. onewaylife -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_Pull

[PHP] Re: Space in regex

2006-11-16 Thread Myron Turner
h is why .* represents all characters. Myron Turner http://www.mturner.org/XML_PullParser/ On Thu, 16 Nov 2006 23:08:34 +0200, [EMAIL PROTECTED] ("Dotan Cohen") wrote: >I'm trying to match alphanumeric characters, some common symbols, and >spaces. Why does this NOT match

[PHP] Re: Space in regex

2006-11-16 Thread Myron Turner
0-9\'.&-:underscore:] [:space:A-Za-z0-9\'.&-:underscore:] All these regexes match strings containing the specified characters, but none of them match strings with spaces. Dotan Cohen http://what-is-what.com/ http://technology-sleuth.com/ -- _ Myron Turn

Re: [PHP] CSS / PHP / Javascript

2006-11-16 Thread Myron Turner
perfect in every browser according to the original mockup supplied by a graphic designer who can't even grasp the concept of screen resolution (I know plenty of print-based designers that fall into this category)] -Ed --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Simple logic but can't get it right

2006-11-09 Thread Myron Turner
} echo "ID = $id"; //Output is "b"...WHY?? It should be "outside"... ?> -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Permanent Links - Blog

2006-11-08 Thread Myron Turner
implement? See it in action at wikipedia, blogger blogs, simplebits <http://www.simplebits.com>. Both simplebits and wikipedia is written in PHP, I guess. Help! Thank you -- _____ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.o

[PHP] Re: fsockopen error messages

2006-11-06 Thread Myron Turner
answers I need. fsockopen is not returning anything and I'm trying to find out what the issue is. The error messages are not provided and I'm not sure what's going on. Help please! "; echo "Error: $errstr ($errno)\n"; } ?> Thanks, ~Philip -- __

Re: [PHP] XML Sending problem

2006-11-05 Thread Myron Turner
ng only with XML protocol to communicate with remote server. I think I have read something like this in the internet, but can't remember where :( Regards Rosen Rosen said: Hi, I need to create an XML file and send it to another server, where script process the XML. With creation and process

Re: [PHP] Re: preg_split

2006-11-03 Thread Myron Turner
1 or more characters that are not a comma and put them in \01. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: preg_split

2006-11-03 Thread Myron Turner
e sample data is <http://akane.covisp.net/~kreme/vonage.callers> --No one ever thinks of themselves as one of Them. We're always one of Us. It's Them that do the bad things. -- _ Myron Turner http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Closing a connection to browser without exiting the script

2006-11-02 Thread Myron Turner
m. Because as long as the page is not fully loaded, the mouse cursor in the user's browser is showing a watch. So ideally, what I would like is to be able to close the connection from the server-side, but without using the exit() function, so my script keeps running afterwards. --

Re: [PHP] str_replace on words with an array

2006-10-29 Thread Myron Turner
ividual letters, that emptied the entire $searchQuery string! A typical value of $searchQuery could be "What is php?" or "What is open source". See this site for details: http://what-is-what.com Dotan Cohen http://technology-sleuth.com/ -- _ Myron Turner h

[PHP] Re: A general UL script

2006-10-28 Thread Myron Turner
normal single file upload form; both of these statements will continue wether my form is empty or not, why? if(!empty($_FILES)){ do som checking if its a jpg. if not exit; if(isset($_FILES)){ -- _ Myron Turner http://www.room535.org http://

[PHP] Re: Problem compiling PHP 4.4.2 with mcrypt

2006-10-27 Thread Myron Turner
ething else installed on the box? Normally I haven't had this problem with this. But this is an old suse 8.x box that is being used due to time frame issues. Like I said I can compile PHP without mcrypt, but the project requires mcrypt so any help on this would be appreciated. Thanks! -- _

[PHP] Re: Problem with EXEC and PASSTHRU

2006-10-25 Thread Myron Turner
. One consideration would be how long amavisd-new takes to reload. I'm not very well-informed about hacking and security, but it would seem to me that you are taking a risk by giving users root privileges to restart amavisd-new. _ Myron Turner http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >