Re: [PHP][MySQL] FAKE DUPLICATE ROW

2004-02-20 Thread Richard Davey
too big for it. Change to a BIGINT or make the field unsigned. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Richard Davey
'at' is more appropriate than using cron. I thought the AT scheduler was a Windows NT level service only? Surely it's only more appropriate if he's on a Windows server? Or did MS nick it from the Unix world? (and if so, why is it better than cron?) -- Best regards, Richard Davey http

Re[2]: [PHP] Database insert/update from Browser Refresh or Back/Forward Button

2004-02-20 Thread Richard Davey
of International PHP Magazine (PDF version) this month is all about this. https://www.entwickler.com/ssl/phppdf/ -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP or MSIE Problem?

2004-02-20 Thread Richard Davey
is going on I don't believe anyone has determined yet. I would love to find out though because this is only going to get more and more common imho. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] headers_list function

2004-02-19 Thread Richard Davey
the beta versions of PHP are worked on. So you can grab a copy from there, *compile* it yourself and then test it. Either that, or your manual is outdated and it's moved from CVS to live :) it's worth checking that too. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

Re: [PHP] str_replace to replace /n with p not having desired effect.

2004-02-19 Thread Richard Davey
Hello Dave, Thursday, February 19, 2004, 3:52:54 PM, you wrote: DG $charInfoCss = 'p class=content' . str_replace('\n', '/p\np class=content\n', $charInfo[introE]) . '/p'; Double-bag it: str_replace(\n, /p\np class=\content\\n, $charInfo[introE]) -- Best regards, Richard Davey http

Re: [PHP] variables

2004-02-19 Thread Richard Davey
regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Table's config

2004-02-19 Thread Richard Davey
:) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Generating Sub Headings

2004-02-19 Thread Richard Davey
, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] boolean type function ?

2004-02-18 Thread Richard Davey
? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Headers Again

2004-02-17 Thread Richard Davey
of the PHP bible? It'll save you SO much hassle. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Headers Again

2004-02-17 Thread Richard Davey
don't want it to. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to calculate my local time?

2004-02-17 Thread Richard Davey
() on your server, adjusted accordingly. Do with this what you will. strtotime is your friend :) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php and texfield values

2004-02-17 Thread Richard Davey
value=?=$value?/td Also if your database entry has quote marks in it, it will break this. Here is one (of many) ways to solve it: $value = htmlspecialchars($row['p_company']); -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http

Re: [PHP] destroy session

2004-02-17 Thread Richard Davey
that calls session_destroy(). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] post variables

2004-02-17 Thread Richard Davey
is. I noticed that the latest security fix from Microsoft to IE broke several high profile sites - do you get this on IE or does it happen with Mozilla too? Do you have any firewall software installed too? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General

Re[2]: [PHP] isset() question

2004-02-16 Thread Richard Davey
from doesn't teach good coding practise - what will? It's not something you're born with. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CDONTS Object

2004-02-16 Thread Richard Davey
? You don't need it. See the mail part of the PHP manual. Just one of the many reasons why PHP is far superior to ASP ;) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re[4]: [PHP] isset() question

2004-02-16 Thread Richard Davey
a LOT about the overall quality of a script by its coding style and structure - just because its printed in the pages of book I see no reason why they should be treated any differently. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http

Re: [PHP] PHP IDE

2004-02-16 Thread Richard Davey
supporting PHPs future too in a way. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] problems with spam

2004-02-16 Thread Richard Davey
to locate the listserv and contact the admin. There are probably spam bots out there that harvest the PHP list daily. I'm not sure what you expect any listserv admin to do about it though, by their very nature this is unavoidable. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki

Re[4]: [PHP] problems with spam

2004-02-16 Thread Richard Davey
of office replies, user mailbox full errors and various other things back again from the actual subscribers. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Steps to installin PHP on apache 2

2004-02-16 Thread Richard Davey
Hello Stuart, Tuesday, February 17, 2004, 12:10:49 AM, you wrote: S all you ever wanted to know about PHP in one convenient location in S several formats and many many languages... ... except lazy arse-eese :) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP

Re: [PHP] isset() question

2004-02-15 Thread Richard Davey
it recently) or was it something you've had for a while/got 2nd hand? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] [Q]PHP not taking input values from forms

2004-02-14 Thread Richard Davey
the same thing - you cannot post data to your scripts. Surely it's quite obvious you should now be talking to your web host, or re-configuring your server/firewall if you did it yourself, because the problem is now conclusively demonstrated as being there. -- Best regards, Richard Davey http

Re: [PHP] Arranging My Functions

2004-02-14 Thread Richard Davey
. HH - Is there any reference on the web on how to arrange my PHP code? Yes, but there is no standard way to do it. Each to their own shall we say. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] mt_strand

2004-02-13 Thread Richard Davey
Hello Angela, Friday, February 13, 2004, 10:37:47 AM, you wrote: AKH However - I'm not 100% sure how to incorporate it into my code - I have AKH tried a few things but each time I break the code. Your make_seed() function isn't going to work in this instance because the important parts of it

Re[2]: [PHP] E-Commerce

2004-02-13 Thread Richard Davey
Hello John, Friday, February 13, 2004, 7:09:47 AM, you wrote: JN First off, it won't install or run if you have register_globals off. Wow, I had no idea - I've known about OScommerce for a while, but didn't realise it needed you to turn on register_globals - that is, quite frankly, shocking.

Re: [PHP] syntax help

2004-02-13 Thread Richard Davey
Hello bob, Friday, February 13, 2004, 12:10:06 PM, you wrote: bp $array=array(Flyer,Email,Phone); bp $array_len=count($array); bp for($i=0;$i$array_len;$i++){ bp $query=select count(score) from test_table bp where source = '$array[$i]'; bp $result=mssql_query($query,$numero); bp

Re: [PHP] Referring to Parent Folders

2004-02-13 Thread Richard Davey
Hello Vinny, Tuesday, February 10, 2004, 6:18:09 AM, you wrote: V [doc root] V -[php] V -- script.php V -- [some folder] V --- [another folder] V current.php V So my question is, is this simply a PHP config problem? Nope. Nothing to do with

Re[2]: [PHP] Browser Detection another page

2004-02-13 Thread Richard Davey
Hello, Friday, February 13, 2004, 12:29:07 PM, you wrote: mycb Sure, but why would a user want to fake their browser signature? They might do it without even knowing. Opera will identify itself as IE6 for example if you select that in the Preferences. Other browsers/packages can do it as

Re: [PHP] imagecreate undefined...?

2004-02-13 Thread Richard Davey
Hello Eric, Friday, February 13, 2004, 4:00:02 PM, you wrote: E Fatal error: Call to undefined function: imagecreate() in [file name] on line 3 E I am running under MacOSX 10.3.2 and PHP 4.3.2. Sounds very much like you have PHP without the image library compiled into it. I don't know where to

Re: [PHP] cli input and screen question(s)

2004-02-13 Thread Richard Davey
spending your time looking at a language created for application development. Personally I'd recommend PureBasic (www.purebasic.com) for it's ultra tiny footprint, speed and Windows/Unix/Amiga support. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General

Re: [PHP] What PHP function can detect session being expired??

2004-02-13 Thread Richard Davey
expired! There's no way to catch the event I don't believe, especially as it happens client side in a sense. Maybe with PHP5? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Linking to files in a mysql db

2004-02-13 Thread Richard Davey
locally then it depends how you need to open it.. perhaps fopen or a socket stream. More info needed. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [Q] Howto go directly to a URL?

2004-02-13 Thread Richard Davey
want to move from A to B. PHP doesn't care that B is in the same location as A. As far as I can see it you have two choices: Use the Header() option as suggested and pass control from one script to another, or include the final page and let that control the output. -- Best regards, Richard Davey

Re[2]: [PHP] Re: weird header() (bug may be)

2004-02-12 Thread Richard Davey
Hello Jason, Thursday, February 12, 2004, 6:38:05 AM, you wrote: It should be this: header(Location: another_page.php); and NOT header(Location:another_page.php); JW Also it should be an absolute URL otherwise it might break on some (standards JW compliant only) browsers: While I totally

Re: [PHP] find some application

2004-02-12 Thread Richard Davey
Hello Poltak, Thursday, February 12, 2004, 9:58:09 AM, you wrote: PRP i would like to find some sample application to increase my knowledge. PRP would you tell me where will i find a sample application PRP or maybe some of you want to sent me anything about php or the sample code

Re: [PHP] Unique ID - again

2004-02-12 Thread Richard Davey
Hello Alex, Thursday, February 12, 2004, 11:00:41 AM, you wrote: A I'm using usual md5(microtime()); to create IDs, but now I've encountered a A problem with that. I need to create explicitly 6 digit unique A number(decimal). Yes, I know I can use for/while loop to fill a string with A digits,

Re[3]: [PHP] weird header() (bug may be)

2004-02-12 Thread Richard Davey
Hello adwinwijaya, Thursday, February 12, 2004, 11:11:48 AM, you wrote: -- because in my logic ... after sending the (redirect) to another -- page .. the process shall be stopped In PHP's logic however, it doesn't stop :) (Unless you tell it to by either using an exit() call or just making the

Re[3]: [PHP] Re: weird header() (bug may be)

2004-02-12 Thread Richard Davey
Hello adwinwijaya, Thursday, February 12, 2004, 12:27:07 PM, you wrote: a In my logic, after we call header('location: foo.php'); the php a processor should terminated and open the page foo.php instead ... Except that doesn't happen. See my other reply on this subject. -- Best regards,

Re: [PHP] Call to a member function on a non-object

2004-02-12 Thread Richard Davey
Hello Angelo, Thursday, February 12, 2004, 12:33:39 PM, you wrote: AZ I used my scripts yesterday and suddenly today they dont work and I get this AZ error: Call to a member function on a non-object If you have changed *nothing* at all that could influence the outcome of this script then I

Re: [PHP] Browser Detection another page

2004-02-12 Thread Richard Davey
Hello PETCOL, Friday, February 13, 2004, 12:57:59 AM, you wrote: P I have been able to work out how to detect the browser I'm looking for. P Then I need to take the user to another page. P if (strstr($HTTP_USER_AGENT,'Windows CE')) { P //go to the Windows CE version of the site P } else { P

Re: [PHP] array data

2004-02-11 Thread Richard Davey
Hello Imran, Wednesday, February 11, 2004, 8:17:11 PM, you wrote: IA Is not working, is it correct way IA File1.php IA? $colors = array('red','blue','green','yellow'); ? IAform action=file2.php method=post IA input type=hidden type name=colors value=?=$colors? IA

Re: [PHP] [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)

2004-02-11 Thread Richard Davey
Hello Michael, Wednesday, February 11, 2004, 2:48:00 AM, you wrote: MTP Again, no are any errors displayed or logged. Any help would be greatly MTP appreciated. Your code is fine (well, the code you posted anyway) so I'd bet the problem is Apache related regarding the config of PHP on your

Re[2]: [PHP] [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)

2004-02-11 Thread Richard Davey
Hello Tony, Wednesday, February 11, 2004, 11:18:49 AM, you wrote: T I have a similar problem whereby in the receiving PHP program the variable T $Myname doesn't contain anything (i.e. echo $Myname returns nothing) however T $_GET['Myname'] returns the correct value. How can this be? Because

Re: [PHP] limit run time of a function?

2004-02-11 Thread Richard Davey
Hello Anthony, Wednesday, February 11, 2004, 1:43:29 PM, you wrote: A I have a function in my application that does a large query on my database. A In certain instances the query will take to long to return and will reach A the max execution time set in PHP.ini. This is ok though, it's already

Re: [PHP] Undefined function

2004-02-11 Thread Richard Davey
Hello Dominique, Wednesday, February 11, 2004, 1:58:17 PM, you wrote: DA Fatal error: Call to undefined function: ibase_connect() in DA c:\inetpub\wwwroot\index.php on line 12 DA I want to know what is wrong with the code or if i have to do DA with php in order to run with Interbase ? You

Re: [PHP] Math Question

2004-02-11 Thread Richard Davey
Hello Jeremy, Wednesday, February 11, 2004, 2:00:32 PM, you wrote: JS Is there a function that when you divide 2 numbers you drop the JS remainder and are left with the whole number. round($number1 / $number2) See the manual for the precision value if you need it. -- Best regards, Richard

Re[2]: [PHP] Math Question

2004-02-11 Thread Richard Davey
Hello Vincent, Wednesday, February 11, 2004, 2:15:15 PM, you wrote: VJ Seems to me you need VJ floor($number1 / $number2) Only if you always want to round *down* the equation. For example flooring a result of 4.99 will give you an integer of 4 whereas round() (or ceil()) will give you 5. It

Re: [PHP] str_replace not replacing

2004-02-11 Thread Richard Davey
Hello Aaron, Wednesday, February 11, 2004, 3:00:47 PM, you wrote: AM $section1 = file_get_contents(table_create.php); AM str_replace($search, $replace, $section1); You need to assign the output of str_replace to something: $new_section = str_replace($search, $replace, $section1) -- Best

Re[4]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello Alex, Wednesday, February 11, 2004, 3:08:02 PM, you wrote: AH Is it also recommended that an application local config file be used to set AH all the globals that will be used throughout? Right now I'm using the db to AH hold all the vars that I want to make available for all apps. Is this

Re: [PHP] uploaded files are corrupted

2004-02-11 Thread Richard Davey
Hello Donpro, Wednesday, February 11, 2004, 2:58:20 PM, you wrote: D I have a script that allows the user to browse his/her local hard drive for D a file and email it as an attachment. Text files come through OK but any D binary type file, e.g., JPEG or PDF arrive broken. JPEG will show as a

Re[6]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello John, Wednesday, February 11, 2004, 3:25:23 PM, you wrote: JWH I hope you are also denying access to .inc files otherwise we could view JWH your file as plain text. Please.. try ;) I used to call the file common.php until we had a rather large debate about the correct naming convention

Re[8]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello John, Wednesday, February 11, 2004, 3:42:39 PM, you wrote: JWH Heh.. I was just giving a heads up, not threatening. :) JWH I personally don't care for .inc files that are in the web root. The ways to JWH deny access to them vary across web servers and platforms, so it makes JWH

Re[8]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello Alex, Wednesday, February 11, 2004, 3:47:09 PM, you wrote: AH How large can that file be? How long is a piece of string? :) It's as long as you need it to be. AH I have a func.php file that I'm putting all my reusable functions in but I AH can see that getting pretty large if this

Re: [PHP] Using a perl regex

2004-02-11 Thread Richard Davey
Hello Verdon, Wednesday, February 11, 2004, 5:09:22 PM, you wrote: VV I am trying to use a perl regular expression to validate a form field where VV (!ereg(20\d{2}(-|\/)((0[1-9])|(1[0-2]))(-|\/)((0[1-9])|([1-2][0-9])|(3[0-1] Surely you should be using preg_match() (i.e. a perl syntax reg exp)

Re: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Richard Davey
Hello Dan, Wednesday, February 11, 2004, 5:47:21 PM, you wrote: DA Can anyone tell me why PHP is not taking any values I give it? In other DA words, if I post something it doesn't accept any of those values. I have set DA register_globals to on, which is the only thing I could think of that

Re[2]: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Richard Davey
Hello Dan, Wednesday, February 11, 2004, 6:01:21 PM, you wrote: DA Sorry about not including code the first time. Here is a snippet of code I DA am fairly certain should be doing something. Thank you SOOO much for the Your code is (mostly) fine. The only part that didn't work is the final the

Re[4]: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Richard Davey
Hello Dan, Wednesday, February 11, 2004, 6:32:16 PM, you wrote: DA I tried adding that code you gave me, but all it does go back to the same DA page, and doesn't echo out the time(); results. I can't seem to figure it DA out for the life of me. like i said, everything else in php is working

Re[6]: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Richard Davey
Hello Dan, Wednesday, February 11, 2004, 6:39:35 PM, you wrote: DA they're being tested on a testing machine we use. I know PHP is (rather DA appears to be) working fine. Why would it be parsing files fine and calling DA phpinfo() fine, but not being able to take input values. that's strange

Re: [PHP] date() funtion language

2004-02-11 Thread Richard Davey
Hello Thiago, Wednesday, February 11, 2004, 8:03:47 PM, you wrote: TP Does any one knows how do I set my date() function to return the days TP of the week and moth in my own language (brazilian portuguese)? setlocale() -- Best regards, Richardmailto:[EMAIL

Re[4]: [PHP] [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)

2004-02-11 Thread Richard Davey
Hello Tony, Wednesday, February 11, 2004, 9:16:18 PM, you wrote: TDS That was the problem. The PHP book I have doesn't mention $_GET or $_POST. TDS The exercises right from the beginning use register_globals. I didn't TDS realise they were turned off by default. Whoever wrote that book ought

Re: [PHP] mutliple select form not passing multiple values

2004-02-11 Thread Richard Davey
Hello Ben, Wednesday, February 11, 2004, 9:22:33 PM, you wrote: BR Am I doing something wrong? Yup :) It needs to be: select name=modules[] ... Note the change in name from modules to modules[] -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General

Re[2]: [PHP] mutliple select form not passing multiple values

2004-02-11 Thread Richard Davey
Hello Ben, Wednesday, February 11, 2004, 9:38:38 PM, you wrote: BR Ah-ha! I missed that, and I always do. Let's hope I don't anymore. BR While we're on the subject, why is PHP set up this way? Why can't it BR just add the elements to the array automatically, since adding the BR square

Re: [PHP] Working with a Front Page developer

2004-02-10 Thread Richard Davey
Hello Chris, Tuesday, February 10, 2004, 5:30:14 PM, you wrote: CdV Can anyone recommend some template engines? Or tips on using PHP to parse CdV an HTML doc, replacing it with real data? One of the most common (and well used) template engines is Smarty: http://smarty.php.net/ It might be

Re: [PHP] ereg_replace

2004-02-10 Thread Richard Davey
Hello Nicole, Tuesday, February 10, 2004, 5:55:01 PM, you wrote: NL Can anyone tell me why this does not work: NL $str1=ereg_replace(index.php?src=,index/,$url); Because it's an invalid regular expression. NL is there another way to do this? Yes, str_replace() for something this simple:

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

2004-02-10 Thread Richard Davey
Hello Samuel, Tuesday, February 10, 2004, 6:55:24 PM, you wrote: SV I have 3 files in nested subdirectories [snip] SV Is this a bug or a feature? Neither, it's just logic really. The include() function sucks in the file specified, dropping out to HTML mode to do so. The included file inherits

Re[2]: [PHP] Working with a Front Page developer

2004-02-10 Thread Richard Davey
Hello Chris, Tuesday, February 10, 2004, 7:19:35 PM, you wrote: CdV Got any tips on writing a template system? Anything I should be aware of, CdV other than copious use of preg_replace? :-) You don't have to use preg_replace, in its most simplest form the following code will work just fine

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

2004-02-10 Thread Richard Davey
Hello Alex, Tuesday, February 10, 2004, 8:08:11 PM, you wrote: AH Are you saying that it's better not to use relative paths on include(...)'s, AH require(...)'s and their (x)_once(...) cousins? Relative paths are fine, so long as you have strict control over what is calling the script and from

Re[4]: [PHP] Working with a Front Page developer

2004-02-10 Thread Richard Davey
Hello Chris, Tuesday, February 10, 2004, 8:09:36 PM, you wrote: CdV Blow me down, that's exactly what I need! You just saved me hours of CdV research. You rock!! No worries, glad to help :) -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General

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

2004-02-10 Thread Richard Davey
Hello John, Tuesday, February 10, 2004, 8:20:50 PM, you wrote: JWH include($_CONF['path'] . '/test.php'); This is slightly off-topic, but related to the include() function. What is the given standard regarding when you should or shouldn't use braces on a function. For example: include

Re[2]: [PHP] Re: Simple PHP Encoder

2004-02-10 Thread Richard Davey
Hello =d0Mi=, Tuesday, February 10, 2004, 10:08:06 PM, you wrote: d 4) If you think that the person could be someone else than root dmove your pages to another webspace provider I disagree; you'd be surprised just how many hosts configure public level access to files inside of web

Re[4]: [PHP] Re: Simple PHP Encoder

2004-02-10 Thread Richard Davey
Hello Philip, Wednesday, February 11, 2004, 12:19:07 AM, you wrote: PJN I never saw any of the other messages, but why not just PJN place an index file with nothing in it into PJN the dir you don't want people to view. Thats what i do. PJN (if i got the right end of the stick). Wrong end of

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Richard Davey
Hello Freedomware, Monday, January 19, 2004, 7:18:10 AM, you wrote: F I just learned that you can even use PHP on style sheets. Can anyone F here tell me how to set it up? F Are you aware of any good tutorials on using PHP with style sheets? Sorry but you haven't really stumbled onto a pot of

Re: [PHP] compare lists

2004-01-18 Thread Richard Davey
Hello mayo, Sunday, January 18, 2004, 6:06:41 PM, you wrote: m I would like to compare strings. I'm using this for my navigation m IF $title CONTAINS abc: def m Comparing the number of characters in one string with another does not do m the trick. (strcmp) If I have understood your pseudo

Re: [PHP] Please reply as fast as possible..

2004-01-17 Thread Richard Davey
Hello, Saturday, January 17, 2004, 4:59:07 PM, you wrote: SISAD Now I want the PHP file to take the Username and SISAD Password after the user enter them in the fields and compare SISAD them with the ones inside the database.. if they are the same.. SISAD the serial field inside the database

Re: [PHP] POST method for hyperlink

2004-01-17 Thread Richard Davey
Hello Joe, Sunday, January 18, 2004, 3:26:18 AM, you wrote: JH I am curious if there is anyway to take a variable that is passed via a JH URL by a reguler text hyperlink JH Ex: http://localhost/Calendar/active_layout.php?d=2.1.2004 JH and hide it like you would do with the POST method using

Re: [PHP] Forms, ListBoxes, Validating Errors.

2004-01-16 Thread Richard Davey
Hello Kacey, Friday, January 16, 2004, 11:33:22 AM, you wrote: KAM What I have is an issue with posting forms with Dynamic ListBoxes. KAM What happens is when you fill the form out, and hit submit, it validates the KAM form .. if there is a required field not filled out, it comes back and gives

Re: [PHP] random html +(hi)

2004-01-16 Thread Richard Davey
Hello Angela, Friday, January 16, 2004, 11:30:16 AM, you wrote: AKH ?php AKH // images in folder AKH $total = 5; AKH // file type AKH $file_type = .htm, .gif, .jpg; AKH // dir location AKH $image_folder = dir/dir; AKH $start = 1; AKH $random = mt_rand($start, $total); AKH $image_name =

Re: [PHP] Please help me with these questions..

2004-01-16 Thread Richard Davey
Hello, Friday, January 16, 2004, 11:54:26 AM, you wrote: SISAD I'm a beginner in PHP.. And I'm working on a project.. SISAD I want your help please to learn how to : SISAD 1- MD5 with PHP values. $md5 = md5($variable); SISAD 2- Random values in PHP. $min = 1; $max = 100; $random =

Re: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick, Friday, January 16, 2004, 12:39:16 PM, you wrote: NW Line 19 is a simple include() but uses 'http://' rather than a local NW path (i cannot change this)... allow_url_fopen is almost certainly disabled in your php.ini file. -- Best regards, Richard

Re[2]: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick, Friday, January 16, 2004, 12:47:43 PM, you wrote: NW I'm getting this now: NW Parse error: parse error in http://ellasattic.co.uk/index.php on line 1 NW ### CODE NW ?php NW // $Id: index.php,v 1.68 2003/09/30 17:00:49 dries Exp $ NW ### END CODE NW What? - how can that be? - is

Re: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Richard Davey
Hello Nick, Friday, January 16, 2004, 2:16:43 PM, you wrote: NW if a script calls antohter like NW 'include('http://site.com/index.php'); NW Why would I get a syntax error on line 1 of index.php when it looks like NW this: NW ?php NW // line one above this one NW What's the deal there? Say

Re[2]: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick, Friday, January 16, 2004, 2:31:46 PM, you wrote: NW I dont. That's just in my email to tell where the code begins ;-) NW line 1 is just NW ?php Heh :) Do other scripts work fine? i.e. is it just that one that dies? -- Best regards, Richard

Re: [PHP] Schedule an Event with PHP

2004-01-16 Thread Richard Davey
Hello Alex, Friday, January 16, 2004, 2:36:45 PM, you wrote: AP Besides using CRON to hit that particular event table, is there any AP other method I am not thinking of that can be used with PHP? I want AP to check that event table every 5 minutes. Use cron. There are several other ways, but

Re: [PHP] dynamic array creation from form elements

2004-01-16 Thread Richard Davey
Hello Jon, Friday, January 16, 2004, 3:29:07 PM, you wrote: JB And after the form is submitted I assumed I could do this... JB $aListItems = array(); JB $i = 1; JB while ($i = $iListItems) { JB $tempItem = $_POST[listItem . $i]; JB array_push($aListItems, $tempItem); JB ++$i; JB

Re: [PHP] New List Memegber Question

2004-01-15 Thread Richard Davey
Hello Alex, Thursday, January 15, 2004, 3:00:37 PM, you wrote: AH I am on a 2K Server with SQL Server 2K and will have a lot of questions on AH PHP during development. AH Is this the right list? Yes if they are PHP related, SQL specific ones probably ought to go to the PHP-DB list instead,

Re: [PHP] Junk Mail from this List?

2004-01-15 Thread Richard Davey
Hello Ben, Thursday, January 15, 2004, 3:06:38 PM, you wrote: BR Has anyone else experienced a similar problem, and is there a way to BR stop this other than marking these as spam in Thunderbird? Welcome to the list! You'll get alsorts like this.. often I get those highly annoying Please

Re: [PHP] best paractice example page creation php / mysql

2004-01-15 Thread Richard Davey
Hello Jon, Thursday, January 15, 2004, 6:23:51 PM, you wrote: JB The way I was thinking of doing this was to have 3 tables: JB training_subsections JB training_list_items JB training_table_items JB My problem is, is it a 'reccomended' way of doing things to query the JB db multiple times for

Re: [PHP] Variables

2004-01-15 Thread Richard Davey
Hello Alex, Thursday, January 15, 2004, 9:47:27 PM, you wrote: AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } -- Best regards, Richard

Re: [PHP] PHP,MySQL problem

2004-01-14 Thread Richard Davey
Hello Nicolai, Wednesday, January 14, 2004, 12:14:09 PM, you wrote: NE Sorry, I should have done that from the beginning, but here it is. I have NE looked further on the variables and it seams like the name attribute NE sumbit (in the form) is not converted to the $submit variable when I NE if

Re[2]: [PHP] nested tags

2004-01-14 Thread Richard Davey
Hello Gregor, Wednesday, January 14, 2004, 3:22:32 PM, you wrote: GJ HTML tags. GJ I can have something like GJ table GJ first GJ table GJ second table GJ /table GJ table GJ /table GJ and i need to convert each table/table tags into something more user GJ friendly. Come again?

Re: [PHP] class functions where the function name == class name

2004-01-13 Thread Richard Davey
Hello Glenn, Tuesday, January 13, 2004, 7:36:18 AM, you wrote: GY I know that $object = new classname; will automatically run $object-classname();. But is it neccessary for every class to have this GY function? I read all these scripts and they all have them. I made one GY simple database class

Re: [PHP] Sending session ID without cookie

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 9:54:27 AM, you wrote: BS I'm trying to send my session ID using POST/GET auto-inserted by PHP. BS This works like a charm in a .php file. But in a .cgi file, a new BS PHPSSID appears in the Address field of my browser every time I follow BS the link from

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 10:05:10 AM, you wrote: BS My php program uses sends send some information to a .cgi file BS possibly on a different site. That file uses GET to fetch the BS information and prints it out as it would if accessed through a BS browser. But instead I want my

Re[2]: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 10:32:08 AM, you wrote: BS Do you see something that it obviously wrong here? You need to loop through the data as it comes back from the fopen function. ?php print 'htmlbody' . \n; print 'test6.phpbr'; $fp =

Re[2]: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 12:19:24 PM, you wrote: BS thaks for clarifying that to me. The only problem now is that I get a BS timeout in my script because fopen() failed to open the stream. You can increase the timeout limit of a script. If you cannot be sure the other web site

Re: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Richard Davey
Hello Dave, Tuesday, January 13, 2004, 12:34:33 PM, you wrote: DC sql = mysql_query(select *, count(id) as cnt from table where DC somefield=\somevar\){ It's nothing to do with your function, simply that your SQL is invalid. -- Best regards, Richardmailto:[EMAIL

Re[2]: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Richard Davey
Hello Dave, Tuesday, January 13, 2004, 12:57:35 PM, you wrote: DC If I use this sql in my func: DC $sql = mysql_query(select count(fieldtocount) as cnt, sum(fieldforsum) as DC total from $tab3 where fieldtocompare =\$varcomparedwith\); DC Then all is fine and works as expected. Is this MySQL?

<    4   5   6   7   8   9   10   11   >