Re: [PHP] phpBB Info

2002-07-08 Thread Martin Clifford
I'm sure there is a phpBB specific userbase out there that could answer this question for you. My guess would be... I don't know, something like http://www.phpbb.com. Martin >>> "BrettM" <[EMAIL PROTECTED]> 07/06/02 12:35PM >>> I wanna be able t

Re: [PHP] hide a select tag

2002-07-08 Thread Martin Clifford
Just create a hidden form field with the value you want to pass. HTH Martin >>> "Anil Garg" <[EMAIL PROTECTED]> 07/08/02 01:35PM >>> Hi, sorry for going a lil out of way of php. can i hide a drop down menu.(as i always want to pass the default value sel

Re: [PHP] Checking for a successful login and setting a globalflag.

2002-07-08 Thread Martin Clifford
No need to open a new window to reset the cookies. Just have a function that is trigged onunload(). Martin >>> Pete James <[EMAIL PROTECTED]> 07/08/02 03:18PM >>> You could also try using Javascript to popup a window when they close the current one, and reset your cook

Re: [PHP] UNSETing Session Variables

2002-07-08 Thread Martin Clifford
() is done before ANY output goes to the HTML. It's usually best to have it as the FIRST thing on your pages. Martin >>> <[EMAIL PROTECTED]> 07/08/02 04:19PM >>> /me feels kinda dumb now. Well even after adding session_start to my connect.inc, it doe

RE: [PHP] Stripslashes help

2002-07-08 Thread Martin Towell
Chris (or should I be addressing Chris :) ) Chris S - I think you're confusing stripslashes w/ addslashes, but everything else I'm an agreement w/. Chris K - Somewhere you've got addslashes twice. As mentioned, one of those might be in your php.ini file. That's why you need to stripslashes() tw

RE: [PHP] if statement

2002-07-08 Thread Martin Towell
You can do this: if ($type == "test1" || $type == "test2" || $type == "test3") { or, what I prefer in this case if (in_array($type, array("test1", "test2", "test3"))) { Martin -Original Message- From: [EMAIL PROTECTED] [ma

RE: Re[2]: [PHP] if statement

2002-07-08 Thread Martin Towell
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 2:21 PM To: php-general Subject: Re[2]: [PHP] if statement Hello Martin, Thanks the array worked just perfect. Where do you find stuff like this I looked all over the manual and could not find anything that told me how

RE: [PHP] Moderator where are you, delete me from the list!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2002-07-09 Thread Martin Towell
look at the footer > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -Original Message- From: Erik Hegreberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 7:40 PM To: [EMAIL PROTECTED]

Re: [PHP] newbie: question about question marks

2002-07-09 Thread Martin Clifford
In that case, the question marks are part of the PHP opening and closing tags. There are several ways to open and close sections of PHP script, mainly being , , and <% %>. What the below equals is , since http://www.completesource.net (Now Open!) >>> "Alexander Ross" <[EMAIL PROTECTED]> 07/09/0

Re: [PHP] Build-up of MySQL Sessions

2002-07-09 Thread Martin Clifford
My advice is to use mysql_connect(). The only instance I would consider using mysql_pconnect() would be if I had to access multiple databases and servers at the same time. Martin >>> SpamSucks86 <[EMAIL PROTECTED]> 07/09/02 10:26AM >>> I'm running windows 2000 a

Re: [PHP] can I call a variable... using variables?

2002-07-09 Thread Martin Clifford
You would have to set up a dummy variable to hold the value of two concatenated variable names. I'd love to write an example, but work is draggin' me down, sorry! Martin >>> "Joseph Szobody" <[EMAIL PROTECTED]> 07/09/02 02:12PM >>> So here's

Re: [PHP] ??????????????????????????????????????????????????????````````````````````ØØØØØØØØØØØØØØØØØØÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅ

2002-07-09 Thread Martin Clifford
Dear Lord, where is the admin to boot this guy? Martin >>> "Erik Hegreberg" <[EMAIL PROTECTED]> 07/09/02 03:25PM >>> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Now a Question for all you ARRAY Junkies

2002-07-10 Thread Martin Clifford
Since it's not an associative array, you can just use sort($Lang); and that should work just fine. Martin >>> "vins" <[EMAIL PROTECTED]> 07/10/02 08:36AM >>> I have an array $Lang = array('English','German','French','Z

Re: [PHP] Display criteria

2002-07-10 Thread Martin Clifford
know? At least that is how I work :o) Martin >>> "DC" <[EMAIL PROTECTED]> 07/10/02 08:42AM >>> Hi I want to display data based on the criteria selected by the user eg click on size to display smallest to largest, or by price smallest to highest, location et

Re: [PHP] cookies

2002-07-10 Thread Martin Clifford
Set the cookies expiration to a date that has already passed. The cookie will only last until the browser is closed, since the browser must have just created it. Then it's deleted from the computer since it's past due. Martin >>> "Alexander Ross" <[EMAIL PROT

Re: [PHP] if syntax

2002-07-10 Thread Martin Clifford
t;1"; } else { } HTH Martin >>> "Alexander Ross" <[EMAIL PROTECTED]> 07/10/02 10:25AM >>> I know this is correct: if ($something) { ... } else { ... } But I recently saw someone use this instead: if($something): ... else: ... Is that also

Re: [PHP] sessions

2002-07-10 Thread Martin Clifford
Hi Alexander :o) You have to have session_start() at the top of EACH page that will hold session registered variables. So just rewrite it like this: Page 1: Click here Page 2: Hope this helps! Martin >>> "Alexander Ross" <[EMAIL PROTECTED]> 07/10/02

Re: [PHP] Development Tools

2002-07-10 Thread Martin Clifford
bably find it on downloads.com. I've never tried Zend, but it does look very interesting. And since they created the engine for PHP, you would think they're editor would be god, but that, unfortunately, doesn't seem to be the case very often. HTH Martin >>> "Mark

Re: [PHP] Development Tools

2002-07-10 Thread Martin Clifford
Exactly. Homesite is, in essence, Dreamweaver MX without the WYSIWYG. Syntax highlighting and code completion make it a very viable editor. I can't stand that WYSIWYG crap. I'm plenty good at messing up my own code without assistance, thank you very much! :o) Martin >>

Re: [PHP] Accessing multiple List/Menu values

2002-07-10 Thread Martin Clifford
Have you tried like this? Yahoo! ... PHP.net Then access the array on the processing page. Martin >>> "Joseph Szobody" <[EMAIL PROTECTED]> 07/10/02 02:02PM >>> This is sorta OT, but involves PHP. I have a fairly large List/Menu on a form, which

Re: [PHP] Automatic Form creation

2002-07-10 Thread Martin Clifford
That all depends on what the form is for, what it has to do, how many fields it needs, etc. You'd be better off writing a function to create your forms, if you ask me. Just my $20.00 (big mouth) Martin >>> "CM" <[EMAIL PROTECTED]> 07/10/02 01:14PM >>&g

Re: [PHP] SQL field problem

2002-07-10 Thread Martin Clifford
SELECT DISTINCT kat FROM tablename; should work. Martin >>> <[EMAIL PROTECTED]> 07/10/02 01:40PM >>> Hello I have a problem with mysql.I create a table with a field "kat".In this field are entries like this : Light Dark Dark Light Robot Find Dark Light

RE: [PHP] Development Tools

2002-07-10 Thread Martin Clifford
aying that WYSIWYG isn't right for you, because obviously it is. I'm just saying that, to me, it might as well be fingernails running down a chalkboard for all the good it *doesn't* do me, personally. Martin >>> "Lazor, Ed" <[EMAIL PROTECTED]> 07/10/02 02:10P

[PHP] Re: Forms not passing variables

2002-07-10 Thread Martin Clifford
Did you restart your server after changing register_globals? Try that. >>> Derick Rethans <[EMAIL PROTECTED]> 07/10/02 02:30PM >>> Hai, did you check the setting of register_globals really changed? See the phpinfo(); output if it's really set to on. If not, place your php.ini file in the corr

[PHP] Re: Development Tools

2002-07-10 Thread Martin Clifford
to load as many libraries. Martin >>> <[EMAIL PROTECTED]> 07/10/02 03:39PM >>> For those of you using HomeSite, is it worthwhile for me to install it if I already have DreamWeaver 4 on my PC? Someone said HomeSite is basically DreamWeaver without the UI interface so I&#

Re: [PHP] Dumb session / cookie / password questions

2002-07-10 Thread Martin Clifford
e from the $_GET superglobal, and if it was, reload the page without any URL extensions. It sounds good in theory, though I haven't tested it, so it might not work as I think it should (it NEVER does!). My $20.00 (big mouth) Martin Clifford http://www.completesource.net (Now Open!) >&

RE: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Martin Towell
I use in both php3 and php4 and it works fine. All the commands that I have used are all forward compatible. I even have some php2 code that still works in php4! Martin -Original Message- From: George Hester [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:41 PM To: [EMAIL

RE: [PHP] Editing files by line

2002-07-10 Thread Martin Towell
I dodn't know of any single function that does what you want, but you can do this: $contents = file($filename); // each line has it's own array position $contents[$line] = $newline; $content = implode("\n", $contents); $f = fopen($filename, "w"); fputs($f, $content); fclose($f); (not tested, b

RE: [PHP] Appending to a file

2002-07-10 Thread Martin Towell
or use the unix command "wc" $num_lines = `wc -l $file`; Martin -Original Message- From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 2:13 PM To: PHP List Subject: Re: [PHP] Appending to a file On Wed, Jul 10, 2002 at 12:45:01PM -040

RE: [PHP] Table Making

2002-07-10 Thread Martin Towell
Martin -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 4:05 PM To: PHP-General Mailing List Subject: [PHP] Table Making I'm driving myself crazy trying to visualize what I want to do, so I thought I'd share the insanity and hope for s

RE: [PHP] Development Tools

2002-07-11 Thread Martin Clifford
I usually always have my content dynamically generated by functions, or displayed in include files. I'm not a fan of cluttering up my apps with content. Martin Clifford http://www.completesource.net (Now Open!) >>> "Lazor, Ed" <[EMAIL PROTECTED]> 07/10/

Re: [PHP] Newbie Logical opertaor question

2002-07-11 Thread Martin Clifford
You'd have to separate it like so: if($var1 == 1 AND ($var2 == "a" OR $var2 == "b" OR $var2 == "c") { // do stuff here if true } else { // do stuf here if false } HTH Martin Clifford http://www.completesource.net (Now Open!) >>> "Rw

Re: [PHP] Newbie Logical opertaor question

2002-07-11 Thread Martin Clifford
Fixing the below, since it would produce a parse error (I forgot a parenthesis, hehe) Martin Clifford http://www.completesource.net (Now Open!) >>> "Martin Clifford" <[EMAIL PROTECTED]> 07/11/02 09:29AM >>> You'd have to separate it like so: if($var1 ==

[PHP] Re: Customise Index page using PHP????

2002-07-11 Thread Martin Clifford
The easiest way to accomplish that is by using switches. Here is an example: switch($pageid) { default: include("default_page.inc"); break; case "18": include("page_18.inc"); break; } With that in your index.php page, it will look for the variable $pageid, and de

Re: [PHP] Re: session error ... I think

2002-07-11 Thread Martin Clifford
? Because you sent a hard return to the HTML output BEFORE the header was sent. Hopefully this is not all jumbled an unhelpful. Heh :o) Good Luck! Martin >>> Chris Hewitt <[EMAIL PROTECTED]> 07/11/02 01:40PM >>> Alexander Ross wrote: >I'm slowly beginning

Re: [PHP] Newbie continued..wrong datatype

2002-07-11 Thread Martin Clifford
As far as I'm aware, the first argument to the in_array() function is the needle (what you're searching for) and the second is the array to be searched through (the haystack). So if $type represents what you're searching for, then it would be written as: in_array($type, $CheckArr); If you sup

RE: [PHP] MAIL() Trouble. Need your eyes.

2002-07-11 Thread Martin Clifford
I would think that there would only be a limit on the SMTP server that the mail function sends the mail through. I'm no expert on the subject though, just makes sense. :o) Martin Clifford http://www.completesource.net (Now Open!) >>> "Shane" <[EMAIL PROTECTED]>

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Martin Towell
ther things that are happening on the page (due to the client's requirements), when the user wants to zoom or pan the map, I use js to update the images. Hope that helps anyone out there. Martin -Original Message- From: Lazor, Ed [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2

[PHP] xml and max size of xml doc

2002-07-11 Thread Martin Towell
k, as it's one of my colleagues that is having this problem and I'll need her to pass on an example if needed. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 1 Form, 2 Submit-Buttons

2002-07-11 Thread Martin Thoma
Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back & Next). The buttons should be images. How can I make php see, which button has been pressed? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] 1 Form, 2 Submit-Buttons

2002-07-11 Thread Martin Towell
give each a name and the value of the image clicked should then be in a var. by that name -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 4:09 PM To: [EMAIL PROTECTED] Subject: [PHP] 1 Form, 2 Submit-Buttons Hello! I want to make a form (a

Re: [PHP] A question of style ...

2002-07-12 Thread Martin Clifford
being helpful, and it being a hinderance. Just my $20.00 (big mouth, you know) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Jay Blanchard" <[EMAIL PROTECTED]> 07/12/02 09:40AM >>> Howdy gr

Re: [PHP] ' giving problem while inserting in table.

2002-07-12 Thread Martin Clifford
Use addslashes() on ALL strings before inserting them into your database. Then, on your frontend, extract the data and use stripslashes() on all strings. Hope to help! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >

Re: [PHP] Final Year Computer Science Project involving PHP

2002-07-12 Thread Martin Clifford
been done. Projects that find solutions? That could be anything from a Weight Loss Tracking System to an advanced encryption/decryption algorithm. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Serdar

RE: [PHP] PHP meetup

2002-07-12 Thread Martin Clifford
ll come to pass! :o) I emplore all PHP Developers to sign up for MEETUP. You have nothing to loose, and everything to gain! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Jay Blanchard" <[EMAIL P

[PHP] Form/insert problem

2002-07-14 Thread Martin Kampherbeek
file (addvoorspelling.php) Thanks, Martin. '$today' ORDER BY datum"; $resultaat = mysql_query($sql); $aantal = mysql_num_rows($resultaat); $i = 0; $queryr = "SELECT * FROM ronde WHERE status='actief'"; $resultr = MYSQL_QUERY($queryr) or die(mysql_erro

RE: [PHP] PHP and geographic maps

2002-07-14 Thread Martin Towell
> Lowell: > > On Fri, Jul 12, 2002 at 09:25:56AM -0400, Lowell Allen wrote: > > Are you using JavaScript to update the image without going back to the map > > server? > > Dude, Dynamic HTML / JavaScript are a poor idea... unless you don't care > about your potential customers. > > http://www.ana

RE: [PHP] IF inside LOOP?

2002-07-14 Thread Martin Towell
try using this if statement instead if ($m < $num_rows2 - 1) or even use the ?: operator echo ($m < $num_rows2 - 1 ? ", " : "."); -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 12:04 PM To: PHP General List Subject: [PHP] IF inside LOOP?

RE: [PHP] BREAK into the DB

2002-07-14 Thread Martin Towell
there's a function "word_wrap()" (or is it "wordwrap()", something like that anyway) that'll help you there. -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 3:00 PM To: 'PHP General List' Subject: [PHP] BREAK into the DB Hi all. I have this

[PHP] Strange problem with apache 2.0.39/php 4.2.1/gd-lib

2002-07-15 Thread Martin Lucas
same error message. does anybody have an idea ? thanks in advance martin Martin Lucas - ICT Manager - TechConsult GmbH European IT-Marketing Research Am Platz der Deutschen Einheit Leipziger Str. 35-37 34125 Kassel FON: +49(0)561 - 8109 172 FAX: +49(0)561 - 8109 2972 mailto:[EMAIL PROTECTED]

[PHP] Re: Good Forum...

2002-07-15 Thread Martin Clifford
heck out a sample of what it can do in the forums link below. Good Luck! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> <[EMAIL PROTECTED]> 07/15/02 06:26AM >>> phpbb is a good forum or phorum both

[PHP] Alley-OOP! ... or not?

2002-07-15 Thread Martin Clifford
? Tell me about the Pros and Cons to OOP, and why you prefer to use it/not use it! Personally, I've always used regular functions to accomplish my repetetive tasks, and OOP seems rather daunting for me, but I'm always open to new (and hopefully, more efficient) ideas! Thanks! Mart

Re: [PHP] newbie: mysql statement

2002-07-15 Thread Martin Clifford
Y the row where the maximum value of the posted column equals itself, thereby being the latest date. Just an idea. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Alexander Ross" <[EMAIL PROTECTED]

Re: [PHP] newbie: mysql statement

2002-07-15 Thread Martin Clifford
You're right Andrew, got a little ahead of myself :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Andrew Brampton" <[EMAIL PROTECTED]> 07/15/02 03:23PM >>> Shouldn't

[PHP] [PHP-DB] RE: PHP meetup [CROSS-POST] Meet other PHP Developersin Your Area

2002-07-15 Thread Martin Clifford
Yes, everyone please join up! I would love to find more developers in the Maryland area, and I'm sure others would in their areas as well! Let's do the great american get togeth... err... the great php get together! Martin Clifford Homepage: http://www.completesource.net Develope

Re: [PHP] ^k ? -- how do I match that?

2002-07-15 Thread Martin Clifford
Just try eregi_replace("\^k[.+]", "", $container); Regular expressions are the MASTERS of the INTARWEB! :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Jimmy Brake <[EMAIL PROTECT

RE: [PHP] Free PHP Books in PDF or HTML Format

2002-07-15 Thread Martin Towell
try out http://www.informit.com -Original Message- From: Chris Carlson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: [PHP] Free PHP Books in PDF or HTML Format Hey guys, I was wondering if anyone on the list could recommend web sites to

RE: [PHP] Submit code

2002-07-15 Thread Martin Towell
three methods that I can think of: 1. header("location: url"); 2. 3. Hidden form + JavaScript -Original Message- From: MindHunter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 4:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Submit code I am looking for PHP code that will submit

[PHP] Get Anchor out of Url

2002-07-16 Thread Martin Thoma
With PhpInfo, I couldn't find any "JumpHere". Any ideas how I can get the anchor in a php-page? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Submit code

2002-07-16 Thread Martin Thoma
> I am looking for PHP code that will submit (post) a form automaically to a > ANOTHER php page. I do not want to press a submit button. I have found a > class at PHPClasses but it is too complicated for my needs. What is the > simplest way of doing this? What is the theoretical approach? I t

[PHP] Re: Get Anchor out of Url

2002-07-16 Thread Martin Thoma
Oh, it seems, that only Netscape 4 is doing this wrong... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Clifford
"Make" and "Model"), then those two properties can be readily accessible to any method within the class. At least I think that's how it works. I'm not all that knowledgeable on the subject :o) Martin Clifford Homepage: http://www.completesource.net Developer's

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Clifford
ssigns the new object, "passat", the properties relating to it's make and model, using the methods setMake and setModel. I'm sure this is right, but I'm sure I'm probably wrong (hehe, confused?). I'm also sure someone will correct me if I am! :o)

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Clifford
ethod, while others stay with the procedural side of things (using >functions). It's all a matter of preference, and just yet I haven't decided which is >more useful :o) Good luck! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completes

Re: [PHP] strange beahaviour with a mysql query in php

2002-07-16 Thread Martin Clifford
If you only want to update the row if it exists, then you need to use a WHERE clause to make sure it does exist. "Blah blah blah WHERE row_id='$id' LIMIT 1" might work. I'm lazy and didn't want to retype what you had. :o) Martin Clifford Homepage: http://www.

Re: [PHP] Exit script early

2002-07-16 Thread Martin Clifford
RTFM re: Exit and Continue. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Michael Zornek <[EMAIL PROTECTED]> 07/16/02 01:08PM >>> Ok, So I'm creating a details.php page where I'm

Re: [PHP] I can't echo object variables

2002-07-16 Thread Martin Clifford
Try enclosing it in curly braces. echo "${db->field('name_long')}"; Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Michael Zornek <[EMAIL PROTECTED]> 07/16/02 01:45PM >>>

Re: [PHP] Is there a way?

2002-07-16 Thread Martin Clifford
It's called "here doc" formatting, and follows the pattern below: $chunk = <<< EOF; // stuff here EOF; Hmm. For some reason that just doesn't look right. I'm sure someone will correct it if I'm wrong though :o) Martin Clifford Homepage: http://www.comp

Re: [PHP] Session and output buffering

2002-07-16 Thread Martin Clifford
d be helpful if you include those in your message so that we might be able to deduce the error from it's cryptic nature :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Divyank Turakhia" <

Re: [PHP] Newbie Question on Efficiency

2002-07-16 Thread Martin Clifford
Unless the file is getting retartedly big (10-20K), then I wouldn't separate them. Though if you have enough functions, you could justify making separate files for your database functions, output functions, backend functions, etc. Martin Clifford Homepage: http://www.completesourc

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Towell
> > Martin Clifford wrote: > > Could someone please explain the difference between classes and functions > > and how to use a class. > > Whether you should like OOP or not is a religious matter, so I will not > enter the field. OOP has its pluses and its minuses.

RE: [PHP] Printer margins

2002-07-16 Thread Martin Towell
You can't change this type of setting on a client's browser The only way you'd be able to do this is to tell the user that the page prints best when margins are set to 0.25" -Original Message- From: Manuel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 10:52 AM To: PHP General

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Towell
[snip] > A CLASS after all is just a collection of functions with a > data model. But ... there is modular and then there is OO imho. [snip] A class is more than just a bunch of functions that have been placed together. If you want to do that, then you might as well just throw them all into the s

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Martin Towell
The only reason a compiled language would not include a function/module/etc is to reduce the size of the final executable. Since php doesn't store (barring the caching engines, but they work differently anyway) a compiled version, it doesn't need to worry about not including somethin

RE: [PHP] Bug in PHP?

2002-07-16 Thread Martin Towell
check that the gaps between the domains are really spaces eg: echo ord($HTTP_POST_VARS["domains"]{11}); I did this through a test script: and got this as the output Array ( [0] => www.php.net [1] => www.jokaroo.com [2] => www.gnu.org ) But the email program (yours or mine) might

Re: [PHP] $HTTP_SESSION_VARS ? Have I got it wrong

2002-07-17 Thread Martin Clifford
Define the value of $count before registering it, and it should work fine :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Henry" <[EMAIL PROTECTED]> 07/17/02 10:14AM >>&

Re: [PHP] $HTTP_SESSION_VARS ? Have I got it wrong

2002-07-17 Thread Martin Clifford
Ignore that, I'll just go grab my copy of Hooked on Phonics so I can learn to read before replying. :trots off: Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Martin Clifford" <[EM

Re: [PHP] querying for one specific row number

2002-07-17 Thread Martin Clifford
certain columns from the row, then list those columns in place of the wildcard. SELECT first_name, last_name FROM table WHERE id=1 LIMIT 1 HTH! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Phil Schwarzmann

[PHP] Of Jobs and Certs

2002-07-17 Thread Martin Clifford
d want to be able to do it as a career. I just don't know where the hell to start, and I know that some of you might be able to offer some advice in this area. Thanks in advance! This is very important to me, so I thought I'd ask the people that would know best :o)

Re: [PHP] $_SESSION - autostart, or session_start() ?

2002-07-17 Thread Martin Clifford
The error is pretty self-explanatory. You aren't starting the session before soemthing is being written to the page. This will yeild the same error: —-top of document--

Re: [PHP] how to access javascipt variables in PHP

2002-07-17 Thread Martin Clifford
that hold screen information. HTH Martin >>> "Seppo Laukkanen" <[EMAIL PROTECTED]> 07/17/02 03:06PM >>> Can anybody help? I have javascript code to find out browsers width and height, but they are stored in javascript variables. How can I access them from PHP? Or is t

RE: [PHP] Re: Includes vs. Functions

2002-07-17 Thread Martin Towell
e than, I think, 5 or 6 values to a function, then you're passing too many. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Creating Dynamic Variables

2002-07-17 Thread Martin Towell
I think you're more after this session_start(); foreach ($HTTP_POST_VARS as $name=>$value) { $$name=$value; session_register($name); //with the $ } HTH Martin -Original Message- From: Anup [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 12:39 PM To: [EMAIL PROTECTED]

Re: [PHP] Check for Associative Array

2002-07-18 Thread Martin Clifford
Try this: while($row = mysql_fetch_assoc($result)) { // code here } This way, the resulting array will ONLY be associative. HTH! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Henning Sittler <[EMA

Re: [PHP] Check for Associative Array

2002-07-18 Thread Martin Clifford
Oh well. And HTH means "Hope to Help". > For some unknown reason the OP specifically does not want to use > mysql_fetch_assoc()! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ -- PHP General Mailing Lis

Re: [PHP] spawning scripts to different graphical targets

2002-07-18 Thread Martin Clifford
I would assume you just do it as if you didn't have any scripts in it in the first place. The link in frame A might be like below: Click here to see the content Then, in frame b, content.php will show up and you can then use $show to decide what to do. I might be totally off on this one, but

[PHP] Arrays and Regs

2002-07-18 Thread Martin Clifford
;a'? I find this confusing for some reason, hehe. Any help would be great! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Please Help with LOOP!!

2002-07-18 Thread Martin Towell
Asmodean - using comma is another way of using echo... Wee - try this instead - you're putting two loops together when you don't need to for($count=1; $count<=$rows; $count++) { $query_data = mysql_fetch_array($result); $price = $query_data["price_lq"]; $RowColor = useColor(); // current

RE: [PHP] vertical word match

2002-07-18 Thread Martin Towell
try changing the "+"'s with "*"'s + = 1 or more * = 0 or more -Original Message- From: Joe Rice [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 3:30 PM To: [EMAIL PROTECTED] Subject: [PHP] vertical word match hello, any regex gurus? i'm trying to match words put into a that are

RE: [PHP] Sorting array based on key string

2002-07-18 Thread Martin Towell
dunno if this'll work... but here goes... sort($data); ksort($data); but ksort() might mangle the order from sort(). In that case, you'll need to write your sort routine that retains the old order -Original Message- From: Peter J. Pieczora [mailto:[EMAIL PROTECTED]] Sent: Friday, July 1

RE: [PHP] best way to delete char# 4-7 from a string?

2002-07-18 Thread Martin Towell
dunno how much slower it'd be, but it might look better. You could convert the strings to an array, use array_splice(), and then convert back to a string. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 3:39 PM To: php Subject: [PHP] best way

[PHP] Re: Arrays and Regs

2002-07-19 Thread Martin Clifford
!), I had to ask :o) And to Dan: I would love to change the line margins of my email client, but unfortunately Novell Groupwise sucks, and the government will not, without exception, allow customization of any software, whatsoever. So I'm stuck with it. Thanks again guys! Martin -- PH

RE: [PHP] Hex Help Please...

2002-07-21 Thread Martin Towell
Doesn't look like anyone has replied to you on the php-general mailing list. Have a look at this page http://www.wotsit.org/search.asp?s=graphics some of the docs there might help you HTH Martin -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, Ju

RE: [PHP] automatic credit card processing

2002-07-21 Thread Martin Towell
either use curl, and set to option to return the results to you to on or use ob_start(), ob_get_contents(), etc -Original Message- From: Dominic [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:11 PM To: [EMAIL PROTECTED] Subject: [PHP] automatic credit card processing Hi all I

RE: [PHP] separated string by comas

2002-07-21 Thread Martin Towell
$string = str_replace(" ", ",", $string); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:57 PM To: php-general Subject: [PHP] separated string by comas I have a string that is separated by spaces like this $string="test test1 test2 t

[PHP] Re: Using Javascript

2002-07-22 Thread Martin Clifford
cooperate with standards. Martin >>> "Chris Earle" <[EMAIL PROTECTED]> 07/22/02 01:18AM >>> You use the "onClick" feature like this: no semicolon unless there is more than one thing being called/defined -- you use single quotes within the onClick's doubl

Re: [PHP] Newbie's question about \n

2002-07-22 Thread Martin Clifford
"; ?> Output in IE6: this should be printed out: this is a second line regards, KK<<< -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ----- Do You Yahoo!? Yahoo! Health - Feel better, l

Re: [PHP] What does register_globals do?

2002-07-22 Thread Martin Clifford
variable types. I'm sure there's a much better way to explain it, but it works for me :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Matt Babineau" <[EMAIL PROTECTED]> 07/22

RE: [PHP] What does register_globals do?

2002-07-22 Thread Martin Clifford
"unless defined otherwise" was what I said. When I said that, I simply meant that you declare the variables as global within the function and/or class. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>>

RE: [PHP] Comma question

2002-07-22 Thread Martin Towell
ting - never thought of doing that, I alway's broke out of the quotes to do object dereferencing. Should make my future code more readable I think... Martin -Original Message- From: B i g D o g [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 9:06 AM To: PHP GEN Subject: Re: [

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