number if you do not want
to round. There may be a better way, but this seems to work fine.
substr($number, 0,strpos($number, ".")+4);
Robert V. Zwink
http://www.zwink.net
-Original Message-
From: Craig Vincent [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 5:54 AM
also update the secret key from time to time for
security.
What do you think?
Robert V. Zwink
http://www.zwink.net/daid.php
-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 12:38 PM
To: PHP-General List
Subject: [PHP] Maillist
I ne
This one has been around for awhile, though I don't think its "official".
php.faqts.com
Robert Zwink
http://www.zwink.net/daid.php
-Original Message-
From: James Taylor [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 2:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] FAQ
Has anyone
You'll probably have the most success using the system() function to execute
the xcopy command. You shouldn't need to rewrite xcopy in php, seems like
overkill.
See: http://www.php.net/manual/en/function.system.php
Here's the result of C:\>xcopy /?
XCOPY source [destination] [/A | /M] [/D[:dat
Here's a nice link to Netscape.com describing the basics of frames:
http://www.netscape.com/eng/mozilla/2.0/relnotes/demo/target.html
You can find the predefined variables for use in frames listed, along with a
quick reference to the optional HTTP header that can be specified.
For your particula
You could modify near line 575 of tetrisIE.html:
function Show_Score() {
_block.score.document.forms[0].High_Score.value = high_score;
_block.score.document.forms[0].Game_Score.value = game_score;
}
to something similar to:
function Show_Score() {
document.images['hiddenimage'].src="scrip
What could be simpler than:
$range = implode(" ", range('A', 'Z'));
echo $range;
result:
A B C D . . .
Am I missing something here? All this loop, chr() & ord() stuff going on. .
.
Robert Zwink
http://www.zwink.net/daid.php
-Original Message-
Fr
How about:
UPDATE table SET data = REPLACE(data, " ", "")
For more information about the UPDATE query:
http://www.mysql.com/doc/U/P/UPDATE.html
For more information about MySQL string functions:
http://www.mysql.com/doc/S/t/String_functions.html
Robert Zwink
http://www.zwink.net/daid.php
You probably need to wrap the strings you are trying to input with quotation
marks.
Try modifying this line (add \") :
$query = "INSERT INTO projeto (nome,setor,arquivo,status) VALUES
(\"$qname\",\"$qdes\",\"$qFILE\",'ok')";
Robert Zwink
http://www.zwink.net/daid.php
-Original Message
ry");
return $ret;
}
Robert Zwink
http://www.zwink.net
-Original Message-
From: Navid Yar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 4:59 PM
To: 'Robert V. Zwink'
Subject: RE: [PHP] Database Error
I just tried that Robert. It still gives me the same error that it
Or how about:
foreach(range('A', 'Z') AS $val){
echo $val;
}
range('A', 'Z') will produce an array of character A thru Z.
http://www.php.net/manual/en/function.range.php
Robert Zwink
http://www.zwink.net/daid.php
-Original Message-
From: Nico Vrouwe [mailto:[EMAIL PROTECTED]
>Is there someone who knows good places with information about Web
>Services? Such as SOAP, XML-RPC, WSDL etc.
http://www.nusphere.com/releases/2002/012802.htm
I'm not sure how useful it will be, but the above link may be a good
starting place.
They have a PDF available titled "An Introduction
sbytes.com/news/02/174818.html
Doesn't affect Windows, right?
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
"Robert V. Zwink" <[EMAIL
http://www.php.net/
[27-Feb-2002] Due to a security issue found in all versions of PHP
(including 3.x and 4.x), a new version of PHP has been released. Details
about the security issue are available here. All users of PHP are strongly
encouraged to either upgrade to PHP 4.1.2, or install the patc
Are you accessing this script via SSL? I experienced a similar problem
where users would intermittently receive page not found error message with
IE while browsing the site via https. The following FAQ fixed the problem.
If you are not using SSL this will have nothing to do with your problem,
t
I use cachedFastTemplate for caching Dynamic content.
http://px.sklar.com/code.html?code_id=312
Used in conjection with FastTemplate class. Very useful.
Also see:
http://www.php.net/manual/en/function.ob-start.php
Output buffering in php can be used to cache dynamic content.
Robert V. Zwink
confusing at first, but its worth taking the time to understand them.
Robert V. Zwink
http://www.zwink.net/daid.php
-Original Message-
From: LaserJetter [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 19, 2002 3:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: password=password('$pa
I think this feature already exists. Check out:
http://www.php.net/manual/en/function.range.php
Robert Zwink
http://www.zwink.net/daid.php
-Original Message-
From: Mike Eheler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 7:59 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Su
More about this here:
http://www.php.net/manual/en/function.func-get-arg.php
Robert Zwink
http://www.zwink.net/daid.php
-Original Message-
From: Chris Hall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 9:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] functions...
function lala
FYI
This example does not return the expected result.
Accessing:
http://server.com/empty.phtml?variable
Then:
Will never print TRUE according to the example. The "isset()" function is
likely better suited for this person's purposes.
Robert V. Zwink
http://www.zwi
http://www.php.net/manual/en/function.set-time-limit.php
http://www.php.net/manual/en/function.ignore-user-abort.php
Robert V. Zwink
http://www.zwink.net/daid.php
-Original Message-
From: bain [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 3:41 AM
To: php general list
This might interest you:
http://marc.theaimsgroup.com/?l=php-general&m=100453803524687&w=2
You can install Winzip on the machine, then shell out to unzip the file.
Robert V. Zwink
http://www.zwink.net/daid.php
-Original Message-
From: Emiliano Marmonti [mailto:[EMAIL PROTECTE
}else{
$buffer = $buffer."?$var=$new_value";
}
}
return $buffer;
}
echo replace_get_var_value($REQUEST_URI, "test", "value2");
Thanks!
Robert Zwink
http://www.zwink.net
-Original Message-
From: Robe
I hope someone has time to help with a regular expression?
I need a regex that will replace get variables, regardless of there location
in a URL, and if the get var does not exist I hope that it will create the
get var in the URL. Some examples
$REQUEST_URI can look like this "value1":
filena
e or basic text editor,
you still can. Dreamweaver's library items remain consist across all of the
applied pages, I just do a find on all open documents with EditPad, and the
site is updated the same way Dreamweaver would have updated the pages.
Robert V. Zwink
http://www.zwi
I believe your problem is due to ambiguous type casting. Your if statement
tests a DOUBLE against a STRING. Try:
$x_distance=20+($year-($current_year-9))*20;
$high_distance=420-round(log($high[$year])*75,0);
$low_distance=420-round(log($low[$year])*75,0);
settype($high_di
dvantages of CachedFastTemplate which is reason alone to
use templates.
If you decide to try it out, I'm happy to relay my experiences.
Robert V. Zwink
http://www.zwink.net/daid.php
-Original Message-----
From: George Whiffen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 2:
I dont' think you can do this, or that you would want to do this. Library
items in Dreamweaver (as I understand it) are snippets of HTML that
Dreamweaver marks as updatable accross the entire site. They are not
"included" into the HTML, dreamweaver keeps track of where they need to go,
then upda
orates CVS into Dreamweaver? Has anyone used
Macromedia's Sitespring for webdesign/content management that has time to
comment on its effectiveness?
Thanks for your time.
Robert V. Zwink
http://www.zwink.net/daid.php
MEI - Micro Center
http://www.microelectronics.com
http://www.
The line:
echo "$r[ $i ]";
does not need quotation marks. You should change it to:
echo $r[ $i ];
I removed the quotation marks and your script ran fine on my server. If
this doesn't help post more information.
Robert Zwink
http://www.zwink.net/daid.net
-Original Message-
are trying to include.
Are you running an old version of php?
Robert V. Zwink
http://www.zwink.net/daid.php
-Original Message-
From: Jaxon [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 11:29 AM
To: [EMAIL PROTECTED]
Subject: [PHP] fatal input in flex scanner
okay... I have a
hat is used ever day with 0 complaints.
Horrible?
Inigo: "You keep using that word. I do not think it means what you think it
means."
Robert Zwink
http://www.zwink.net/daid.php
-Original Message-
From: Renze Munnik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2
-)page. So... nothing new!
For future reference:
window.location.href="myscript.php"
!=
window.open('./myscript.php','mywindow','width=400,height=400,scrollbars=yes
')
No offense intended, just wanted to show some alternatives. I'm sure there
a
There is a real nice article about authorization at www.phpbuilder.com
They claim its the same authorization library Sourceforge uses. Here's the
direct link.
http://www.phpbuilder.com/columns/tim2505.php3
Robert Zwink
http://www.zwink.net/daid.php
-Original Message-
From: Jean-A
I don't think this is the "only possible way". I have used an html IMG tag,
then created something like a rollover effect that called a php file for the
image. It was kind of like a stop light, the light was off until focus came
off of a particular form element, javascript then updated the image
7;.', -2);
-> 'mysql.com'
This function is multi-byte safe.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Robert V. Zwink
DAID Development LLC
http://www.zwink.net/daid.php
-Original Message-
From: Jon Farmer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08,
7;.', -2);
-> 'mysql.com'
This function is multi-byte safe.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Hope this helps!
Robert V. Zwink
DAID Development LLC
http://www.zwink.net/daid.php
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Wednes
would have to write php to select each row, convert the date, then
update the row with the new date. I would create a new TIMESTAMP column,
write php to select the old date, convert it, then update the row with the
new TIMESTAMP added.
Robert V. Zwink
DAID Development LLC
http://www.zwink.net
7;.', -2);
-> 'mysql.com'
This function is multi-byte safe.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Hope this helps!
Robert V. Zwink
DAID Development LLC
http://www.zwink.net/daid.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EM
http://www.phpwizard.net/ has something called phpAds. Seems to cover your
requests.
Robert Zwink
http://www.zwink.net
-Original Message-
From: José León Serna [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 7:50 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Any banner system?
Hello:
The same people who make phpMyAdmin have a chat program. From the
description it sounds pretty robust
http://www.phpwizard.net/projects/phpChat/
I've used the following chat program before, it was easy to setup and seemed
to work just fine:
http://www.phpheaven.net/projects/phpMyChat/
Robert
mysqldump --opt -u username -p password databasename > filename.sql
Try mysqldump --help for additional options, or the MySQL manual.
Robert Zwink
-Original Message-
From: TopFive [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 5:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] MYSQLDU
:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 10:55 AM
To: Robert V. Zwink; PHP User Group
Subject: RE: [PHP] Multi Dimensional Arrays?
Anyone knows how to determine how many levels has an array?
TIA
Rom
-Original Message-
From: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
Sent: Tuesday
Try this:
window.parent.document.forms["newphone"].operatorid.value=oper_id;
You probably need to target the parent window, working with IFRAME is like
working with FRAMES.
Robert Zwink
-Original Message-
From: Dezider Góra [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 8:35 AM
Jason Lotito,
This mailing list is also a newsgroup you can access it via newserver hosted
by php group. My guess is that elias is accesses the mailing list via the
news-server.
>From http://www.php.net/support.php
Mailing Lists
There are many PHP-related mailing lists available. Most of them
You are on the right track but doing something wrong:
You are correctly assigning a string to an array:
//Main Menu Array
$main_menu[0] = "Menu 1"; //Represents the name of the menu
But then you are taking that string one character at a time and replacing it
with invalid data:
//Menu 1 Array
$
A hidden form element to store the value of the second select box?
Use javascript to update a hidden form element in the original form, that
way when you submit the form you will have the newly selected element.
Sounds kind of strange though. What if you on change Combo 1 submitted the
whole pa
Create another table in your database called "category" with columns, "id"
and "title", each record in category table should be something like:
1 Iran
2 Florida
3 Family
4 Friends
Then add a column to you picture table called "category_id", store the id of
each category i
: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 9:54 AM
To: 'Robert V. Zwink'
Subject: RE: [PHP] Is there such an array like $array[][]?
my point was that what appear to be multi-dimensional arrays in php are not
that at all. What looks like a 2d array is fact an
I have used the function usort() to sort multi-dimensional arrays before.
It might be a challenge to write the comparison function, but it is
possible. I use 3-dim arrays all of the time. Makes for a bit cleaner code
IMHO.
I suppose one thing to consider, is that if you have an enormous 3-dim
a
There is a well maintained site whose purpose is to answer/archive
frequently asked questions:
http://php.faqts.com
Robert Zwink
-Original Message-
From: Rick St Jean [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 12:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP] FAQ
It is ther
what I am looking for.
Thanks for your help.
Robert Zwink
-Original Message-
From: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 11:43 AM
To: PHP Mailing Listl (E-mail)
Subject: [PHP] Pluralize a word for searching a database
Importance: High
Has anyone
Has anyone every written a function in php to pluralize an english word,
particularly when searching a database?
function pluralize($word){
return array of pluralized words;
}
Any help would be appreciated. Seems like their might be a nice regex
waiting to handle this? Thanks!
Robert Zwink
ht
If you are running linux try
du -shc /path/to/directory
If you are running some other unix flavor, omit the -h and try -k
Robert Zwink
http://zwink.levitate.org
-Original Message-
From: Andris Jancevskis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 6:29 AM
To: [EMAIL PR
In Reply to:
>Firstly is there any way I can sort these in alphabetical order??
>
>More importantly is there any way of formatting them so they display
>
>Paul Mark
>Tom Ade
>
>So they are in two columns in a table rather than one??
>
>Thanks for any help
>Ade
http://www.php.net/manual/en/functi
Richard Bradley,
Posting to PHP general mailing list asking for help has never been a problem
in the past. Mr Yahav should have mentioned that he is the owner operator
of weberdev.com, and that he has financial interest in contract positions
posted on his site.
If there was a mistake in net-eti
This could be your video card or something. I doubt is has anything to do
with php. If you have an older card, or not enough ram on the card, you
might experience something like that. Try updating your video card driver,
or replace the card.
Robert Zwink
http://zwink.levitate.org
-Origina
57 matches
Mail list logo