the correct country code.
Browsers in most places will send a Content-language: en regardless of
what country the user's browser is running within.
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
On Wed, Jan 09, 2002 at 03:47:16PM -0800, Todd Cary wrote:
:
: I forgot the parameter to change in httpd.conf so when the trailing /
: is left off, the index.html will be executed. Anyone know the
: parameter?
DirectoryIndex index.html index.htm
--
Eugene Lee
[EMAIL PROTECTED
Is there a way to benchmark a PHP script to see how intensive it is?
For example, execution time, CPU/RAM/disk usage, etc. Thanks in advance.
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
On Wed, Jan 16, 2002 at 05:41:34PM +0900, Yasuo Ohgaki wrote:
:
: Eugene Lee wrote:
:
: Is there a way to benchmark a PHP script to see how intensive it is?
: For example, execution time, CPU/RAM/disk usage, etc. Thanks in advance.
:
: Try APD.
Thanks. It'll be a decent start. Getting
a look at
Design Patterns: Elements of Reusable Object-Oriented Software by
Gamma, Helm, Johnson, Vlissides.
Also, from the ColdFusion world, there are framework architectures like
Fusebox whose concepts are supposed to be language-independent.
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General
then in your PHP script do something like:
?php
exec('/usr/bin/nohup /etc/shutdown 1/dev/null/ 21 ');
?
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
suggestions or comments are welcome. Much thanks in advance!
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to be double-quoted too...
:
: echo OPTION VALUE=\$option_value\$option_text/OPTION\n;
Why stick with quotation marks?
echo OPTION VALUE='$option_value'$option_text/OPTION\n;
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Why not go to the source?
http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
command chown to change the directory ownership.
: Now, I get an error saying opperation not permitted.
The 'chown' command can only be executed by the superuser.
The next question to ask is, why do you want this PHP-created directory
to be owned by a different user?
--
Eugene Lee
[EMAIL
.
http://www.php.net/manual/en/html/language.variables.predefined.html
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- place the full path to this file on this LoadModule line.
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
into DSOs. What does httpd -l
report?
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, May 10, 2002 at 11:34:28PM +0200, Andy wrote:
: Eugene Lee [EMAIL PROTECTED] asked:
: On Fri, May 10, 2002 at 09:53:10PM +0200, andy wrote:
: :
: : I did just build abpache and php. Unfortuanatelly the http.conf
: : looks quit different to one I did install last year
(php version 4.2.1 on linux) register_globals = Off
: how I read variables from html files with forms in other php file ?
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP 4.0.6 has been out for 3 months now. Any word on the next update?
--
Eugene Lee
[EMAIL PROTECTED]
--
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
OS X.
As for PHP supporting named parameters, it seems silly to preserve C's
use of parentheses. Why not do something more radical like Objective-C
that draws from Smalltalk syntax:
$bar = [foo par2:10]
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net
not
: exist' warning. (Sterling)
:
: http://cvs.php.net/co.php/php4/NEWS
When will 4.2.0 be released? If it's not within a few weeks, I think
it's more senseful to do a point-point release (e.g. 4.1.1) that is just
a bug fix (and no new features) for this and other problems.
--
Eugene Lee
[EMAIL
language. You can create
: any functions you want and call them already from a ? ? combination
:
: ?=myFunction($params);?
ColdFusion 5 finally allows users to define functions, so the above
strength for PHP is now a strength for ColdFusion.
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General
Like the subject says, is there a downloadable version of the Annotated
PHP Manual? I'm not always connected to the Internet, so this would be
a great help. Thanks in advance.
--
Eugene Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
On Wed, Sep 12, 2001 at 10:14:29PM -0400, Jack Dempsey wrote:
: Eugene Lee [mailto:[EMAIL PROTECTED]] asked:
:
: Like the subject says, is there a downloadable version of the Annotated
: PHP Manual? I'm not always connected to the Internet, so this would be
: a great help. Thanks
.
: You can find it in the $_SERVER variable.
: FYI: The referer is not a reliable information.
Several Windoze firewalls also filter out HTTP_REFERER.
--
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote:
: Eugene Lee mentioned:
:
: Several Windoze firewalls also filter out HTTP_REFERER.
:
: what can you suggest, im trying to do a referer email program on a website
: and i think HTTP_REFERER will be my first approach, but limited
On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote:
: Eugene Lee mentioned:
: On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote:
: : Eugene Lee mentioned:
: :
: : Several Windoze firewalls also filter out HTTP_REFERER.
: :
: : what can you suggest, im trying to do
Something I've noticed in PHP is a proliferation of code like this:
input name=stuff[title] value= type=text size=40
According to the specs, the square brackets in stuff[title] are
technically illegal.
http://www.w3.org/TR/html4/types.html#h-6.2
ID and NAME tokens must
On Sat, Sep 13, 2003 at 11:24:56AM -0700, Michael Winston wrote:
:
: The request: Can the macintosh character set be added as an option for
: htmlentities() and other commands? That would be so helpful for our
: mac-based company.
:
: The problem: I'm fairly new to php and have found that
On Sat, Sep 13, 2003 at 06:15:29PM +, Curt Zirzow wrote:
: * Thus wrote Eugene Lee ([EMAIL PROTECTED]):
: Something I've noticed in PHP is a proliferation of code like this:
:
: input name=stuff[title] value= type=text size=40
[...]
: The way to properly do it would be to set set your
On Mon, Sep 15, 2003 at 02:15:56AM +0200, Ryan A wrote:
:
: Its a version problem, UNION was not implempted till V4, and my host has
: V3.23
: Anybody know of a work around with my code? I have found some work arounds
: on google but its too advanced for me...i dont really understand left joins,
On Mon, Sep 15, 2003 at 07:58:25AM +0800, Louie Miranda wrote:
: Eugene Lee mentioned:
: On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote:
: : Eugene Lee mentioned:
: : On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote:
: : : Eugene Lee mentioned
On Mon, Sep 15, 2003 at 08:59:53PM +0100, Wei Wang wrote:
:
: This may sound very newbie. But since html comment uses !-- --
: which doesn't comment out the php code. And the php comment /**/ //
: apparently doesn't work on html. So how do I comment out a chunk of
: html/php mixed code?
Remove
: Kris Yates [EMAIL PROTECTED] wrote:
:
: I forget where but I found some source awhile back that abbreviated
: echo. It was something like
: ?=$var;? which worked the same as ? echo $var; ?. Maybe it was
: ?\=$var;?.. Obviously I dont remember.. which is why I am asking..
: :) Does
On Tue, Sep 16, 2003 at 03:30:39PM +, Curt Zirzow wrote:
: * Thus wrote Maria Garcia Suarez ([EMAIL PROTECTED]):
: --- Javier Tacon [EMAIL PROTECTED] wrote:
:
: Try with $_SERVER[PHP_SELF]
:
: Then I get:
:
: Parse error: parse error, unexpected
: T_ENCAPSED_AND_WHITESPACE,
On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote:
:
: switch ($var) {
: case 'TEST-1': case 'TEST-2': case 'TEST-2':
: do something
: }
The switch statement doesn't do an equivalency test, does it? So while
this switch statement can be rewritten as:
if (($var
On Wed, Sep 17, 2003 at 01:29:26PM +1000, Tom Rogers wrote:
: Wednesday, September 17, 2003, 11:47:45 AM, Eugene Lee wrote:
:
: EL The switch statement doesn't do an equivalency test, does it?
[...]
: EL it doesn't do:
:
: EL if (($var === 'TEST-1') ||
: EL($var === 'TEST-1
One thing that's always bothered me about PHP is that the function names
are not terribly consistent. For example, when are underscores okay?
strip_tags() has an underscore but stripslashes() does not. Also,
should inverse functions be named appropriately? htmlentities() and
On Thu, Sep 18, 2003 at 05:31:52PM -0400, Tim Thorburn wrote:
:
: As this is a very small market, for this one client I did not create a
: contract - there was however a very detailed proposal which did not include
: any source files. Whether it'll stand or not, we also had a verbal
:
On Fri, Sep 19, 2003 at 02:39:21PM +1000, Justin French wrote:
:
: Re-enforcing this is the fact that (AFAIK) no Mac browsers display
: in-line PDFs via a plug-in -- they open 'Acrobat' or 'Preview' to
: display them -- in other words, the PDF file should not be considered
: part of the web
If I have a block of text saved in an external text file, e.g.:
All {$badstuff} and no {$goodstuff} makes {$name} a dull {$type}.
after reading the text into a string, is there a way to force variable
expansion? In a sense, it's like having a heredoc for multiline strings
with variable
On Fri, Sep 19, 2003 at 03:50:40PM -0500, Jay Blanchard wrote:
:
: Eugene Lee asked:
:
: If I have a block of text saved in an external text file, e.g.:
:
: All {$badstuff} and no {$goodstuff} makes {$name} a dull
: {$type}.
:
: after reading the text into a string, is there a way
On Fri, Sep 19, 2003 at 09:14:57PM -0400, Stevie D Peele wrote:
:
: How can I clear all cookies that have been previously set?
:
: I want this in an if statement so something like
:
: if ($value == $blue){
: clear all cookies;
: setcookie(name,time()+3600);
: }
Walk through your $_COOKIE array
On Sat, Sep 20, 2003 at 02:14:54AM -0400, Robert Cummings wrote:
: On Sat, 2003-09-20 at 01:53, Dan Anderson wrote:
:
: I find your responses to my e-mails quite humorous. Upon review --
: aside from a single WTF -- I don't think I was condescending in any way
: shape or form. I was just
On Sat, Sep 20, 2003 at 06:19:25PM -0400, Stephen Tiano wrote:
:
: I'm on a Mac PowerBook. I'm able to locate the php.ini file. But when I
: open it with BBEdit, it's a blank page. I just want to open it and
: either view it, or make a copy to view. But all I have is the blank. Any
:
On Sun, Sep 21, 2003 at 09:10:16AM -0700, Raquel Rice wrote:
:
: On Wed, 17 Sep 2003 21:22:36 +1000
: Justin French [EMAIL PROTECTED] wrote:
:
: I posted a similar topic a few months back. I guess the answer is
: that the collaborative nature of open source, and the fact that
: PHP has grown
On Sun, Sep 21, 2003 at 03:01:41PM -0400, Rich Fox wrote:
: Eugene Lee [EMAIL PROTECTED] wrote:
:
: If I have a block of text saved in an external text file, e.g.:
:
: All {$badstuff} and no {$goodstuff} makes {$name} a dull {$type}.
:
: after reading the text into a string, is there a way
On Mon, Sep 22, 2003 at 10:18:21AM +0200, Marek Kilimajer wrote:
:
: Eugene Lee wrote:
:
: But I don't know what might happen if you use setcookie() to expire a
: cookie and then use setcookie() later on to set the same cookie.
:
: www.php.net/set_cookie :
:
: In PHP 3, multiple calls
On Tue, Sep 23, 2003 at 12:28:12AM +, Curt Zirzow wrote:
: * Thus wrote Chris W. Parker ([EMAIL PROTECTED]):
:
: I am looking for an editor that will highlight the string
: {$array['index']['index']} within a string.
:
: For example:
:
: +- gray +
:
On Tue, Sep 23, 2003 at 09:01:19PM +0100, [ PAUL FERRIE ] wrote:
:
: God i hope this is simple :)
It is. I think. :-)
: I have news bloggs section on my site. At present the news is loaded in
: from a txt file, most of the site is now running with most sections being
: loaded via mysqldb's.
On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote:
:
: Robert Cummings mailto:[EMAIL PROTECTED] said:
:
: foreach( $data as $key = $value )
:
: I don't use that syntax much so I'm not familiar with it. Maybe I should
: start eh?
Another caveat: it works on a *copy* of the array.
On Tue, Sep 23, 2003 at 05:44:46PM -0400, Robert Cummings wrote:
: On Tue, 2003-09-23 at 17:37, Eugene Lee wrote:
: On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote:
: :
: : Robert Cummings mailto:[EMAIL PROTECTED] said:
: :
: : foreach( $data as $key = $value )
: :
: : I
On Wed, Sep 24, 2003 at 01:04:45PM -0400, Kevin Bruce wrote:
:
: Thanks:) I'll give BBedit a go for a week and let you know how it turns out.
: Yes, Dreamweaver does sucketh much, but it's great for hashing out the page
: (WYSIWYG style) then tweeking the code. I Hate (capital H) hand typing
:
On Thu, Sep 25, 2003 at 10:48:19AM +0530, Uma Shankari T. wrote:
:
: I am using strpos function for finding the string position in a
: particular string .If the string value is equal to zero or greater
: than zero some steps to be executed. If the position is empty it is taking
: as zero
On Thu, Sep 25, 2003 at 10:01:48PM +0200, Ryan A wrote:
:
: I am running a query on the database to get the avg of a few fields, I am
: getting a result something like this:
:
: 5.
: 4.
: 5.
:
: I dont want to use such big averages and want to cut the last to digits off
: so it will
On Sun, Sep 28, 2003 at 12:49:27PM +0200, Karina S wrote:
:
: I want to use an image as submit button on my form. Now I use the following
: code with button:
:
: if (!(isset($_Post['SubmitForm'])))
: {
: ...
: .
: input type=submit name=SubmitForm value=Submit
: }
:
On Sun, Sep 28, 2003 at 12:52:40PM +0200, anders thoresson wrote:
:
: I wonder if someone can point me to tutorials that uses real PHP examples
: instead, examples that shows me in a direct way how to use OOP. My biggest
: trouble right now is what should be the classes and what should be the
On Sun, Sep 28, 2003 at 01:20:32PM +0200, Karina S wrote:
:
: I have changed the code, but it doesn't work.
:
: if (!(isset($_Post['SubmitForm_x'])))
: {
: ...
: .
: input name=SubmitForm type=image src=image.gif alt=SubmitForm
: }
: else
: {
: .
: }
1. The
On Sun, Sep 28, 2003 at 08:53:13PM -0400, Mike Brum wrote:
:
: I think I know the answer to this, but want some confirmation from someone a
: bit more knowledgable about Apache and .htaccess files.
Okay.
: My webhost has the default 404 page set to 404.html. For the sake of
: consistancy on a
On Mon, Sep 29, 2003 at 01:43:08PM +0200, Angelo Zanetti wrote:
:
: Marek Kilimajer suggested:
:
: Angelo Zanetti wrote:
:
: I have a table that is populated from a database which gets the
: IDs of the records from a php array.Every row in the table has a
: checkbox next to the actual
On Mon, Sep 29, 2003 at 07:49:40AM -0500, Donald Tyler wrote:
:
: Decapode Azur asked:
:
: How can I get the values of 'max_execution_time', 'max_input_time' and
: 'memory_limit' from my php script ?
:
: Just incase you weren't aware. You can change the Max execution time
: during the script
On Sun, Sep 28, 2003 at 06:58:57PM -0700, Ed Kwok wrote:
:
:I am running into problem parsing a file exported from MS excel. I
: have exported the file as asci format, but there is a control M
: append to my document. What is this control M and how can I delete
: without manually replace
On Mon, Sep 29, 2003 at 05:46:15PM -0400, Matt Palermo wrote:
:
: I have a form that a user can fill out. In the text input field I allow
: them to insert HTML tags with their input data. They can then submit the
: form for processing. The problem is that later on when they go to edit
: their
On Tue, Sep 30, 2003 at 02:40:42AM -0400, Joe Harman wrote:
:
: I am looking for some guidance... I am using PHP to make dynamic
: buttons... Is the PNG image format a pretty safe thing to go with...
: Standard wise?
PNG support in M$ IE is still shaky.
--
PHP General Mailing List
On Tue, Sep 30, 2003 at 09:10:44AM -0700, Chris W. Parker wrote:
:
: Angelo Zanetti mailto:[EMAIL PROTECTED]
: on Tuesday, September 30, 2003 5:43 AM said:
:
: hi I have a table with rows and each row contains a checkbox ( array)
: and a record. TD of the checkbox:
: echo(td width=15
(about M$IE and PNG)
On Wed, Oct 01, 2003 at 11:31:46AM +0900, - Edwin - wrote:
:
: Curt Zirzow [EMAIL PROTECTED] wrote:
:
: It does have a problem reading alpha channels in the pngs though.
:
: Quite true. (I forgot that part...) Though it seems like it's not a
: problem for the IE on
On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote:
:
: Got a problem with htmlspecialchars being too greedy, where
: for example, it converts
: foo;
: to
: amp;foo;
:
: Yes it displays correctly in the browser for some content, but not all.
: (an example is posted below)
: So I
Just tried installing Turck MMCache 2.4.1 on a FreeBSD box. After
tweaking the configure script:
./configure --enable-mmcache=shared
--with-php-config=/usr/local/bin/php-config --prefix=/usr/local
I got it to compile and install in:
On Wed, Oct 01, 2003 at 04:41:28PM +0900, - Edwin - wrote:
:
: (Sorry if this is becoming OT...)
:
: Eugene Lee [EMAIL PROTECTED] wrote:
:
: M$IE for the Mac uses a completely different codebase from the
: Windoze version and started with the home-grown Tasman engine, which
: at the time
On Wed, Oct 01, 2003 at 11:02:47AM +0300, Fatih Olcer wrote:
:
: how can i get the image width and height ?
1. imagesx() and imagesy().
2. please try checking the online manual first, in the appropriate section:
http://www.php.net/manual/en/ref.image.php
--
PHP General Mailing List
On Wed, Oct 01, 2003 at 11:49:29AM +0200, Angelo Zanetti wrote:
:
: I looked at the PHP manual and it doesnt say much about this function.
: what I want to know is that, do the 2 arrays have to have the same
: length of number of elements?
Nope.
Re-examine Example 1: $array1 and $array2 are
On Wed, Oct 01, 2003 at 08:18:21AM -0700, Eric Rounds wrote:
:
: We have PHP 4.2 installed on Mac OS X under Apache.
:
: The settings in the php.ini file are:
:
: sendmail_from - [EMAIL PROTECTED]
: sendmail_path - /usr/sbin/sendmail -t -i
: SMTP - localhost
: smtp_port - 25
Make sure that
On Wed, Oct 01, 2003 at 01:07:35PM -0400, Rich Fox wrote:
:
: Can someone point me to documentation on the operator? I am wondering if
: there are some quirks I don't know about. Yet I can't find it documented on
: the php website.
Try searching for heredoc.
--
PHP General Mailing List
On Wed, Oct 01, 2003 at 08:31:49AM -0700, Eric Rounds wrote:
:
: On Wednesday, October 01, 2003, at 08:26AM, Eugene Lee wrote:
:
: Make sure that Sendmail is enabled and running on OS X. By default,
: Sendmail is disabled on OS X.
:
: Thank you! I will let the administrator know
On Wed, Oct 01, 2003 at 02:02:08PM -0400, Gerard Samuel wrote:
: CPT John W. Holmes wrote:
: From: Eugene Lee [EMAIL PROTECTED]
: On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote:
: :
: : Got a problem with htmlspecialchars being too greedy, where
: : for example, it converts
: : foo
On Thu, Oct 02, 2003 at 02:23:44AM +0800, Jason Wong wrote:
: On Thursday 02 October 2003 01:28, Eugene Lee wrote:
: On Wed, Oct 01, 2003 at 08:31:49AM -0700, Eric Rounds wrote:
: :
: : By the way, is there a way I can check, without looking into the
: : serving Mac, to see if it is running
On Wed, Oct 01, 2003 at 02:46:14PM -0400, Gerard Samuel wrote:
:
: When I say that I don't know what characters Im expecting.
: Im not talking about normal html entities, like amp; nbsp lt;
: Im talking about chinese/japanese/korean/taiwanese alphabet, numbers
: (even punctuation if applicable).
On Thu, Oct 02, 2003 at 05:15:32PM +0900, - Edwin - wrote:
:
: On Thu, 2 Oct 2003 01:54:43 -0500 Eugene Lee [EMAIL PROTECTED] wrote:
:
: There's two issues: input and output.
:
: HTML character references address the problem of displaying certain
: characters on a web browser
On Wed, Oct 01, 2003 at 07:50:10PM -0700, Richard Baskett wrote:
:
: Well I saw a post on a forum talking about a certain bug that PHP has for
: Mac OS X.. so I thought.. Im on OS X, I should see if that bug is real since
: on bugs.php.net they say it's bogus which you can view here:
:
:
On Thu, Oct 02, 2003 at 10:44:15AM +0200, Angelo Zanetti wrote:
:
: I am getting some weird results when using the array_diff() function.
:
: eg: $arrayResult = array_diff($array1, $array2);
:
: When i use it the resulting array ($arrayResult) gets the correct number of
: elements, however when
On Thu, Oct 02, 2003 at 11:28:23AM +0200, Angelo Zanetti wrote:
:
: I know what the problem was, firstly that when doing an array_diff the keys
: are preserved. Therefore If I was looping through $arrayResult for the count
: of elements (in this case 2) then thats where the blank value comes in.
On Thu, Oct 02, 2003 at 01:36:04PM +0100, bob pilly wrote:
:
: Does anyone know if there is a date difference function in php? I have
: searched the manual but found none. What im after is a function that
: will return the number of days or seconds between a start date and a
: second date. Much
On Fri, Oct 03, 2003 at 11:27:25AM +0800, [EMAIL PROTECTED] wrote:
:
: I have tried using the methos you have mentioned. But it was not
: successful as the cell doesn't seem to be able to GET the COLOUR
: selected from the drop down menu. This is a small part of my code :
:
: td
On Fri, Oct 03, 2003 at 10:22:55AM +0100, [EMAIL PROTECTED] wrote:
:
: I'm trying to build an associative array from a database result. How can I
: assign a new key and value pair
:
: eg
:
: mysql_fetch_row etc
: {
: dbRowCol1 = myarray(key)
: dbRowCol2 = myarray(value)
: }
:
: You get the
On Fri, Oct 03, 2003 at 06:11:39PM +0800, Jack wrote:
:
: I had write a script using php,which will pull the values from a mysql table
: to display in HTML.
: now i want to add a function which when the mouse had move over a table
: cell, the background of the table cell will turn to other color!
On Fri, Oct 03, 2003 at 04:31:23PM +0100, [EMAIL PROTECTED] wrote:
:
: I currently remember my visitors on my site by setting a cookie thusly:
:
: setcookie(logged, yes);
:
: On each protected page, put an IF ($logged == yes) { //show page etc }
: else {//show login form etc }
You should use
On Fri, Oct 03, 2003 at 08:57:17AM -0700, Chris Shiflett wrote:
:
: --- Eugene Lee [EMAIL PROTECTED] wrote:
:
: On each protected page, put an IF ($logged == yes) { //show page etc }
: else {//show login form etc }
:
: You should use $_COOKIE['logged'] instead. :-)
:
: While we're
On Fri, Oct 03, 2003 at 02:14:14PM -0500, Jay Blanchard wrote:
: [snip]
:
:$foo = exec(du -h);
:
: Hmmm this solution would appear to include the file sizes :D
:
: man du :D
:
: et du?
LMAO! :-D
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Sun, Oct 05, 2003 at 04:46:16AM -0400, zzz wrote:
:
: I'm trying to strip comments out of my code. I can get it to strip one
: section of comments but the problem comes in when I have more then one
: comment section to strip.
:
: I am using this: $code = preg_replace('/\/*(.*?)*\//is', '$1',
On Sun, Oct 05, 2003 at 09:58:55PM -0500, John Nichel wrote:
: [EMAIL PROTECTED] wrote:
: Jason Wong wrote:
: On Monday 06 October 2003 07:34, Roy W wrote:
:
: Is there a way to attach a file with the mail() function?
:
: Yes.
:
: Is there a way to have PHP print out Hello World?
:
: Mr Wong
On Mon, Oct 06, 2003 at 12:36:49PM +0200, Tit Black Petric wrote:
:
: Not really what i was getting at dude, i dont see how defining a class
: variable will let me define a method outside of a given class, or to
: dynamically extend/implement other classes inside a general one?
Why the desire to
On Tue, Oct 07, 2003 at 03:48:27PM +0200, Alex Ciurea wrote:
:
: is it possible to show the live-clock from the server machine, using
: php and javascript, without having to make refresh of that page?
AFAIK, no.
PHP scripts get their time information from the server. JavaScript can
get its
On Tue, Oct 07, 2003 at 01:02:36PM -0400, Pat Carmody wrote:
:
: Calling the following retor_test() function causes a Parse error: parse
: error, unexpected T_RETURN message when the script is run:
:
: function istrue() {
: return true;
: }
: function retor_test() {
: istrue() or return(
On Wed, Oct 08, 2003 at 03:08:44PM +0100, Shaun wrote:
:
: is there a function in PHP that will work out the amount of time(hours)
: beween two different dates / times?
Just convert the two times into Unix timestamps, subtract one from the
other, and the difference is the amount of time in
On Wed, Oct 08, 2003 at 11:56:51AM -0400, LiteSpeed Information wrote:
:
: We glad to introduce you LiteSpeed Web Server 1.1.
So it is basically like TUX, a kernel-based web server?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Oct 09, 2003 at 10:09:19AM -0700, Jim Lucas wrote:
:
: I have the following configuration.
:
: Redhat 8.0
: Apache/2.0.40 (stock redhat install)
: PHP 4.2.2 (stock redhat install)
:
: What I get when I try and run this is an Object Not Found.
:
: Same as the ERROR 404 page not
On Fri, Oct 10, 2003 at 03:06:53PM -0700, Curt Zirzow wrote:
:
: On Fri, 10 Oct 2003 18:38:04 -0300, Cesar Aracena [EMAIL PROTECTED]
: wrote:
:
: Does anybody knows how to make a CSV (comma separated values) file
: with PHP based on results fetched from MySQL? I need it to import it
: with
On Sun, Oct 12, 2003 at 06:09:21PM +1000, Wang Feng wrote:
:
: This is the example from the php manual:
[...]
: $formatted = sprintf(%01.2f, $money);// my question comes here
: // echo $formatted will output 123.10
[...]
:
: I don't understand the meaning of the 01 above, which follows
On Sun, Oct 12, 2003 at 02:09:38AM +0200, DvDmanDT wrote:
:
: Does anyone have a good solution on how to get the age of someone from a
: date column in mysql... This is what I have, but it's not really the
: truth... What's the right way to do it?
:
: floor((time()-$a[born])/(3600*24*365.25))
:
On Sun, Oct 12, 2003 at 06:57:35PM +1000, Wang Feng wrote:
:
: If I get rid of the 0 and tried this:
:
: $price=.65;
: $f_price=sprintf(%1.2f,$price);
:
: It displays 0.65 in my Mozilla browser correctly. What do you say then?
I say, I dunno. :-) It seems to follow C's printf(3) conversion
On Sun, Oct 12, 2003 at 01:09:15PM +0200, Rosen wrote:
:
: Is there a way to determite with PHP thath site visitor is in https (SSL)
: mode or in normal mode ?
Check for the existence of $_SERVER['HTTPS'] which gets set only on SSL
pages. I wonder why it's still not mentioned in the official
On Sun, Oct 12, 2003 at 01:24:40PM +0200, Rosen wrote:
:
: I.e. if I use _SERVER[SERVER_PORT] = 443 - for https connection and 80
: for normal - i'll be able to determite if user is in https mode - I think
: thath should be works . ?
Technically, you can't guarantee that anything running over
On Sun, Oct 12, 2003 at 08:52:30PM +1000, Tom Rogers wrote:
: Sunday, October 12, 2003, 8:46:41 PM, Eugene wrote:
: EL On Sun, Oct 12, 2003 at 01:24:40PM +0200, Rosen wrote:
: EL :
: EL : I.e. if I use _SERVER[SERVER_PORT] = 443 - for https connection
: EL : and 80 for normal - i'll be able to
1 - 100 of 224 matches
Mail list logo