Re: [PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Martin Alterisio
2006/5/23, Dotan Cohen <[EMAIL PROTECTED]>: On 5/23/06, Martin Alterisio <[EMAIL PROTECTED]> wrote: > > If that's the case, why don't you just use the "export as web page" or "save > as web page" tools of MS Word (if you don't have it a

Re: [PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Martin Alterisio
2006/5/23, Jochem Maas <[EMAIL PROTECTED]>: my 2cents Martin Alterisio wrote: > 2006/5/23, Dotan Cohen <[EMAIL PROTECTED]>: > >> >> On 5/23/06, Martin Alterisio <[EMAIL PROTECTED]> wrote: >> > >> > If that's the case, why don'

[PHP] Monitoring Remote Server Services using php !!!

2006-05-25 Thread Phil Martin
Hi everybody, I'm new to the list and also new to php, I hope I can learn many things from here. My first doubt is the following: I'm trying to create a small monitor system, just to suit my needs in monitoring some services in my application. I've found some functions that return to me

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

2006-05-27 Thread Martin Alterisio
2006/5/27, Jochem Maas <[EMAIL PROTECTED]>: 2. any include file that does contain code that runs on inclusion contains something like the following as the first line of code: if (!defined('MY_APP_IS_SETUP')) die('try http://'.$SERVER['SERVER_NAME'].'/'); An enhancement to this strategy could

Re: [PHP] Monitoring Remote Server Services using php !

2006-05-30 Thread Phil Martin
return false; } } } On 5/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: On Thu, 25 May 2006, Phil Martin wrote: > Hi everybody, > > I'm new to the list and also new to php, I hope I can learn many > things from here. > My first doubt is

[PHP] Executing functions or scripts in parallel

2006-05-30 Thread Phil Martin
Hi everyone, I've made a very basic and small function to suit my needs in monitoring some hosts services. I've noticed that the script is a little bit slow because of the number of hosts and services to monitor. Is there a way to execute my function servstatus(); in parallel with every hos

[PHP] Executing functions or scripts in parallel

2006-05-30 Thread Phil Martin
Hi everyone, I've made a very basic and small function to suit my needs in monitoring some hosts services. I've noticed that the script is a little bit slow because of the number of hosts and services to monitor. Is there a way to execute my function servstatus(); in parallel with every hos

Re: [PHP] Executing functions or scripts in parallel

2006-05-30 Thread Phil Martin
$endTime = time(); $timeDiff = $endTime - $startTime; if ($timeDiff >= $timeout) { fclose($socket); return true; } else { fclose($socket); return false; } } } Thanks in advance Felipe Martins On 5/30/06,

Re: [PHP] Using 'header' as redirect

2006-05-30 Thread Martin Alterisio
2006/5/30, Philip Thompson <[EMAIL PROTECTED]>: Are you checking what the user is sending inside $_GET['page']? If not, your system is vulnerable to a remote file injection.

Re: [PHP] Executing functions or scripts in parallel

2006-05-30 Thread Phil Martin
fast, or there is no way to have all my servers services checked in parallel. Thanks in advance. Felipe Martins On 5/30/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Phil Martin wrote: > Sure, sorry about that. I have a function that tells me if the host is DOWN > or UP. I want to r

[PHP] HTML form

2006-06-01 Thread Martin Marques
Sorry for the OT, but this is PHP output anyway :-) I have a bunch of code to input and modify data through an HTML form. When I modify the options, some are in text, others in textarea, and some are in select options. Now wat I did is make the current value be the selected one, but my browser

[PHP] Solved (Re: [PHP] HTML form)

2006-06-01 Thread Martin Marques
On Thu, 01 Jun 2006 13:06:24 -0600, John Meyer <[EMAIL PROTECTED]> wrote: > Martin Marques wrote: >> doesn't seem to get it right. Here is the HTML output: >> >> >> Profesor titular >> Profesor asociado >> Profesor adjunto >> Jefe de traba

Re: [PHP] Help with enter key in Forms

2006-06-02 Thread Martin Alterisio
2006/6/2, George Babichev <[EMAIL PROTECTED]>: Awesome, thank you so much! It works! On 6/1/06, Chris <[EMAIL PROTECTED]> wrote: > > George Babichev wrote: > > Ok, I sent it to everyone and you. Now can you answer my question > please? > > I type in > > 1 > > > > > > > > 2 > > into my form in t

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Martin Alterisio
2006/6/4, Niels <[EMAIL PROTECTED]>: Hi, I have a set of nodes. Each node has a parent and so the set can be thought of as a tree. I want to show that tree somehow on a webpage, served by PHP. I cannot use Dot/Graphwiz for various reasons. What I'm looking for is an output of DIVs or tablecell

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Martin Alterisio
2006/6/4, Niels <[EMAIL PROTECTED]>: Hi! On Sunday 04 June 2006 18:13, Martin Alterisio wrote: [snip] > I had a similar problem that, although it was with a binary tree, it can > be used with your tree. PHP doesn't like too much the use of recursion, > but this time recurs

Re: [PHP] When is "z" != "z" ?

2006-06-04 Thread Martin Alterisio
2006/6/4, Rasmus Lerdorf <[EMAIL PROTECTED]>: tedd wrote: > Hi gang: > > Here's your opportunity to pound me again for not knowing the basics of php. > > I vaguely remember something like this being discussed a while back, but can't find the reference. > > In any event, if one uses -- > > for ($

Re: [PHP] When is "z" != "z" ?

2006-06-04 Thread Martin Alterisio
2006/6/4, Rasmus Lerdorf <[EMAIL PROTECTED]>: Martin Alterisio wrote: > 2006/6/4, Rasmus Lerdorf <[EMAIL PROTECTED]>: >> >> tedd wrote: >> > Hi gang: >> > >> > Here's your opportunity to pound me again for not knowing the basics of >

Re: [PHP] When is "z" != "z" ?

2006-06-04 Thread Martin Alterisio
2006/6/4, Rasmus Lerdorf <[EMAIL PROTECTED]>: Martin Alterisio wrote: > Still: > anything < ++anything > should be true, or at least that's what they taught me on abstract data > types design, and I think they're right (at least this time) In loosely typed la

Re: [PHP] When is "z" != "z" ?

2006-06-05 Thread Martin Alterisio
2006/6/5, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: This is just one of those cases where the designers had to make a judgement call on how things were going to operate. It makes sense if you look at the two things separately (incrementing vs string 'greatness' evaluation) and makes sense that how

Re: [PHP] When is "z" != "z" ?

2006-06-05 Thread Martin Alterisio
2006/6/5, Larry Garfield <[EMAIL PROTECTED]>: On Monday 05 June 2006 14:56, Martin Alterisio wrote: > 2006/6/5, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > This is just one of those cases where the designers had to make a > > judgement call on how things were going to

Re: [PHP] When is "z" != "z" ?

2006-06-05 Thread Martin Alterisio
2006/6/6, Larry Garfield <[EMAIL PROTECTED]>: On Monday 05 June 2006 21:12, Martin Alterisio wrote: > > As for the increment, it actually would never have occurred to me to ++ a > > string before this thread, honestly. :-) However, what it appears to be > > doing (

Re: [PHP] When is "z" != "z" ?

2006-06-06 Thread Martin Alterisio
2006/6/6, Robert Cummings <[EMAIL PROTECTED]>: On Tue, 2006-06-06 at 00:01, Martin Alterisio wrote: > > Because defining ++ and < and > in such a way as to make them "behave like > > numbers" would have made them not work for alphabetizing. A string is a >

Re: [PHP] When is "z" != "z" ?

2006-06-06 Thread Martin Alterisio
2006/6/6, Barry <[EMAIL PROTECTED]>: Martin Alterisio schrieb: > is it really worthy the functionality supplied with the string ++ operator > as it is? I don't see its usefullness yet. guess you want to order something by "name" not by number which might be false

Re: [PHP] When is "z" != "z" ?

2006-06-06 Thread Martin Alterisio
2006/6/6, Rasmus Lerdorf <[EMAIL PROTECTED]>: Martin Alterisio wrote: > You're right about ++ operator not to be considered a math operator, my > mistake. What I should have said is that the usual connotation and expected > behaviour of ++ and the comparison operators

Re: [PHP] When is "z" != "z" ?

2006-06-06 Thread Martin Alterisio
2006/6/6, Robert Cummings <[EMAIL PROTECTED]>: On Tue, 2006-06-06 at 09:46, Martin Alterisio wrote: > 2006/6/6, Robert Cummings <[EMAIL PROTECTED]>: > > > In C++ they do leave it to the coder, and well, we all know what a mess > > it can be deciphering overloaded

Re: [PHP] When is "z" != "z" ?

2006-06-06 Thread Martin Alterisio
2006/6/6, Robert Cummings <[EMAIL PROTECTED]>: On Tue, 2006-06-06 at 13:11, Martin Alterisio wrote: > 2006/6/6, Robert Cummings <[EMAIL PROTECTED]>: > > > > On Tue, 2006-06-06 at 09:46, Martin Alterisio wrote: > > > 2006/6/6, Robert Cummings <[EMAIL PR

Re: [PHP] When is "z" != "z" ?

2006-06-06 Thread Martin Alterisio
2006/6/6, tedd <[EMAIL PROTECTED]>: If php is supposed to be open source, doesn't that mean that people can voice their opinion on what they observe and expect? I second that. I believe being open-source doesn't mean "Yay, it's free!" but "Cool, someone is listening to us!"

Re: [PHP] When is "z" != "z" ?

2006-06-06 Thread Martin Alterisio
2006/6/6, Robert Cummings <[EMAIL PROTECTED]>: On Tue, 2006-06-06 at 14:06, Martin Alterisio wrote: > 2006/6/6, Robert Cummings <[EMAIL PROTECTED]>: > > > > > > You must have missed this post: > > > > > > > > http://m

Re: [PHP] When is "z" != "z" ?

2006-06-06 Thread Martin Alterisio
2006/6/6, Robert Cummings <[EMAIL PROTECTED]>: On Tue, 2006-06-06 at 14:31, Martin Alterisio wrote: > 2006/6/6, Robert Cummings <[EMAIL PROTECTED]>: > > > > On Tue, 2006-06-06 at 14:06, Martin Alterisio wrote: > > > 2006/6/6, Robert Cummings <[EMAIL PR

Re: [PHP] generating/transforming HTML so that it 'works' in a flash file

2006-06-07 Thread Martin Alterisio
2006/6/7, Jochem Maas <[EMAIL PROTECTED]>: hi people, I've been STFW till I'm blue in the face (so lack of oxygen might be problem atm) but can't find any [decent] info on generating/transforming existing HTML so thats it's compatible with the subset of tags that are supported by Flash (apparen

Re: [PHP] Skip first 4 array values

2006-06-09 Thread Martin Alterisio
2006/6/9, Jonas Rosling <[EMAIL PROTECTED]>: Is there any way you can skip for example the first 4 array values/posisions in an array no matter how many values it contains? Thanks // Jonas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql + PHP

2006-06-15 Thread Martin Alterisio
2006/6/15, weetat <[EMAIL PROTECTED]>: Hi all, I have SQL query , for example , Select country , name from tbl_chassis order by country. The problem of the sql statement is that , if there are empty value in country field , it be sorted first . How to do sorting the empty value last ? I

Re: [PHP] progress monitor in php

2006-06-15 Thread Martin Alterisio
2006/6/15, weetat <[EMAIL PROTECTED]>: Hi all , I was using PEAR:HTTP_Upload to upload file in php 4.3.2. Is ok , however i need to display some sort of progress monitor to the user because some file is very large and took some times to upload. I need to inform the users to uploading is i

Re: [PHP] How to run one php app from another? RECAP

2006-06-16 Thread Martin Alterisio
2006/6/16, tedd <[EMAIL PROTECTED]>: Hi gang: So, there is NOT a way for one running php-application to call another and have it run while having the parent quit? For example, program "a" runs and presents the user with a web page. The user responds in some fashion (i.e., enters text) and clic

[PHP] GET, POST, REQUEST

2006-06-17 Thread Martin Marques
Yesterday when reading some doc on PHP I noticed the $_REQUEST predefined array, which looked like a solution to having to check in GET and POST data (I'm not sure if it will really have an impact on my program yet). The thing is, I also saw this description: Variables provided to the script v

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Martin Marques
On Sat, 17 Jun 2006 15:01:23 +0200, "Satyam" <[EMAIL PROTECTED]> wrote: > In general, user input should never be trusted. Someone once told me that > if you ask for yes or no, you should always validate for yes, no and don't > know (of course, this was before windowed environments where the users

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Martin Marques
On Sat, 17 Jun 2006 14:25:30 -0400, Ben Ramsey <[EMAIL PROTECTED]> wrote: > On 6/17/06 9:30 AM, David Tulloh wrote: >> Martin Marques wrote: >>> Yesterday when reading some doc on PHP I noticed the $_REQUEST >>> predefined array, which looked like a solution to

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Martin Marques
On Sat, 17 Jun 2006 09:55:05 -0400, tedd <[EMAIL PROTECTED]> wrote: > At 8:52 AM -0300 6/17/06, Martin Marques wrote: >>Yesterday when reading some doc on PHP I noticed the $_REQUEST predefined > array, which looked like a solution to having to check in GET and POST data >

Re: [PHP] Get rid of line breaks

2006-06-18 Thread Martin Alterisio
2006/6/18, Peter Lauri <[EMAIL PROTECTED]>: Best group member, I have a variable $content that is taken from a database. It contains line breaks and the $content will be posted with line breaks. I need to use this to insert this into a JavaScript function: $output = 'writeRichText(\'rte

Re: [PHP] New install platform

2006-06-25 Thread Johan Martin
php/apache/mysql packages for Windows, Mac OS X and Linux. Johan Martin Catenare LLC 534 Pacific Ave San Francisco, CA. 94133 Mailing Address: 268 Bush Street #2826 San Francisco, Ca. 94104 Phone: (415) 834-9802 Fax: (415) 294-4495 http://www.catenare.com AOL: catenarellc Yahoo

[PHP] Sad PHP Poem

2006-06-25 Thread Martin Alterisio
A sad poem of an algorithm where solitude brought excessive use of cpu cycles and memory allocation for redundant data (it copied over and over again the same image till all memory was filled with it) -- $timeWaiting = 0; while (!$you->near($me)) { $me->thinkAbout(

Re: [PHP] Sad PHP Poem

2006-06-25 Thread Martin Alterisio
2006/6/26, Ligaya Turmelle <[EMAIL PROTECTED]>: Martin Alterisio wrote: > > > A sad poem of an algorithm where solitude brought excessive use of cpu > cycles and memory allocation for redundant data (it copied over and over > again the same image till all memo

[PHP] CMS-Blog system

2008-09-03 Thread Martin Zvarík
"cms-core" file with some individual settings. Is there better idea? I appreciate your discussion on this topic. Martin Zvarik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] CMS-Blog system

2008-09-04 Thread Martin Zvarík
his free system would be fair. So, I will stick with separate databases for each user + central databases used for searches etc. I am pretty sure I am up for this wheel reinventing ;-) The only thing I am not strong in is the MySQL, but with you guys there is nothing impossible! Martin -- PHP

[PHP] PHP tags - any reasons to close ?>

2008-09-23 Thread Martin Zvarík
after ?> I've also seen this in some projects. Thanks for ideas, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: searching by tags....

2008-10-19 Thread Martin Zvarík
Ryan S napsal(a): Hey, this the first time I am actually working with "tags" but it seems quite popular and am adding it on a clients requests. By tags I mean something like wordpress' implementation of it, for example when an author writes an article on babies the tags might be baby,babies,

[PHP] XCache, APC, Memcached... confused

2008-10-22 Thread Martin Zvarík
automatically cache the website into the memory. What happens if the memory will get full? Thanks for explanation, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XCache, APC, Memcached... confused

2008-10-22 Thread Martin Zvarík
I guess the XCache everybody talks about is the open-source here: http://xcache.lighttpd.net/ But what about this: http://www.xcache.com/ ... is it the same author? :-O Martin Zvarík napsal(a): Hi, I became confused after an hour trying to understand the PHP cache solutions. XCache, APC

[PHP] Re: ZendOptimizer + APC

2008-10-22 Thread Martin Zvarík
Jochem Maas napsal(a): anyone know whether running ZendOptimizer + APC simultaneously still causes allsorts of problems ... I know it did in the past but I can't find any very recent stuff about the issues online. I believe you should look up eAccelerator or XCache, which should work with Ze

Re: [PHP] XCache, APC, Memcached... confused

2008-10-22 Thread Martin Zvarík
Thanks for reply Stut. So, the APC, XCache etc. doesn't work as FileCache and also doesn't decrease the number of database queries, since it is not caching the content... I see now, it is obvious that it would be very hard to run out of memory. -- Martin Stut napsal(a): On 2

Re: [PHP] XCache, APC, Memcached... confused

2008-10-22 Thread Martin Zvarík
iable? are the variables accessible across the whole server? I still don't really understand, but I am trying... Stut napsal(a): On 22 Oct 2008, at 22:19, Martin Zvarík wrote: I became confused after an hour trying to understand the PHP cache solutions. XCache, APC, eAccelerator and

[PHP] Dynamically creating multi-array field

2008-10-26 Thread Martin Zvarík
PHP Version 5.2.4 I really don't like to use the EVAL function, but do I have choice?? This sucks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamically creating multi-array field

2008-10-26 Thread Martin Zvarík
No offense, but I thought it's obvious what I want to print. print_r() shows null, and it should print what you just wrote = array field. It works when first defining with eval(): eval('$tpl'.$node.'=array();'); I guess that's the only way. Anyway, I appreciate

Re: [PHP] Dynamically creating multi-array field

2008-10-26 Thread Martin Zvarík
Nope, you have to use the eval() everytime for read/write. Martin Zvarík napsal(a): No offense, but I thought it's obvious what I want to print. print_r() shows null, and it should print what you just wrote = array field. It works when first defining with eval(): eval('$tpl'

Re: [PHP] Dynamically creating multi-array field

2008-10-26 Thread Martin Zvarík
:-D :-D :-D :-D :-D :-D :-D :-D ok :) Robert Cummings napsal(a): On Mon, 2008-10-27 at 02:09 -0400, Robert Cummings wrote: On Sun, 2008-10-26 at 22:39 -0700, Jim Lucas wrote: Even slimmer It's buggy... you need to test for an blank string to properly handle the append to arr

Re: [PHP] create/write to psd file

2008-10-26 Thread Martin Zvarík
What I know is that you can control GIMP over the command line = you can use PHP to do this. Though I guess GIMP doesn't support PSD files, I had to express myself anyways. vuthecuong napsal(a): Hi all Is there a way to create/read/write to psd file? (photoshop format) I would like to hea

Re: [PHP] Dynamically creating multi-array field

2008-10-27 Thread Martin Zvarík
2008/10/26 Martin Zvarík <[EMAIL PROTECTED]>: PHP Version 5.2.4 I really don't like to use the EVAL function, but do I have choice?? This sucks. Hi there, While this question can spur some neat solutions, it raises a red flag in that if you need to do this, you proba

[PHP] Re: how to kill a session by closing window or tab clicking on X?

2008-11-03 Thread Martin Zvarík
Afan Pasalic napsal(a): hi. I'm sorry for posting this more javascript then php question, but it's somehow php related. here is the issue: very often people close the window/tab without logging out. I need solution how to "recognize" when [x] is clicked (or File >> Close) and kill the session

[PHP] Re: Secure redirection?

2008-11-09 Thread Martin Zvarík
I might have not read your post thorougly, but it's important to know, that Header sends a HTTP request to the browser - you are not hiding the destination URL. So, calling header("location: in PHP is basically same as redirect using JS. Martin Zoran Bogdanov napsal(a): Hi, I&#x

Re: [PHP] Detect language date(F)

2004-01-26 Thread Martin Luethi
/manual/de/function.setlocale.php g. martin luethi Mon, 26 Jan 2004 14:36:04 -0500 John Taylor-Johnston <[EMAIL PROTECTED]>: I see what you are doing, But don't see where to create fr or fr-ca, for my example? John Martin Luethi wrote: the variable $_SERVER["HTTP_ACCEPT_LANGUAGE"] contains the A

Re: [PHP] >>Remove Dynamic String between StringA and StringB

2004-01-27 Thread Martin Luethi
$pattern = "/$stringA.*?$stringB/"; .*? -> matches everything between $stringA and $stringB the "?" means: stop matching after the first occurence of $stringB (quantifier minimizer). otherwise ".*" would match everything between the first occurence of $stringA and the last

Re: [PHP] Re: help with mysql

2004-01-27 Thread Martin Luethi
line 16: mysql_connect("tflood", "thomas91"); I think you mean: mysql_connect("localhost", "tflood", "thomas91"); otherwise mysql_connect takes "tflood" as Server and "thomas91" as Username (if so, its better to replace passwords with * before posting) -> http://ch.php.net/mysql_connect after

Re: [PHP] Unix-Apache: running apache as different user

2004-01-28 Thread Martin Luethi
Wed, 28 Jan 2004 16:11:59 +0200 Lorderon <[EMAIL PROTECTED]>: > "Mike Migurski" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >I have PHP installed on Apache and Unix with several vhosts so each vhost >> >has its own user account on Unix. Now when accessing a webpage, Apache >>

Re: [PHP] chunk_split();

2004-01-28 Thread Martin Luethi
maybe its better to use fread() and fseek() 2000 bytes should be 2000 characters in a textfile g. tinu Wed, 28 Jan 2004 11:20:32 -0500 Benjamin TrÃpanier <[EMAIL PROTECTED]>: Hi, I am using the chunk_split(); function to separe a long long text on differents pages. At this time, I can split th

Re: [PHP] chunk_split();

2004-01-28 Thread Martin Luethi
Wed, 28 Jan 2004 11:41:56 -0500 Benjamin Trépanier <[EMAIL PROTECTED]>: On 28/01/04 11:29, "Martin Luethi" <[EMAIL PROTECTED]> wrote: maybe its better to use fread() and fseek() 2000 bytes should be 2000 characters in a textfile g. tinu Wed, 28 Jan 2004 11:20:32 -05

Re: [PHP] crypt() sources c# port

2004-01-29 Thread Martin Luethi
download the source code: http://www.php.net/downloads.php or browse online: http://cvs.php.net the crypt() source is under php-src/ext/standard/ g. tinu Thu, 29 Jan 2004 09:54:39 +0100 gerold kathan <[EMAIL PROTECTED]>: hi there - i have user credentials in my DB encrypted with PHPs crypt() func

RE: [PHP] VERY URGENT.....

2004-02-01 Thread Martin Towell
Ooo! Ooo! Me, Me! Can I be scammed this time? :/ > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: Monday, 2 February 2004 7:02 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] VERY URGENT. > > > GREAT! The last time I went for the millions, my turn is > over...so

RE: [PHP] comparing dates

2004-02-01 Thread Martin Towell
nderstands and repeat the above.. HTH Martin > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: Monday, 2 February 2004 10:04 AM > To: [EMAIL PROTECTED] > Subject: [PHP] comparing dates > > > Hi, > Am a bit confused as to how to do this, I

RE: [PHP] Help with files

2004-02-01 Thread Martin Towell
Instead of using "r+", use "w" This will clear the file for you :) > -Original Message- > From: Mr. Austin [mailto:[EMAIL PROTECTED] > Sent: Monday, 2 February 2004 1:51 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Help with files > > > I'm not entirely sure why it is that you assume

[PHP] Re: [PEAR] Problem with DB::isError

2004-02-04 Thread Martin Marques
El Mié 04 Feb 2004 16:45, David Clymer escribió: > I'm having some problems with the DB::isError function identifying a > non-object as an error object (or so it seems). I'm using postgreSQL > 7.3.x. The relevant code is below: > > /***[ my code start ]***/ > >

RE: [PHP] $PHP_SELF AND INFORMATION.

2004-02-04 Thread Martin Towell
http://au2.php.net/manual/en/function.basename.php Martin > -Original Message- > From: Philip J. Newman [mailto:[EMAIL PROTECTED] > Sent: Thursday, 5 February 2004 11:57 AM > To: [EMAIL PROTECTED] > Subject: [PHP] $PHP_SELF AND INFORMATION. > > > $_SERVER

RE: [PHP] multi dimension array sort help

2004-02-04 Thread Martin Towell
would usort() be better for this? Martin > -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED] > Sent: Thursday, 5 February 2004 3:33 PM > To: php > Subject: [PHP] multi dimension array sort help > > > Hi, > > I've read and re-read

RE: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Martin Towell
nsider "the right way" ? This is one of those "personal preference" things. Pick which ever way you like the best and stick with it. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SQL help

2004-02-10 Thread Martin Towell
You'll need to do a left/right outer join. as you didn't say which database you're using, I'll give this back to you to do some reading up on how to do it... HTH Martin > -Original Message- > From: Marc Greenstock [mailto:[EMAIL PROTECTED] > Sent: Wednes

RE: [PHP] form array

2004-02-11 Thread Martin Towell
Matthew, use $_POST/$_GET/$_REQUEST (depending on your form method) and foreach() eg: foreach($_POST['image'] as $key=>$value) { echo "$key -> $value\n"; } Martin > -Original Message- > From: Matthew Oatham [mailto:[EMAIL PROTECTED] > Sen

RE: [PHP] Algorithm....

2004-02-16 Thread Martin Towell
Hiya, Work out the start array position, keep incrementing by 1 until you find a "yes" >From this you'll know the allowable end times. HTH Martin > -Original Message- > From: Bob Eldred [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 17 February 2004 4:04 PM > T

RE: [PHP] tmp_dir

2004-02-17 Thread Martin Towell
google is your friend http://www.onlamp.com/pub/a/php/2001/02/15/php_admin.html 5th bottom one.. Martin > -Original Message- > From: ajay [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 18 February 2004 4:20 PM > To: [EMAIL PROTECTED] > Subject: [PHP] tmp_dir > >

RE: [PHP] convert a strtotime date into a text representation of the date

2004-03-03 Thread Martin Towell
r the format: echo date("l F j Y", $time); but for me, this caused the following output Saturday June 27 2009 doesn't seem right somehow :/ Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Link List

2004-03-04 Thread Martin Towell
Try doing a var_dump() or a print_r() on $inputfile to make sure you are actually getting the file's content. HTH Martin > -Original Message- > From: Lopez, Kaleb (GEAE, Foreign National, CIAT) > [mailto:[EMAIL PROTECTED] > Sent: Friday, 5 March 2004 12:23 PM >

[PHP] PHP security

2004-03-07 Thread Martin Nicholls
I know somebody who coded a PHP script that attempts to prevent post flooding and some other potential security 'flaws'. I know quite alot about PHP, some things are still beyond my knowledge. I was wondering if some people could have a look at it to see if it is a viable way of reducing secrity r

Re: [PHP] PHP security

2004-03-07 Thread Martin Nicholls
it? Sounds more like a sys admin problem? i could be wrong. > > Jason > > "Martin Nicholls" <[EMAIL PROTECTED]> wrote: > > > > I know somebody who coded a PHP script that attempts to prevent post > > flooding and some other potential security 

RE: [PHP] Why is this happening

2004-03-08 Thread Martin Towell
have you got register_globals turned on or off? Martin > -Original Message- > From: Bryan Bateman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 9 March 2004 12:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Why is this happening > > > This does not work: > requi

RE: [PHP] Back Button produces Parse Error

2004-03-08 Thread Martin Towell
I haven't had anything like this happen to me, but maybe it's not line 52, maybe it's line 51 or 50 that's the problem... HTH Martin > -Original Message- > From: Jough P [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 9 March 2004 12:43 PM > To: PHP > Subjec

RE: [PHP] Warning: Cannot modify header information - headers alr eady sent by (output sta

2004-03-09 Thread Martin Towell
It's exactly as the error says... You've echo'ed something out before the header statement. Move your database query and header() above all the echos and it should then work. Martin > -Original Message- > From: Mike Mapsnac [mailto:[EMAIL PROTECTED] > Sent: Wed

[PHP] If Using PHP CLI to Query Oracle8I DB, is Version Number Critical?

2004-03-10 Thread Martin McCormick
le section says, >Introduction > > This extension adds support for Oracle database server access. See > also the OCI8 extension. Martin McCormick WB5AGZ Stillwater, OK OSU Information Technology Division Network Operations Group -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] If Using PHP CLI to Query Oracle8I DB, is Version Numbe r Critical?

2004-03-11 Thread Martin McCormick
A thousand thanks. This is all starting to make a bit of sense. Martin McCormick "Ford, Mike [LSS]" writes: >For an Oracle 8i database you want the OCI extension, not the Oracle >extension. OCI should be the extension of choice for Oracle version 7 and >later. --

[PHP] More php Questions about PHP 4.3.4 (cli)

2004-03-11 Thread Martin McCormick
I installed the FreeBSD port of php4.3.4. In order to query a remote database server running Oracle8I, I am supposed to use oci commands. I have a test script that one would think should do nothing except briefly connect to the remote server: #!/usr/local/bin/php http://www.php.net/) To u

RE: [PHP] More php Questions about PHP 4.3.4 (cli)

2004-03-11 Thread Martin Towell
I don't think this is the problem... The problem is that oci* functions haven't been compiled. You probably have the ora_* functions though... I haven't compiled PHP myself so someone will have to tell you the right make options to use to compile oci support. HTH Martin

Re: [PHP] More php Questions about PHP 4.3.4 (cli)

2004-03-12 Thread Martin McCormick
My thanks to both of you. I am trying to find out now how to compile in the oci8 functions because it is not obvious in the list of configuration selections. When I do get those functions, I can probably use the information from Marcelo so every bit helps. Martin Towell writes

[PHP] variable passing

2004-03-12 Thread Martin S
I have this in equip-lend-index.php and want to pass the variable $equipment back to the same page: PRINT " Equipment: "; PRINT " Computers"; PRINT " Phones"; PRINT " "; PRINT " "; Hitting Select (submit button) doesn't pass the value of $equipment back to the page. What am I doing wrong? /

[PHP] Problem to display the results of an exec + rsh command

2004-03-18 Thread Frédéric Martin
esult of the ping made in the remote host. any idea to fix that? thank you in advance for your tips ... fred Frédéric MARTIN Stagaire Service Exploitation Email: [EMAIL PROTECTED] - VTX Services SA Avenue de Lavaux, 101 CH-1009 PULLY http://www.vtx.ch -

RE: [PHP] Solution to display the results of an exec/system + rsh command

2004-03-18 Thread Frédéric Martin
voyé : jeudi, 18. mars 2004 17:59 À : [EMAIL PROTECTED]; [EMAIL PROTECTED] Objet : RE: [PHP] Problem to display the results of an exec + rsh command Frédéric Martin <mailto:[EMAIL PROTECTED]> on Thursday, March 18, 2004 7:31 AM said: > $res = exec("rsh x.x.x.x -l username

[PHP] Failing to Make Oracle Connection via php4.3.4

2004-03-19 Thread Martin McCormick
K, facility=TNS ns main err code: 12545 TNS-12545: Message 12545 not found; No message file for product=NETWORK, facility=TNS ns secondary err code: 12560 nt main err code: 515 TNS-00515: Message 515 not found; No message file for product=NETWORK, facili

RE: [PHP] Passing by conditional IF statement...why?

2004-03-22 Thread Martin Towell
Ryan Because you are actually getting a result, a result with no records... Might be better to use http://au2.php.net/manual/en/function.mysql-num-rows.php instead Martin > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 23 March 2004 11:37 AM >

RE: [PHP] Extracting Output from File...

2004-03-30 Thread Martin Towell
You should be able to use any of the file commands. eg. $contents = file("http://www.myserver.com/outputpage.php";); fopen(), etc should all work too. Martin > -Original Message- > From: Russell P Jones [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 31 March 2004 9

RE: [PHP] Having trouble formatting width using printf() and defa ult spaces

2004-03-30 Thread Martin Towell
echo str_replace(" ", " ", sprintf("%10u", rand(1,$sides))); Martin > -Original Message- > From: David Scott [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 31 March 2004 8:01 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Having trouble formatting wid

Re: [PHP] how to reset PHP_AUTH vars

2004-04-04 Thread Martin Oettinger
Another solution to clean the browser auth cache is to close the browser; a javscript function exists as well "Nitin Mehta" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > but it's not happening. > > - Original Message - > From: "Burhan Khalid" <[EMAIL PROTECTED]>

RE: [PHP] confused big time

2004-04-06 Thread Martin Towell
, '{$_SESSION['add']['StartingDay']}' > , '{$_SESSION['add']['StartingMonth']}' > , '{$_SESSION['add']['StartingYear']}' >

[PHP] Re: Using Google's API with PHP

2004-10-30 Thread Chris Martin
t: http://www.devshed.com/c/a/PHP/Using-The-Google-Web-APIs-With-PHP/ -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML button as hyperlink

2004-11-18 Thread Martin Holm
://new.url.com/whatever.html";> // Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    13   14   15   16   17   18   19   20   >