Re: [PHP] "Authenticating" across sites/servers

2001-01-24 Thread Michael Kimsal
Had another thought about this... Have someone register against the first site - have it create a quick key value, and store it locally. Pass that via GET or POST to one of YOUR sites. Have your server hit the first server with this key. The first server would authenticate the validity of the

Re: [PHP] date question

2001-01-24 Thread Hardy Merrill
Which database? Fang Li [[EMAIL PROTECTED]] wrote: > > There is a LiveDate (-MM-DD) field in my table. > 1. I want data from last 5 days up to now, and its order should be from > latest; > 2. I want data for next month. > > Any help would be appreciated. > > > -- > PHP General Mailing Li

Re: [PHP] Test for Cookies

2001-01-24 Thread Karl J. Stubsjoen
> Karl J. Stubsjoen [[EMAIL PROTECTED]] wrote: > > Hi, > > > > I need to test for cookies. What is the simplest way to do this? > > Be a little more specific - do you want to know if there > are cookies at all, or if there are specific cookies? > > Depends on the settings in the Data Handling sec

Re: [PHP] Test for Cookies

2001-01-24 Thread Karl J. Stubsjoen
> By trying to set a cookie and read it back. Okayhere is the scenario: User originates from STATIC Html page, Links to my PHP Cookie Test Page I set a cookie in my PHP Cookie Test Page Can I then check (safely) for cookies right away in my PHP Cookie Test Page without involving a 3rd page?

Re: [PHP] Test for Cookies

2001-01-24 Thread April
Not without at least refreshing that page. You can't know if a cookie has set on the same page you set it on. - Original Message - From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 12:42 PM Subje

php-general Digest 24 Jan 2001 18:42:37 -0000 Issue 474

2001-01-24 Thread php-general-digest-help
php-general Digest 24 Jan 2001 18:42:37 - Issue 474 Topics (messages 36342 through 36450): Re: as stupid as I normally am. ( Nope!) 36342 by: Samantha Savvakis 36343 by: Jacky.lilst storing query result in arrays: waste of memory? 36344 by: Tyson Lloyd Thwaites

Re: [PHP-CVS] cvs: php4 / NEWS /ext/mysql/libmysql acinclude.m4 bmove.ccharset.c config-win.h dbug.h default.c errors.c fix_copyright global.hlibmysql.c m_string.h mf_dirname.c mf_format.c mf_pack.c mf_path.cmy_alloc.c my_create.c my_fopen.c my_i

2001-01-24 Thread Thimble Smith
On Tue, Jan 23, 2001 at 08:59:42PM +0100, Sebastian Bergmann wrote: > I can't link the latest CVS of PHP on Win32: > > libmysql.lib(my_thr_init.obj) : error LNK2001: Nichtaufgeloestes externes > Symbol _win_pthread_init > libmysql.lib(my_compress.obj) : error LNK2001: Nichtaufgeloestes externes

[PHP] ->

2001-01-24 Thread Karl J. Stubsjoen
What does -> do? As in: $Something->then_something_over_here -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] ->

2001-01-24 Thread Cal Evans
It's means that what's on the right is part of the object on the left. i.e. $myObject->myMethod(); fires the method myMethod() of the object $myObject. echo $myObject->myAttribute; displays the value of the attribute myAttribute of the object $myObject. Clear as mud? ;) Cal http://www.cale

Re: [PHP] mysql_fetch_array strangeness

2001-01-24 Thread Markus Fischer
Because, basically, in php an array is a hash with just numbers as keys. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5

Re: [PHP] ->

2001-01-24 Thread Karl J. Stubsjoen
Aisch! Hmmm... yep, clear as mud. Let me describe what I we have going on: We have a function called ToForm which looks like it verifies values coming in from a POST. This function is invoked like this: $generic->ToForm("cart_id", NO_DEFAULT_VALUE); $generic->ToForm("email_address", NO_DEFAUL

Re: [PHP] Form data is not "remembered"

2001-01-24 Thread Alex Black
> If the form page is not being cached, it would probably get reloaded > when they clicked back, thus losing the data. > > I'd suggest redrawing the form with the fields populated and with the > appropriate error messages. Then you don't need to mess with caches or > sessions for that matter, and

Re: [PHP] building a language pack

2001-01-24 Thread Alex Black
I'm of the opinion that abstracting all "lang-specific" strings to an xml file is the easiest, cleanest way to go. that means "layman" authors can translate without screwing up your code, and you can get a lot of languages fast. it's also pretty convenient to get the strings out, and to add new o

Re: [PHP] building a language pack

2001-01-24 Thread Robert S. White
is xml compatible with php? i don't know anything about xml. any places on the net i can get a quick overview of it? - Original Message - From: Alex Black <[EMAIL PROTECTED]> To: <> Sent: Wednesday, January 24, 2001 2:17 PM Subject: Re: [PHP] building a language pack > I'm of the opi

Re: [PHP] ->

2001-01-24 Thread Joe Stump
$Something is an instance of a class - so like this: class Foo { var $test function echo_test() { echo $this->test; } } $foo = new Foo; $foo->test = 'this'; $foo->echo_test(); --Joe On Wed, Jan 24, 2001 at 12:05:17PM -0700, Karl J. Stubsjoen wrote: > What d

Re: [PHP] ->

2001-01-24 Thread Chris Lee
test_1 = $var_1; $this->test_2 = $var_2; } } $something = new generic; $something->set_var(10, 12); echo $something->test_1 . "\n"; echo $something->test_2 . "\n"; ?> all classes do is organize data, its a nice way of doing it too. all the -> is access that data/function. Im not qu

[PHP-CVS] cvs: php4 /ext/mysql/libmysql config-win.h update_sources

2001-01-24 Thread MySQL Team
mysql Wed Jan 24 10:11:25 2001 EDT Modified files: /php4/ext/mysql/libmysqlconfig-win.h update_sources Log: Don't #define HAVE_COMPRESS on windows. Index: php4/ext/mysql/libmysql/config-win.h diff -u php4/ext/mysql/libmysql/config-win.h:1.5 php4/ext/m

RE: [PHP] ->

2001-01-24 Thread Cal Evans
$generic is an object. Somewhere you've got a line in your code that instantiates it. (i.e. $generic = new ...) Cal http://www.calevans.com -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 1:18 PM To: Cal Evans; PHP Mailing List Sub

[PHP-CVS] cvs: php4 / README.Zeus

2001-01-24 Thread Ben Mansell
joostersWed Jan 24 10:20:36 2001 EDT Modified files: /php4 README.Zeus Log: Added 'you must use gcc' comment to build instructions. Index: php4/README.Zeus diff -u php4/README.Zeus:1.7 php4/README.Zeus:1.8 --- php4/README.Zeus:1.7Tue Ja

Re: [PHP-CVS] cvs: php4 /ext/mysql/libmysql config-win.h update_sources

2001-01-24 Thread Sebastian Bergmann
MySQL Team wrote: > mysql Wed Jan 24 10:11:25 2001 EDT > > Modified files: > /php4/ext/mysql/libmysqlconfig-win.h update_sources > Log: > Don't #define HAVE_COMPRESS on windows. The error libmysql.lib(my_thr_init.obj) : error LNK2001: Not resolved external sym

[PHP] SMTP interface in php?

2001-01-24 Thread George Schlossnagle
Is there a generic SMTP interface library for php? Something akin to perl's Net::SMTP. php's mail() is not terribly flexible for sending mass mail, and I was going to write one that's a lower-level interface, but I don't want to waste my time re-inventing the wheel if one already exists Tha

RE: [PHP] Test for Cookies

2001-01-24 Thread Brian V Bonini
You'll need to at least reload the page so the cookie can be sent back to the server after it's set. Try this: it's taken directly from the annotations on the setcookie function page of the php manual. Cookie Check Cookie Check Status: %s ;', $status ? "00FF00" : "FF", $status

[PHP-CVS] cvs: php4 / TODO

2001-01-24 Thread Andrei Zmievski
andrei Wed Jan 24 11:16:43 2001 EDT Modified files: /php4 TODO Log: Already done. Index: php4/TODO diff -u php4/TODO:1.108 php4/TODO:1.109 --- php4/TODO:1.108 Fri Jan 19 14:55:41 2001 +++ php4/TODO Wed Jan 24 11:16:43 2001 @@ -85,7 +85,6 @@

[PHP] looking for people for open source project

2001-01-24 Thread Joe Stump
I've started a little pet project on the side and I'm looking to enlist people in it - no better place to find PHP coders than here I suppose. If you are interested in donating a few hours here and there to an Open Source project then visit http://www.miester.org/geekshare for more info. Thanks!

Re: [PHP] SMTP interface in php?

2001-01-24 Thread Alex Black
yes, manuel lemos has a fantastic one at phpclasses.upperdesign.com I've got it running a couple places, it works _really_ well :) but I've never done mass mailing with it. -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.007

[PHP] login authentication / session handling...

2001-01-24 Thread johnny p.
Ok, I'm probably asking something that's been asked rediculous amounts of times before, but I'll go ahead and ask again since I'm finding it difficult to find a common method, or a preferred login and session handling process. So, here goes... I am trying to do what everyone else in the web indus

Re: [PHP] Integration of PHP with MS Outlook?

2001-01-24 Thread Alex Black
if you're using exchange server, I _think_ that runs on top of SQL server. so, yes, if all the above is true, and assuming it's possible to figure out the schema and what all the fields are for. then you could have php talk to SQL server, and insert records. my _guess_ is that I'm probably wrong

Re: [PHP-CVS] cvs: php4 /ext/mysql/libmysql config-win.h update_sources

2001-01-24 Thread Thimble Smith
On Wed, Jan 24, 2001 at 07:33:07PM +0100, Sebastian Bergmann wrote: > libmysql.lib(my_thr_init.obj) : error LNK2001: > Not resolved external symbol _win_pthread_init OK. Can you add the attached file to the libmysql directory and see if it fixes the problem? If so, I'll add it to CVS.

Re: [PHP] PHP - Interrupted Scripts,

2001-01-24 Thread Joe Stump
set_time_limit(0) sets the limit to 0 or inifinate. But it will end like any other script (ie end of script or exit;) --Joe On Wed, Jan 24, 2001 at 09:41:44PM +0100, Timo Mika Gl??er wrote: > and what does set_time_limit(0) do??? set it to infinity??? > > i have some fucntion call in there whi

Re: [PHP] Test for Cookies

2001-01-24 Thread Karl J. Stubsjoen
In IE | Tools | Internet Options | Security | Custom Level You'll find 2 items under Cookies - Allow cookies that are stored on your computer - Allow per-session cookies (not stored) Both haveing the options (enabled / prompt / disabled) The cookie test script is succesful if and only if "pe

[PHP] mysql_insert_id()

2001-01-24 Thread Boget, Chris
I'm having intermittent problems with this function. Most of the time, it returns the proper value. However, sometimes it doesn't return anything at all even when the insert query executes without error and I can see the new data in the database. I try to get the last insert id both by supplying

[PHP] Redirect

2001-01-24 Thread Karl J. Stubsjoen
What is wrong with this redirect: http://www.dogpile.com"; header ("Location: " . $rdrct); exit; ?> Thanks! Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-24 Thread Rasmus Lerdorf
rasmus Wed Jan 24 11:54:48 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: dev account for Dave Hayden Index: CVSROOT/avail diff -u CVSROOT/avail:1.54 CVSROOT/avail:1.55 --- CVSROOT/avail:1.54 Wed Jan 24 09:32:24 2001 +++ CVSROOT/a

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Sam Masiello
When you are using mysql_insert_id, you don't want to pass it the result of your previous SQL statement as in: $result = mysql"mydb", "My SQL statement", $my_connect) ; $last_id = mysql_insert_id($result) Rather, you want to pass it the link identifier from your mysql_connect like: $result = my

RE: [PHP] building a language pack

2001-01-24 Thread Maciek Uhlig
try http://stphp.sourceforge.net Maciek > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 24, 2001 7:09 PM > To: [EMAIL PROTECTED] > Subject: [PHP] building a language pack > > > I'm the author of an opensource php auctioning system an

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Boget, Chris
> When you are using mysql_insert_id, you don't want to pass it > the result of your previous SQL statement as in: > $result = mysql"mydb", "My SQL statement", $my_connect) ; > $last_id = mysql_insert_id($result) This is what it sounds like it's looking for in the documentation. It could be jus

[PHP] how to rename a database

2001-01-24 Thread Fang Li
Does anyone know how to rename a database in MySQL? Thanks! fang -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: AW: [PHP] eval() to string???

2001-01-24 Thread Steve Edberg
>-Ursprüngliche Nachricht- >Von: Robert S. White [mailto:[EMAIL PROTECTED]] >Gesendet: Mittwoch, 24. Januar 2001 16:20 >An: [EMAIL PROTECTED] >Betreff: Re: [PHP] eval() to string??? > > >How is this going to help me? > >I want to evaluate the code in $php_code to *another* string... > Fr

RE: [PHP] how to rename a database

2001-01-24 Thread Cal Evans
Step 1: Ask this question on the MySQL mailing list. :) (Sorry, I couldn't resist) The easiest way I can think of is to use MySQLDump to dump the schema and data, delete the original database, change the output of mysqldump to reflect the new database name and pump it back into mysql. Depending

[PHP] PHP Editors summary page (was Re: Re: [PHP] PHP Editors)

2001-01-24 Thread Toby Butzon
Just when this thread seems to die it comes back... Perhaps the PHP page should have a page of editors with feature lists/ups & downs to each editor... a little research & a public page by one person (and maybe intermittent updates; moderated feedback might also be good) would save us from even a

[PHP] Test for Cookies (Stored vs. Session)

2001-01-24 Thread Karl J. Stubsjoen
So my Point is: What if you require "stored cookies" - cookies written to the users disk? Hmmm, this cookie test would return true if "per-session" cookies was enabled and "stored cookies" was disabled. Karl - Original Message - From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> To: <[EMAIL

Re: [PHP] Funny php://stdout behaviour

2001-01-24 Thread Toby Butzon
> >One thing that occurs to me -- stdout starts off by being the browser, so > >it's kinda funky to open it -- You've already got it open... I *think* it > >really only makes sense to fopen() stdout from the command line. At least, > >I'm not clear on what it would mean to open it from a HTTP en

Re: [PHP] PHP Editors summary page (was Re: Re: [PHP] PHP Editors)

2001-01-24 Thread eschmid+sic
On Wed, Jan 24, 2001 at 04:29:11PM -0500, Toby Butzon wrote: > Perhaps the PHP page should have a page of editors with > feature lists/ups & downs to each editor... a little > research & a public page by one person (and maybe > intermittent updates; moderated feedback might also be good) > would

[PHP] Help with INSERT query

2001-01-24 Thread Darren Evans
I recently downloaded a phpDownload app. I'm having problems with it and can not reach the creator of this app. The INSERT query from the Admin portion of this app will not insert the info passed from a form. Can someone offer any help with this? Here is a portion of the code: } else { // In

RE: [PHP] Redirect

2001-01-24 Thread Thor M. Steindorsson
try this: http://www.dogpile.com"; header ("Location: $rdrct"); exit; ?> Thor M. Steindorsson - [EMAIL PROTECTED] http://www.netwood.net - Find Out Why We're Better. -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 1:03 PM To:

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Sam Masiello
You probably stated this in your previous post, but what is the result from your call to mysql() ? Is this call failing so that when you get to mysql_insert_id(), the id doesn’t exist? HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- F

Re: [PHP] PHP - Interrupted Scripts,

2001-01-24 Thread Rasmus Lerdorf
Read this: http://www.php.net/manual/en/features.connection-handling.php -Rasmus On Wed, 24 Jan 2001, [iso-8859-1] Timo Mika Gläßer wrote: > Hi, > I had this problem over and over again: A script takes a long time to > execute and is interrupted in the middle of its action by either a IE-Crash

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Boget, Chris
> You probably stated this in your previous post, but what is > the result from your call to mysql() ? Is this call failing so > that when you get to mysql_insert_id(), the id doesn't exist? I did. It's returning a numerical one (1). What I'm doing now is as follows. It's getting me the val

RE: [PHP] Help with INSERT query

2001-01-24 Thread Thor M. Steindorsson
Some of your single quotes between values are missing (the . "','" . ), messing up the query. However it would probably be easier to do the addslashes() beforeyou do the query so you don't have to break the query up like that. So I'd do it like this: }else{ // Insert new entry $Name = addslashes

[PHP] Processing PHP within a string variable

2001-01-24 Thread Matt
On a project I am working on, I have a string variable, and inside the string is a mixture of PHP code and HTML. I want to be able to output the string with the PHP code inside the string processed. Right now the PHP isn't processed on output, it is merely cut out. I have been able to do this

Re: [PHP] Help with INSERT query

2001-01-24 Thread Darren Evans
""Thor M. Steindorsson"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Some of your single quotes between values are missing (the . "','" . ), > messing up the query. > However it would probably be easier to do the addslashes() beforeyou do the > query so you

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Sam Masiello
Instead of checking if(!$id), perhaps you would be better off to check the result of your query (which in this example was successful, since you got a return from mysql() ). Also, what is the last_insert_id() function that you are referencing in your $insertIDQuery string? As for things getting

[PHP] Loop Through all Querystring Variables

2001-01-24 Thread Karl J. Stubsjoen
What is the simplest way to set up a procedure to loop through all passed querystring values and/or form values? I'm very new to PHP, and don't know how to set up loops at all. Thanks! Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

[PHP] Cookie semi-security.

2001-01-24 Thread April
Stupid question, but I'm stumped. I'm passing a persons id through a cookie, then using that to determine if they're allowed to be doing what they're trying to do (change listings, etc.). Right now, I'm getting the value of the cookie by just accessing $cookie_id, without anything fancy. The pro

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Boget, Chris
> Instead of checking if(!$id), perhaps you would be better off to check the > result of your query (which in this example was successful, since you got > a return from mysql() ). I am. I just didn't include it in my previous message as it as I was trying to keep extraneous code down to a mini

Re: [PHP] Processing PHP within a string variable

2001-01-24 Thread Alexander Skwar
So sprach Matt am Wed, Jan 24, 2001 at 03:56:37PM -0600: > string is a mixture of PHP code and HTML. I want to be able to output the > string with the PHP code inside the string processed. Right now the PHP http://www.php.net/manual/en/function.eval.php Alexander Skwar -- How to quote: http

Re: [PHP] Cookie semi-security.

2001-01-24 Thread Toby Butzon
Enable track_vars in php's config and use $PHP_COOKIE_VARS['cookie_id'] to get the value of the cookie. --Toby - Original Message - From: "April" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 5:06 PM Subject: [PHP] Cookie semi-security. > S

[PHP] Function / syntax varying from version to version?

2001-01-24 Thread Steven Deaton
Using the following snippet of code. -- http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Loop Through all Querystring Variables

2001-01-24 Thread Steve Edberg
At 3:07 PM -0700 1/24/01, Karl J. Stubsjoen wrote: >What is the simplest way to set up a procedure to loop through all passed >querystring values and/or form values? > >I'm very new to PHP, and don't know how to set up loops at all. > reset($HTTP_GET_VARS); while (list($VariableName, $VariableVal

Re: [PHP] Loop Through all Querystring Variables

2001-01-24 Thread Philip Olson
Assuming you are using GET (since you have a QUERY_STRING in url) : foreach ($HTTP_GET_VARS as $key => $value) { print "$key is $value \n"; } For form you can use POST and loop through HTTP_POST_VARS too. These are predefined variables : http://www.php.net/manual/en/lan

[Fwd: [PHP] Function / syntax varying from version to version?] -- CORRECTION

2001-01-24 Thread Steven Deaton
What I meant to say, was that the top snippet works in php 3.0.16 but does not work in php 4.0.3pl1 yet the bottom corrected snippet works fine. Question being... why the changes, and does anyone have any clues about this occuring? Sorry about that. :) Original Message Return

[PHP] Date/Time from Unix timestamp

2001-01-24 Thread CDitty
Ok, I have looked at all my sources, including the manual and I cannot find any method of converting the Unix timestamp to a displayable date/time. I have probably just overlooked it each time, but all I can find are methods to convert the current date/time to a Unix timestamp. Can anyone gi

Re: [PHP] Processing PHP within a string variable

2001-01-24 Thread Toby Butzon
Hmm... that may work for what you're trying to do and it may not... if your string contains something like this: $str = <

RE: [PHP] Function / syntax varying from version to version?

2001-01-24 Thread Cal Evans
Guessing here: Define can't take a variable. It has to have a constant. define("RUSER", 1); would compile but not give you the results you want. I'm not sure you can do what you want. have you tried: define("RUSER", '$REMOTE_USER'); Cal http://www.calevans.com -Original Message-

[PHP-CVS] cvs: php4 /ext/mysql/libmysql libmysql.dsp my_winthread.c

2001-01-24 Thread Sebastian Bergmann
sbergmann Wed Jan 24 13:08:12 2001 EDT Added files: /php4/ext/mysql/libmysqlmy_winthread.c Modified files: /php4/ext/mysql/libmysqllibmysql.dsp Log: Added my_winthread.c. Thanks to Thimble Smith. Index: php4/ext/mysql/libm

Re: [PHP] Date/Time from Unix timestamp

2001-01-24 Thread Ernest E Vogelsinger
At 23:10 24.01.2001, CDitty said: [snip] >Ok, I have looked at all my sources, including the manual and I cannot find >any method of converting the Unix timestamp to a displayable date/time. I >have probably just overlooked it each time, but all I can fi

Re: [PHP] Turning off scrollbar

2001-01-24 Thread Chris Hayes
> (Wac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes: > > Wac> Can anyone tell me how to turn off the bottom scrollbar in both > Wac> IE and Netscape?? Open the page from another page using javascript to open a window with feature not to scroll. See FAQS on www.irt.org or the Netscape Javasc

Re: [PHP] Processing PHP within a string variable

2001-01-24 Thread Matt
Haha, well I apologize for not seeing this earlier when I was hunting through the documentation. Silly me. Thanks a bunch! At 04:02 PM 1/24/2001 , you wrote: >So sprach Matt am Wed, Jan 24, 2001 at 03:56:37PM -0600: > > string is a mixture of PHP code and HTML. I want to be able to output the

Re: [PHP-CVS] cvs: php4 /ext/mysql/libmysql config-win.h update_sources

2001-01-24 Thread Sebastian Bergmann
Thimble Smith wrote: > OK. Can you add the attached file to the libmysql directory > and see if it fixes the problem? If so, I'll add it to CVS. It works now, thank you. I already added my_winthread.c to the CVS and patched the MS VisualC++ workspace accordingly. -- sebastian bergmann

Re: [PHP] Date/Time from Unix timestamp

2001-01-24 Thread Hardy Merrill
CDitty [[EMAIL PROTECTED]] wrote: > Ok, I have looked at all my sources, including the manual and I cannot find > any method of converting the Unix timestamp to a displayable date/time. I > have probably just overlooked it each time, but all I can find are methods > to convert the current dat

[PHP] how do you erase quotes from variable?

2001-01-24 Thread Michael Zornek
I have a variable(s) that hold the string: "name" and I'd like to kill the quotes so it contains: name I am aware of the strlen() function but can find the concant Little Help? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

RE: [PHP] how do you erase quotes from variable?

2001-01-24 Thread Boget, Chris
> I have a variable(s) that hold the string: > "name" > and I'd like to kill the quotes so it contains: > name > I am aware of the strlen() function but can find the concant $newVar = eregi_replace( "\"", "", $varWithAboveData ); Chris

Re: [PHP] how do you erase quotes from variable?

2001-01-24 Thread Nik Gare
In article , Michael Zornek <[EMAIL PROTECTED]> wrote: > I have a variable(s) that hold the string: > "name" > and I'd like to kill the quotes so it contains: > name $name = ereg_replace("\"","",$name); Maybe, Nik -- -- PHP General Mailing List (

[PHP] Any PHP API for Meeting-Pro?

2001-01-24 Thread James R. Butzen
Hi All, I have a client uses Meeting-Pro database. Is there any API I can use with PHP that will allow me to interact with Meeting-Pro db? Thanks in advance for any comments. James R. Butzen NEBIS Tech. Support http://www.nebis.com -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Look for and Trim Last Character

2001-01-24 Thread Karl J. Stubsjoen
Hello, I'd like to check for a character at the end of a string, if it exists remove it, example: Looking for - Z In string - StringZ Result would be - String -or- Looking for - Z In string - StringZzz Result would be - StringZzz (no change) Thanks! Karl BTW: You guys are great! -- PHP Gen

Re: [PHP] how do you erase quotes from variable?

2001-01-24 Thread Rasmus Lerdorf
> I have a variable(s) that hold the string: > > "name" > > and I'd like to kill the quotes so it contains: > > name $new = str_replace('"','',$old); Using a regex as others have suggested is a bad idea for something this trivial. -Rasmus -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Look for and Trim Last Character

2001-01-24 Thread Rasmus Lerdorf
> Hello, I'd like to check for a character at the end of a string, if it > exists remove it, example: > > Looking for - Z > In string - StringZ > Result would be - String > > -or- > Looking for - Z > In string - StringZzz > Result would be - StringZzz (no change) if($str{strlen($str)-1}=='Z') $st

[PHP] easy question.

2001-01-24 Thread Nathan Cook
I have always wrote code this like: if(($fname) && ($lname) && ($email)) { echo "test"; } Is there an easier way to write the IF line? Thank You .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer [ phone - 208.343.3110 ][ pager - 208.387.9983 ]

[PHP] I give - Whats wrong

2001-01-24 Thread Karl J. Stubsjoen
I've tried and tried to figure out what is wrong with this function, but I can't. Could you please have a look. This function reconstructs the querystring values passed in the querystring: function PassOnGetVars() { global $HTTP_GET_VARS; #initialize retrn value $retrn = "?"; #loop th

Re: [PHP] easy question.

2001-01-24 Thread jeremy brand
if ($fname && $lname && $email) echo "test"; If by easier you mean typing less. ;) Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: [PHP] easy question.

2001-01-24 Thread Steven Deaton
the only thing I can think of, would be to eliminate the () around $fname, $lname, and $email if they all test true in the first place, the () are kinda obsolete. :) Nathan Cook wrote: > > I have always wrote code this like: > > if(($fname) && ($lname) && ($email)) > { echo "test";

Re: [PHP] I give - Whats wrong

2001-01-24 Thread jeremy brand
I don't think you need the \=, just the = should do. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete"

Re: [PHP] I give - Whats wrong

2001-01-24 Thread Rasmus Lerdorf
You could of course just check $QUERY_STRING As for your error, you a missing a $ in front of retrn at the beginning of that line. -Rasmus On Wed, 24 Jan 2001, Karl J. Stubsjoen wrote: > I've tried and tried to figure out what is wrong with this function, but I > can't. Could you please have

Re: [PHP] easy question.

2001-01-24 Thread Alex Black
if(($fname) && ($lname) && ($email)) { echo "test"; } > > Is there an easier way to write the IF line? if (isset($fname) && isset($lname) && isset($email)) { echo "test"; } I believe the parens in your code don't do anything. anyway, best o' my knowledge that's the way to do it. "_) -a

[PHP] IMAP PROBLEM

2001-01-24 Thread Jochen Kächelin
I want to set a link to download an email-attachment, but I don't know where to point the link to get the attachment - I am only able to view an attached image or text! -- ** * Jochen Kächelin* * Ihr WEBberater - Werbeagentu

Re: [PHP] Turning off scrollbar

2001-01-24 Thread Alex Black
you cannot independently control the bottom scrollbar. if you want to get rid of it, find the problem in your table code, or if you layout is just too wide, make it less-wide :) I wish I could control that too, but nay. -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc

Re: [PHP] I give - Whats wrong

2001-01-24 Thread Chris Hayes
Karl, it's .= (read the fine manual ;-) ) > retrn =. "$VariableName\=$VariableValue"; > retrn =. "&"; Variables in PHP need a $dollarsign. Money makes the world go round Chris Send reply to: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> From: "Karl J. Stubsjoen

Re: [PHP] I give - Whats wrong

2001-01-24 Thread Karl J. Stubsjoen
Freak'n Duhh! My eyes are still blury to PHP *obviously*. Thanks! So $QUERY_STRING eh? I'll look that one up. Karl - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> Cc: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, Ja

Re: [PHP] Cookie semi-security.

2001-01-24 Thread Alex Black
well, first off, you should md5 the cookie value or something to avoid having the value correlate directly with your system values. I like to use at least one level of "shift" in apps, to make sure that user input is never taken verbatim. -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The

Re: [PHP] easy question.

2001-01-24 Thread Chris Hayes
proposed IF: >> if(($fname) && ($lname) && ($email)) Alex: > if (isset($fname) && isset($lname) && isset($email)) { > echo "test"; > I believe the parens in your code don't do anything. anyway, best o' my > knowledge that's the way to do it. First IF tests whether the vars are 'true', Alex's

RE: [PHP] I give - Whats wrong

2001-01-24 Thread Pickup, Jordan
Could it be the lack of $? It should be $retrn =. "$VariableName\=$VariableValue"; I do that all the time. The syntax is so close to javascript that when I'm typing I often leave out the dollar sign. Especially when I have php and javascript in the same file. On Wednesday, January 24, 2001 4:

Re: [PHP] how to rename a database

2001-01-24 Thread Chris Doyle
Prehaps you can rename the database file in mysql/bin ie. database_name.sql to new_database_name.sql and that will work? ___ This email may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by ot

Re: [PHP] Editors, again (was Re: [PHP] Beginner in php!)

2001-01-24 Thread Brian White
That is a very useful looking link and it has gone into to my "very useful PHP links" box. I will point out that "codecharge" and "phpedit" don't appear to be on that list ... At 06:19 AM 1/24/01 -0800, Steve Edberg wrote: >At 4:40 PM +0600 1/24/01, Tshering Norbu wrote: >>Here is collection I go

Re: [PHP] PHP - Interrupted Scripts,

2001-01-24 Thread Joe Stump
try set_time_limit(0) for starters. Otherwise I'm clueless. --Joe On Wed, Jan 24, 2001 at 09:31:17PM +0100, Timo Mika Gl??er wrote: > Hi, > I had this problem over and over again: A script takes a long time to > execute and is interrupted in the middle of its action by either a IE-Crash > or and

[PHP] Re: [PHP-INST] php / mysql

2001-01-24 Thread Ashley M. Kirchner
Timo Mika Gläßer wrote: > we're basically developing for DB2 or Oracle and don't usually need > MySQl-Support with PHP. So in order to make the httpd binary a little > smaller is it possible to compile PHP4 without any MySQL-Support added? Configure & compile PHP with the --without-mysql fla

[PHP] PHP - Interrupted Scripts,

2001-01-24 Thread Timo Mika Gläßer
Hi, I had this problem over and over again: A script takes a long time to execute and is interrupted in the middle of its action by either a IE-Crash or and Proxy-Error. Can one prevent or circumvent that problem??? Thanks for your fast response in advance, Timo Mika Gläßer

[PHP] php / mysql

2001-01-24 Thread Timo Mika Gläßer
Hi, we're basically developing for DB2 or Oracle and don't usually need MySQl-Support with PHP. So in order to make the httpd binary a little smaller is it possible to compile PHP4 without any MySQL-Support added? Thanks for your response in advance. Yours, Timo Mika Gläßer ___

php-general@lists.php.net

2001-01-24 Thread Karl J. Stubsjoen
Should this correctly find '&' or is & and special searching character? # looking for an & at the end $retrn = AASIDFIFJ& if($str{strlen($retrn)-1}=='&') Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

php-general@lists.php.net

2001-01-24 Thread James R. Butzen
try $retrn = "AASIDFIFJ&"; -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 4:17 PM To: PHP Mailing List Subject: [PHP] Finding an '&' Should this correctly find '&' or is & and special searching character? # looking for an & at

php-general@lists.php.net

2001-01-24 Thread Philip Olson
fyi, that little snippet that rasmus presented is being used incorrectly, i think you are actually wanting : if($retrn{strlen($retrn)-1} == '&') as $str was just the string which in this case seems to be $retrn . also, i think this tutorial will help you with strings : Using Strings

<    1   2   3   >