Re: [PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread Philippe Saladin
I use DreamweaverUltraDev with the Interackt extension for several months. It was interesting for me at the beginning, to see how a functionnality could be coded in PHP (prev next, dynamic drop list, etc...), and because other people in my company, working on static pages, use Dreamweaver. But now

Re: [PHP] keyword search help

2002-02-07 Thread Jeff Sheltren
Not really a php question, is it? But what I would do is have two tables, a cdrom table and a keyword table. Each cd in the cd table would have a cd_id, and then the keyword table could have two attributes, cd_id (foriegn key from cdrom table) and keyword. Make the primary key for the keywor

[PHP] keyword search help

2002-02-07 Thread Arun K . V
hello sir, we are creating a cdrom database in postgresql wherein we have cd rom titlename,author,year etc and keywords as fields. we will store a set of keywords for each record. i want to know how to enter those keywords in to database (whether to have comma between keywords or pla

[PHP] call stack

2002-02-07 Thread Martin Towell
I know this comes up again, and again, and I'm bringing it up again now :) There's been requests for a function that displays the current heirachy of calls I was just thinking about this - php must maintain a stack so that it knows what function to return to when another function exits, why can't

RE: [PHP] determining script url

2002-02-07 Thread Martin Towell
I think what'll you'll need to do is look through the phpinfo() output and piece together all the parts, eg $HTTP_HOST (or should that be $_HTTP["HOST"] ?), $PHP_SELF, etc. If anyone knows of a better way, I'd like to know too Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[

[PHP] determining script url

2002-02-07 Thread sean
Hi all, How can I get the full URL of the currently running script? $DOCUMENT_ROOT is not what I need, instead I need the url (be it domain if exists, or ip if not). $SERVER_NAME works but if a domain isn't paired with the server, I could get some useless information (right?). Thanks, Sean

Re: [PHP] How to keep form inputs from being cleared

2002-02-07 Thread Jason Wong
On Friday 08 February 2002 04:33, CompMan86 wrote: > I posted about this a few days ago. I received several responses but > none of them were very helpful (thanks for the effort though). I finally > figured out what it was by process of elimination. At the top of my > registration form, I put sess

Re: [PHP] Using functions before they're defined

2002-02-07 Thread Jason Wong
On Friday 08 February 2002 06:17, Martin Towell wrote: > I've found that you can specify a function anywhere in the page and call it > anywhere in the page so: > > foobar(); > function foobar() { echo "in foobar\n"; } > foobar(); > ?> > > would work and display the text twice, without errors/warn

Re: [PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread Dr. Shim
Would this happen to be the one? http://www.interakt.ro If it is, then the extension can be found here: http://www.interakt.ro/products/PHAkt/index.php This place also has several othe extensions: http://www.udzone.com/index.asp?TypeId=3&CatId=68 Found these links using Google. God bless G

Re: [PHP] http://

2002-02-07 Thread Analysis and Solutions
Hi John: jtjohnston wrote: > > I'm looking for a function that will find occurences of urls in any > given string and do this: > > http://www.nowhere.com/ > becomes > http://www.nowhere.com/";>http://www.nowhere.com/ \\1\\2\\3', "$Val"); ?> You'll have to undo the line wrapping before you us

Re: [PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread Gary
I did try an extension with it once with terrible results. I do not know if it is the same one. The extension would take all the includes and make them the same name, not every time but often enough to scrap it. I don't use Dreamweaver much anyway, Homesite with server mapping enabled works

RE: [PHP] Execing problems

2002-02-07 Thread Jason Rennie
> does using system() work? > what about back-ticks? - `funky script stuff here`; I'll give it a go, i hadn't tried that Although I thought system would return the output. I was using exec because it didn't (oops I think I forgot to mention that.) Jason -- PHP General Mailing List (http://ww

RE: [PHP] Execing problems

2002-02-07 Thread Martin Towell
does using system() work? what about back-ticks? - `funky script stuff here`; -Original Message- From: Jason Rennie [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 3:14 PM To: [EMAIL PROTECTED] Subject: [PHP] Execing problems Hi all, I have a seperate perl script that I need

RE: [PHP] http://

2002-02-07 Thread Martin Towell
try this: $str = $s24; // this is the string you want to look at... $dst = '\\1\\2'; foreach (array("http://";, "mailto:";, "telnet:", "news:";) as $src) { $str = ereg_replace("(".$src."[^ ]*)( *)", $dst, $str); } echo $str; -Original Message- From: jtjohnston [mailto:[EMAIL PROTECT

[PHP] Execing problems

2002-02-07 Thread Jason Rennie
Hi all, I have a seperate perl script that I need to start running from a php script. The script does a fork into the backgroup and exits. when i do an exec("funky script stuff here"); The page just hangs trying to load again, apparently after I call the exec. I've also tried exec("script s

[PHP] http://

2002-02-07 Thread jtjohnston
I'm looking for a function that will find occurences of urls in any given string and do this: http://www.nowhere.com/ becomes http://www.nowhere.com/";>http://www.nowhere.com/ Could, should also look for mailto:[EMAIL PROTECTED] telnet:blah.blah or even news:blaj.blah Does such a thing exist?

Re: [PHP] HTTP_POST_VARS problem

2002-02-07 Thread ejfs
Please ignore my question - I just figured it out. I had the method="post" in the input type="submit" tag rather than in the form tag. It works! However, if one has an HTML select/option menu scrolling list with multiple selections, how does one get the number of values for the same name with HTT

[PHP] Re: array variable passing in session.

2002-02-07 Thread Peter Ruan
Hi Joe, The record has other information as well, names, phone, and etc. I like to store everything in an array and reference to it later. That way I don't have to do another mysql_xxx() later for the subsequent pages...that should save sometime, right? The problem has gone away once I switc

[PHP] HTTP_POST_VARS problem

2002-02-07 Thread ejfs
Hi. I'm a newbie at this and am having problems understanding how this works. I have a form with method="post". The server program does display REQUEST_STRING as I expect (e.g., choice=yes but displaying HTTP_POST_VARS["choice"] is null). However, displaying HTTP_GET_VARS["choice"] does display "

RE: [PHP] Checking for plus signs?

2002-02-07 Thread Martin Towell
remember to escape the escape character so php passes it onto the reg.ex. function correctly, so: if(eregi("\\+",$variable)) -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:54 PM To: Jim Lucas [php]; Leif K-Brooks; [EMAIL PROTECTED] Su

RE: [PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread [EMAIL PROTECTED]
That would be InterAKT Online (http://www.interakt.ro/), and the products you're talking about is the PHAkt (open source) and the ImpAKT (commercial version). Another product worth looking into is NeXTensio as well. I've heard good things, but I've never tried it yet. -- Laurie Landry [EMAIL

RE: [PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread Edward R. Bailey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually Ultradev does support PHP if you buy a php application server extension. A company in Romania (The name escapes me) makes the extension and I have heard it works very well. I am sure somebody can find the name of the company by searching fo

Re: [PHP] Checking for plus signs?

2002-02-07 Thread Tyler Longren
Actually, all you need is this: if(eregi("\+",$variable)) You only need to escape the + sign once. Tyler - Original Message - From: "Jim Lucas [php]" <[EMAIL PROTECTED]> To: "Leif K-Brooks" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 07, 2002 7:39 PM Subject: Re: [

Re: [PHP] Checking for plus signs?

2002-02-07 Thread Jim Lucas [php]
try this if(eregi("/\+/",$variable)) Jim Lucas - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 07, 2002 5:40 PM Subject: [PHP] Checking for plus signs? > I'm trying "if(eregi("+",$variable)){", but it gives me an error. W

[PHP] Re: array variable passing in session.

2002-02-07 Thread Joe Van Meer
Hi Peter, are you limited to using arrays? If not, try msql_fetch_row() since you are only looking for the one record, ie: the corresponding username and password record for the username and password that was passed. Hope this helps, Joe :) Peter Ruan <[EMAIL PROTECTED]> wrote in message

Re: [PHP] Checking for plus signs?

2002-02-07 Thread Jeff Sheltren
The plus is a special character for regular expressions. You need to escape it in order to search for a literal + Try this: eregi("\\+", $variable) Jeff At 08:40 PM 2/7/2002 -0500, you wrote: >I'm trying "if(eregi("+",$variable)){", but it gives me an error. What do I >do? -- PHP Genera

Re: [PHP] Quote in input tag value?

2002-02-07 Thread Jim Lucas [php]
you might want to check your coding, but that is a parse error waiting to happen. Jim Lucas - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "'Nathan Cassano'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 07, 2002 1:54 PM Subject: RE: [PHP] Quote in inp

Re: [PHP] Checking for plus signs?

2002-02-07 Thread Tyler Longren
What's the error? Tyler - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 07, 2002 7:40 PM Subject: [PHP] Checking for plus signs? > I'm trying "if(eregi("+",$variable)){", but it gives me an error. What do I > do? > --

[PHP] Checking for plus signs?

2002-02-07 Thread Leif K-Brooks
I'm trying "if(eregi("+",$variable)){", but it gives me an error. What do I do?

[PHP] New York PHP Group

2002-02-07 Thread PHP NY
Hi, I'm getting a PHP group together in the New York, NY area. Please email me if insterested. __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Re: How to keep form inputs from being cleared

2002-02-07 Thread Joe Van Meer
Probably the easiest way is to not get to that point at all in the first place. Just use a client-side javascript form validation script to prevent un-filled fields from even occurring. Another way around ths is to create tempory session variables on the processing page, and if some of the form

[PHP] PHP Group in NY

2002-02-07 Thread PHP NY
Hi, I'm getting together a PHP group in New York, NY. If interested, please send me an email. __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] Regex function needed

2002-02-07 Thread Martin Towell
what about? $str = "a bc def ghij klmno p qr i'd do, it. stu vwxy a"; $az = "[a-zA-Z']"; $str = str_replace(",", " , ", $str); $str = str_replace(".", " . ", $str); $str = trim(preg_replace(array("/ $az /", "/ $az$az /", "/ $az$az$az /"), " ", " $str ")); // couldn't get "/ [a-zA-Z]{1,3} /" to w

[PHP] Complex Version Checking

2002-02-07 Thread Alan McFarlane
Does anyone know of a method of testing the minimum version of PHP required for a particular job? - Assume I'm developing a web-site for a customer who has PHP 4.0.5 installed. Now, I tend to use the latest version (4.1.1), so I have to be a little careful in certain aspects, but it would be usefu

[PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread Gary
There is no PHP support in Dreamweaver UltraDev. Gary Luke Crouch wrote: > I know Dreamweaver UltraDev has nice site management features for using a > JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? > Does anyone know? > > -L > > > -- PHP General Mailing List (ht

RE: [PHP] Regex function needed

2002-02-07 Thread Douglas Maclaine-cross
I don't know about preg but how about this monster? $str = "I'm okay now aren't I. Do I work? 'mm"; while(eregi(' [a-z\']{1,3} ', $str)) $str = eregi_replace(' [a-z\']{1,3} ', ' ', $str); while(eregi(' [a-z\']{1,3}([^a-z\' ])', $str)) $str = eregi_replace(' [a-z\']{1,3}([^a-z\

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
after some puzzling I came to this: $str = "One as a start. This is or was a test for short words, although an, should be deleted to."; $str = preg_replace(array("/\b[A-Za-z']{1,3}\b/", "/[ ]{1}([ ]{1}|[,]{1}|[.]{1}|[:]{1})/"), array("", "\\1"), $str); print $str; which means: first: replac

Re: [PHP] Regex function needed

2002-02-07 Thread Bas Jobsen
Op donderdag 07 februari 2002 23:58, schreef Michael Kimsal: > Looking for a regex (preg or ereg) to remove > all 1, 2 and 3 character words. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Regex function needed

2002-02-07 Thread Martin Towell
what about words at the start of the string?? eg $str = "One can see this is or was a test for short words, although an, should be deleted to."; -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 10:47 AM To: [EMAIL PROTECTE

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
this might even work beter, to take comma's and periods etecetera into account to: $str = "This is or was a test for short words, although an, should be deleted to."; while (ereg(" [a-z]{1,3} ", $str)) { $str = eregi_replace(" [a-z']{1,3}([ ]{1}|[,]{1}|[.]{1}|[:]{1})", "\\1", $str); } or even

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
I don't know if this is the best way but: $str = "This is or was a test for short words"; while (ereg(" [a-z]{1,3} ", $str)) { $str = eregi_replace(" [a-z]{1,3} ", " ", $str); } print $str; this replaces all occurences of a space followed by 1,2 or 3 alphabetic characters followed by a space.

RE: [PHP] Regex function needed

2002-02-07 Thread Douglas Maclaine-cross
$string = ereg_replace("[A-Za-z']{1,3}", "", $string); // don't forget "I'm" I haven't checked but something like this. -Original Message- From: Michael Kimsal [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:59 To: [EMAIL PROTECTED] Subject: [PHP] Regex function needed Lo

[PHP] Regex function needed

2002-02-07 Thread Michael Kimsal
Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] modDb Contribution

2002-02-07 Thread Vincent - D. Ertner
Hi PHPers, > in late 2001 I had a customer that was interested in a kind of > universal (my)SQL module for PHPNuke / phpWebsite. Thus I ordered the > development and - as fair as life is - the customer went straight into > bankruptcy. > > Now I have a first beta of "modDb" - as we call it - and

[PHP] DreamWeaver/PHP ability?

2002-02-07 Thread Luke Crouch
I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Using functions before they're defined

2002-02-07 Thread Martin Towell
I've found that you can specify a function anywhere in the page and call it anywhere in the page so: \n"; } foobar(); ?> would work and display the text twice, without errors/warnings I haven't looked at the php's source code, but maybe it's a two pass parser (??) first it gets all the functio

Re: [PHP] Quote in input tag value?

2002-02-07 Thread Erik Price
On Thursday, February 7, 2002, at 04:54 PM, Rick Emery wrote: > I prefer: print" "; > > -Original Message- > > If there is a quote mark in an input tags value what is the correct way > to print the quote? > > > > or > > > > It probably doesn't really matter, but from a purist's poi

[PHP] Re: Mail stopped working - Somewhat Urgent

2002-02-07 Thread Martin C. Petersen
Bryan Gintz wrote: > All of a sudden Mail through PHP just stopped working, we can do it > through the command line, but refuses to work in PHP. > Any ideas? Does the maillog mention any errors? How about the webserver log? Best regards Martin -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Quote in input tag value?

2002-02-07 Thread Rick Emery
I prefer: print" "; -Original Message- From: Nathan Cassano [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 3:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Quote in input tag value? If there is a quote mark in an input tags value what is the correct way to print the quote?

[PHP] Quote in input tag value?

2002-02-07 Thread Nathan Cassano
If there is a quote mark in an input tags value what is the correct way to print the quote? or -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: Creating Tab-Delimited Text File

2002-02-07 Thread Phillip S. Baker
At 01:42 PM 2/7/2002, Andrew Chase wrote: >Which part are you having trouble with, specifically? The task as you've >described it is very straightforward, almost pseudo-code. :) > >-Andy I know very well how to do the Db query and then loop through the results to display the info on an HTML pag

RE: [PHP] Cron Job

2002-02-07 Thread Michael Geier
This is an inappropriate question for this list. I would suggest either a book on learning Unix (almost any flavor will do) or seeking any number of Linux mailing lists for questions concerning the OS. -Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, Februar

[PHP] RE: Creating Tab-Delimited Text File

2002-02-07 Thread Andrew Chase
Which part are you having trouble with, specifically? The task as you've described it is very straightforward, almost pseudo-code. :) -Andy > -Original Message- > From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 07, 2002 12:32 PM > To: PHP Email List > Subjec

Re: [PHP] Creating Tab-Delimited Text File

2002-02-07 Thread Analysis and Solutions
"Phillip S. Baker" wrote: > > Greetings All, > > What I want to do is create a tab-delimited text file for download from > records in a database. Construct then execute the desired query http://www.php.net/manual/en/function.mysql-query.php Loop through each record, putting each row into an

[PHP] Cron Job

2002-02-07 Thread karthikeyan
Hi, How do i set cron job on Red Hat Linux. Looking forward for yours response. karthikeyan.

[PHP] Web Hosts and PHP 4.10 +

2002-02-07 Thread Edward Marczak
I know the subject of web hosts that support PHP comes up frequently - but here's a twist: After going through the archives, and checking out many, many hosts, I haven't found a web host that is up to PHP 4.10 or better. Most seem stuck at 4.04 or, at best, 4.06. Since 4.10 made some important

[PHP] phpinfo

2002-02-07 Thread linux
can I limit the information shown in phpinfo function? the info it gives is a little risky for me thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] some doubts on telnet

2002-02-07 Thread Aderson Schroder
okay, i'm new in PHP developing and i'm having a few problems with a script i'm building... i work at an ISP what i need is a script that will add users to the company database. what i can't get is my PHP server (IP 18) to connect to the RAS server (IP 21). i've checked all the documentation i h

[PHP] opening a ssl socket...

2002-02-07 Thread wm
hi. i need to be able to open an ssl 'plus' socket (authorize.net told me this) to post data. i can use curl to post data, but how do i use curl to open an ssl 'plus' socket? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Win32 PHP + PostgreSQL support

2002-02-07 Thread Gary
Doesn't php for windows come with pgsql already? extension=php_pgsql.dll Gary Todor Stoyanov wrote: > Any ideas how to get PHP for win32 with PostgreSql support? > > Cheers > > Todor > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] question about switch function

2002-02-07 Thread Mark
try it like this: switch(true){ case strstr($line,"zip"): echo "found zip"; break; } On Thu, 7 Feb 2002 14:29:45 -0600, Chuck Barnett wrote: >Hello, I am trying to find out if a string is in a line being read >from a >file. I should use strstr for this I am pretty sure. >I want to do

[PHP] odbc_connect vs. DB2 (Connection speed varies)

2002-02-07 Thread Scott Fletcher
Hi! Have anyone ever have problem with the connection speed using PHP and DB2? I'm a little puzzled by the odbc_connect reaction. There were very many people using the DB2 on the website. The most I can have is from 5 to 10 people. For some people, they get quick result from the database

[PHP] question about switch function

2002-02-07 Thread Chuck Barnett
Hello, I am trying to find out if a string is in a line being read from a file. I should use strstr for this I am pretty sure. I want to do something like this: switch(strstr($line, case argument)) but I don't know if it is possible. For example, I am looking for Zip in a line but it will not

RE: [PHP] Need XML info for PHP -- XML Newbie

2002-02-07 Thread Navid Yar
Thanks, Erik! This will do nicely. :) -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 2:07 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Need XML info for PHP -- XML Newbie On Thursday, February 7, 2002, at 03:03 P

[PHP] CRAM-MD5 problem with Horde2/IMP3 and PHP4.1.1 ..

2002-02-07 Thread Marc G. Fournier
Morning all ... I'm runing Cyrus-IMAPd 2.0.16, Cyrus-SASL 1.5.24 and DB3.2.9 on several servers, with Horde2/IMP3 installed as a front end ... if I close my web browser down and restart it, then try to login, *every time* it will give me: Feb 7 16:23:41 earth imapd[49380]: login: earth

[PHP] RE: [PHP-DB] Need to delete charcters from a string

2002-02-07 Thread Rick Emery
$str = substr($str,0,-3); -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 1:57 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] Need to delete charcters from a string I need to delete the last 3 character of a string, w

[PHP] How to keep form inputs from being cleared

2002-02-07 Thread CompMan86
I posted about this a few days ago. I received several responses but none of them were very helpful (thanks for the effort though). I finally figured out what it was by process of elimination. At the top of my registration form, I put session_start() just like I did for all my other scripts. Well

[PHP] Mail stopped working - Somewhat Urgent

2002-02-07 Thread Bryan Gintz
All of a sudden Mail through PHP just stopped working, we can do it through the command line, but refuses to work in PHP. Any ideas? Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Creating Tab-Delimited Text File

2002-02-07 Thread Phillip S. Baker
Greetings All, What I want to do is create a tab-delimited text file for download from records in a database. I am not sure on how to do this. So what I want to do is as follows. ON a page a button is clicked. Script is activated that pulls records from a database. From these records a tab-del

[PHP] Re: How to Configure the MySql Database?

2002-02-07 Thread Peter Ruan
Hi, I recommend using a nice program call PHPTriad. It's painless and you don't have to worry about anything. The only downside is that it cofigures PHP as CGI module only. -Peter "Karadamoglou Kostas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I don't k

[PHP] array variable passing in session.

2002-02-07 Thread Peter Ruan
Hi, I am running into a problem that I can't figure out the solution to. So I'm hoping that someone can give me some pointers here. I have two files (see below): verify.php and edit.php The job of verify.php is basically to verify that a user is in the database before allowing him/her to ed

Re: [PHP] Need XML info for PHP -- XML Newbie

2002-02-07 Thread Erik Price
On Thursday, February 7, 2002, at 03:03 PM, Navid Yar wrote: > Hello everyone, > > I'm a "newbie" when it comes to XML. I need to know if there's an > easy-to-understand documentation/tutorial online that will help me > understand how PHP and XML work together, what software technologies > PHP

[PHP] Need XML info for PHP -- XML Newbie

2002-02-07 Thread Navid Yar
Hello everyone, I'm a "newbie" when it comes to XML. I need to know if there's an easy-to-understand documentation/tutorial online that will help me understand how PHP and XML work together, what software technologies PHP uses to parse XML/XSLT documents, and how to actually build PHP to have sup

RE: [PHP] Formatting a MYSQL time

2002-02-07 Thread Kevin Stone
Ah.. much appreciated. :) > -Original Message- > From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] On Behalf Of Lars Torben > Wilson > Sent: Thursday, February 07, 2002 12:43 PM > To: Kevin Stone > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Formatting a MYSQL time > > On Thu, 2002-02-

[PHP] php static or dynamic?

2002-02-07 Thread linux
I have redhat 7.1, apache 1.3.22, php 4.1.1 I have installed php and other apache modules as static. I have installed all php modules static. I also installed java module as static (--with-java=..) But I cannot enable java in php.ini Also, lib_phpjava.so library is not created. Only li

RE: [PHP] Formatting a MYSQL time

2002-02-07 Thread Lars Torben Wilson
On Thu, 2002-02-07 at 10:47, Kevin Stone wrote: > Unless the $eventdate coming being pulled from your database a bonified > Unix timestamp the date() function will not work. > > I don't like MySQL functions so I've always used $timestamp = mktime() > to create the timestamp. Then plug that value

[PHP] dynamic form fields

2002-02-07 Thread Kunal Jhunjhunwala
hey.. anyone got any suggestions on how to have a form build dynamically? where a user can define his fields and store the form data in mysql? Regards, Kunal Jhunjhunwala "Minds think with ideas, not information. No amount of data, bandwidth, or processing power can substitute for inspired though

Re: [PHP] Preventing Identical Form Fields

2002-02-07 Thread Dave Rosenberg
Thanks y'all! Everything's workin great now. Jon Haworth wrote: >>>With javascript onSubmit, but that ain't php, so with >>>if($form1==$form2){sendthembackwitherrors()} >>> >>Thanks Chris, but I have about 10 different fields and want to make sure >>none of those are the same. >> > > You coul

RE: [PHP] Using functions before they're defined

2002-02-07 Thread Rick Emery
What happened when you tried? -Original Message- From: Brad Harriger [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Using functions before they're defined How does PHP 4 locate function definitions if the function is called bef

[PHP] curl question

2002-02-07 Thread wm
hi. i've been experimenting with curl and it has been working great. i was wondering though if anybody knows why an extra "0" value is being tacked on to the end of the post. here is the example: http://www.mydomain.com/testing.php";); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT

RE: [PHP] Formatting a MYSQL time

2002-02-07 Thread Kevin Stone
Unless the $eventdate coming being pulled from your database a bonified Unix timestamp the date() function will not work. I don't like MySQL functions so I've always used $timestamp = mktime() to create the timestamp. Then plug that value into a field defined as INT(14). Use $eventdate = date("

Re: [PHP] Formatting a MYSQL time

2002-02-07 Thread Mark
I would let mysql do the work: select *,date_format(dateofevent,"%H:%i %p") as date_formatted from table... - Mark On Thu, 07 Feb 2002 11:21:13 -0600, Frank Miller wrote: >Hello, > > Since I'm the only one who uses php at work I run >into a >little problem and was hoping maybe someone c

Re: [PHP] Formatting a MYSQL time

2002-02-07 Thread Jim Lucas [php]
well, from what you show here you are trying to use a MYSQL timestamp format string in a UNIX Timestamp String. what you need to do is add add this to your select statement. SELECT UNIX_TIMESTAMP() From Table; you want to convert the MYSQL timestamp into a UNIX timestamp. then just through tha

[PHP] Re: Writing PHP files from inside a PHP file

2002-02-07 Thread Georgie Casey
yea, evals() exactly what i needed, tanx "J Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > include() and require() were suggested, but you may also want to look into > eval(), which parses a string as PHP code and returns the parsed PHP. > Sounds like

Re: [PHP] Formatting a MYSQL time

2002-02-07 Thread Miles Thompson
Here Frank, play with this you'll have to add a bit of code to select your time values, but it will start you down the road. I spent some time playing with this a couple of years ago, this is taken from a file with the grand name of "junk.php"! Miles Thompson // up here there's code to co

Re: [PHP] function to post data

2002-02-07 Thread Jason Wong
On Thursday 07 February 2002 22:45, Erik Price wrote: > I don't mean to butt in here, I'm just a bit confused. I thought that > the poster ("obo") was asking how to submit form variables using POST. > For the purpose of doing more work with these variables, from a (PHP) > script. Is obo asking

RE: [PHP] probs w/ pass vars as fake directories

2002-02-07 Thread Mikusch, Rita
> > I tried it out on my site by deleting the get parameters and > > typing the mock directories in on the url. Very cool, my website > > is still being displayed even with the fake directories. BUT, > > I noticed that the server was not finding my css page or my images. > You need to exclu

Re: [PHP] mysql_insert_id() vs LAST_INSERT_ID()

2002-02-07 Thread Jason Wong
On Thursday 07 February 2002 23:08, Erik Price wrote: > I have two questions: I think the php-db list is more appropriate for these. > 1. Can anyone tell me whether the following statement is true or false? > The PHP function mysql_insert_id() differs from the MySQL function > LAST_INSERT_ID() i

Re: [PHP] help with PHP global array

2002-02-07 Thread Chris Boget
> All variables in PHP are local to the scope in which it is defined. You > cannot declare a variable as global (as such). To use a global variable: This is true. But I believe that the original question was actually the other way around... Make a local variable into a global one. The way to d

Re: [PHP] error_reporting(E_ALL) and undefined vars

2002-02-07 Thread Julio Nobrega Trabalhando
Thanks Jon. But, that's for security, right? Maybe even other reasons. I know close to zero of programming theory, so, why is it bad to have undefined vars on the code? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.p

RE: [PHP] error_reporting(E_ALL) and undefined vars

2002-02-07 Thread Jon Haworth
> I develop with error_reporting(E_ALL). It's a major pain to type everytime > > if(isset($some_var)) > > To avoid undefined variable errors. Any tips? If you turn E_ALL on > error_reporting, what do you do? Generally I make sure my variables are defined, and if I can't be sure I use... if (is

Re: [PHP] help with PHP global array

2002-02-07 Thread Jason Wong
On Thursday 07 February 2002 23:48, Wee Chua wrote: > Hi all, > I have tried: > global $myArray[] > > and it gives me an error 'the array expects semi-colon or comma'. Any helps > would be appreciated! > > Thanks, > Wee > > -Original Message- > From: Bjorn Abt [mailto:[EMAIL PROTECTED]] >

Re: [PHP] force refresh?

2002-02-07 Thread DL Neil
Jeff, > can i force a browser to refresh using php. =the issue is PHP's server-side-edness. Consider adding an HTML META tag to the page, to call/renew itself every n-seconds. =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] probs w/ pass vars as fake directories

2002-02-07 Thread Jon Haworth
> I tried it out on my site by deleting the get parameters and > typing the mock directories in on the url. Very cool, my website > is still being displayed even with the fake directories. BUT, > I noticed that the server was not finding my css page or my images. You need to exclude certain r

RE: [PHP] Preventing Identical Form Fields

2002-02-07 Thread Jon Haworth
> > With javascript onSubmit, but that ain't php, so with > > if($form1==$form2){sendthembackwitherrors()} > Thanks Chris, but I have about 10 different fields and want to make sure > none of those are the same. You could brute force it: $ok = true; if ($field1 == $field2 || $field1 == $field3

[PHP] error_reporting(E_ALL) and undefined vars

2002-02-07 Thread Julio Nobrega Trabalhando
Hi All, I develop with error_reporting(E_ALL). It's a major pain to type everytime if(isset($some_var)) To avoid undefined variable errors. Any tips? If you turn E_ALL on error_reporting, what do you do? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei

[PHP] Formatting a MYSQL time

2002-02-07 Thread Frank Miller
Hello, Since I'm the only one who uses php at work I run into a little problem and was hoping maybe someone could help me. I've set up a Mysql database that has an event time. I've set the field in the table as: eventtime time DEFAULT 00:00:00. When I go to print the eventt

Re: [PHP] force refresh?

2002-02-07 Thread Sam Masiello
You can force the browser to refresh using a meta tag: This will cause the page to refresh every 180 seconds. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From: "Chris Wright" <[EMAIL PROTECTED]> To: <[EMAI

Re: [PHP] Preventing Identical Form Fields

2002-02-07 Thread Jeff Sheltren
Hi, I think that you could still use Chris' method, you will just have to do it in a loop. Create an array of all the form fields, and then have a nested for loop which just checks that none of the elements are equal. $numelements = count($fieldarray); for($i = 0; $i < $numelements; $i++) {

[PHP] probs w/ pass vars as fake directories

2002-02-07 Thread Mikusch, Rita
I discovered this wonderful article at zend discussing how to pass get parameters as mock directory names . . . ie www.ica.bc.ca/kb.php3?artid=34&catid=23 would become www.ica.bc.ca/kb.php3/artid/34/catid/23. Then you retrieve these values from the $PATH_INFO variable. I tried it out on my site b

  1   2   >