RE: [PHP] PHP Interview questions

2003-08-27 Thread Martin Towell
... (maybe.., I don't know how long it takes for a light bulb to cool down) Martin -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, 27 August 2003 5:35 AM To: Curt Zirzow; PHP General Subject: Re: [PHP] PHP Interview questions From: "Curt Zirzo

RE: [PHP] Re: IS THIS A BUG?

2003-08-28 Thread Martin Towell
And also for class names $foo = "bar"; $blah = new $foo(); $blah would be a new instance of the class bar I've actually used the above, but it was a special case.. I wouldn't normally use it. -Original Message- From: DvDmanDT [mailto:[EMAIL PROTECTED] Sent: Thursday, 28 August 2003 8:58

[PHP] MS-SQL 2000 weird problem

2003-09-15 Thread Martin Greco
fine. The function mssql_num_fields() shows correctly the number of fields. The strange thing is that it was working a day ago (the same code). Any thoughts? -- ### # Martin Greco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Strange error

2003-09-16 Thread Martin Towell
Hi Odd - I copy/paste the code below and run it against windows version of php4.0.6 and it's okay Maybe you've got a hidden char there somewhere? Martin -Original Message- From: Sid [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 5:39 AM To: [EMAIL PROTECTED] Sub

Re: [PHP] MS-SQL 2000 weird problem

2003-09-16 Thread Martin Greco
:%M%p [en_US] date format = %b %d %Y %I:%M%p language = us_english char set = iso_1 [es_ES] date format = %b %d %Y %I:%M%p language = us_english << changed char set = iso_1 - Original Message - From: "Dan Anderson" <[EMAIL PROTECTED]> To: "Martin Greco&

RE: [PHP] Control Structure problem

2003-09-16 Thread Martin Towell
are you thinking of "default:" ? -Original Message- From: Luke Skywalker [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 10:51 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Control Structure problem yeah, i really like using cases they work well and especially if you want to d

RE: [PHP] webhost --0T-->

2003-09-17 Thread Martin Towell
[snip] /* HTH & HAND */ Meant to ask you this before...whats HAND? [/snip] Looks like noone's replied to this question, it's: Have A Nice Day... HTH Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Crash of PHP 4.3.x, having a big array

2003-09-18 Thread Martin Brenn
tween 100.000 and 1.500.000, PHP and Apache crashes with an exception fault AFTER having processed it. I think it crashes during the cleaning up of memory or internal variables. Any suggestions or help, how to get a better description of this problem, Thanks, Martin Brenn -- PHP General Mailing List

[PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Martin Raychev
is problem? Many thanks in advance! Martin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Martin Raychev
_self)? It would probably be better as I'll avoid redirecting to and back all the time. I've surfed a little but found no ellegant validation solution so far. Thank you very much, Martin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Martin Raychev
later, i.e. not first? Thank you, Martin. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 6:10 PM Subject: Re: [PHP] Validation: Problems with header(Location) in PHP

RE: [PHP] Q on Class, inhertance, ec... (a bit long)

2003-09-25 Thread Martin Towell
What about something like this? (actual code not tested, but concept has...) class FOO { function Fred() { echo "Fred in FOO"; } } class BAR { function Fred() { echo "Fred in BAR"; } } class BAZ { var $subclass; function BAZ($num) { if ($num == 1) $this->subclass = new FOO();

[PHP] cannot execute?

2003-09-25 Thread Martin Hudec
- -- Martin Hudec - -- :@: [EMAIL PROTECTED] :w: http://www.corwin.sk :m: +421.907.303.393 - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/cu2b1VPr1EE7sj4RAjiRAKCKgQDRmp6b7SjW3VnT5lMlBr2YFQCgkL2h FypoB1eyT/Xux1vs9u415ro

Re: [PHP] cannot execute?

2003-09-25 Thread Martin Hudec
t; > Also, the webserver user have write (not only read) the file ? > - -- kind regards - -- Martin Hudec - -- :@: [EMAIL PROTECTED] :w: http://www.corwin.sk :m: +421.907.303.393 - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.

Re: [PHP] cannot execute?

2003-09-25 Thread Martin Hudec
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyway I can't understand why php does not return any message in this: $mess = "blablabla"; if (exec("mogrify blbalba")) { $hlaska .= "xixixixix"; } echo $hlaska; - -- kind regards - -- Martin Hudec -

[PHP] Broken pipe: core_output_filter: writing data to the network

2003-09-25 Thread Martin Greco
:25 2003] [info] (32)Broken pipe: core_output_filter: writing data to the network. have no more data about this. I don't know if it is a Apache or PHP problem. Any thoughts? Thanks -- ### # Martin Greco -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Initial Value for Input Box

2003-09-29 Thread Martin Towell
Hiya, Replace " with " Martin -Original Message- From: Cristian Lavaque [mailto:[EMAIL PROTECTED] Sent: Tuesday, 30 September 2003 5:09 PM To: [PHP] Subject: Re: [PHP] Initial Value for Input Box Matt Palermo wrote: > I have a form that a user can fill out. In the text

Re: [PHP] Page cannot be displayed

2003-09-30 Thread Martin Clarke
ith IE : "The page cannot be displayed" > with Opera 7, Mozilla : nothing > anything useful in the apache logs? (error.log?) ? Martin. -- "Real Programmers don't document - if it was hard to write is should be hard to understand.." -- PHP General Mailing List

RE: [PHP] File question

2003-10-01 Thread Martin Towell
Try something like this (quick and dirty...) $file_array = file("list.txt"); $myarray = explode(",", $file_array[0]); HTH Martin -Original Message- From: ketvin [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 October 2003 5:05 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Show index.php instead of index.html

2003-10-01 Thread Martin Towell
Hi It depends on the web server you're using... Martin -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 October 2003 12:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Show index.php instead of index.html Hi, I just deleted my index.html page because i wa

RE: [PHP] FLOAT

2003-10-02 Thread Martin Towell
http://php.net/number_format -Original Message- From: Dale Hersh [mailto:[EMAIL PROTECTED] Sent: Friday, 3 October 2003 10:27 AM To: [EMAIL PROTECTED] Subject: [PHP] FLOAT Hi. I have a question regarding how to manipulate numbers in php. I am currently storing some values as type float i

RE: [PHP] date brain teaser

2003-10-02 Thread Martin Towell
How about something similar, but look for the first Friday and then add seven days (or 604800 seconds) to get the date of the next Friday? -Original Message- From: J Morton [mailto:[EMAIL PROTECTED] Sent: Friday, 3 October 2003 11:20 AM To: Shew; [EMAIL PROTECTED] Subject: Re: [PHP] date b

RE: [PHP] ImageColorAllocate() Problem

2003-10-02 Thread Martin Towell
I think it might be because you're passing a string to the function instead of a hex value... try changing it to this and see if it works $color = ImageColorAllocate($im, hexdec($hex1), hexdec($hex2), hexdec($hex3)); HTH Martin -Original Message- From: Jed R. Brubaker [mailto:[

[PHP] null character - file related function

2003-10-06 Thread Martin Straka
Hi, Is somewhere documented that everything after NULL (0x00 %00) character is ignored for example in functions include, fopen etc? Martin Straka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] null character - file related function

2003-10-06 Thread Martin Straka
why the 0x00 is not? $a = "http://xxx/test?a=aaa".chr(1).chr(2).chr(0)."bbb"; include($a); (it is requesting: http://xxx/test?a=aaa\x01\x02) example 2: $a = "1234 abc".chr(1).chr(0)."def"; $b = escapeshellcmd($a); echo $b; [$b is "1234 abc

[PHP] function call before declaration

2003-10-07 Thread Martin Hochstraßer
Hi! I got a problem with functions which I call before they're defined. I get the error message: Fatal error: Call to undefined function: view() in /daten/www/midgard/cache/62.php on line 470 The code snippet: 8<- switch($argv[0]) { case 'view': view((int)

RE: [PHP] do I need a database

2003-10-07 Thread Martin Towell
Hi Sudheer, Depends on what you want to do with the data afterwards. Maybe a flat file would be enough? Martin -Original Message- From: Sudheer Palaparambil [mailto:[EMAIL PROTECTED] Sent: Wednesday, 8 October 2003 2:50 PM To: [EMAIL PROTECTED] Subject: [PHP] do I need a database Hi

RE: [PHP] Re: OFF-SHORE PHP &/or Perl Developer + MySQL &/or Post greSQL

2003-10-09 Thread Martin Towell
What?! Even sweatshop workers earn more than that! -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Friday, 10 October 2003 1:28 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: OFF-SHORE PHP &/or Perl Developer + MySQL &/or PostgreSQL Thought y'all might get a kick out of

RE: [PHP] Maybe a silly question

2003-10-09 Thread Martin Towell
It's used on objects. In the examples below, $test_url and $test_this are both properties of an object ($test) have a bit of a read of this: http://php.net/manual/en/language.oop.php HAND Martin -Original Message- From: Tom Ray [Lists] [mailto:[EMAIL PROTECTED] Sent: Frida

RE: [PHP] PHP & JavaScript

2003-10-22 Thread Martin Towell
|"; > ?> > > I know that this code is not working, it is just to see what I want to > do. > If somebody know a solution, like this, then please let me know. What are you trying do? Are you trying to pass to PHP the user's screen width and height ? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Age from birthdate?

2003-10-22 Thread Martin Towell
> * Thus wrote Ashley M. Kirchner ([EMAIL PROTECTED]): > > Curt Zirzow wrote: > > > > >I do wonder what the rule for those born on Feb 29'th. Do they > > >celebrate they're birthday before or after it on non leap years? > > > > > > > >Neither. They celebrate it on Feb 29th. So while we age

RE: [PHP] Php and Fortune

2003-10-22 Thread Martin Towell
> Chuck PUP Payne wrote: > > Hi, > > > > Is there a way I can get php to call the program fortune > then print that a > > web page. > > > > Thanks. > > > > Payne > > > > echo ''; > passthru(fortune); > echo ''; > > Should do it. I use this for a nice little Server Status page that > iterate

RE: [PHP] problem in 2 dimensional Array

2003-10-22 Thread Martin Towell
r[0] = array(); $myvar[0][0] = "myval"; etc... or directly $myvar[0][0] = "myval"; 2. The same way you pass any other variable to a function myfunc($myvar); HTH Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] if and like together?

2003-10-26 Thread Martin Towell
strstr() and it's variants ereg() if you need more logic Martin -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED] Sent: Monday, 27 October 2003 12:13 PM To: [EMAIL PROTECTED] Subject: [PHP] if and like together? Hi, Is there an IF LIKE statement in PHP? I

RE: [PHP] Shortening a String

2003-10-28 Thread Martin Towell
substr($str, 0, 200); or an (untested) ereg ereg("(.{200}[^ ]*)", $str, $bits); HTH Martin -Original Message- From: Jason Williard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 1:53 PM To: [EMAIL PROTECTED] Subject: [PHP] Shortening a String I would like to di

RE: [PHP] conditional within SELECT

2003-10-29 Thread Martin Towell
Keywords) $sql .= " AND MATCH (robeson_inv.specs) AGAINST ('$vKeywords')"; $sql .= " ORDER BY robeson_inv.model"; Martin -Original Message- From: Robb Kerr [mailto:[EMAIL PROTECTED] Sent: Thursday, 30 October 2003 11:59 AM To: [EMAIL PROTECTED] Subje

RE: [PHP] Image resize with background.

2003-11-02 Thread Martin Towell
try the resize copy function (can't remember the exact name ATM) Set the destination's first colour to the desired background colour, then copy/resize the image to it. Martin -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, 3 November 2003 12:36 PM

RE: [PHP] drop menu last entry

2003-11-04 Thread Martin Towell
Hi Juan, I think some sort of look up file or database table based on the computer's IP address would probably be the easiest method. Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 9:49 AM To: [EMAIL PROTECTED] Subject:

RE: [PHP] text input truncated

2003-11-04 Thread Martin Towell
Put quotes around all the values, like: echo ""; Martin -Original Message- From: Jay Frumkin [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 10:28 AM To: '[EMAIL PROTECTED]' Subject: [PHP] text input truncated Hi all, I am having a bit of a problem,

RE: [PHP] Ive lost a zero somewhere

2003-11-05 Thread Martin Towell
number_format or (s)printf -Original Message- From: Richard Cook [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 November 2003 2:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Ive lost a zero somewhere I have a problem with the following when i multiply for example 25 . 50 * 3 i get 76 . 5 how

RE: [PHP] Trouble sending an image's contents as output using hea der Content-Type...

2003-11-09 Thread Martin Towell
Maybe there's an error with _generateThumbnail() ? Do you know for certain that _generateThumbnail() works okay ? Martin -Original Message- Hi all: I have a page with a img tag: The script getthumbnail.php searchs for a thumbnail of the specified image id; if not thumbnail e

[PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Any ideas? Tx, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Hi Chris, no, unfortunately, that doesn't work; it creates a permanent socket on the server, but between page reads, php still loses its resource id, and can't communicate with the socket... Martin "Chris Hayes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROT

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Hi Chris, yes, that's precisely my problem (I had read the notes). This seems like something people would want to do, so I'm surprised no one's found some workaround. Any other ideas? "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Hi Dan, sounds like a good idea. How does 'gateway' actually listen in on the website session? Is it simply invoked by the website with specific arguments? Tx, Martin "Dan Joseph" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > >

Re: [PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
Great! Thanks Dan. I'll be making a php version of something similar. Martin "Dan Joseph" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > > sounds like a good idea. How does 'gateway' actually listen in on the > > web

RE: [PHP] How to adpated a javascrip with php...

2003-11-11 Thread Martin Towell
{ > > boardNum++; > > } else { > > boardNum = 0; > > } > > } > > function jumpBillboard() { > > window.location.href = url[boardNum]; > } > Try something like this billboards = new Array(); > $i = 0; while ($something from database) { ?> billboards[] = new Image(); billboards[].src = ""; Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] sorting files by date

2003-11-11 Thread Martin Towell
surely sort() would do the trick? Martin > -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 12 November 2003 12:13 PM > To: php > Subject: [PHP] sorting files by date > > > Hi, > > I have a dir of files saved in th

[PHP] js, printing and redirection

2003-11-12 Thread Martin Marques
I need to print a page and redirect the browser to another page. As it can't be done with PHP, I thought about using javascript. Can anyone give me an advise on how to do it? -- 19:13:01 up 22 days, 2:35, 3 users, load average: 0.08, 0.15, 0.26 --

Re: [PHP] js, printing and redirection

2003-11-12 Thread Martin Marques
El Mié 12 Nov 2003 19:36, Marek Kilimajer escribió: > Martin Marques wrote: > > I need to print a page and redirect the browser to another page. As it > > can't be done with PHP, I thought about using javascript. Can anyone give > > me an advise on how to do it? > &g

Re: [PHP] js, printing and redirection

2003-11-12 Thread Martin Marques
El Mié 12 Nov 2003 19:59, Marek Kilimajer escribió: > Martin Marques wrote: > >> > >>function printAndRedirect() { > >> print(); > >> location="someotherscript.php"; > >>} > >> > > > > Yes, I already have this

RE: [PHP] sorting files by date

2003-11-12 Thread Martin Towell
This only really works if your format's /MM/DD It wont work if it's DD/MM/, MM/DD/, /DD/MM, etc, etc Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ereg_replace help

2003-11-17 Thread Martin Towell
therwise I wouldn't be emailing the list... Can anyone help? I need to use ereg_replace() because it's part of our code library and therefore can't change :( TIA Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ereg_replace help

2003-11-18 Thread Martin Towell
> * Thus wrote Martin Towell ([EMAIL PROTECTED]): > > Hi All, > > > > I have an array of strings in the following format: > > "abcd - rst" > > "abcd - uvw" > > "abcd - xyz" > > "foobar - rst&

RE: [PHP] HTML email problem

2003-11-19 Thread Martin Towell
When I send HTML emails, I don't base64 encode it, I just set the content-type to text/html. The mail clients that I've tested it with renders it correctly HTH Martin > I m sendig out HTML email, using mimemail class which encodes > the whole message to be sent in base64 and &g

[PHP] date question

2003-11-19 Thread Martin Cameron
$ndays=14; function get_next_dates($ndays) { $today=date("m-d-Y",mktime(0,0,0,date("m"),date("d"),date("Y"))); $forward_date=date("m-d-Y",mktime(0,0,0,date("m"),date("d")+$few_days,date("Y"))); print "$today === $few_days === $forward_date"; for($i=0;$i<$ndays;$i++) { $new_days_array[]=date(

RE: [PHP] Where can i find error log

2003-11-20 Thread Martin Towell
look for this line in your php.ini file error_log = filename but that's only going to help if you have log_errors = On HTH Martin > -Original Message- > From: Manisha Sathe [mailto:[EMAIL PROTECTED] > Sent: Friday, 21 November 2003 12:19 PM > To: [EMAIL PROTECTED

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Martin Hudec
ctory. > > > > > > > > Brona > > > > > I am getting this error once i run the script > > > > > > Warning: move_uploaded_file(img/matrix.jpg): failed to open stream: > > > Permission denied in /blah/blah > > > Do i need to set t

Re: [PHP] Apache 2.*

2003-11-24 Thread Martin Hudec
> echo "Values submitted via POST method:"; > reset ($HTTP_POST_VARS); > while (list ($key, $val) = each ($HTTP_POST_VARS)) { > echo "$key => $val"; > } > > ?> > > but if I call the variable directly > > it prints nothing, should I go

Re: [PHP] Apache 2.*

2003-11-24 Thread Martin Hudec
y > that you're using a version of PHP that is recent enough to have $_POST. > So, you can use $_POST['foo'] instead of $HTTP_POST_VARS['foo']. Not only > is it shorter, I believe the older name is deprecated. -- : :. kind regards :.. Martin Hudec

RE: [PHP] Conditional anchor href value

2003-12-02 Thread Martin Towell
you might be able to put the id of the next/prev card as the value of the and then use javascript to generate the url. the only reliance then would be that the browser as JS enabled, as the above should be possible with the most basic of JS HTH Martin > -Original Message- > From

RE: [PHP] Variables scope question

2003-12-03 Thread Martin Towell
This doesn't sound right. It's doesn't behave like this for me. Can you supply an example? Martin > -Original Message- > From: Mike D [mailto:[EMAIL PROTECTED] > Sent: Thursday, 4 December 2003 10:35 AM > To: PHP General list > Subject: [PHP] Variable

RE: [PHP] Sort Array by date

2003-12-04 Thread Martin Towell
)."\n"; return strcmp($a, $b); } "interesting" results Here's an alterative to this function that works (might not be the best way though??) function date_file_sort($a, $b) { list($x, $y, $z) = explode("-", $a); $a = "$z-$y-$x"; list($x, $y, $z)

Re: [PHP] Apache 2 + PHP

2003-12-05 Thread Martin Hudec
Just thought I would check. -- : :. kind regards :.. Martin Hudec :.: :.: =w= http://www.aeternal.net :.: =m= +421.907.303393 :.: [EMAIL PROTECTED] [EMAIL PROTECTED] :.: :.: "When you want something, all the universe :.: conspires in helping you to achieve it." :.:

RE: [PHP] Constraint Violation when INSERT

2003-12-09 Thread Martin Towell
here??? > Hope to get some help soon. Thanks in advance=) > > Irin. Don't you need to quote your strings? $sql = "INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile) VALUES ('$tutor_name','$tutor_contact','$tutor_email','$tutor_profile')"; Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Starting OOP

2003-12-15 Thread Martin Towell
CT SQL CODE using $this->ponum, RETURN RESULTS (ie. while($row=mssql_fetch_array($rst)){echo $row[0]}) } } ?> HTH Martin > -Original Message- > From: Mike Smith [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 16 December 2003 10:22 AM > To: [EMAIL PROTECTED] > Subject

RE: [PHP] $_POST[]

2003-12-18 Thread Martin Towell
It should have quotes, unless you have defined formReviewBy as a constant PHP's nice enough to interpret it as a string if using it as a constant fails, but you should still quote it anyway. Martin > > > Should $_POST[formReviewBy] have quotes or dose it not matter? -- PHP G

RE: [PHP] Why won't this form post session variables?

2003-12-21 Thread Martin Towell
I haven't used sessions before, but it doesn't look like the variables are being put into the session. If they're coming from a form, then they would appear in the $_POST or $HTTP_POST_VARS variables, not the $HTTP_SESSION_VARS variable. HTH Martin > -Original Message--

[PHP] ereg + performance problem

2004-01-01 Thread Martin Helie
Hello, I'm writing a routine that recursively reads an HTML document, looking for "special tags". It's a template system, but contrary to what I've seen out there so far, no template engines allow for any kind of customization from within the document; they only seem to be variable replacement sys

Re: [PHP] ereg + performance problem

2004-01-02 Thread Martin Helie
rsing > larger or complex files is much better to use state machine (finite > state automaton). Try to search google for more theory. For ex. > http://en.wikipedia.org/wiki/Finite_state_automaton > > Martin Helie wrote: > > Hello, > > > > I'm writing a routine t

[PHP] Re: Sort a while loop ?

2004-01-02 Thread Martin Helie
Since you mention mysql, why not just add "ORDER BY number DESC" to your query? The database will do the work for you. "Dave Carrera" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi List, > > How can I sort a while loop or do something before it to achieve the > following? > >

[PHP] Re: extract/replace the content of html pages

2004-01-02 Thread Martin Helie
Not sure I understand, but it sounds like you'd want to do something like: $dir = "yourdir/"; $d = dir( $dir ); while (false !== ($file = $d->read())) { if( substr( $file, 0, 1 ) == "." ) { continue; } $fp = fopen( $dir . $file, "r" ); $contentArray = split( "", fread( $fp

[PHP] Re: Redirection to a named frame

2004-01-03 Thread Martin Helie
How about simply: echo " window.top.main.location= 'http://localhost/phase1/report.php''; "; ? "Geoffrey Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I was only able to find one reference to targeting a named frame

RE: [PHP] Looping problem?

2004-01-06 Thread Martin Towell
everything out formated... for ($z = 0; $z < $num; $z++) echo "$vlans[$z]\n"; Martin > -Original Message- > From: Jas [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 7 January 2004 9:05 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Looping problem? > > > r

RE: [PHP] Re: Sorting data into columns vertically

2004-01-07 Thread Martin Towell
...) Martin > -Original Message- > From: Matt Grimm [mailto:[EMAIL PROTECTED] > Sent: Thursday, 8 January 2004 9:37 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Sorting data into columns vertically > > > Well you didn't say you wanted a dynamic number of colum

RE: [PHP] multi-table select?

2004-01-14 Thread Martin Towell
This is a basic table join: select * from teams, divisions where teams.divisionID = divisions.divisionID > -Original Message- > From: Kirk Babb [mailto:[EMAIL PROTECTED] > Sent: Thursday, 15 January 2004 9:41 AM > To: [EMAIL PROTECTED] > Subject: [PHP] multi-table select? > > > I'm lo

RE: [PHP] Odd Code Error.

2004-01-20 Thread Martin Towell
I've come across this recently too. I think what's happening is that PHP is converting "NFH" to an integer, which would be zero in this case. Thus zero == zero is true... Try doing type checking too: if ($EA === "NFH") Martin > I am so frustrated at

RE: [PHP] Odd Code Error.

2004-01-21 Thread Martin Towell
will return > false. However, when you enclose the 1 in quotes, it becomes > a string > too for comparison, and will evaluate to 0. Someone correct > me if I am > mistaken. I think the first bit of what you're saying is right, but when '1' is used, then a string comparison between '0' === '1' is done since both are now strings (or am I mistaken?). Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Segmentation fault problem

2004-01-22 Thread Martin Luethi
output... with this information you can see which php-command causing the seg fault -> http://bugs.php.net/bugs-generating-backtrace.php g. martin luethi > Program received signal SIGSEGV, Segmentation fault. > 0x7bacedcc in zend_parse_arg_impl (arg=0x1003853c0, >

Re: [PHP] Regexp help (simple)

2004-01-22 Thread Martin Luethi
ttern.syntax.php) g. martin luethi Thu, 22 Jan 2004 15:43:19 +0100 Victor Spång Arthursson <[EMAIL PROTECTED]>: > > 2004-01-22 kl. 10.40 skrev Dagfinn Reiersøl: > >> I assume you mean: >> >> $test = split_bokid("ääö12345"); > > Yes! > >> I don

RE: [PHP] newbie issues with control structures & HTML form

2004-01-22 Thread Martin Towell
hould do the trick HTH Martin > -Original Message- > From: Jonno Agnew [mailto:[EMAIL PROTECTED] > Sent: Friday, 23 January 2004 7:16 AM > To: [EMAIL PROTECTED] > Subject: [PHP] newbie issues with control structures & HTML form > > > > Hello. > > OK,

RE: [PHP] Segmentation fault problem

2004-01-23 Thread Martin Luethi
(on win32 only): [28 Nov 2002 7:06am EST] [EMAIL PROTECTED] Not really a PHP bug; bug is in the PCRE library itself and is because you are asking it to capture a very large number of individual character matches. Increasing your stack size might help (ulimit). g. martin luethi Thu, 22 Jan 2004 14

Re: [PHP] How do I regain the ability to create databases (phpMyAdmin)?

2004-01-23 Thread Martin Luethi
check if the user you defined in phpMyAdmin/config.inc.php ($cfg['Servers'][$i]['user'] = ???) has the right to create new databases (db: mysql / table: user / field: Create_priv='Y') restart the mysql-server after altering the database mysql g. martin luethi F

Re: [PHP] date(F) +1

2004-01-26 Thread Martin Luethi
try g. martin luethi Mon, 26 Jan 2004 03:08:30 -0500 John Taylor-Johnston <[EMAIL PROTECTED]>: Did I miss something at the FAQ? date("F"); gives me this month. Can I get it to give me next month? These combinations don't work: What is the minimum version for this t

Re: [PHP] Detect language date(F)

2004-01-26 Thread Martin Luethi
e current locale-informations -> http://ch2.php.net/manual/en/function.strftime.php sample script: g. martin luethi Mon, 26 Jan 2004 03:29:16 -0500 John Taylor-Johnston <[EMAIL PROTECTED]>: Thanks!! :) Getting tired at this hour. Is there a way to detect the language of the browser and echo the

Re: [PHP] Fwd: Re: session start

2004-01-26 Thread Martin Luethi
edit "php.ini" and define a session.save_path e.g. on windows: session.save_path = c:\winnt\temp -> http://ch.php.net/en/session g. martin luethi Loh tuck yong wrote: Hi, i have a problem with the method session_start() this is the warning message generated, and for the php, i hav

[PHP] How to pipe a command output into another command

2001-02-21 Thread Martin Kong
>From within PHP, I'm trying to execute an external command and pipe (|) the result into another command, then capture the output. I've tried everything, exec, system, passthru, popen and backtick, and still could get it to work. Has anyone done it before? Is it possible with PHP? Running PHP

Re: AW: [PHP] How to pipe a command output into another command

2001-02-23 Thread Martin Kong
t; -Ursprungliche Nachricht- > Von: Martin Kong [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 21. Februar 2001 15:45 > An: [EMAIL PROTECTED] > Betreff: [PHP] How to pipe a command output into another command > > >From within PHP, I'm trying to execute an external comm

[PHP-CVS] cvs: php4 /pear/Benchmark Iterate.php

2001-03-02 Thread Martin Jansen
mj Fri Mar 2 10:24:00 2001 EDT Modified files: /php4/pear/BenchmarkIterate.php Log: - added check for existing bcmath extensions to Benchmark/Iterate.php - did some cosmetic changes to Benchmark/Iterate.php Index: php4/pear/Benchmark/

[PHP-CVS] cvs: php4 /pear Cache.php

2001-03-04 Thread Martin Jansen
mj Sun Mar 4 06:26:59 2001 EDT Modified files: /php4/pear Cache.php Log: fixed typo Index: php4/pear/Cache.php diff -u php4/pear/Cache.php:1.3 php4/pear/Cache.php:1.4 --- php4/pear/Cache.php:1.3 Sat Mar 3 11:21:49 2001 +++ php4/pear/Cache.php Sun

[PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Martin Hughes
files does not have to be .txt) This seems to be a basic thing EVERY website done with php achieves - HOW (I am NOT familiar with php!! - English please :0)) Many Thanks :0), Martin == Musical Director University of York Gilbert & Sull

[PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Martin Hughes
and the link LINK ..but with audio, visual, act 1, act 2, orchestra, cast, and loads of other "pages". Do I put: etc. in every page? Or is there a way of doing the whole link thing and changing several frames with one link in php (just by the .php?page=foo action) I h

[PHP] Value of if(isset(X)) problem

2001-03-06 Thread Martin Skjöldebrand
Sorry bout the length I'm a newbie to PHP/MySQL so bare with me ... Here's a snippet of an app I'm hacking. I have a form that should update a client form. the cl_ are taken from a database table and works nicely. The point of this that they should possibly be replaced by txtXXX and put

[PHP] Including file...

2001-03-10 Thread Martin Hughes
quot;, "dx7", "k2000", "k2vx", "k2500"); $audio = array("audiomain", "synth"); $recordings = array("recordingsmain", "reccompare", "olc", "obc", "csr", "ta

[PHP] Variable scope

2001-03-10 Thread Martin Skjöldebrand
How do I make a variable persistent between webpages? V e r b a l -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] How to str-replace

2001-03-13 Thread Martin Thoma
Hi ! How can I replace a string (like "") case-insensitive (replace also "", "",""...) ? str_replace is case-sensitive. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: [PHP] How to str-replace

2001-03-13 Thread Martin Thoma
I found out to use eregi_replace. Martin Thoma schrieb: > Hi ! > > How can I replace a string (like "") case-insensitive (replace > also "", "",""...) ? str_replace is case-sensitive. > > Martin > > -- > PHP General Mailing Li

[PHP] Replace everything except of...

2001-03-13 Thread Martin Thoma
Hello ! How can I use eregi_replace to replace every ">" with ">", except when it's "" ?? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

[PHP] Maintaining Session State Across Clusters

2001-03-13 Thread Martin Cameron
Does anyone know if it is possible to maintain session state across a cluster of four web servers? Regards Martin Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Tutorial for RegExpressions

2001-03-14 Thread Martin Thoma
Hi ! Does someone know a good tutorial für regula-expression, like they are used in ereg and preg ? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e

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