On Mon, 2003-06-16 at 14:22, zavaboy wrote:
> How do I delete a mySQL table? (Just what's in the subject)
Well, this is a MySQL question, not a PHP question, but in PHP
you would do it like this:
mysql_query("DROP TABLE $table_name", $dbh);
Just make sure that the user PHP is running as has p
On Mon, 2003-06-16 at 15:23, Daevid Vincent wrote:
> Off the top of your head huh? Damn... That's some code you churned out
> there. Just glanced through it, but I'm impressed you took that much time!
> Thanks! I'll clean it up and give it a go.
>
> d
Well, I had just finished writing the core of
On Mon, 2003-06-16 at 16:45, Suhas Pharkute wrote:
> Hello,
>
> I have a php script which generates a string which has php code in it. I need to
> run that code.
>
> For example:
>
>
> $str = " ";
> ?>
>
>
> Is there any way that we can do it? I know I can do it by writing it to file bu
On Mon, 2003-06-16 at 23:20, Jason Wong wrote:
> On Tuesday 17 June 2003 12:50, DvDmanDT wrote:
> > I was replying to "If you don't do it this way, you'll
> > find yourself re-writing a function sooner or later because you need it
> > to return the data instead of displaying it."... Then you don't
On Tue, 2003-06-17 at 02:42, Philip J. Newman wrote:
> How would i valadate an email string to see if it has invalid charactors?
>
> / Philip
Read RFC 822 and grok it thoroughly. Then decide exactly how lax you
can afford to be in your checking, or find a checker to download--
because unless you
On Tue, 2003-06-17 at 02:54, Lars Torben Wilson wrote:
[snip]
> I would suggest checking on ps.sklar.com, Zend.com, phpclasses.org, etc
> for some rfc822 checkers.
I meant 'px.sklar.com', of course. :/
Torben
--
Torben Wilson <[EMAIL PROTECTED]>
On Tue, 2003-06-17 at 02:45, Davy Obdam wrote:
> Hi people,
>
> I have to make a password generator, but i have a little problem.
>
> - It needs to generate password 8 characters long, and including 1 or 2
> special characters(like #$%&*@).
> - Those special characters can never appear as the fi
On Tue, 2003-06-17 at 11:55, Logan McKinley wrote:
> right now if a the 'field' key does not exist at all in the querystring it
> returns the following error:
> Notice: Undefined index: Register in c:\inetpub\wwwroot\PHP\Register.php on
> line 3
> I think i can use the empty function but i pass in
On Tue, 2003-06-17 at 11:42, Thomas Bolioli wrote:
> The docs (see below) for bcmod() are rather skimpy. Does anyone have a
> clue as to how it works. Basically I want to do this (below code). PS: I
> am new to PHP but not to programming in general.
> Tom
Unless you're using arbitrary-precision
On Tue, 2003-06-17 at 14:10, Bryan Koschmann - GKT wrote:
> On Tue, 17 Jun 2003, Terje Torkelsen wrote:
>
> >
> > PHP is server-side language, so this would be possible. Would go for meta tag
> > or a javascript.
>
>
> I know, but I thought I saw somewhere there was a way to do this using
> flus
On Tue, 2003-06-17 at 12:08, Mike Morton wrote:
> I have an application that I set the include directory using the ini_set
> (the application assumes that the client does not have access to the php.ini
> files).
>
> I can set the first include path of course:
> ini_set("include_path","/Library/Web
On Tue, 2003-06-17 at 17:13, [EMAIL PROTECTED] wrote:
> Hello,
>
> Would be grateful if someone couldkindly point me in the right direction.
Check the MySQL documentation. You also might want to ask on the MySQL
mailing list.
http://www.mysql.com/doc/en/Default_privileges.html
http://www.mys
On Tue, 2003-06-17 at 18:19, [EMAIL PROTECTED] wrote:
> Hello, This seems not to be working, I am using win2000 and a newbie. please
> simplify this process.
>
> ERROR 1045: Access denied for user: '@127.0.0.1' (Using password: NO)
> mysql> GRANT ALL PRIVILEGES ON *.* TO [EMAIL PROTECTED]
> -
On Wed, 2003-06-18 at 08:23, Terje Torkelsen wrote:
> To echo multiple lines you have to write
>
> echo <<
>
>
>
>
>
> ...
> ..
>
> END;
No offense, but this is completely false. Double-quotes will work just
fine.
--
Torben Wilson <[EMAIL PROTECTED]>+1.604
On Wed, 2003-06-18 at 08:51, Matt Palermo wrote:
> Could anyone tell me how to print all the variables and values from a submitted
> form, so that I can check them?
>
> Thanks,
>
> Matt
print_r($_REQUEST);
...or, depending on the method your form is using, one of:
print_r($_POST);
//
On Wed, 2003-06-18 at 10:03, zavaboy wrote:
> I know this is more of a mySQL question but, how do I delete and add rows
> and columns?
>
> --
>
> - Zavaboy
> [EMAIL PROTECTED]
> www.zavaboy.com
Using the mysql_*() function and the SQL language. The mysql_*()
functions are documented here:
h
On Wed, 2003-06-18 at 10:32, Scott Fletcher wrote:
[snip]
> if ($ArrayCheck == 0) {
> $ArrayDataCount['$ODBC_RESULT'] = "0";
What happens when you remove the single-quotes? You're currently
defining only one array value, with the key being the literal string
'$ODBC_RESULT'--
On Wed, 2003-06-18 at 11:06, Lee Elenbaas wrote:
> Hi,
>
> I have failed to find the information I am looking for on session management
> by PHP do they use cookies? Is there a way to use URL rewriting? How do I
> find the timeout time? is there a way to close a session manually?
> It seem to me
On Wed, 2003-06-18 at 11:11, Scott Fletcher wrote:
> Well, the PHP Manual said we should be using the quote (single or double)
> inside the array no matter what, it also reduce the side-effect problem.
> It's what I read at php.net in the past.
That's referring to string literals, but that might n
On Wed, 2003-06-18 at 11:45, Scott Fletcher wrote:
> Bingo!! I did some PHP re-arrangement and I also do what you were saying
> about taking out the quote. It doesn't work with the quote inside and it
> work without the quote. What so interesting is that the year is actually a
> string so I figu
On Wed, 2003-06-18 at 12:56, Michael Sweeney wrote:
> Also, you might have problems with the array reference $place[1] not
> expanding from within the string - you might need to concatenate the
> string around it:
>
> ...'$cases', '". $place[1] ."', '$iice'...
>
> ..michael..
No, his syntax with
On Tue, 2003-06-17 at 07:47, Chris Hayes wrote:
> At 16:37 17-6-03, you wrote:
> >On Tue, 2003-06-17 at 09:09, nabil wrote:
> > > A side question along with this ,,, how can I include
> > $_POST['foo'] in the
> > > :
> > > $sql ="select * from db where apple = '$_POST['foo']' ";
> > >
> > > wit
On Wed, 2003-06-18 at 13:39, Edward Peloke wrote:
> Hello all, I have this code that takes an image sent from a form and resizes
> it for a thumbnail and for display, the problem is the pictures look nice
> until this does the resizing, then the quality is horrible...can I fix it?
>
> Thanks,
> Ed
On Wed, 2003-06-18 at 15:34, Steve Marquez wrote:
> Hello everyone,
>
> Could someone point me in the direction of some info on .htaccess files?
> Could someone send me one, tell me where to put it in my
> server? I hope this is not a stupid question. I am running Apache on a Mac
> with Jaguar OSX
On Wed, 2003-06-18 at 21:13, Leif K-Brooks wrote:
> You're using PHP, but not everything you do has to do with PHP! You may
> use PHP, but that doesn't mean you post to the PHP list about home
> decorating!
I have no idea where you folks have gotten the idea that asking how to
get Javascript to
On Wed, 2003-06-18 at 21:42, Leif K-Brooks wrote:
> Lars Torben Wilson wrote:
>
> >I have no idea where you folks have gotten the idea that asking how to
> >get Javascript to interact with PHP would be particularly off-topic
> >here. Were it the vile transgression this t
On Thu, 2003-06-19 at 05:27, Mukta Telang wrote:
> Hi,
> I want to add slashes to a string, if it contains quotation marks and
> which is received as input from a form, so that I can enter it to a
> database.
> What I am doing is as follows:
>
> echo ";
> $title=addslashes($title);
>
> But the st
On Thu, 2003-06-19 at 20:19, Mark Tehara wrote:
>
> $myimage="..//..//site//images//2.jpg";
>
> header("Content-type: image/jpeg");
> fopen ("$myimage", "r");
> readfile("$myimage") ;
> fclose("$myimage");
>
> ?>
>
> This seemed to do the trick for me. Thank you.
>
> / Mark
Even better, you
On Fri, 2003-06-20 at 12:07, Mark Tehara wrote:
> Ahh, the Docs don't tell you that.
>
> They are a little weard wehen it comes to that
How so?
int readfile ( string filename [, bool use_include_path [, resource
context]])
It does say 'filename', not 'resource'. Seems pretty unequivocal.
H
On Fri, 2003-06-20 at 15:37, Sparky Kopetzky wrote:
> Does anyone have a piece of code that emulates a Perl 'Chomp' function? I need one.
>
> Thanks in advance!!
>
> Robin E. Kopetzky
> Black Mesa Computers/Internet Services
> www.blackmesa-isp.net
This should do it for you: http://www.php.net/
> Sparky
> - Original Message -
> From: "Lars Torben Wilson" <[EMAIL PROTECTED]>
> To: "Sparky Kopetzky" <[EMAIL PROTECTED]>
> Cc: "PHP General" <[EMAIL PROTECTED]>
> Sent: Friday, June 20, 2003 16:47
> Subject: Re: [PHP] Chom
On Fri, 2003-06-20 at 16:16, Aaron Axelsen wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> The php chop function is suppose to act like the perl chomp.
No, chop() is an alias for rtrim(), and is identical in every way
(save for its name, of course...)
http://www.php.net/chop
C
On Fri, 2003-06-20 at 17:07, Kyle Babich wrote:
> I have a file, current.txt, that at the start has only the digit 1 in it. Here is
> my code:
Hi there,
> $current = readfile('setupData/current.txt');
This will cause $current to contain the number of bytes read from the
file, not the contents
On Sat, 2003-06-21 at 00:51, Justin French wrote:
> I'm with Steve on this. Call them (the numerous "hacks" mentioned in this
> thread) deterrents if you like, but there is NO WAY to secure images.
>
> You can brand them with a big watermark, and make sure your copyright and
> terms of use notice
On Sun, 2003-06-22 at 20:19, Daevid Vincent wrote:
[snip]
> http://us3.php.net/manual/en/function.exec.php
> string exec ( string command [, array output [, int return_var]])
> exec() executes the given command, however it does not output anything. It
> simply returns the last line from the resul
On Sun, 2003-06-22 at 23:20, Gerard Samuel wrote:
> Im trying to pass an object into functions and class methods, and for some
> reason, Im unable to access the object's methods.
> When I var_dump() the object, its a valid object with the function or
> class method.
> When I check via get_class_me
On Mon, 2003-06-23 at 15:12, Jeff Stewart wrote:
> I'm using PHP 4.3.1 as an Apache module. No matter what I try, I can't get
> set_error_handler() to do anything other than return false. Under what
> circumstances does this happen?
>
> function doobee($errno, $errstr, $errfile, $errline, $errc
On Mon, 2003-06-23 at 03:21, anzenews wrote:
> Hi!
>
> I hope this is the right newsgroup for posting this... PHP.dev doesn't seem
> to be alive anymore?
>
> Is there some extension or anything that would allow me to hook my code to
> PHP parser? Even lex and yacc for PHP would be great...
Hav
On Fri, 2003-06-27 at 14:07, Raymond C. Rodgers wrote:
> I'm sure that this has probably been discussed before, but I couldn't
> seem to find any direct references to such a discussion. The line break
> tags that nl2br() produces have the forward slash embedded in them,
> which is not in the HTML 4
On Fri, 2003-06-27 at 03:09, Dave Alger wrote:
> Hiya,
>
> It would be useful for me to be able to use a class within another class and
> I don't know if that's permissable in PHP.
Hi there!
It is indeed possible. However, that's not the problem here. The problem
is that class attribute initiali
On Sat, 2003-06-28 at 11:28, Bobby Patel wrote:
> In PHP there are two operators for comparisons, the double and triple
> equivalance.
>
> Double equivalance just check's the boolean type so if (0 == 'n') is
> translated to if (False == False), where as triple equivalance checks the
> data types a
On Sat, 2003-06-28 at 13:10, Jay Fitzgerald wrote:
> I have been writing PHP for almost a year now and someone on phpfreaks told
> me the other day that my code was very sloppy.
>
> Since I want to more more into programming than design, can anyone
> recommend where to learn how to make sure you
On Mon, 2003-06-30 at 18:09, Steve Marquez wrote:
> I am trying to get php to use two conditions.
>
>
> if ($biz = my_business and $id_num = "1"){
>
> echo "stuff"
>
> }
>
> if ($biz = "my_business" and $id_num ="2"){
>
> echo "other stuff"
>
> }
>
> ?>
>
> My question Is, I am n
Hi,
I've updated to PHP 4.2.3 and wrote this simple Script:
";
}
?>
I would expect the following:
The site starts with the form, then I enter my name (Lars) and click the
send-button. Then the script says Hello Lars.
The actual output is:
The site starts with the for
On Thu, 2002-06-06 at 20:20, Justin French wrote:
> Hi,
>
> How would I determine if there was a high % (say > 40%) of capital letters
> in a string? I'm trying to think of a way of preventing endless use of
> capital letters in a message board, to stop YELLERS.
>
> Justin French
>
On Tue, 2002-06-11 at 23:21, William_dw -- Sqlcoders wrote:
> Hi there!,
> I'm trying to emulate a class destructor, according to the PHP documentation
> I can emulate this by using a call to register_shutdown_function(),
> containing the function to be called upon shutdown.
>
> While this appare
On Tue, 2002-06-11 at 20:12, Tom Rogers wrote:
> Hi
> One way is to create an external reference to your class and use that in
> the cleanup function. To make the cleanup function visible it has to be
> declared inside the constructor (which makes it invisible to the rest of
> the class:) This
On Tue, 2002-06-11 at 22:27, Tom Rogers wrote:
>
> Hi
> It was the register_shutdown_function(array($this, 'cleanup')); syntax
> that had me stummped and looking for magic :)
>
> Tom
Yeah, that needs to be explained a little better...hopefully I'll have
time to fix up that page in the next f
On Tue, 2002-06-11 at 22:01, Tom Rogers wrote:
> Hi
> A revised cleanup function for multiple instances of the same class.
>
> $ref = array();
> class cRoute{
> var $txt; //identify the class
> function cRoute($txt=""){
> global $ref;
> $x = co
You might be able to share values between PHP and JavaScript by using
cookies.
--
Lars V. Nielsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 2002-01-24 at 13:42, Rasmus Lerdorf wrote:
> I think the real answer here is to treat these as read-only arrays. ie.
> never use them on the left side of the '=' and you will never run into
> problems. Or if you do, be consistent and use the same array all the
> time. You are writing yo
On Tue, 2002-01-29 at 06:53, Stefan Rusterholz wrote:
> Is there a place especially meant to make feature-requests to the
> php-development team?
>
> TIA
> stefan rusterholz
http://bugs.php.net
Select 'Feature/Change Request' as the bug type.
Cheers,
Torben
--
Torben Wilson <[EMAIL PROTEC
On Tue, 2002-01-29 at 20:19, Douglas Maclaine-cross wrote:
> Or an even simpler str_replace("\n", "", $sourcestring);
Which will also be much faster than the ereg_replace(), to boot.
Cheers,
Torben
> -Original Message-
> From: Jason Murray [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday,
On Tue, 2002-01-29 at 07:25, Aric Caley wrote:
> Why, oh WHY doesnt this work.
No panic, it's just a typo. :)
> I get the error:
>
> Fatal error: Call to a member function on a non-object in
> c:\home\digerati\www\classtest.php3 on line 23
>
> If I try to make any assignments, anywhere,
On Wed, 2002-01-30 at 03:33, Christian Novak wrote:
> Has anyone an idea on how to get information from PHP on the function call
> stack.
> I need the line number and file calling a function for a custom error
> handler.
This cannot be done in current versions of PHP. There are
feature requests i
On Wed, 2002-01-30 at 08:16, liljim wrote:
> Hi Bart,
>
> > I want to check the data from a form-field if it excists only of digits
> > (0-9) and nothing else.
> >
> > How do I use the ereg()-function for this?
>
> Well, I prefer the preg_functions
>
> if (!preg_match("/^[0-9]{10}$/", $string))
On Wed, 2002-01-30 at 19:10, jtjohnston wrote:
> .
>
?
--
Torben Wilson <[EMAIL PROTECTED]>
http://www.thebuttlesschaps.com
http://www.hybrid17.com
http://www.inflatableeye.com
+1.604.709.0506
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
On Thu, 2002-01-31 at 02:55, Bas Jobsen wrote:
> Hello,
>
> > Thanks all. I will rename the second function.
>
> Now if have:
>
> if($wat=="naam")$temp=make_naam($this);
> else if($wat=="anderenaam")$temp=make_anderenaam($this);
> //etc..
>
> But i would prefer something like
> $temp=make_$wat
On Thu, 2002-01-31 at 14:57, Erik Price wrote:
> I have a file called "index.php". This file includes another file,
> "foot.inc". In the file "foot.inc", amidst much HTML code, I have a
> simple line:
>
> echo "$PHP_SELF" ;
> ?>
>
> The expected result is that "index.php" will appear in my
On Thu, 2002-01-31 at 15:00, Martin Towell wrote:
> Is there a way to suppress division by zero errors?
>
> echo 5/0; // this give a warning - obviously!!
>
> @echo 5/0; // this gives a parse error
>
> echo @5/0; // this still comes up with a warning
>
> unless I turn error_reporting off be
On Thu, 2002-01-31 at 15:26, Martin Towell wrote:
> I was thinking of writing a _very simple_ graphing program - enter an
> expression and php will generate an image with the graph on it, I didn't
> want to spend too much time parsing the expression up and seeing if there's
> a division or anythin
On Thu, 2002-01-31 at 15:16, Christopher William Wesley wrote:
> You really need to do some error checking on the denominator.
> $num = 5;
> $den = 0;
>
> echo $den != 0 ? $num/$den : "0";
>
> A number divided by zero isn't defined, so you have to circumvent the
> situation by making sure it nev
On Fri, 2002-02-01 at 01:20, hugh danaher wrote:
> Not familiar with anything but php and html. I know that in a type=text
> (obviously not a checkbox) if you don't use the escape backslashes, the
> value written into the box is 'Your' without the 'Name #' I am told this is
> because the browser
On Thu, 2002-01-31 at 23:37, jtjohnston wrote:
> Niklas,
> Bingo. I wondered if it was somehting like that? Same thing in JS more or
> less.
> Thanks,
> John
eval() will work here, but it's overkill--it's a very expensive
operation. You should avoid it whenever you can. A better way is to put
eve
On Fri, 2002-02-01 at 01:33, Brian Clark wrote:
> * hugh danaher ([EMAIL PROTECTED]) [Feb 01. 2002 04:21]:
>
> > Not familiar with anything but php and html.
>
> XHTML isn't too different. There are different `rules' -- like tags
> and attributes must be lower case, values must be surrounded by
On Fri, 2002-02-01 at 02:46, Jean-Arthur Silve wrote:
> Hi !
>
> I m using PHP 4.0.5 and I try to create a function called "connect" :
>
> function connect() {
> ...
>
> }
>
> My problem is I get this :
>
> Fatal error: Cannot redeclare connect() in
> /opt2/htdocs/www.mydomain.com/html/conne
On Fri, 2002-02-01 at 10:48, Erik Price wrote:
>
> On Friday, February 1, 2002, at 05:07 AM, Lars Torben Wilson wrote:
>
> > Everything is correct 'cept the 'double quotes' bit--XML accepts
> > attribute values enclosed in either single or double quotes.
&
On Fri, 2002-02-01 at 13:28, Robby wrote:
> I am using this code below but it does not work (php in installed and
> working proplely):
You should provide a bit more information than "it's not working".
It helps immensely to know exactly *how* it isn't working. That
said, here's what sprang immed
On Fri, 2002-02-01 at 13:54, Erik Price wrote:
> Hm... I don't know why I thought otherwise. I checked with the spec
> (http://www.w3.org/TR/xhtml1/#h-4.4), and it really doesn't say yes or
> no to this. But I'm sure you're right, since some attributes contain
> quoted content, which is why y
On Fri, 2002-02-01 at 14:02, toni baker wrote:
> I would like to prevent users from uploading a file
> that contains more than 4 pipes or less than 2 pipes.
> The code below prevents users from uploading a file
> containing more than 4 pipes, but not less than 2
> pipes. Should I use awk, ereg, o
On Fri, 2002-02-01 at 14:27, Administrator wrote:
> Yesterday I presented this problem to a local usergroup...
>
> // the following lines are contained in a class
> // although I am echoing the value of $age from within the class
> // this is only for testing during development.
> // $age will
On Sat, 2002-02-02 at 13:46, Lars Wilhelmsen wrote:
> "Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I would like to send an e-mail (the same e-mail) to 1,000 different
> people.
> > I want ea
style issue
could be argued for days--go with what works for you.
Torben
> Mike Frazer
>
>
>
> "Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message
> 1012602758.3230.127.camel@ali">news:1012602758.3230.127.camel@ali...
> > On Fri, 2002-02-01 at 14:
On Sun, 2002-02-03 at 12:12, Mike Frazer wrote:
> Your reply piqued my curiosity so I whipped together a script that times the
> execution of a foreach(), a while() and a for() loop executing the same
> commands. The results were rather surprising in some ways but not really
> overall.
>
> The w
On Mon, 2002-02-04 at 01:43, Neil Freeman wrote:
> Hi there,
>
> Am I correct in thinking that you can specify the PHP include_path line
> within an Apache .htaccess file? If so does anyone know the correct
> syntax of doing this?
Something along the lines of:
AddType application/x-httpd-ph
On Sun, 2002-02-03 at 21:34, Martin Towell wrote:
> is that a direct copy from your code? - if it is, there's two errors
> 1. you have a comma just before the closing backet
> 2. the function is : implode(string glue, array pieces)
>so that would be : $content = implode("\n", $lines);
>ie.
On Mon, 2002-02-04 at 10:32, Peter J. Schoenster wrote:
> Hi
>
> If I use $snippet = ""; and escape the quotes in the block then it
> works. But if I use it as is below, it fails with no useful error
> message. Why?
>
> Thanks,
>
> Peter
This function cut-and-pasted? If so, then you may have
On Mon, 2002-02-04 at 11:49, James Hallam wrote:
> (try again - Sorry for the double)
>
> my config: PHP 4.1.1/NT/iPlanet 6.1
>
> This is the URL in its tag:
>
> HREF="test_mediacoverage.php?locale=en_na&sec=news&subsec=media&name=infowee
> k1">Media Coverage Test Page
>
>
> Those variables
On Sun, 2002-02-03 at 14:06, Lars Torben Wilson wrote:
> On Sun, 2002-02-03 at 12:12, Mike Frazer wrote:
> > Your reply piqued my curiosity so I whipped together a script that times the
> > execution of a foreach(), a while() and a for() loop executing the same
> > comman
On Mon, 2002-02-04 at 13:52, Philip Hallstrom wrote:
> Something along the lines of:
>
> if( ereg("/confirm.php", $_SERVER['HTTP_REFERER']) ) {
> Header("Location: thanks.php");
> exit;
> }else {
> Header("Location: index.php");
> exit;
> }
>
> You might want to do some
On Mon, 2002-02-04 at 13:40, toni baker wrote:
> $date1 = "10/12/2002";
> $date1 = date("D M j Y", strtotime($date1));
> $date2 = date("D M j Y");
> $date3 = date("D M j Y", $date1);
> print $date1."";
> print $date2."";
> print $date3."";
>
> The code above gives me the following output:
>
On Tue, 2002-02-05 at 14:11, DL Neil wrote:
> toni,
>
> > $date1 = "10/12/2002";
> > $date1 = date("D M j Y", strtotime($date1));
> > $date2 = date("D M j Y");
> > $date3 = date("D M j Y", $date1);
> > print $date1."";
> > print $date2."";
> > print $date3."";
> >
> > The code above gives me
On Mon, 2002-02-04 at 20:52, Sondra Russell wrote:
> Hi Guys!
>
> I'm looking to get a *deeper understanding* of uksort. My quandry:
>
> $array[listing1][name] = "listing 1";
> $array[listing1][premiere] = "";
> $array[listing2][name] = "listing 2";
> $array[listing2][premiere] = "";
> $array[l
On Mon, 2002-02-04 at 15:05, DL Neil wrote:
> Torben,
> > No offense, but in TFM (which you have of course R), follow the 'Date
> > Input Formats' link to:
> >
> >http://www.gnu.org/manual/tar-1.12/html_chapter/tar_7.html
> >
> > You will find this sentence:
> >
> >The construct 'month/day
On Mon, 2002-02-04 at 15:54, Erik Price wrote:
> Short and sweet:
>
> If I have an "if" statement inside a "switch" statement, how can I
> "break" out of both blocks that I am in? Will one "break" end
> everything? Or should I use one for each level deep that I am?
>
>
> Erik
>From the man
On Mon, 2002-02-04 at 19:21, Philip J. Newman wrote:
> Is someone able to point me into the right direction.
>
> I have a disire to make a database of hyperlinks. At the moment the process is,
>some what slow, as I have to input all the data by hand. I would like some way that
>I can just put
On Mon, 2002-02-04 at 18:20, Trent Gillespie wrote:
> I have a template file that I would like to add the content to no write over it. I
>want the string $content to be added to my template instead of writing over it. Here
>is my current script
>
> $tutorial = "template.php";
>
>
> $fp = fope
On Mon, 2002-02-04 at 19:22, Jared wrote:
> I am creating a script that reads "Radius" log files and prints them to
> the browser. I want the User to be able to specify the Number of lines
> they want to see beginning at the end of the file and going up instead
> of reading the lines at the begin
On Tue, 2002-02-05 at 00:36, Alex Shi wrote:
> I am now trying to use php script from command line. Everything is
> Ok except only one thing: it will always send out header msg. How
> can stop it from sending header?
>
> Alex Shi
There are full instructions in the manual. Essentially, you
are
On Mon, 2002-02-04 at 05:45, Ivo Stoykov wrote:
> Hi group:
>
> Is there a way to guess which OS the script is running? I couldn't find
> anything in the manual about this.
>
> Thank you
>
> Ivo
The constant PHP_OS will tell you. For a list of all currently
defined constants, try http://www.p
On Tue, 2002-02-05 at 15:12, Melanie Gann wrote:
> Thank you all you listeners out there. I'll try to be respectful of your
> time and patience, and apoligize in advance for my "greeness" - I am 2
> weeks into PHP/MySQL.
>
> I am trying to select the higest value from the column Thought_Num below
On Tue, 2002-02-05 at 16:23, Michael O'Neal wrote:
> Hi.
>
> I'm working on an "edit" page where the pull down menu is populated from a
> database. I can't figure out how to print "selected" when that particular
> record is the one associated with the current ID. Can anyone help?
>
> Here's my
On Tue, 2002-02-05 at 18:44, Gary wrote:
> Hello All,
> Can someone please RTFM me so I can convert MySQL 24 hour time to 12
> hour time.
> TIA
> gary
Use MySQL's date_format() function with the %r specifier in your query:
shanna% mysql
Reading table information for completion of table a
On Mon, 2002-02-04 at 20:19, Daniel Grace wrote:
> "Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message
> >
> > From the manual:
> >
> >break accepts an optional numeric argument which tells it how
> >many nested enclosing structures
On Wed, 2002-02-06 at 11:28, David A Dickson wrote:
> I need to create a function in another programming language that takes the
> same input as the php mktime() function and produces the exact same output
> as the php mktime() function. Does anybody out there know what the
> algorithm is?
>
> --
On Wed, 2002-02-06 at 08:26, John Fulton wrote:
>
> Does anyone know which algorithm in_array() uses?
>
> For example, if I say
>
> in_array("foo", $arr)
>
> Does in_array() do an unordered sequential serach of $arr for
> "foo" which takes up to n comparisons [where n = count($arr)],
> or d
On Wed, 2002-02-06 at 07:27, Ben Crawford wrote:
> You also seem to have an extra equals. Your loop should read:
>
> while (false != ($file=readdir($handle))){
>
> It should come up as an error, but I'm not sure.
>
> Ben
No, that's the 'identical' operator, which returns true when its
operands
On Wed, 2002-02-06 at 15:33, Jeff Sheltren wrote:
> At 10:27 AM 2/6/2002 -0500, Ben Crawford wrote:
> >You also seem to have an extra equals. Your loop should read:
> >
> >while (false != ($file=readdir($handle))){
>
> I think you could eliminate the "false !=" in the while condition...
>
> It s
On Wed, 2002-02-06 at 17:36, wm wrote:
> hi,
>
> i'm fairly new to this.
>
> what i want to do is use a form so the user can specify a few different
> choices
> of things they want to buy. maybe a few radio buttons with dollar
> amounts and
> then possibly a couple of quantity fields for items.
On Wed, 2002-02-06 at 19:35, obo wrote:
> sorry lars. i accidentally just emailed you back instead of posting this.
>
> i want the user to be able to see the amount being charged on the screen, but
> not to be able
> to view it in a hidden field in the source code. mos
201 - 300 of 509 matches
Mail list logo