[PHP] HTML page and php

2002-11-21 Thread Martin Johansson
How do I get a html page into a string variable in php? Isnt there any function working like this: $homepage = getHtmlPage(http://www.myhomepage.com/index.html); /Newbie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] inserting preexisting image inside dynamic image

2002-11-24 Thread Martin Towell
try these: ImageCopy*() -Original Message- From: Eric Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 2:57 PM To: [EMAIL PROTECTED] Subject: [PHP] inserting preexisting image inside dynamic image Hi there... Just wondering... when creating a dynamic image, is there a

[PHP] Newbie: ereg

2002-11-25 Thread Martin Johansson
Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Missing images

2002-11-26 Thread Martin Johansson
the pictures. Maybe this is the problem you have? /Martin Hi all I have kind of a very strange problem... But I hope someone can help. Imageing a little web-based application for browsing images. Every page is exactly the same (from a php point of view). A user can browse through all the images which

Re: [PHP] store images in mysql tables

2002-11-26 Thread Martin Johansson
Yes you can store images in a mysql table. But you will have to create a new binary database. You can read here how it works: http://www.phpbuilder.com/columns/florian19991014.php3 It is a easy to understand text. /Martin Justin French [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED

AW: [PHP] can't pass complete URL (part of the query string) from one script to another --??

2002-11-26 Thread Martin Lucas
hi nicole, do you have an example what your query contains ? maybe urlencode($pageURL) or quoting will help greetings martin -Ursprüngliche Nachricht- Von: Nicole Lallande [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 26. November 2002 15:40 An: [EMAIL PROTECTED] Betreff: [PHP

RE: [PHP] Disable refresh?

2002-12-01 Thread Martin Towell
Martin -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 12:33 PM To: PHP List Subject: RE: [PHP] Disable refresh? If not, is there a variable that provides information that a refresh occurred to load the page? Larry S. Brown Dimension Networks

[PHP] How to get/wait for user-input?

2002-12-02 Thread Martin Thoma
Hello! I'm using a PHP-script as a small console-app. Is the only way to give parameters to it the $QUERY_STRING, or can I wait for the user to input something (like scanf in C)? I couldn't find anything in the docs, so perhaps this is not possible?! Martin -- PHP General Mailing List (http

[PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
or printing Ok!) I'm using PHP 4.2.3. on Windows2000). Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
Hi, What do argv and argc tell you? Is the php.ini file set up so that these variables are shown/valid? Undefined variable: argv - so I guess this is the problem ;-) What do I have to change in the php.ini? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
ll I found a register_argc_argv = On in my php.ini, which should work then. But I also found, that I have to use print Ok: .$_SERVER[argv][1]; instead of print Ok: .$argv[1]; Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
Martin, Ah yes, the famous 'read the upgrade notes - gotcha'! Well done, you figured it out... =dn Thanx for your help, it pointed me in the right direction ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Initial Value for Input Box

2003-09-30 Thread Martin Towell
Hiya, Replace with quot; 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 input field

Re: [PHP] Page cannot be displayed

2003-09-30 Thread Martin Clarke
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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net

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] File question Dear

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 want

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

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

RE: [PHP] ImageColorAllocate() Problem

2003-10-03 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:[EMAIL

[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? ? $a = /etc/passwd.chr(0)..inc; include($a); ? Martin Straka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] null character - file related function

2003-10-06 Thread Martin Straka
?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.chr(1)] Martin Straka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[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':

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: Friday, 10

RE: [PHP] PHP JavaScript

2003-10-22 Thread Martin Towell
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 every year,

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 'pre'; passthru(fortune); echo '/pre'; Should do it. I use this for a nice little Server Status page that iterates through an array

RE: [PHP] problem in 2 dimensional Array

2003-10-23 Thread Martin Towell
... 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've got

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 display part

RE: [PHP] conditional within SELECT

2003-10-29 Thread Martin Towell
('$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] Subject: [PHP] conditional within SELECT Here's another newbie question. The SELECT statement below gets

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 To: [EMAIL

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: [PHP

RE: [PHP] text input truncated

2003-11-04 Thread Martin Towell
Put quotes around all the values, like: echo forminput type='test' size='25' value='$xyz'/form; 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

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: img src=/getthumbnail.php?fileid=12230983 The script getthumbnail.php searchs for a thumbnail

[PHP] resource handle - keeping alive?

2003-11-10 Thread Martin Helie
, 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 PROTECTED] At 16:09 10-11-03, you

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 PROTECTED] --- Martin Helie [EMAIL PROTECTED

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, Quick answer: as others before me have also

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 website session? Is it simply invoked by the website

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

2003-11-11 Thread Martin Towell
= ?=$something?; ? $i++; } ? 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 the following format: -MM-DD.mp4. I

[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? You are right, and that means you should

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: script function printAndRedirect() { print(); location=someotherscript.php; } /script Yes, I already have this. My problem is that I want to make it work on the event Onload (when the page ends

RE: [PHP] sorting files by date

2003-11-12 Thread Martin Towell
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
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 blah - rst googol - uvw What I want to do is strip everything from the - bit of the string

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 Content-Transfer

[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 h1$today === $few_days === $forward_date/h1; for($i=0;$i$ndays;$i++) {

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] Subject: [PHP] Where

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

2003-11-22 Thread Martin Hudec
the script Warning: move_uploaded_file(img/matrix.jpg): failed to open stream: Permission denied in /blah/blah Do i need to set the chmod of the img folder? Cheers Paul -- : :. kind regards :.. Martin Hudec :.: :.: =w= http://www.aeternal.net :.: =m

Re: [PHP] Apache 2.*

2003-11-24 Thread Martin Hudec
($HTTP_POST_VARS); while (list ($key, $val) = each ($HTTP_POST_VARS)) { echo $key = $valbr; } ? but if I call the variable directly ? echo $renaldo; ? it prints nothing, should I go ahead and take apache 2.* off my box or if the fix easy. -- : :. kind regards :.. Martin

Re: [PHP] Apache 2.*

2003-11-24 Thread Martin Hudec
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 :.: :.: =w= http://www.aeternal.net :.: =m

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 option 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] Variables scope question Hello, I have

RE: [PHP] Sort Array by date

2003-12-04 Thread Martin Towell
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) = explode(-, $b); $b = $z-$y-$x; return -strcmp($a, $b); } HTH Martin I have a bunch of dates

Re: [PHP] Apache 2 + PHP

2003-12-05 Thread Martin Hudec
:.. 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. :.: - The Alchemist (Paulo Coelho) -- PHP General Mailing List

RE: [PHP] Constraint Violation when INSERT

2003-12-09 Thread Martin Towell
??? 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

RE: [PHP] Starting OOP

2003-12-15 Thread Martin Towell
$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: [PHP] Starting OOP I've been doing

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 ?php if ($_POST[formReviewBy]==Cade Lloyd) { echo selected; } ? Should $_POST[formReviewBy

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- From: Dave G

[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

Re: [PHP] ereg + performance problem

2004-01-02 Thread Martin Helie
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 that recursively reads an HTML document, looking for special tags. It's a template system, but contrary

[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? I have a

[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( !--[a-z ]--, fread(

[PHP] Re: Redirection to a named frame

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

RE: [PHP] Looping problem?

2004-01-06 Thread Martin Towell
++) echo $vlans[$z]br /\n; Martin -Original Message- From: Jas [mailto:[EMAIL PROTECTED] Sent: Wednesday, 7 January 2004 9:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Looping problem? require 'database.php'; $t_02 = subnets; $sql_subs = mysql_query(SELECT * FROM $t_02,$db

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 columns... What's the problem

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 looking

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 the moment with coding. I had an odd

RE: [PHP] Odd Code Error.

2004-01-21 Thread Martin Towell
, 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
... 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, va=0x7ffe3a88, spec=0x7ffe3a58

Re: [PHP] Regexp help (simple)

2004-01-22 Thread Martin Luethi
maybe this work: replace the special-characters first, eg.: $bokid = str_replace(å, _, $bokid); and replace them back after preg_match or try the preg_match with the hexcode of this special chars: \xhh character with hex code hh (http://ch2.php.net/manual/de/pcre.pattern.syntax.php) g. martin

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

2004-01-22 Thread Martin Towell
name=guessnumb value=?php echo $guessnumb; ? / change one of these to something else and that should 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

RE: [PHP] Segmentation fault problem

2004-01-23 Thread Martin Luethi
matches. Increasing your stack size might help (ulimit). g. martin luethi Thu, 22 Jan 2004 14:20:56 -0500 E. Stuart Hicks [EMAIL PROTECTED]: Please disregard my last post - I'd switched Apache back from the debug module for the night and forgotten to turn it back on. I've attached the full trace

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 Fri, 23 Jan 2004 01:26:46 -0800

Re: [PHP] date(F) +1

2004-01-26 Thread Martin Luethi
try ?= date(F, strtotime(+1 month)); ? 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: ?php echo date(F)+1; ? ?php echo

Re: [PHP] Detect language date(F)

2004-01-26 Thread Martin Luethi
)); ? 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 name of the month in that language? ?= date(F, strtotime(+1 month)); ? Thanks, John -- PHP General

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 have only 1 line

Re: [PHP] Detect language date(F)

2004-01-26 Thread Martin Luethi
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 Accept-Language- Header from

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

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 Trpanier [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 the

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 -0500 Benjamin Trépanier [EMAIL

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

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 whose

RE: [PHP] comparing dates

2004-02-01 Thread Martin Towell
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 have some dates in the database

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 I did not

[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[PHP_SELF]; returns /c/hosting/newman

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 array_multisort(), but still can't get a grip

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

2004-02-10 Thread Martin Towell
: include $dir/file.php vs. include($dir/file.php) Both work just fine. The manual includes examples of both methods. So which do most people consider 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

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: Wednesday, 11 February 2004 1:53 PM

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 - $valuebr\n; } Martin -Original Message- From: Matthew Oatham [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 February 2004 11:29 AM

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 To: [EMAIL PROTECTED] Subject: [PHP

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 hi! i suppose this is more

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

2004-03-03 Thread Martin Towell
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

<    10   11   12   13   14   15   16   17   18   19   >