[wdvltalk] Re: php not working in firefox

2004-10-17 Thread BD
works for me with firefox 0.8... [EMAIL PROTECTED] wrote: Hi List, I don't know PHP but I've had a novice programmer do some login scripting for me which works in IE but not in Firefox. Can anyone see why? The login is jen and jenpen. http://ssl.linknet.com.au/renalsociety/rsalogin.php Jen

[wdvltalk] Re: php not working in firefox

2004-10-17 Thread Mark Groen
On Sun, 17 Oct 2004 17:01:41 -0700, [EMAIL PROTECTED] wrote: I don't know PHP but I've had a novice programmer do some login scripting for me which works in IE but not in Firefox. Can anyone see why? The login is jen and jenpen. http://ssl.linknet.com.au/renalsociety/rsalogin.php It's using

[wdvltalk] Re: php not working in firefox

2004-10-17 Thread Joseph Harris
Firefox 1.0 claims it cannot find the site, though the same url is ok in IE6. Opera7.23 is ok with it as well. But it has come up in Firefox on the third attempt. That is interesting; does the lates firefox have a weakness? Joseph Harris works for me with firefox 0.8... [EMAIL

[wdvltalk] Re: php not working in firefox

2004-10-17 Thread jensevern
Thanks Mark, cookies was the problem. I'll have to place a warning for users. Cheers, Jen • The WDVL Discussion List from WDVL.COM • To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to

[wdvltalk] Re: PHP Crunch time

2004-08-21 Thread Bj
- Original Message - From: Ross Clutterbuck It's time to learn PHP and MySQL. True :-) Resources, tutorials, books, training, any and all types of learning materials required! Hardly any needed if you already know how to use ASP or Perl and the essentials of SQL queries... the

[wdvltalk] Re: PHP Crunch time

2004-08-21 Thread Stephen Caudill
Ross, I've enjoyed PHP an MySQL Web Development, Second Edition[1] from Developers Library. It's a well written book with good code examples, which is aimed at the intermediate to advanced web designer (it assumes a working knowlege of html). Oh! and don't forget the ever useful

[wdvltalk] Re: php bypassing form!

2004-08-18 Thread Bj
- Original Message - From: Joseph Harris I imagine that this '{$_POST['$poem_title']}', is the fault line I imagine so, the string '{$_POST[' followed immediately by the characters $poem_title and then another string ']}' doesn't make a lot of sense. You can't surround part of a

[wdvltalk] Re: php and css tables

2004-07-29 Thread Trusz, Andrew
-Original Message- From: Sheila Fenelon Re: php and css tables Hi drew, I'm confused, where exactly are you doing this .top{background-color:$top_row_color;} table{border: 1px solid $main_table_border_color;} Is it in a .css file or a .php file? It needs to be in a .php file

[wdvltalk] Re: php and css tables

2004-07-29 Thread Trusz, Andrew
-Original Message- From: steve miller Sent: Wednesday, July 28, 2004 1:24 PM To: [EMAIL PROTECTED] Re: php and css tables I know this has worked for me: .plan_name { color: ?php echo $colorG ?; font-weight: normal; font-size: 18px; font-family: Trebuchet MS, Verdana, Arial; }

[wdvltalk] Re: php and css tables

2004-07-29 Thread Trusz, Andrew
-Original Message- From: Sheila Fenelon [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 8:35 AM To: [EMAIL PROTECTED] Subject: [wdvltalk] Re: php and css tables Trusz, Andrew wrote: What does turn out to work is just to drop the quotes in the embedded style sheet. So both

[wdvltalk] Re: php and css tables

2004-07-29 Thread Sheila Fenelon
Trusz, Andrew wrote: What does turn out to work is just to drop the quotes in the embedded style sheet. So both of these work: table width=$main_table_width align=center valign=center border=0 cellspacing=0 cellpadding=1 bgcolor=$main_table_border_color and: style type=text/css table{border:1px

[wdvltalk] RE: PHP/mySQL Open Source Project Management Tool

2004-06-22 Thread Cheryl D. Wise
I found PHP-Collab to be easy to install. The interface is pretty intuitive but that's as far as I've gotten with it. Haven't actually tried to use it yet. Cheryl D. Wise Certified Professional Web Developer MS-MVP-FrontPage www.wiserways.com mailto: [EMAIL PROTECTED] 713.353.0139 Office

[wdvltalk] RE: PHP/mySQL Open Source Project Management Tool

2004-06-22 Thread Pablo Oliva
Gforge.org, haven't tried it but it is sourceforge's original code. -Original Message- From: Stephen Caudill [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 5:37 AM To: [EMAIL PROTECTED] Subject: [wdvltalk] PHP/mySQL Open Source Project Management Tool Hi all, I've been

[wdvltalk] RE: PHP/mySQL Open Source Project Management Tool

2004-06-22 Thread Stephen Caudill
That's good to know :) I've had a series of open source software installation disasters, so it'd be nice to have one that won't be a massive headache! I think I'll give this one a shot, as CopperProject is $199... not that it's not worth it to invest in Open Source, my wallet just won't allow

[wdvltalk] RE: PHP/mySQL Open Source Project Management Tool

2004-06-22 Thread Stephen Caudill
Looks intersting Pablo, but I think it might be geared towards bigger phish than I :) Plus I would really like it to have the client component, as I'm about to get very strict about using RAD techniques, so the early client feedback will be necessary. Thanks, Stephen On Tue, 22 Jun 2004

[wdvltalk] RE: PHP Pages

2004-06-06 Thread Jon Haworth
Hi Jac, Should a php page with php includes still render properly on a local machine if you were to preview in IE from within Dreamweaver? I don't usually write my PHP stuff in Dreamweaver so I can't say for sure, but I wouldn't have thought so. Of course it might include a PHP interpreter

[wdvltalk] RE: PHP Pages

2004-06-06 Thread Cheryl D. Wise
I think if would depend on how you are previewing it. I have no problems when I preview in browser using Dreamweaver but I have IIS installed with the PHP interpreter so using my testing server as configured for the Dreamweaver site works fine. If you don't have a testing server check the

[wdvltalk] RE: PHP Pages

2004-06-06 Thread jac
Presumably if you upload the page to a server running PHP everything works fine? Cheers Jon Thanks Jon, yeah i've since read that I'd need some stuff installed on my local machine for it to render. So I uploaded it to the server and all that is displayed is bg image of the page - no

[wdvltalk] RE: PHP Pages

2004-06-06 Thread jac
I don't get this - how is it possible for all the code to be visible in Notepad when I view source and not render on the actual page in the browser? anyone? jac Thanks Jon, yeah i've since read that I'd need some stuff installed on my local machine for it to render. So I uploaded it

[wdvltalk] RE: PHP Pages

2004-06-06 Thread jac
Ok forget it - all fixed :o) I took out the comments in the code and the page now renders fine ??? lol cheers thanks for your time help. jac phew! • The WDVL Discussion List from WDVL.COM • To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To:

[wdvltalk] RE: PHP with .SHTML

2004-05-15 Thread Jon Haworth
Hi Amrit, How do I change Apache config file so that my SHTML files execute PHP code? I know we can make any file do this. In your httpd.conf you should have a line that looks like this: AddType application/x-httpd-php .php You should be able to add whatever you want to the end of that:

[wdvltalk] Re: PHP - multiple read request

2004-05-11 Thread Scott Glasgow
Mmmm, Peet, do us a favor in the future if you don't mind. Most of us, I imagine, would really rather not receive the entire digest accompanying your reply. A little judicious trimming might be appropriate. Cheers, Scott - Original Message - From: Peet - Nu Breeze Tech [EMAIL PROTECTED]

[wdvltalk] Re: PHP - multiple read request

2004-05-10 Thread Sheila Fenelon
rudy wrote: Is there not a way that a person could do one or two read instructions and obtain all the records in the different categories in one go? certainly select category , count(*) as test from offers group by category Rewriting your original PHP with rudy's SQL: ?php

[wdvltalk] Re: PHP: 404 error handling

2004-04-23 Thread Amrit Hallan
Finally, this code did the trick for me: ?php if (!function_exists('virtual')) { echo h1Error, not running as Apache module/h1;} // get name of the requested page $request = rawurldecode($REQUEST_URI); if(get_cfg_var('magic_quotes_gpc')) $request = stripslashes($request); // check that this is

[wdvltalk] Re: PHP: 404 error handling

2004-04-22 Thread Mark Groen
- Original Message - From: Amrit Hallan To: [EMAIL PROTECTED] Sent: April 22, 2004 4:02 PM Subject: [wdvltalk] PHP: 404 error handling I'm trying to write a custom 404 error handling script in PHP. The script, redirect.php, needs to know what wrong URL was entered by the visitor.

[wdvltalk] Re: PHP: 404 error handling

2004-04-22 Thread Amrit Hallan
No error message. I have even tried print($_SERVER['DIRECT_URL']; and it returned 0. print $_SERVER['REQUEST_URI']; returns /redirect.php whereas I need to know the name of the file that was not found. Thanks. Amrit http://www.bytesworth.com Mark Groen wrote: - Original Message -

[wdvltalk] Re: PHP: 404 error handling

2004-04-22 Thread Mark Groen
- Original Message - From: Amrit Hallan To: [EMAIL PROTECTED] Sent: April 22, 2004 5:39 PM Subject: [wdvltalk] Re: PHP: 404 error handling No error message. I have even tried print($_SERVER['DIRECT_URL']; and it returned 0. print $_SERVER['REQUEST_URI']; returns /redirect.php

[wdvltalk] RE: php include oddity in foreach statement

2004-04-19 Thread Jon Haworth
Joseph, include $_SERVER['DOCUMENT_ROOT']. '/html/books_layout.html'; unexpected T_STRING, expecting ',' or ';' What might be causing the confusion? include() is a function, so you need to surround the address with brackets, like this: include ($_SERVER['DOCUMENT_ROOT'].

[wdvltalk] RE: php include oddity in foreach statement

2004-04-19 Thread Jon Haworth
Joseph, This is the foreach: foreach ($xml_tree[PRODUCTINFO][0][DETAILS] AS $product) { Followed by a set of lines which are variations on this cut and paste $product_manufacturer = $product[MANUFACTURER][0][VALUE]; Try sticking quotes round the array indices (the bits in square brackets):

[wdvltalk] RE: php include oddity in foreach statement

2004-04-19 Thread Smile-Poet
Jon, 120 apostrophes and deletions later I can confirm that that wasn't it! Would you believe it moved on when I took the quotes away from DOCUMENT ROOT ?And wants double quotes round 'echo' strings And I have had to take more quotes away! But now I am getting this, and I can't remember

[wdvltalk] RE: php include oddity in foreach statement

2004-04-19 Thread Jon Haworth
Joseph, And I have had to take more quotes away! PHP's quote handling is a bit strange and can take some getting to grips with :-) Strings inside double quotes are parsed, meaning you can do this sort of thing: // my pet is a cat $pet = cat; echo my pet is a $pet.; Strings inside

[wdvltalk] RE: php include oddity in foreach statement

2004-04-19 Thread Smile-Poet
Jon, That is really helpful; some of it I had picked up, and it confirms it and makes it orderly. Funny, I was nervous about removing quotes from DOCUMENT ROOT and its brethren, but increasingly I am thinking this is a code full of little gremlins having fun! I can't see a missing quote a

[wdvltalk] RE: php include oddity in foreach statement

2004-04-19 Thread Stephen Caudill
--- Smile-Poet wrote: --- : Jon, : : That is really helpful; some of it I had picked up, and it : confirms it and makes it orderly. Funny, I was nervous about : removing quotes from DOCUMENT ROOT and its brethren, but : increasingly I am thinking this is a code full

[wdvltalk] RE: php include oddity in foreach statement

2004-04-19 Thread Smile-Poet
Jon, Just to update. It was a missing single quote at the end of an echo line. Now I get the error appropriate to the fact that the script can't access Amazon, which is as it should be. Cleary there is some difference, too, inside a foreach; until these variants are clear it makes fro a very

[wdvltalk] RE: php include oddity in foreach statement

2004-04-19 Thread Smile-Poet
Stephen, I'm using html-kit which is probably similar, using colour and bold to show what is happening. Of course it needs me to know what it is signifying, which is beginning to happen! But the quotes do not stand out, though sometimes the part affected is visible by being the wrong colour.

[wdvltalk] Re: php classes trip

2004-04-16 Thread David Precious
On Thursday 15 April 2004 23:10, Smile-Poet wrote: Three appear to work as intended;  so why should the fourth bring up this: Fatal error: Cannot redeclare class meta in c:\easyphp1-7\www\classes\clsMetaContent.php on line 5 line 5 is merely '{' following line 4:  Class meta. Where might

[wdvltalk] Re: php classes trip

2004-04-16 Thread Smile-Poet
Dave, Thanks for the answer. I see the point and the manual is (fairly) clear. But this is where I am at the moment include_once($_SERVER['DOCUMENT_ROOT'].'/classes/clsMetaContent.php' ); (Now I guessed I might not have converted $_SERVER correctly, but I am lost !) and it produces this:

[wdvltalk] Re: php classes trip

2004-04-16 Thread Bj
- Original Message - From: Smile-Poet But this is where I am at the moment include_once($_SERVER['DOCUMENT_ROOT'].'/classes/clsMetaContent.php' ); Try either of: include_once($_SERVER['DOCUMENT_ROOT']/classes/clsMetaContent.php); or include_once($_SERVER['DOCUMENT_ROOT'] .

[wdvltalk] Re: php classes trip

2004-04-16 Thread Smile-Poet
Bj wroteSheesh. What's the world coming to, when absolute beginners with no programming background are supposed to be figuring out classes. I think it's called 'The Deep End Philosophy'. This is the only one that is happy: include_once($_SERVER['DOCUMENT_ROOT'] . '/classes/clsMetaContent.php');

[wdvltalk] Re: Php fatal error

2004-04-16 Thread Bj
- Original Message - From: William Stewart Phew, hard to follow all that... still I'll try: echo $meta-metadata($ptitle); It's possible it's choking on $ptitle, as I can't see that you've defined that anywhere, even as the empty string. You might try: ?php if (!isset($ptitle))

[wdvltalk] Re: Php fatal error

2004-04-16 Thread William Stewart
Thanks BJ for your help. I finally got it working through some convoluted means and have decided its not worth the trouble. :) Thanks again! Will -Original Message- From: Bj [mailto:[EMAIL PROTECTED] Sent: Friday, April 16, 2004 12:01 PM To: [EMAIL PROTECTED] Subject: [wdvltalk] Re

[wdvltalk] Re: PHP book update

2004-04-12 Thread Bj
- Original Message - From: Cheryl D. Wise I do not consider myself a programmer but someone with enough familiarity with programming to function. That's about where I am with Web designing, as opposed to the coding side. I can lay out a page with table or frame commands* and choose

[wdvltalk] Re: PHP book update

2004-04-12 Thread Furry, Tim
Bj wrote: ...using various BASICs, C, Assembler (Intel 6502 and VAX Macro-32), microcode, Pascal and COBOL, have been sent on formal short courses in ICL 2966 COBOL and SCL, IBM Rexx/CMS and the Unix Bourne shell, spent over two years programming COBOL for a living and over the past twenty years

[wdvltalk] Re: PHP book update

2004-04-12 Thread Sheila Fenelon
Cheryl D. Wise wrote: I find this discussion interesting. I do not consider myself a programmer because I do not like to write programs. I can and do write code though given a choice I'd rather use something already written or give that part of a project to someone who likes to write code. I took

[wdvltalk] Re: PHP book update

2004-04-12 Thread Cheryl D. Wise
programmer design sense, enough said. grin / Cheryl D. Wise Certified Professional Web Developer MS-MVP-FrontPage www.wiserways.com mailto: [EMAIL PROTECTED] 713.353.0139 Office -Original Message- From: Bj *Yes I know, I should do it in CSS, liquid layout and all that; 5 minutes to

[wdvltalk] Re: PHP book update

2004-04-12 Thread Smile-Poet
Joseph, so how does this help you? We've all had years of experience fixing our own code and the code of others, and we are still learning. I wonder if it would have been best for you to have searched the various code respositories for an application, for example hotscripts.com. If I

[wdvltalk] Re: PHP book update

2004-04-11 Thread Don Kinney
Sheila-- If anyone knows of good PHP book, for beginners, please speak up. I get asked this question all the time. The O'Reilly book might be OK but it's [snip] The blokes at Sitepoint.com have a two-book set titled THE PHP ANTHOLOGY. Volume 1 is Foundations. Volume 2 is Applications. Kinda

[wdvltalk] Re: PHP book update

2004-04-11 Thread Smile-Poet
I realise that I am not going to convince those on the list who really do know their MySQL/PHP from their 'embonpoint' to get to gether for a book (apart from rudy). But all the, very useful, pieces of information, like Don's, really underlines my point. 'Kinda pricey' for example; and the

[wdvltalk] Re: PHP book update

2004-04-11 Thread rudy
I realise that I am not going to convince those on the list who really do know their MySQL/PHP from their 'embonpoint' to get to gether for a book (apart from rudy). i've read this sentence several times and i just do not get it you are going to convince nobody except me? you are going to

[wdvltalk] Re: PHP book update

2004-04-11 Thread Sheila Fenelon
rudy wrote: where are sheila and cheryl this weekend, i wanna know i wanted them to review the sql course i am developing... I'm here. It's Day Three of a four day weekend for my kids from school. I want to review your sql course but have been waiting for a quiet moment. Difficult with

[wdvltalk] Re: PHP book update

2004-04-11 Thread Sheila Fenelon
Don Kinney wrote: Sheila-- If anyone knows of good PHP book, for beginners, please speak up. I get asked this question all the time. The O'Reilly book might be OK but it's [snip] The blokes at Sitepoint.com have a two-book set titled THE PHP ANTHOLOGY. Volume 1 is Foundations. Volume 2 is

[wdvltalk] Re: PHP book update

2004-04-11 Thread Sheila Fenelon
Joseph, About my contribution to your 'dream book' I have my course at EclecticAcademy.com As long as I'm teach there I can't publish it elsewhere. I have thought about adding a PHP Tips page to my site. I may do that. Sheila Smile-Poet wrote: I realise that I am not going to convince

[wdvltalk] Re: PHP book update

2004-04-11 Thread rudy
I'm here. It's Day Three of a four day weekend for my kids from school. yeah, i know what you mean my ex and i have a co-parenting thing where the kids live with me for two weeks, then with her for two weeks... luckily they are with her this weekend but spring break week is worse than easter

[wdvltalk] Re: PHP book update

2004-04-11 Thread David Blakey
CRA (canada revenue agency) want me to submit a return for 2002 maybe i should get on it, eh? I know this is off-topic, but you really need some management consulting advice here. You are obviously too busy to perform some unproductive task like completing tax forms. Eventually, the

[wdvltalk] Re: PHP book update

2004-04-11 Thread Smile-Poet
I feel myself rolling like the easter egg - or some of them that are rolled down hills - you didn't know?... Rudy, my apologies for obscurity, far from intending to suggest any lack of knowledge on your part, I was commenting that you were the only one to express interest in my idea. Sheila, I

[wdvltalk] Re: PHP book update

2004-04-11 Thread Bj
- Original Message - From: Smile-Poet I realise that I am not going to convince those on the list who really do know their MySQL/PHP from their 'embonpoint' to get to gether for a book I think Sheila's got the most important point. What I know is programming. I was taught

[wdvltalk] Re: PHP book update

2004-04-11 Thread rudy
My point being, it's like driving a car. If you can drive, you can drive, nice post, bj sql is like that too once you know sql, you can use any database like oracle, sybase, access, mysql, postgresql, firebird, sql server, et cetera, et cetera the difference, though, is that there *is* an

[wdvltalk] Re: PHP book update

2004-04-11 Thread Bj
- Original Message - From: Smile-Poet Ah, well, back to the poetry. In my craft or sullen art, Practised in the still night When only the moon rages And lovers lie abed With all their griefs locked in their arms, I labour by singing light; Not for ambition or for bread, Or for the

[wdvltalk] Re: PHP book update

2004-04-11 Thread Bj
- Original Message - From: rudy sql is like that too once you know sql, you can use any database like oracle, sybase, access, mysql, postgresql, firebird, sql server, et cetera, et cetera Ah, did I mention my HNC and HND courses included formal training in database methodologies,

[wdvltalk] Re: PHP book update

2004-04-11 Thread Cheryl D. Wise
Like Sheila it is on my to do list. I was in Seattle at the Microsoft MVP Summit last week and returned home just in time for Easter weekend. I still haven't caught up with everything. Just returned from my brother's house where we had a family dinner. Leaving again on Tuesday for California to

[wdvltalk] Re: PHP book update

2004-04-11 Thread Cheryl D. Wise
I find this discussion interesting. I do not consider myself a programmer because I do not like to write programs. I can and do write code though given a choice I'd rather use something already written or give that part of a project to someone who likes to write code. I took one programming class

[wdvltalk] Re: PHP book update

2004-04-11 Thread Mark Groen
- Original Message - From: Cheryl D. Wise [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: April 11, 2004 6:41 PM Subject: [wdvltalk] Re: PHP book update snip a long list of computer experience... I do not consider myself a programmer but someone with enough familiarity with programming

[wdvltalk] Re: PHP book update

2004-04-07 Thread Franni Vincent
Folks, This is the book I'm working off. PHP and MySQL Web Development, 2nd edition Luke Welling, Laura Thomson I'm managing to work through it happily enough and would recommend it based on progress so far, i.e. about page 200. John. john.f.hughes Goodbody Stockbrokers Private Clients

[wdvltalk] Re: PHP book update

2004-04-07 Thread john . f . hughes
Franni, When I'm learning something from scratch I usually try the Peachpit Quick Start books. A quick search on Amazon throws up this. http://www.amazon.co.uk/exec/obidos/ASIN/0321245652/ref=sr_aps_books_1_1/202-1038935-1487825 The reviewers seem positive enough about it... I don't have

[wdvltalk] Re: PHP book update

2004-04-06 Thread Trusz, Andrew
-Original Message- From: Sheila Fenelon [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 6:43 PM To: [EMAIL PROTECTED] Subject: [wdvltalk] Re: PHP book update Bj wrote: Joseph, you almost make me want to write a php book just for you, however I am sure there are good ones out

[wdvltalk] RE: [PHP] problems with php.ini - HELP

2004-04-06 Thread Smile-Poet
PM | To: [EMAIL PROTECTED] | Subject: [wdvltalk] RE: [PHP] problems with php.ini - HELP | | | Paul, | | Would it be likely to help if I checked what the installation | put in my | php.ini (apache, MySQL, PHP as EasyPHP1-7); you would have | to give me the | line number. | | Joseph

[wdvltalk] Re: PHP book update

2004-04-06 Thread john . f . hughes
Folks, This is the book I'm working off. PHP and MySQL Web Development, 2nd edition Luke Welling, Laura Thomson I'm managing to work through it happily enough and would recommend it based on progress so far, i.e. about page 200. John. john.f.hughes Goodbody Stockbrokers Private Clients

[wdvltalk] Re: PHP book update

2004-04-06 Thread Smile-Poet
have experienced how well you all teach) Joseph -Original Message- From: Sheila Fenelon [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 6:43 PM To: [EMAIL PROTECTED] Subject: [wdvltalk] Re: PHP book update Bj wrote: Joseph, you almost make me want to write a php book

[wdvltalk] Re: PHP book update

2004-04-05 Thread Smile-Poet
Sheila, I honestly think that the best people to write a php book are the experts of wdvltalk. I can test it for you, and, as you have seen, if there is anything you have not made crystal clear I will not be able to make it work ;-) In the course of my travails I realised how real the point

[wdvltalk] RE: [PHP] problems with php.ini - HELP

2004-04-02 Thread Paul Larue
] | Subject: [wdvltalk] RE: [PHP] problems with php.ini | | Shouldn't be so... I think I remember using document_root in | win2k pro. | | Paul | | | -Original Message- | | From: Trusz, Andrew [mailto:[EMAIL PROTECTED] | | Sent: Friday, April 02, 2004 6:02 PM | | To: [EMAIL PROTECTED

[wdvltalk] Re: PHP: Returning an array

2004-03-30 Thread Amrit Hallan
Thank you :-). Such things make one feel sometimes dumb and humble. Besides, they needlessly waste so much time :-(. Amrit http://www.bytesworth.com Sheila Fenelon wrote: You have some typos in your code 'lables' instead of 'labels'. This worked for me: ?php function common_form_labels() {

[wdvltalk] Re: PHP: Returning an array

2004-03-30 Thread Sheila Fenelon
Amrit Hallan wrote: Such things make one feel sometimes dumb and humble. Besides, they needlessly waste so much time :-(. I did't see it either until I copy and pasted the code into my code editor and tried to run it. The editor found the problems, not me. A good editor will save you lots of

[wdvltalk] Re: PHP question

2004-03-06 Thread Bj
- Original Message - From: William Stewart I have a variable that I want to define as an include of a .txt file. In other words, I want something like: $subcontent = include(text.txt); Simplest is just to put the whole variable definition into the include file: ?php

[wdvltalk] Re: PHP question concerning folders

2004-02-19 Thread Sheila Fenelon
William Stewart wrote: I am trying to dynamically include a file based on what folder the file that is calling it is in. For instance: The file www.whatever.com/abc/index.php would include the file: www.whatever.com/template/abc.php and the file www.whatever.com/xyz/index.php would include the

[wdvltalk] Re: php

2004-02-13 Thread Tristan . Pretty
$Query = Insert into $TableName (id, name, date) values ('', 'number three', '2004-12-02'); loose all references to id making... $Query = Insert into $TableName (name, date) values ('number three', '2004-12-02'); My first thought was that you're forcing a blank into the id field... Try

[wdvltalk] Re: php

2004-02-13 Thread Sheila Fenelon
[EMAIL PROTECTED] wrote: I get the success message and an id of 0 when it should be 3 and no data inserted in either table. You haven't sent the queries to MySQL. $Query = Insert into $TableName (id, name, date) values ('', 'number three', '2004-12-02'); $result = mysql_query($Query); if

[wdvltalk] Re: php

2004-02-13 Thread Trusz, Andrew
snip You haven't sent the queries to MySQL. $Query = Insert into $TableName (id, name, date) values ('', 'number three', '2004-12-02'); $result = mysql_query($Query); if ($result) { $id= mysql_insert_id(); } else { echo There was a problem with the query: $Query\n: } You'll need

[wdvltalk] Re: php

2004-02-13 Thread Uch Don
PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 12:13 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [wdvltalk] Re: php $Query = Insert into $TableName (id, name, date) values ('', 'number three', '2004-12-02'); loose all references to id making... $Query

[wdvltalk] Re: php

2004-02-13 Thread Sheila Fenelon
Drew, Incorporating what the others have suggested, here's what you want: ?php /* Set variables for database access */ $Host = localhost; $User = root; $Password = ; $DBName = MySQL.respite; $TableName = register; $TableName2 = money; $Link= @mysql_connect($Host, $User, $Password) or

[wdvltalk] Re: PHP and Posting

2004-01-29 Thread Sheila Fenelon
I like to post to self. A general outline of a simple form script goes like this: ?php // include config file or other functions needed include(_header.php); if ($_SERVER['REQUEST_METHOD'] == GET) { // display a blank form display_form(); } else if ($_SERVER['REQUEST_METHOD'] == POST) {

[wdvltalk] Re: PHP and Posting

2004-01-29 Thread admin
Brilliant! I am always using if isset in a similar maner so all I can say is doh! That is exactly what I need to take care of the refresh problem. Posting to self Score: 1 • The WDVL Discussion List from WDVL.COM • To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]

[wdvltalk] Re: PHP Question

2004-01-13 Thread Sheila Fenelon
Anitha Paruchuri wrote: Hi, I am trying to check the length of the password entered by the user using strlen($password). It works fine when say I enter a password as 'abc123' but if I entered '123abc' it somehow doesn't work fine. Am I missing something here? Should the $password or the variable

[wdvltalk] Re: PHP Question

2004-01-13 Thread Bj
- Original Message - From: Anitha Paruchuri I am trying to check the length of the password entered by the user using strlen($password). It works fine when say I enter a password as 'abc123' but if I entered '123abc' it somehow doesn't work fine. Am I missing something here? Either

[wdvltalk] Re: PHP Question

2004-01-13 Thread Anitha Paruchuri
The code where it does this is here-- if (strlen($cpassword)5 || strlen($cpassword 16)) { echo Your password must be between 5 and 16 characters. Please go back and try again.; exit; // check password length is ok } I tried printing the values of

[wdvltalk] Re: PHP Question

2004-01-13 Thread john . f . hughes
] cc: .niu.eduSubject: [wdvltalk] Re: PHP Question

[wdvltalk] Re: PHP Question

2004-01-13 Thread Sheila Fenelon
Anitha Paruchuri wrote: The code where it does this is here-- if (strlen($cpassword)5 || strlen($cpassword 16)) A misplaced ) You probably want this: if (strlen($cpassword)5 || strlen($cpassword) 16) Sheila • The WDVL Discussion List from WDVL.COM • To Join wdvltalk, Send An

[wdvltalk] Re: PHP Question

2004-01-13 Thread Anitha Paruchuri
Thanks so much...Huh sometimes you feel like such a stupid to do these small errors. But Thanks everyone it is definately the ')' but what suprises me is that all the while it did not give any problem until i tried entering a password starting with numbers. I think I must have entered atleast

[wdvltalk] Re: PHP Question

2004-01-13 Thread Bj
- Original Message - From: Anitha Paruchuri what suprises me is that all the while it did not give any problem until i tried entering a password starting with numbers. Well, look at it this way. By comparing $password with a number you are forcing it to evaluate to a numeric value.

[wdvltalk] Re: php bad links script (more thoughts....!)

2004-01-03 Thread Steve Miller
Bj wrote: Seems like, if you have to accept and check https: links, you need to either find another way to do it (maybe something really Gothic using Perl) or save them and check manually! I did a little rooting around, and found that if you have libcurl 7.9.8 or newer installed and OpenSSL,

[wdvltalk] Re: php bad links script (more thoughts....!)

2004-01-02 Thread Steve Miller
Bj wrote: I think you're trying to make it harder then it needs to be. The php fopen() function does work in safe mode, and will only return success if the page exists - it will fail if a 404 is returned. The code I originally suggested is all you need to check a link: if (fopen($url,

[wdvltalk] Re: php bad links script (more thoughts....!)

2004-01-02 Thread Bj
- Original Message - From: Steve Miller This is working OK, except that any https link that I try to fopen comes back false, even when I know it is a good link. Is there something I need to add within the script to allow me to open a secure file? Ahh. Hmmm. What a good question.

[wdvltalk] Re: php bad links script

2003-12-31 Thread Bj
From: Steve Miller We are setting up an application where users will be entering links into a db, and we need a way to check them to make sure they are good. Php can open a Web page like opening a file - or not, if the link is no good. So, you could experiment with something like: if

[wdvltalk] Re: php bad links script

2003-12-31 Thread Matthew Macdonald-Wallace
On Wed, 2003-12-31 at 09:39, Bj wrote: From: Steve Miller We are setting up an application where users will be entering links into a db, and we need a way to check them to make sure they are good. Php can open a Web page like opening a file - or not, if the link is no good. So, you

[wdvltalk] Re: php bad links script (more thoughts....!)

2003-12-31 Thread Matthew Macdonald-Wallace
On Wed, 2003-12-31 at 12:44, Matthew Macdonald-Wallace wrote: how about building on this: I'm gonna take it one step further. How about having an array of the error codes you _Don't_ want, i.e: 500 Internal Server Error 404 Document Not Found 301 Moved Permanently 302 Moved Temporarily 403

[wdvltalk] Re: php mysql encrypt

2003-12-09 Thread Sheila Fenelon
Hello, Subhendu Mohapatra wrote: I am using PHP,MySQL,Apache in Win 98 PF. I am creating one login system and in this email address are to be stored after encrypting. Members has to use email and password to login to system. I am able to store the encrypted email address in MySQL but while

[wdvltalk] RE: PHP coding

2003-11-27 Thread Galatek Webmaster
Replace define ('TEXT_INFORMATION','it's cold.') with define('TEXT_INFORMATION','it\'s cold.') when you put the apostrophe in, PHP reads it as an end to the string you want to display, using the backslash tells PHP to display the character following as a literal character, without parsing it as

[wdvltalk] Re: PHP coding

2003-11-25 Thread Mark Groen
- Original Message - Sent: November 25, 2003 4:18 PM Subject: [wdvltalk] PHP coding If I code the following: define('TEXT_INFORMATION', 'It is cold.'); echo TEXT_INFORMATION; It works fine as it displaces the It is cold. at the right place. But, if I change it to:

[wdvltalk] Re: php image size

2003-11-18 Thread matthew
Quoting Steve Miller [EMAIL PROTECTED]: I have been trying to upload gifs and jpgs, determine their width/height, and display them. I am using $size=GetImageSize($broker_logo); $logo_w=$size[0]; $logo_h=$size[1]; and storing in a database, but am getting wrong values which distort

[wdvltalk] Re: php image size

2003-11-18 Thread Steve Miller
Hi Matt. Was thinking of that, but I am storing H and W now, and would have to alter the db tables...but might be worth it! steve From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 18 Nov 2003 16:46:43 + To: [EMAIL PROTECTED] Subject: [wdvltalk] Re: php image size

[wdvltalk] Re: php image size

2003-11-18 Thread matthew
Quoting Steve Miller [EMAIL PROTECTED]: Hi Matt. Was thinking of that, but I am storing H and W now, and would have to alter the db tables...but might be worth it! Steve, The only other thing I can think of would be to check your code and make sure that you're not writing the height variable

  1   2   >