RE: [PHP] Variable Problem

2002-01-18 Thread Steven Maroney
I hope im on the right track Cause im jumping in on this post. $MYCHK isn't an array cause you aren't using array syntax or simply left out the brackets. try: ( for the checkboxes ) I have done this 100's of times. Hope this helps, Steve On Sat, 19 Jan 2002, K.Tomono wrote: > Yes,

Re: [PHP] Variable Problem

2002-01-18 Thread Jason Wong
On Saturday 19 January 2002 14:45, K.Tomono wrote: > Yes, I think too, it's better way to use an array rather than a dynamic > name of the variable. > > I thought that the first question means how to use a dynamic variable. > > By the way, > > > little array propaganda, jic :) Arrays work great

RE: [PHP] Variable Problem

2002-01-18 Thread K.Tomono
Yes, I think too, it's better way to use an array rather than a dynamic name of the variable. I thought that the first question means how to use a dynamic variable. By the way, > little array propaganda, jic :) Arrays work great in forms too! > > http://www.php.net/manual/en/faq.html.php#A

Re: [PHP] Variable Problem

2002-01-18 Thread Philip Olson
> How do I combine the following so it is treated as one variable. It's a good question, but why? Most likely an array will work best for this job, arrays are good: http://www.php.net/manual/en/language.types.array.php The man page on foreach is nice too, and has many examples which include

Re: [PHP] Splitting List - newbie & advanced

2002-01-18 Thread Steven Cayford
Right. Lets not split the list. I already follow too many lists, if this was split I would feel I needed to follow both. On 2002.01.18 20:05:48 -0600 Miles Thompson wrote: > If anyone wants to pursue this, here's the thread. > > I do not believe the list should be split, although there is a mix

[PHP] Re: PHP 4 on OSX 10.1.2

2002-01-18 Thread Ben Richardson
On 18/01/2002 at 9:24 PM, [EMAIL PROTECTED] wrote: > Hi all > Im trying to get setlocale to work on my OSX box > > print (strftime ("%A in Danish is ")); > setlocale ("LC_ALL", "da"); > print (strftime ("%A.\n")); > ?> > > this should give me "Friday in Danish is Fredag" but no matter > what

Re: [PHP] Variable Problem

2002-01-18 Thread
Hello. >How do I combine the following so it is treated as one variable > >$i=10 >$result$i="test"; > >I want this to be: > >$result10="test"; > >$i changes so I cannot just put in 10 instead of I. >anybody know how i can do that? > >TIA >Randy How about the below. or Cheers :-) ---

Re: [PHP] INSERT statement for JOINed tables

2002-01-18 Thread Miles Thompson
Erik, You have to do two inserts. Have a look at http://www.php.ca/manual/en/function.mysql-insert-id.php Do your first insert Call mysql-insert-id(), capturing its output. Use the value returned in your second insert. The returned value is unique to your connection; no need to lock the first

[PHP] Splitting List - newbie & advanced

2002-01-18 Thread Miles Thompson
If anyone wants to pursue this, here's the thread. I do not believe the list should be split, although there is a mix of new and advanced questions. Although the some of these are best answered by an RTFM and a reference to a tutorial, the newcomer benefits by exposure to advanced concepts an

Re: [PHP] RTFM

2002-01-18 Thread Christopher William Wesley
On Sat, 19 Jan 2002, Shane Wright wrote: > Maybe this list should be split - kindof into a php-newbies and a > php-advanced ? So all the newbies can help all the newbies, and all the advanced people can help the advanced people? That wouldn't work out. All the newbies would subscribe to the ad

[PHP] two lists (was: RE: [PHP] RTFM)

2002-01-18 Thread James Cox
Hi, we could split it into two lists... but I think that the amount of help available to "newbies" would decrease if we split the list. James Cox -- James Cox :: [EMAIL PROTECTED] Please CC me when replying to my messages on lists. Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23I

Re: [PHP] INSERT statement for JOINed tables

2002-01-18 Thread Michael Sims
At 01:05 PM 1/18/2002 -0500, Erik Price wrote: >I was hoping someone could share with me their code for situations like >this, since I'm pretty sure it's a common situation: I need to insert a >record into a table "files", and simultaneously insert a record into a >table "files_users". "files

Re: [PHP] RTFM

2002-01-18 Thread Miles Thompson
If this is going to be pursued, start a new thread...please. Miles At 01:16 AM 1/19/2002 +, Shane Wright wrote: >Hi > >Maybe this list should be split - kindof into a php-newbies and a >php-advanced ? > >-- >Shane > >On Friday 18 Jan 2002 9:39 pm, Richard Crawford wrote: -- PHP General Ma

Re: [PHP] Re: [PHP-DEV] Re: Computer Science and PHP

2002-01-18 Thread Manuel Lemos
Hello, James Cox wrote: > > So, > > the 64 million dollar question is... > > how would you propose for php.net as a group/community to help promote it (i > would be interested in the specifics)? Read again my initial message in the thread. It's all in there. More can be done. Regards, Manuel

Re: [PHP] RTFM

2002-01-18 Thread bvr
Maybe anyone volunteers as moderator ?? thought so ;) bvr. On Sat, 19 Jan 2002 01:16:17 +, Shane Wright wrote: >Hi > >Maybe this list should be split - kindof into a php-newbies and a >php-advanced ? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] RTFM

2002-01-18 Thread Richard Baskett
I just don't understand all the intolerance some of the people on this list show. We're not all as intelligent and wise in the arts of php/mysql/etc as some of the members on this list are. One thing I do know is that we all started from the beginning and had plenty of questions. We all think d

Re: [PHP] httpd.conf config options?

2002-01-18 Thread Michael Sims
At 05:19 PM 1/18/2002 -0600, Henrik Hudson wrote: >When I do this: > >php_flag display_errors yes > >inside that same VirtualHost block the errors are not displayed to the >screen, but still logged to the main log file. Any thoughts if I can modify >it so that VirtualHost logs to the screen? Firs

Re: [PHP] RTFM

2002-01-18 Thread Shane Wright
Hi Maybe this list should be split - kindof into a php-newbies and a php-advanced ? -- Shane On Friday 18 Jan 2002 9:39 pm, Richard Crawford wrote: > Consider yourself fried. ;-) > > Seriously, though, I think that there are more advanced PHP lists that > would probably be more to your liking.

[PHP] Re: [PHP-DEV] Re: Computer Science and PHP

2002-01-18 Thread Manuel Lemos
Hello, James Cox wrote: > > IMHO, that is there no marketing effort behind PHP, meaning there is no > > Microsoft nor Sun nor any strong brand behind PHP to advertise it. > > > Microsoft make $xxx BILLION dollars a year SELLING their software. > Sun make $xxx BILLION dollars a year SELLING their

Re: [PHP] Mysterious />

2002-01-18 Thread Gaylen Fraley
Solved a part of this. The nl2br (which I am using) converts "\n" to XHTML compliancy . I'm still trying to replicate the other. -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/ "Gaylen Fraley" <[EMAIL PROTECT

Re: [PHP] Addslashes not working correctly?

2002-01-18 Thread Michael Sims
At 10:43 AM 1/18/2002 -0600, Gonzalez, Zara E wrote: >Now I am using MSSQL via freetds and since the commands for MSSQL and >Sybase are >basically identical as far as php is concerned, I am assuming that I have >to use >the "sybase method" to escape quotes. However, I can't seem to figure out >

[PHP]

2002-01-18 Thread jtjohnston
This is the input of a . I don't suppose there is an easier way of doing this? $mydata->KW = str_replace("\r", "", $mydata->KW); $mydata->KW = str_replace("\n", "", $mydata->KW); $mydata->KW = str_replace("", "", $mydata->KW); What does htmlspecialchars do exactly? Yes I've read the docs, but di

Re: [PHP] Mysterious />

2002-01-18 Thread Gaylen Fraley
Those are real examples. The /> gets appended when I use preg_replace and/or str_replace, as far as I can determine. And it's not every time. I'll try to replicate it. I've been working with code to strip it out and I need to get back to point zero. If I can get the code back, I will post it.

[PHP] Re: Programming a state controller for page transitions

2002-01-18 Thread Manuel Lemos
Hello, Geoff Caplan wrote: > > Hi folks > > A bit OT - more a general programming issue than PHP - but here goes: > > I am trying to design a state controller to manage multi-page logical > transactions, such as, say, a three page checkout process, or a database > entry system. > > The idea i

[PHP] Re: writing xml with php

2002-01-18 Thread Manuel Lemos
Hello, Travis wrote: > > this is a long one so bear with me... Instead of writing a long script for that, you may want to try to use this XML writer class that takes care of many details for you: http://phpclasses.upperdesign.com/browse.html/package/250 Regards, Manuel Lemos -- PHP General

[PHP] multilingual development

2002-01-18 Thread Yorke
I am looking for some advise on developing a multi-lingual system - anyone know of the best way to do this, maybe a tutorial or good example about. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

RE: [PHP] Mysterious />

2002-01-18 Thread James Cox
can you give an example? eg, is XHTML correct, however /> isn't correct at all :) Thanks, James Cox -- James Cox :: [EMAIL PROTECTED] Please CC me when replying to my messages on lists. Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ > -Original Message- >

[PHP] httpd.conf config options?

2002-01-18 Thread Henrik Hudson
Afternoon List- I have a question about where in the Apache conf file stuff can go or why the below didn't / won't work :) In my php.ini file I have turned off display_errors, but I would like to enable this per VirtualHost. For example, I can do this inside a VirtualHost block: php_value in

RE: [PHP] RTFM

2002-01-18 Thread Darren Gamble
Good day, I would agree that there certainly are some questions that deserve a bit more thought before they are posted to the list. Witness, for example, posters who respond to their own question 10 minutes later with "Never mind, I solved it". However, I don't think anyone is in a position to

Re: [PHP] RTFM

2002-01-18 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 18-01-02 at 23:31 * Bart Brinkmann said > > no such thing as a stupid question... > > I strongly disagree. Refer to the topic: "RTFM". A stupid question is one > that is posted to this message board before the poster bothers to do a shred

[PHP] Mysterious />

2002-01-18 Thread Gaylen Fraley
For some (yet) unknown reason, when some text is being entered into a form, a mysterious /> is being appended. It's almost as if some XML functionality is bein added w/o my intention. For example, I might echo "" and the html source will show . I might have an end anchor tag that comes out />

Fwd: Re: [PHP] Regex error

2002-01-18 Thread bvr
split() takes a regular expression, this means you have to escape the | char with a \ like this: $rgTemp = split("\|",$szTag); bvr. On Fri, 18 Jan 2002 14:40:25 -0800, PHP List wrote: >Hi, >Can someone please tell me why the this is happening: > >1) $szTag = "test|3"; >2) $rgTemp = spli

Re: [PHP] RTFM

2002-01-18 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 18-01-02 at 22:52 * Andrew said > Nick > My personal feelings on this is that there is no such thing as a stupid > question... sometimes what you might find the simplest if things becomes > very difficult for another person to grasp! > If

[PHP] Regex error

2002-01-18 Thread PHP List
Hi, Can someone please tell me why the this is happening: 1) $szTag = "test|3"; 2) $rgTemp = split("|",$szTag); 3) $szTag = $rgTemp[0]; 4) $nItemID = $rgTemp[1]; ^line numbers for ref only, not in actual code. Will give me the error: PHP Warning: unexpected regex error(14) in /test.php

Re: [PHP] printing html

2002-01-18 Thread PHP List
You could just change the code for the generated page to re-generate the page without the headers, etc. Then just link to the same page with a print command: echo "Click here for a printable version of this page."; if ($print <> "yes") include("header.inc"); Something like that anyways.

RE: [PHP] RTFM

2002-01-18 Thread Bart Brinkmann
> no such thing as a stupid question... I strongly disagree. Refer to the topic: "RTFM". A stupid question is one that is posted to this message board before the poster bothers to do a shred of independent thinking. I've seen way too many of these questions come through this list. The MySQL list

[PHP] FUDforum - PHP Web Forum (GPL)

2002-01-18 Thread Ilia A.
The work on FUDforum has finally been completed, so I thought to let the PHP users and developers know about it since they may be interested in this project. It has finally reached the stage where I feel it is mostly bug free and is ready for its debut. You can download FUDforum tar ball from h

[PHP] Re: how to send to URL on if statement?

2002-01-18 Thread Andrea Caldwell
Thank you for all the responses! I really appreciate the support... I believe the Javascript solution should work. "Andrea Caldwell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can anyone advise or direct me to the documentation that references how to > se

RE: [PHP] RTFM

2002-01-18 Thread Andrew
Nick My personal feelings on this is that there is no such thing as a stupid question... sometimes what you might find the simplest if things becomes very difficult for another person to grasp! If you do not like the emails that people post... use the delete button! Andrew -Original Message

Re: [PHP] RTFM

2002-01-18 Thread Richard Crawford
Consider yourself fried. ;-) Seriously, though, I think that there are more advanced PHP lists that would probably be more to your liking. Try doing a search on php.net or yahoogroups.com for something more technical. I, personally, joined this list just over a year ago when I was assigned a

RE: [PHP] RTFM

2002-01-18 Thread Johnson, Kirk
I feel your pain. Good thought. Please Read The Fine Archive for long-running, in-depth discussion of this very topic ;) Happy Friday, all! Kirk > just a very quick note: I've been following the list for about a > week and I probably follow one or two threads a day. Some of the stuff > here is

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Richard Crawford
If you have already sent output to the browser, then you won't be able to use the PHP header() command to redirect the browser. There are a couple of ways around this, though; look into the META tag in HTML, or you can use JavaScript to redirect the browser. If what you want to do is send all

RE: [PHP] how to send to URL on if statement?

2002-01-18 Thread Darren Gamble
Good day, I've had to do something similar to this. I do not think there is a way to do this with only HTML- you either need to use a header like the one shown, or a META tag, and they have to be written right away. I worked around this once with Javascript. The page had an ONLOAD function tha

[PHP] Programming a state controller for page transitions

2002-01-18 Thread Geoff Caplan
Hi folks A bit OT - more a general programming issue than PHP - but here goes: I am trying to design a state controller to manage multi-page logical transactions, such as, say, a three page checkout process, or a database entry system. The idea is that I store all the states, transitions and ac

[PHP] RTFM

2002-01-18 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, just a very quick note: I've been following the list for about a week and I probably follow one or two threads a day. Some of the stuff here is *very* interesting. Unfortunately most of the stuff posted is a little ridiculous in that it's po

[PHP] Re: PHP and COM - Syntax question

2002-01-18 Thread J Wynia
Hopefully this is my last reply on this thread. I discovered after opening Word normally after a few dozen tests, that it tried to "recover" all those "lost" documents. The following demo script has that fixed. Visible = 0; $word->Documents->Add(); $word->Selection->TypeText($string); $word->Act

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Andrea Caldwell
Sorry, I'm new at this... I have already sent output... any way to do this? Thanks again, Andrea "Ing. Daniel Manrique" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Can anyone advise or direct me to the documentation that references how to > > send a us

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Ing. Daniel Manrique
> Can anyone advise or direct me to the documentation that references how to > send a user to a URL if an 'if' statement is satisfied? Assuming you hadn't sent any output before: if ($condition){ header("Location: http://wherever.com";); exit; } -- PHP General Mailing List (ht

[PHP] how to send to URL on if statement?

2002-01-18 Thread Andrea Caldwell
Can anyone advise or direct me to the documentation that references how to send a user to a URL if an 'if' statement is satisfied? Thanks! Andrea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

[PHP] Uploading file to php

2002-01-18 Thread Mike Schroeder
Hi, I followed the examples in the FAQ and was able to make the upload work, using client HTML code similar to this: File Name: The problem is that it works great with Netscape, but fails with IE. If the client is Netscape, the "somephp.php" program gets the $filename= /tmp/phpmo4QE9 and $f

Re: [PHP] printing html

2002-01-18 Thread Richard Crawford
You might have better luck using the "Print" command from MSIE or Netscape, something which allows you to set up printer parameters. fitiux wrote: > Hi friends, =) > > someone have experience using printer functions ? > I mean... I would like to print a php generated page with a link withi

Re: [PHP] function arguments

2002-01-18 Thread mike cullerton
expanding on this... function func($arga, $argb, $argc='') { do_something_with_arga($arga); do_another_thing_with_argb($argb); if ($argc != '') do_somthing_with_argc($argc); } on 1/18/02 1:19 PM, Ben Sinclair at [EMAIL PROTECTED] wrote: > You can do something like this: > > function m

[PHP] printing html

2002-01-18 Thread fitiux
Hi friends, =) someone have experience using printer functions ? I mean... I would like to print a php generated page with a link within this page example: I have an html page with a table..but I need to print without header, footer and also I need to print in landscape... all of this with a

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread DL Neil
Jeff, FWIW my system is set up to hold PHP in C:\program files\php, which is where the php.exe can be found. PHP.ini is supposed to be in c:\winnt isn't it? =dn - Original Message - From: "Jeff D. Hamann" <[EMAIL PROTECTED]> To: "DL Neil" <[EMAIL PROTECTED]>; "mike cullerton" <[EMAI

Re: [PHP] function arguments

2002-01-18 Thread Ben Sinclair
You can do something like this: function myFunction($a = "hello", $b = "world") { } Both arguments are optional and have default values. This is in the documentation. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: "Malte Fucks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

[PHP] writing xml with php

2002-01-18 Thread travis
this is a long one so bear with me... my current php script * \n"; $openingEntry = ' \n"; $closingItemTag = "\n"; $Entry= $openingEntry.$numberAtt.$myNumber.$nameAtt.$myName.$dateAtt.$myDate. $messageAtt.$myMessage. $linkAtt.$myLink.$closingEntry; $Item = $openingItemT

[PHP] function arguments

2002-01-18 Thread Malte Fucks
Hi, how do i tell a function which arguments can be passed and which must be passed... example: function func($arga, $argb, $argc) { do_something_with_arga; do_another_thing_with_argb; and_if_argc_was_passed_do_something_with_it_too; } because i dont want to pass argc if i dont need it, and to

[PHP] Re: PHP and COM - Syntax question

2002-01-18 Thread J Wynia
Figured it out. Pulled out the ->Close() and had the quit() just override the save. Here's the new function in case anyone cares. function spellcheck($string){ $word = new COM("word.application") or die("Unable to instanciate Word"); $word->Visible = 0; $word->Documents->Add(); $word->Selection->T

RE: [PHP] Variable problem

2002-01-18 Thread Yoel Benitez Fonseca
Use an array !?, I mean : $result[$i] = "test"; > How do I combine the following so it is treated as one variable > > $i=10 > > $result$i="test"; > > > I want this to be: > > > $result10="test"; > > > $i changes so I cannot just put in 10 instead of I. > > > anybody know how i can do that? -

[PHP] Re: quick and easy(php newbie)

2002-01-18 Thread travis
heres a question, I am using this to update an xml file... the vars originate from a flash interface, so they are all strings, do I need to worry about anything here? should i be usiung arrays in php to house the info or is this sufficient? I am using php only to add new entries, the flash parse

[PHP] disable_functions on virtual hosts?

2002-01-18 Thread Ing. Daniel Manrique
I'd like to disable certain functions for a particular virtual host, and leave them as is for all the rest. The usual way to do this would be to include something like: php_admin_value disable_functions system,exec in the virtual host's configuration block. However, this doesn't work, and s

[PHP] quick and easy(php newbie)

2002-01-18 Thread travis
just a quick syntax question: here is my php \n"; $openingEntry = " if done twice it returns this: http://www.me.com/> http://www.me.com/> i want it to display as follows: http://www.me.com/";> http://www.me.com/";> now it is writing to the file I want perfectlybut but but I

RE: [PHP] Re: odbc linux to win2000

2002-01-18 Thread Andrew Hill
Hi Ergin, Not entirely true - ODBC drivers to MS SQL Server and Sybase, etc are available. You may use OpenLink's Multi-Tier driver, which has linux client support. Free downloads are available at http://www.openlinksw.com and free support is offered at http://www.openlinksw.com/support/suppindx

RE: [PHP] bug in echo function?

2002-01-18 Thread Billy Harvey
On Fri, 2002-01-18 at 13:54, Darren Gamble wrote: > Good day, > > The reason that the first statement doesn't work as intended is due to the > order that the operands are processed. > > The operands in the line: > > "" . ($i*8)+$j . "" > > are being processed like this: > > ("" . ($i*8))+($j

Re: [PHP] quick and easy(php newbie)

2002-01-18 Thread Richard Crawford
Try something like: $Entry = $openingEntry . $numberAtt . "\"" . $myNumber . "\"" . $nameAtt... and so on. travis wrote: > just a quick syntax question: here is my php > > $openingItemTag = "\n"; > $openingEntry = " $numberAtt = "number="; > $nameAtt = "name="; > $dateAtt = "date="; > $mes

RE: [PHP] bug in echo function?

2002-01-18 Thread Darren Gamble
Good day, No, that's not it. It's just a simple matter of order of operations. You have an expression- that expression needs to be evaluated into one thing, and that one thing is then passed to echo() as the single argument. I'm not a php expert, but evidently the "." operator is evaluated bef

[PHP] mailing list manager

2002-01-18 Thread NU Webmaster
Hello, i need a mailing list manager in php, with which i can send html email and store my subscribers in a mysql database anyone knows where i can get one? thanks, Christophe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

[PHP] Re: Scripts keep refreshing

2002-01-18 Thread Michel van Westen
Yeah i thought it would be something like that too at first, but it happens to all scripts and most of them don't use header("Location:..."); "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Maybe you were doing something like this

RE: [PHP] bug in echo function?

2002-01-18 Thread Darren Gamble
Good day, The reason that the first statement doesn't work as intended is due to the order that the operands are processed. The operands in the line: "" . ($i*8)+$j . "" are being processed like this: ("" . ($i*8))+($j . "") If you change the line to: "" . (($i*8)+$j) . "" then you'll get

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread DL Neil
Jeff, If mail is working, then agree with your point about config. Appendix B. Using PHP from the command line Usage: php [-q] [-h] [-s [-v] [-i] [-f ] | { [args...]} -q Quiet-mode. Suppress HTTP Header output. -C Do not chdir to the script's directory -c Lo

[PHP] Does somebody knows a good Authentication Sample in PHP

2002-01-18 Thread ignacio . estrada
I am using: PHP4.01 CGI Version on W2K Greetings !! Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6464, 025+6469 - Remitido por Ignacio Estrada Fonseca/CEN/GDL/CFE con fecha 01/18/2002 12:41 - ignacio.estrada

[PHP] bug in echo function?

2002-01-18 Thread Billy Harvey
I ran across a curious bug in the echo function this morning. My PHP is Debian binary 4.1.1-1. The first example below does not work (it should draw a checkerboard-like table): - Chess "; for ($j=0 ; $j<8 ; $j++) { echo "" . ($i*8)+$j . ""; } echo "\n"; } ?> - Howev

[PHP] Re: odbc linux to win2000

2002-01-18 Thread Ergin Aytac
I think I know it again. There is no sqlbase-odbc driver available for linux, only for win2000. So I have to write a bridge, which runs on win2000 and answers the php-sql-requests. sorry for this question ergin aytac "Ergin Aytac" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">ne

Re: [PHP] "/19", the "/" doesn't work??

2002-01-18 Thread Scott Fletcher
I'm posting the result and solution that work! At least the problem is now fixed, thanks to Richard Crawford. - clip Oh! In your first e-mail, you used a forward slash, not a back slash. That was kind of confusing. Heh. Try using "\\19" -- two back slashes. It worked well for me; you

[PHP] Re: Feature Suggestion

2002-01-18 Thread Mike Eheler
range() is good, but what I was getting at was a shorthand/shortcut/alternate syntax kinda thing. Mike Julio Nobrega Trabalhando wrote: > $array = range('a','z'); > ?> > > As usual your mileage may vary but it worked here :-) > > -- > > Julio Nobrega. > > Um dia eu chego lá: > http://so

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann
do you have an ini, not the exe, file in c:\winnt\system32 ? jeff. - Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "Jeff D. Hamann" <[EMAIL PROTECTED]>; "mike cullerton" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 9:53 AM Subject: Re: [PHP] comman

Re: [PHP] "/19", the "/" doesn't work??

2002-01-18 Thread val petruchek
"/19" is ok, but "\19" really fails. Try put "\\19" instead. Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "Scott Fletcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 7:45 PM Subject: [PHP] "/19

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann
No, but you're getting close. The .ini is in the same dir as the .exe and I'm guessing you guys aren't trying to diagnose this on a windows machine since we're covering all the simple things first. I don't mean to sound like a jerk, but I've covered all the possibilties I can think of. back-slash

[PHP] Does somebody knows a good Authentication Sample in PHP

2002-01-18 Thread ignacio . estrada
Hi, I am looking for a good sample in order to implement security in some htm pages using PHP using Login/Paswword implementation. Let me know if somebody knows about it. Best Regards !! Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6464

Re: [PHP] "/19", the "/" doesn't work??

2002-01-18 Thread Scott Fletcher
I tried your suggest and it doesn't work. Sorry! Thanks, Scott "Richard Crawford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > That's weird. But try '\/19"; use the back-slash to escape the control > character. > > > Scott Fletcher wrote: > > > Hi! > > >

Re: [PHP] "/19", the "/" doesn't work??

2002-01-18 Thread Richard Crawford
That's weird. But try '\/19"; use the back-slash to escape the control character. Scott Fletcher wrote: > Hi! > > When I put the data, "/19"; into a PHP variable, I found that it > produce only "9" in the variable. PHP probably think that "/1" is like > "/r", "/n", etc. So, what subs

[PHP] "/19", the "/" doesn't work??

2002-01-18 Thread Scott Fletcher
Hi! When I put the data, "/19"; into a PHP variable, I found that it produce only "9" in the variable. PHP probably think that "/1" is like "/r", "/n", etc. So, what substitute do I need to use to make it "/19" instead of "9". I don't know of any PHP code or shortcut to cancel out that e

Re: [PHP] Variable Problem

2002-01-18 Thread val petruchek
Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 19, 2002 2:47 AM Subject: [PHP] Variable Problem > > > How do I combine the following so it is treated as one

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread DL Neil
Mike and Jeff, > what about the "[EMAIL PROTECTED]"? is it failing on a 'bad' email address? or > maybe putting everything in variables and trying > > mail($to,$subject,$message); =there's a difference between the way PHP talks to an SMTP server (using mail()) on Win32 compared to *nix - which

Re: [PHP] Re: [PHP-WIN] command line are -c doesn't work on win2k?

2002-01-18 Thread DL Neil
Jeff, Let's start 'casting around' then. If you've already done these (I may not have read all of your posts) please discuss the results of the following: 1 what happens when you run the script in a browser? 2 with/without the -c and/or -q options, what happens when you run another PHP script

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann
This will work from the dir that contains php.exe.. here are the php.ini smtp lines... [mail function] ; For Win32 only. ;SMTP = stimpy - this works fine as does SMTP = 192.168.0.2 ; For Win32 only. sendmail_from = [EMAIL PROTECTED] I don't see how this could be a config problem. The ema

[PHP] Variable Problem

2002-01-18 Thread programmer
How do I combine the following so it is treated as one variable $i=10 $result$i="test"; I want this to be: $result10="test"; $i changes so I cannot just put in 10 instead of I. anybody know how i can do that? TIA Randy -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] Addslashes not working correctly?

2002-01-18 Thread Gonzalez, Zara E
Hi all, I am having a problem with one of my forms. I was testing to see if it would except data with apostrophes, and it doesn't. I thought maybe I had forgotten to addslashes to the variables...but I had the addslashes in my code... I was reading the manual page about addslashes to see if mayb

Re: [PHP] help installing php

2002-01-18 Thread Carl J Meyer
On Fri, 18 Jan 2002, Juni Adi wrote: > > Ok, I'm now in the middle of installing it from > source code. But I'm not sure where the path to > apache and mysql source code to fill in : > ./configure --with > apache=/path/to/apache_source_code --with > mysql=/path/to/mysql_source_code > > I 'm eve

Re: [PHP] Generating a new line in a text file

2002-01-18 Thread TD - Sales International Holland B.V.
On Friday 18 January 2002 17:00, you wrote: FYI, In windows a newline is usualy made by CRLF (Carriage Return (\r) , Line Feed (\n)), in linux/unix it's usually just LF (\n) > Jason Murray wrote: > >>: Don't know why it's got everyone else stumped. > >>: > >>: "\n" is the new line character. M

[PHP] PHP and COM - Syntax question

2002-01-18 Thread J Wynia
I sent this to the php.windows group as well, but haven't heard an answer, so I'm "escalating" it to the general list. Please don't be offended by the redundant posting. I've scoured the web for an answer, but virtually all COM examples using Word are copies of the code in the PHP manual. I'm jus

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread mike cullerton
what about the "[EMAIL PROTECTED]"? is it failing on a 'bad' email address? or maybe putting everything in variables and trying mail($to,$subject,$message); on 1/18/02 9:14 AM, Jeff D. Hamann at [EMAIL PROTECTED] wrote: > nope. no difference. > > jeff. > > "Mike Cullerton" <[EMAIL PROTECTED]

[PHP] Re: [PHP-WIN] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann
the path to php is already in the PATH variable... I'm not doing anything different that http://bugs.php.net/bug.php?id=6742 ,but for some reason the -c doesn't make a difference... Jeff. "Dl Neil" <[EMAIL PROTECTED]> wrote in message 0d4f01c1a00e$87036ee0$2916100a@jrbrown">news:0d4f01c1a00e$8

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann
nope. no difference. jeff. "Mike Cullerton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > on 1/18/02 12:00 AM, Jeff D. Hamann at [EMAIL PROTECTED] wrote: > > > I've been trying to figure out what was wrong with my script... > > > > > mail("[EMAIL PROTECTED]

Re: [PHP] $this objects and vars

2002-01-18 Thread mike cullerton
on 1/18/02 8:58 AM, TD - Sales International Holland B.V. at [EMAIL PROTECTED] wrote: > now further in the script you'll get an sql query > $this = mysql_fetch_array(indentifier); > > now as far as I knew you shouldn't be possible to use $this for this purpose, > it has nothing to do with object

Re: [PHP] $this objects and vars

2002-01-18 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 18-01-02 at 17:00 * TD - Sales International Holland B.V. said > > Hey there, > > got a question about $this. I thought this was a fixed variable to point to > the currently used object but I've seen a script wherein it's used within an

Re: [PHP] strange problem

2002-01-18 Thread TD - Sales International Holland B.V.
On Friday 18 January 2002 15:52, you wrote: So hashes are now $var{'keyname'} (with curly brackets) and arrays are $var[0] (with normal brackets?) > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * On 18-01-02 at 15:49 > * Marc Logghe said > > > Hi, > > my PHP (PHP Version 4.1.1) su

Re: [PHP] Generating a new line in a text file

2002-01-18 Thread Martin Wickman
Jason Murray wrote: >>: Don't know why it's got everyone else stumped. >>: >>: "\n" is the new line character. Make sure you use it in "" and >>: not in ''. >>: >>: Jason >> >>Unfortunately, that doesn't work either, it changes the \n that >>appeared at the end of the new line to a single black

[PHP] $this objects and vars

2002-01-18 Thread TD - Sales International Holland B.V.
Hey there, got a question about $this. I thought this was a fixed variable to point to the currently used object but I've seen a script wherein it's used within an object like this class a { $var = 0; function b { do something... $this ->var++; } } the $this here will incre

[PHP] Re: htmlspecialchars() alias

2002-01-18 Thread Martin Wickman
Jason G. wrote: > Hello General and Dev list, > > Considering the fact that it is good practice to use htmlspecialchars() > anytime you are outputting non-html content to the browser... > > After typing the 16 characters in the htmlspecialchars() function > thousands of times... > > I was wo

  1   2   >