RE: [PHP] How to Show my Own Error Message Instead of Mysql Error?

2002-06-20 Thread Martin Towell
what about doing a "select count(*) from table where username = 'foobar'" then, if ($cnt > 0) { /* display error */ } else { /* insert new username */ } -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 2:07 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [

[PHP] Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
line 9 Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\devproc\beta\inside.php:4) in c:\inetpub\wwwroot\devproc\beta\inside.php on line 10 What is wrong! Please help me someone!!! /Martin --- Ditt utgående mail är virusfritt. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.371 / Virus Database: 206 - Release Date: 2002-06-13

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
I tried your stuff but it didnt help me! Still works in explorer but when I tried it in netscape It says ERROR!!! in netscape if (isset($devProcTailorCookie)) { $tok = explode("|", $devProcTailorCookie); } else { echo "ERRROR!!!"; } I have global_variables turned on i

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Another thing! when I look in netscape/preferences/privacy&security/cookies/view Stored Cookies.. there is no cookie for my website.. isnt that strange? /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
()+10); But now it doesnt work in explorer. But I would be able to fix that. Thanks /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Limiting text inputs by character count?

2002-06-23 Thread Martin Towell
a) maxlength="xx" b) use javascript (document.forms["frm_name"].elements["textarea"].value.length) (I think you need the ".value" bit) -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 11:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Limiting

RE: [PHP] Time Delay using phpscript

2002-06-23 Thread Martin Towell
maybe while(true) { echo "word"; flush(); sleep(1); } but I don't think that's exactly what you want, is it? -Original Message- From: Uma Shankari T. [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 1:14 PM To: PHP Subject: [PHP] Time Delay using phpscript Hello, Can an

RE: [PHP] rounding a number

2002-06-23 Thread Martin Towell
according to the pdf version of the manual I have, round() is what you need float round(float val[, int precision]) have another look that the man page -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 1:35 PM To: [EMAIL PROTECTED] Subject:

[PHP] Insert with one button

2002-06-24 Thread Martin Kampherbeek
Hello, I'm making a predictions competitie for soccer. Now I've got a form with the matches for that weekend and some selectboxes with 1 to 9 for the goals. At the bottum of the form is a Submit button. What I want is to insert all the scores in my table predictions with just that one button.

RE: [PHP] Re: regular expressions

2002-02-21 Thread Martin Towell
yeah! remember that php interprets the string first, before it gets to reg.ex. !! That's some I keep forgetting... lol Martin -Original Message- From: Murray Chamberlain [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 2:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: re

RE: [PHP] Re: Creating methods runtime

2002-02-21 Thread Martin Towell
;'); echo $blah->user_func("new_func", 3, 4); echo $blah->user_func("none", 3, 4); HTH Martin -Original Message- From: Matthew J Gray [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 4:46 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Creating methods runtime

RE: [PHP] Help needed - need to access a value from DB into all pages

2002-02-21 Thread Martin Towell
I can think of three ways you could do this. 1. as a cookie 2. using sessions 3. put it in every link Martin -Original Message- From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 10:59 AM To: PHP db list; PHP List Subject: [PHP] Help needed - need to

RE: [PHP] This?: ob_start

2002-02-21 Thread Martin Towell
if it "does" then there's one small problem with it. you have the echo before the ob_end_clean(), it should be after... -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 1:25 PM To: [EMAIL PROTECTED] Subject: [PHP] This?: ob_start Does th

RE: [PHP] Access Array Values?

2002-02-24 Thread Martin Towell
foreach (array_count_values ($names) as $name=>$count) -^^ -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 9:34 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Access Array Values? I knew there was ar

RE: [PHP] Email Verification

2002-02-24 Thread Martin Towell
ode - there's lots more, there's an email class and an attachment class that goes with it, but it's need to check the address HTH Martin -Original Message- From: Simon Willison [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 9:27 AM To: Steven Walker Cc: [EMAIL P

RE: [PHP] RE: (HTML related) helping to creating dropdown lists from fetched arrays.

2002-02-24 Thread Martin Towell
try this: (I don't have experience w/ mysql, but I do with other dbs) ".$row["col2"]; } ?> -Original Message- From: Matthew Darcy [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 10:06 AM To: [EMAIL PROTECTED] Subject: [PHP] RE: (HTML related) helping to creating dropdown lis

RE: [PHP] [NEWMAN] Collecting information from a my sql table.

2002-02-24 Thread Martin Towell
how about ? $row = mysql_fetch_array($sql_result); $pub_id = $row["pub_id"]; $pub_headline = $row["pub_headline"]; $pub_dateline = $row["pub_dateline"]; $pub_info = $row["pub_info"]; $pub_image = $row["pub_image"]; -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]

RE: [PHP] RE: (HTML related) helping to creating dropdown lists from fetched arrays.

2002-02-24 Thread Martin Towell
original line: while ($row = mysql_fetch_array($results); new line: while ($row = mysql_fetch_array($results)) -Original Message- From: Matthew Darcy [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 10:37 AM To: Martin Towell; [EMAIL PROTECTED] Subject: RE: [PHP

RE: [PHP] Email Verification

2002-02-24 Thread Martin Towell
to do this, but can anyone see a problem with simply issuing a VRFY or an EXPN command instead of actually faking out sending a message? /bsh/ Martin Towell wrote: >You can use sockets and connect to their mail server (bit after the @) and >"pretend" to send an email to them, bu

RE: [PHP] HTTP Request Headers - PUHLEASE HELP!

2002-02-24 Thread Martin Towell
what about $argv ? -Original Message- From: SpamSucks86 [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 11:40 AM To: [EMAIL PROTECTED] Subject: [PHP] HTTP Request Headers - PUHLEASE HELP! I have an infinitely annoying problem. I coded a script which tracks who viewed my profi

RE: [PHP] HTML Email Has Random '!'

2002-02-24 Thread Martin Towell
it's to do with the length of a line - I think it's 1024 - if a lines longer than that, an ! is put there and a new line is made Martin -Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 1:18 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] MySQL joins

2002-02-25 Thread Martin Towell
can you supply some examples please -Original Message- From: Alexander P. Javier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 10:34 AM To: [EMAIL PROTECTED] Subject: [PHP] MySQL joins why do i get errors on MySQL queries that have joins? alyx ---

RE: [PHP] Variables containing HTML?

2002-02-25 Thread Martin Towell
there's htmlentities or something like that - try that w/ your hidden field -Original Message- From: Nick Richardson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 2:56 PM To: PHP General Subject: [PHP] Variables containing HTML? Stupid question for everyone... i'm just hav

RE: [PHP] includes and variables

2002-02-26 Thread Martin Towell
think of an included file as if it were part of the parent code. so file1.php file2.php file2.php would basically be: HTH Martin -Original Message- From: Pax [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 9:24 AM To: [EMAIL PROTECTED] Subject: [PHP] includes and

RE: [PHP] is_uploaded_file() emulation?

2002-02-26 Thread Martin Towell
try: http://www.php.net/manual/en/function.getmyuid.php -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 10:33 AM To: Stewart Gateley Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] is_uploaded_file() emulation? Thank yo

RE: [PHP] includes and variables

2002-02-26 Thread Martin Towell
try changing the file table1.php to: .. -Original Message- From: Pax [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 11:02 AM To: [EMAIL PROTECTED] Subject: [PHP] includes and variables Tks Martin, I guess I am doing something wrong.. I have the main document like

RE: [PHP] Dumb question on terminology

2002-02-26 Thread Martin Towell
In a nutshell: $row->data is referring to an object, not an array, that has an attribute of "$data" $row['data'] is an associative array - ie, indexes are non-numerical - with an index of "data" Martin -Original Message- From: Dean Householde

RE: [PHP] mysql php - while loops

2002-02-26 Thread Martin Towell
with a bit of cheating... use a table... (nb: this code not tested, but logic has) " ?> - - "; $i++; } ?> -Original Message- From: Craig Westerman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 11:43 AM To: php-general-list Subject: [PHP] mysql php - while loops

RE: [PHP] Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Martin Towell
why don't you just do this? -Original Message- From: Richie Chauhan [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 6:40 AM To: [EMAIL PROTECTED] Subject: [PHP] Apache Server Side Includes mixed with PHP pages Hi all, First post to this list. I am trying to do the followi

RE: [PHP] if(isset($submit))

2002-02-27 Thread Martin Towell
I used this code when I clicked on the image, I got this url file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 so php would get this as $submit_x and $submit_y HTH Martin -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 20

RE: [PHP] if(isset($submit))

2002-02-27 Thread Martin Towell
it's a browser thing, i guess, when you use an image as a submit button Martin -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 4:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] if(isset($submit)) I s'pose, but where/why are y

RE: [PHP] if(isset($submit))

2002-02-27 Thread Martin Towell
h, it's not fair! :) J Martin Towell wrote: > I used this code > > > value="submit"> > > > when I clicked on the image, I got this url > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > so php would get this as $su

[PHP] check on pictures

2002-02-28 Thread Martin Kampherbeek
a link to a picture on the thumbnail and not to a html page. I hope someone can help me. Cheers, Martin.

RE: [PHP] Reference problem

2002-02-28 Thread Martin Towell
Title: RE: [PHP] Reference problem I wrote an xml parsing class, and xml tag class, that might help you there see the attachment -Original Message- From: John English [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 12:35 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject:

RE: [PHP] loading Arrays

2002-02-28 Thread Martin Towell
sure, you can add/remove/modify element whenever you want your syntax is wrong though try this // add value to array if($flag == "true"){ $samplearray[] = $samplevalue; // append value to end of array } -Original Message- From: sundogcurt [mailto:[EMAIL PROTECTED]] Sent: Friday, M

RE: [PHP] elseif without else

2002-02-28 Thread Martin Towell
if there's nothing to do in the else block, then it's a bit pointless to have one eg value="xxx" name="blah"> see what I mean? Martin -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 11:32 AM To: PHP Subject

RE: [PHP] elseif without else

2002-02-28 Thread Martin Towell
In this case I would assign false to $error before your if's - just to make sure it's set to something definite - that is unless you have already set it furthur up in your code... Martin -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01,

RE: [PHP] % character in sprintf

2002-03-03 Thread Martin Towell
try %% -Original Message- From: Job Miller [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 10:20 AM To: [EMAIL PROTECTED] Subject: [PHP] % character in sprintf how do i escape the % character to appear in a sprintf statement? it doesn't mention that in the sprintf php manual

RE: [PHP] Multiple Forms

2002-03-03 Thread Martin Towell
1) not unless you have them opening up a new window for each form 2) combine them into one form Martin -Original Message- From: Ramesh Nagendra Pillai [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 2:27 PM To: Php Mailing list Subject: [PHP] Multiple Forms Hai I am having

RE: [PHP] Need help with a PHP script

2002-03-03 Thread Martin Towell
instead of $HTTP_POST_VARS, try $_POST -Original Message- From: PHP [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: [PHP] Need help with a PHP script http://infinitep.t35.com/countmein/control.phtml\";>"; echo ""; echo ""; echo "Use

RE: [PHP] Storing Script information in MySQL

2002-03-03 Thread Martin Towell
store it as text when you get it back, do an exec() on it -Original Message- From: David Redmond [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 3:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Storing Script information in MySQL Is it possible to store the contents of a PHP file wi

RE: [PHP] remove everything

2002-03-03 Thread Martin Towell
$output = ereg_replace("[^a-zA-Z0-9]", "", $output); (not tested - but should work) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 4:04 PM To: [EMAIL PROTECTED] Subject: [PHP] remove everything What is the code to remove everything but

RE: [PHP] Storing Script information in MySQL

2002-03-03 Thread Martin Towell
sorry - it's eval() -Original Message- From: David Redmond [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 4:09 PM To: 'Martin Towell'; [EMAIL PROTECTED] Subject: RE: [PHP] Storing Script information in MySQL I couldn't seem to get this working. Contents of

RE: [PHP] Displaying Number values

2002-03-03 Thread Martin Towell
printf("%02i", $num); should work -Original Message- From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 4:39 PM To: PHP Email List Subject: [PHP] Displaying Number values Hey All, I want PHP to print out the value of a number in a variable as something lik

RE: [PHP] convert to lowercase

2002-03-03 Thread Martin Towell
strtolower() -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 4:55 PM To: [EMAIL PROTECTED] Subject: [PHP] convert to lowercase What is the code to make a string into lower case? Regards, Joseph A. Bannon -- PHP General Mail

RE: [PHP] Is it correct having number of forms in the same html page?

2002-03-04 Thread Martin Towell
if that's what's required, then it's okay -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 11:55 PM To: Php-General Subject: [PHP] Is it correct having number of forms in the same html page?

RE: [PHP] Form element names as array

2002-03-04 Thread Martin Towell
with checkboxes, the value of the checkbox is sent to the serveronly if it's checked - if it's not chesked, then it's value does go to the server HTH Martin -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:13 AM To: PHP

RE: [PHP] Does anyone follow?

2002-03-04 Thread Martin Towell
I think the easiest way would be to use two arrays, one for counting, the other for displaying -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Does anyone follow? Does anyone follow what I'm tryin

RE: [PHP] form variables

2002-03-04 Thread Martin Towell
change "post" to "get" -Original Message- From: Dan Vande More [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:48 PM To: php-general-list Subject: RE: [PHP] form variables Do you mean to have the extra '=' in there? Should it be: instead of ? -Original Message- Fr

RE: [PHP] form variables

2002-03-04 Thread Martin Towell
remove the "name" from the submit so it's just: -Original Message- From: Craig Westerman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:52 PM To: php-general-list; Tom Rogers Subject: RE: [PHP] form variables OK, changing from post to get gets me what I'm after. Thanks guys

RE: [PHP] php and form mails

2002-03-04 Thread Martin Towell
value="male">male value="female">female -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 4:21 PM To: [EMAIL PROTECTED] Subject: [PHP] php and form mails I have this simple formmail written out in PHP, and it checks for required fields

RE: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Martin Towell
tter - one must analyse each problem to determine which is better to use. Martin -Original Message- From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 7:31 AM To: 'mojo jojo'; [EMAIL PROTECTED] Subject: RE: [PHP] OOP .. I just don't get it.

RE: [PHP] Required problem....

2002-03-05 Thread Martin Towell
this would be an auto-prepend file? anyway - does the web server have read permissions to the file + path? -Original Message- From: Ben Turner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 11:24 AM To: [EMAIL PROTECTED] Subject: [PHP] Required problem I am just setting

RE: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Martin Towell
> It's just, well, maybe not something that the ordinary web-programmer will > benefit much from at the beginning. Very true - I find object more scalable too, from the code itself, all the way to the size of the project. Many of my classes have started out being just 10 lines, but some have inc

RE: [PHP] OOP .. overload not working

2002-03-05 Thread Martin Towell
can you provide a code snippet so we can see what you're doing? -Original Message- From: S.Murali Krishna [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 4:38 PM To: [EMAIL PROTECTED] Subject: [PHP] OOP .. overload not working Hi PHPzers Is php have to compile with anything

[PHP] Replacing words

2002-03-08 Thread Martin Thoma
, that the word is followed by space . , -, but not by other letters/numbers? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] check for bigger link

2002-03-09 Thread Martin Kampherbeek
I made a script that looks in a URL for jpg's and their links. So the result is: s1.jpg links to b1.jpg s2.jpg links to b2.jpg etc etc But now I would like to check if b1.jpg is bigger then s1.jpg, if not the script must stop. But I can't figure out to do this. My script so far: http://www.mydo

RE: [PHP] explode() - quick question

2002-03-13 Thread Martin Towell
just use $string{0} and $string{1} , etc. note the type of brackets -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 2:06 PM To: [EMAIL PROTECTED] Subject: [PHP] explode() - quick question Im trying to take this string, "hello", and exp

RE: [PHP] Double slash

2002-03-13 Thread Martin Towell
looks good to me - only screwy thing I can think of is the backslash thing - REALLY annoying - and confusing sometimes Martin -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 4:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Double slash On

RE: [PHP] rand()

2002-03-13 Thread Martin Towell
$n = rand(33, 112); if ($n > 90) $n += 34; not tested in code, but logically, this should work Martin -Original Message- From: Jeff Sittler [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 4:31 PM To: [EMAIL PROTECTED] Subject: [PHP] rand() I am wanting to use rand()

[PHP] filesize problem

2002-03-14 Thread Martin Kampherbeek
Hi, I talked to you on ICQ and told you to send an email with my PHP problem. So here it is. Someone is submitting an URL. The problem is that someone is submitting the URL per form. So it is allways something like http:\\www.mydomain.com\1.htm In that case it is difficult to tell where to loo

RE: [PHP] GET values from Checkboxes

2002-03-14 Thread Martin Towell
There will be a correspoding variable/index set is the checkbox is checked, no value is set for uncheck boxes Martin -Original Message- From: Daniel Ferreira Castro [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 1:36 PM To: [EMAIL PROTECTED] Subject: [PHP] GET values from

RE: [PHP] Fetching 1 array from either one of 2 possible columns?

2002-03-14 Thread Martin Towell
use brackets where (sub1 or sub2) and geo -Original Message- From: phplist [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 2:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Fetching 1 array from either one of 2 possible columns? I'm working on a query by selection type of form, wher

RE: [PHP] Fetching 1 array from either one of 2 possible columns?

2002-03-14 Thread Martin Towell
t: Friday, March 15, 2002 2:55 PM To: 'Martin Towell'; [EMAIL PROTECTED] Subject: RE: [PHP] Fetching 1 array from either one of 2 possible columns? I apologize if I wasn't clear in my email. The query part is fine I think, as I tested it through the myPHPAdmin and had no problem w

Re: [PHP] check on pictures

2002-03-16 Thread Martin Kampherbeek
Thanks for repying. Yes, the page has pictures. But all jpg pictures must link to another jpg pictures. A gif is alowed to link to a html file. The minium numers of jpg pictures must be 12. Cheers, Martin. - Original Message - From: "Boaz Yahav" <[EMAIL PROTECTED]

[PHP] Including an external php file existing on another server..

2002-03-17 Thread Martin Stix
Hi! On my Server i can`t use the date("W") function, and on another it works. How can i first run the script on the other server and then include it in a script on my server so i can use the date("W") variable? thanks, Martin -- PHP General Mailing List (http://www.php.

RE: [PHP] Brain Dead...

2002-03-17 Thread Martin Towell
do other variables you pass to the script get set? if not, do you have register_globals (or whatever it is) turned on? maybe use $_GET or $_POST instead? -Original Message- From: Chuck Payne [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 1:36 PM To: Thalis A. Kalfigopoulos Cc: PH

RE: [PHP] Brain Dead...

2002-03-17 Thread Martin Towell
Another thing you might want to try doing is throwing in phpinfo() somewhere to see what variables you are actually getting -Original Message- From: Chuck Payne [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 1:44 PM To: Thalis A. Kalfigopoulos Cc: PHP General Subject: Re: [PHP] B

RE: [PHP] PHP CGI

2002-03-17 Thread Martin Towell
simple answer - yes and possibly I believe, anything that's run on a server to output stuff to a browser, can be considered a CGI program The second question is like asking - "Will COBOL ever become obsolete?" - maybe, possibly, but there'll, no doubt, be someone, somewhere still using it. -O

RE: [PHP] PHP CGI

2002-03-17 Thread Martin Towell
>I think the meaning of CGI is quite blured. >Anyone else think so? I think the the meaning of CGI (Common Gateway Interface) has lost it's meaning by a lot of people who just hear the acronym and not the full phrase. It's like the term "PC" - when people hear that, they almost straight away thin

Re: [PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Martin Schichl
At 10:19 18.03.02 +0200, "Andrey Hristov" <[EMAIL PROTECTED]> wrote: >$your_timestamp+=gmmktime(0,0,0,1,1,1972); Try: $your_timestamp = mktime(date("H"),date("i"),date("s"),date("m"),date("d"

Re: [PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Martin Schichl
("d"),(date("Y")+2)) calls six times the function "date" ... Martin - Dipl.-Ing. Martin Schichl SC&C Software, Communication & Consulting GmbH & Co KEG Grottenhofstr. 3, A-8053 Graz Tel

RE: [PHP] Copy *.*

2002-03-18 Thread Martin Towell
Does xcopy support long file names? -Original Message- From: Robert V. Zwink [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 2:17 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Copy *.* You'll probably have the most success using the system() function to execute

[PHP] Search for words

2002-03-18 Thread Martin Kampherbeek
Hi, Someone submits an URL to me. Now I want a script that checks for some words in the file right after submitting. When the word is in the file it must stop. For example the words: house and school.

RE: [PHP] problem uploading BIG files

2002-03-18 Thread Martin Towell
Is it possible to determine if it's the php script causing the error or the browser causing the error? Maybe it's the browser timing-out?? -Original Message- From: Gerhard Hoogterp [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 9:50 AM To: [EMAIL PROTECTED] Subject: [PHP] proble

RE: [PHP] Getting values of Checkboxes

2002-03-18 Thread Martin Towell
try $_POST['name_of_the_checkbox'] or just $name_of_the_checkbox (if you have register_globals set to on) -Original Message- From: Daniel Ferreira Castro [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 1:27 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting values of Checkboxes I

RE: [PHP] $$

2002-03-18 Thread Martin Towell
it's a pointer to a variable eg. $foo = "bar"; $$foo = "hello world"; echo $bar; this will echo out "hello world" -Original Message- From: mm fernandez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 2:58 PM To: [EMAIL PROTECTED] Subject: [PHP] $$ variables begin with a $ sig

RE: [PHP] Curl output to an array -- HELP!! -- Appended

2002-03-19 Thread Martin Towell
(this code not tested) this isn't going to work properly if the "value" part has an "=" in it - in that case, change the explode("=", ...) line to use strtok() or strpos()/substr() HTH Martin -Original Message- From: Keith Posehn [mailto:[EMAIL PR

RE: [PHP] include_once()

2002-03-19 Thread Martin Towell
is it possible to send the code - or snippets of the code - so that someone might be able to spot the error something that you might want to look at is whether the included file has a parse error - the set up in this company allows the "parent" script to continue to run, even if the "child" scrip

RE: [PHP] Problem with strtotime() and 2002-03-31

2002-03-19 Thread Martin Towell
when I tested that code, the adding of 1 day did NOT work, but adding 2 days DID, sorta, work (it added 1 day) to "fix" it, I found that I had to add one hour (3600) to the date - maybe there's something to do with daylight saving?? -Original Message- From: John Clarke [mailto:[EMAIL PRO

RE: [PHP] Re: Problem with strtotime() and 2002-03-31

2002-03-19 Thread Martin Towell
> Does this mean that there is a day with only 23 hours somewhere That would be the corresponding day at the end/start of the year (depending on which hemisphere you're in) -Original Message- From: John Clarke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 12:37 PM To: [E

RE: [PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Martin Towell
use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists, but the former function does) -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Case non-sensitive replacing with str_replac

[PHP] safe_mode_include_dir not working

2002-03-20 Thread Estelle Martin
Estelle -- -- Estelle Martin mailto:[EMAIL PROTECTED] -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Creating a global variable for all PHP pages?

2002-03-20 Thread Martin Towell
what about a common include file? -Original Message- From: Lance Lovette [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 4:00 PM To: Warrick Wilson; [EMAIL PROTECTED] Subject: RE: [PHP] Creating a global variable for all PHP pages? Take a look at this PHP extension and see if

RE: [PHP] How to clear variables?

2002-03-21 Thread Martin Towell
I think he means using header() - look in the manual, there's a snippet of code you can copy-and-paste that does cache control Martin -Original Message- From: C. Cormier - Ormetal Inc. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 9:06 AM To: Rasmus Lerdorf; [EMAIL PROT

RE: [PHP] PHP OOP: Multiple Class Extends

2002-03-21 Thread Martin Towell
Extending more that once, as you did in your example, is perfectly okay. It's just when you try to do it in one go. ie. you can't do multi-extends, but you can extend more than once (if you get what I mean) HTH Martin -Original Message- From: Nathan Cassano [mailto:[EMAIL

RE: [PHP] Displaying SELECT results

2002-03-21 Thread Martin Towell
1) a) you know which page you're on (default to 1) b) count = "select count(*)" from database c) num_pages = count / num_items_per_page d) display accordingly 2) start loop (has some counter, eg $i) $bgcol = "white"; if ($i % 2 == 1) $bgco

RE: [PHP] Trap CR or "Enter" possible?

2002-03-21 Thread Martin Towell
do it in html/javascript like this: http://www.somewhere.com/"; method="get" onSubmit="return (this.okay.value != 'no');"> -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Trap CR or "Enter

RE: [PHP] Using EditPlus with PHP

2002-03-24 Thread Martin Towell
directory: $(FileDir) and I have the "Capture output" checkbox selected HTH Martin -Original Message- From: Luca Grossi [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 24, 2002 2:00 PM To: [EMAIL PROTECTED] Subject: [PHP] Using EditPlus with PHP I

RE: Re[2]: [PHP] Using EditPlus with PHP

2002-03-24 Thread Martin Towell
al Message- From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:15 PM To: PHP General List Subject: Re[2]: [PHP] Using EditPlus with PHP Hey PHP General List, I have problem also with editplus. Well i have same as Martin has but i get warning = " Unable t

RE: [PHP] what's "undefined index" ?

2002-03-24 Thread Martin Towell
"undefined variable" is when you try to use a variable before you set it, eg $foobar "undefined index" is when you try to reference an array index before you set it, eg $foobar[10] -Original Message- From: Kai Schaetzl [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 11:31 AM To: [

RE: [PHP] Why?

2002-03-24 Thread Martin Towell
could also use $blah, $test, $temp, $xxx, etc, but it's what a lot of are used to, I guess -Original Message- From: Zak Greant [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:16 PM To: Alberto Wagner; Php General Mailling List Subject: Re: [PHP] Why? On March 31, 2002 04:39,

RE: [PHP] How to use bind arguments

2002-03-24 Thread Martin Towell
I don't know if this is the thing you're after, but... http://www.php.net/manual/en/function.func-get-args.php HTH Martin -Original Message- From: Vincent Bergeron [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 4:34 PM To: [EMAIL PROTECTED] Subject: [PHP] How t

RE: [PHP] what's "undefined index" ?

2002-03-25 Thread Martin Towell
esn't exist... so, in a way, you answered your own question. HTH Martin -Original Message- From: Kai Schaetzl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 3:31 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] what's "undefined index" ? Your message of Mon, 25

RE: [PHP] what's "undefined index" ?

2002-03-25 Thread Martin Towell
x27;t exist (I may have missed out on one/some) I didn't think about "offset" with I sent my first reply to this thread Hope that helps someone Martin -Original Message- From: Kai Schaetzl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 11:32 AM To: [EMAI

RE: [PHP] Code Bulk

2002-03-26 Thread Martin Towell
any speed difference will be miniscule/negligible - is speed, to the microsecond, important in this situation? -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 11:23 AM To: PHP Subject: [PHP] Code Bulk Im in a debate with someone else. Ba

RE: [PHP] how to close an http connection BUT carry on processing

2002-03-27 Thread Martin Towell
look at ignore_user_abort() http://www.php.net/manual/en/function.ignore-user-abort.php but make sure your script doesn't go into an infinate loop anywhere, otherwise you'll have to kill the process manually caught me once on a rare occasion.. :/ -Original Message- From: Rick Emery [m

RE: [PHP] class question 2

2002-03-27 Thread Martin Towell
once their instantiated, they're just like any other variable - that is: if a "normal" variable, declared in the same place as the object, is accessable in another function, then the object will be too. HTH Martin -Original Message- From: Caspar Kennerdale [mailto:[

RE: [PHP] regex expession problems

2002-03-27 Thread Martin Towell
I don't have that much experience with preg* functions but if that's exactly how you've got it in your code, shouldn't there be no spaces?? that is: preg_match("/http:\/\/ | [[:space:]]/i",$valToEval); * * \-\both of these should be removed ?

RE: [PHP] using return in fucntions

2002-03-27 Thread Martin Towell
.php other.inc $x\n"; ?> The value of $x wont get echoed out the second time because it's basically in the function, while the first isn't. If I've confused you, email me direct and I'll try to explain better Martin -Original Message- From: Justin French

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