, then this is definitely the place
to ask.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to learn the language
without RTFM? The knowledge isn't going to just jump into your head.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
RTFM almost daily since 1998..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
=field
input type=button name=submit
/form
EOF;
?
Nice and clean, no escaping required, variables parse, all that..
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
surprises me.
Does anyone know of any tool that can handle this type of thing?
You may find this reference page useful:
http://www.cs.wcupa.edu/~rkline/perl2php/
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net
On Mon, 22 Nov 2004 21:38:00 +0100, Perry Jönsson [EMAIL PROTECTED] wrote:
What is the difference between these two examples?
diff 1.txt 2.txt
1c1
1. if ($_POST['submit'] == 'Login') {
---
2. if (isset($_POST['submit']) {
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com
long:
blockquote
This string is six words long.
/blockuote
Use strip_tags() to remove the html, then explode() the string by a
space, then count() the exploded array.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http
id in the url. As long as you connect to the same
database, your PHP session will follow you wherever your scripts live.
Someone probably has something better, but here's mine:
http://destiney.com/pub/php_db_sessions.tar.gz
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http
/fsockopen
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 18 Nov 2004 09:41:53 +0100, Peter Lauri [EMAIL PROTECTED] wrote:
What editor do you use when working with websites (php) connected directly
to the FTP?
Editplus has this ability.
http://editplus.com/
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http
Bruno b b magalhães wrote:
So, the question, how resort the numeric values to 1,2,3,4?
http://www.php.net/array_values
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
correct for some reason? (Tested in php 5.0.0,
5.0.1, and 5.0.2)
This looks like a bug to me, open a report.
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(ReflectionException $e) {}
}
}
static_my_class::format_string('a');
$a = new my_class;
$a-format_string('a');
?
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
() is reporting that
__CLASS__ is foo inside bar::b().
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
limit future flexibility.
Use inheritance like salt - as an enhancement for flavoring,
otherwise you might develop high blood pressure ;). Better is to use
delegation, factory or singleton as a way to access needed features,
because then you can easily plug in new base functionality.
Greg
error
[nativecode=Unable to complete network request to host 127.0.0.1.
Error writing data to the connection. Broken pipe]
You might try pcntl_fork() instead.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net
of the competition.
Hope to see you there.
So do you plan to send us all plane fare to London and allow us to
attend your 'great opportunity' for free?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net
construct
the function?
That's Javascript, not PHP.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
| character, it's pretty
standard and I've never seen it used as anything except a delimiter.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 16 Nov 2004 15:11:39 -0800, Dustin Krysak
[EMAIL PROTECTED] wrote:
how can you check if something is not set?
!isset()
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
On Wed, 17 Nov 2004 10:28:30 +1100, adwinwijaya
[EMAIL PROTECTED] wrote:
Hello php-general,
I have question for you :)
Is there suggestion about how to remove html tag, javascript and quote
(' ) from user's input at the same time ?
strip_tags()
str_replace()
--
Greg Donald
Zend
.
$_SERVER['QUERY_STRING'] to be exact.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 15 Nov 2004 11:21:45 -0700, Ben Miller [EMAIL PROTECTED] wrote:
That did it perfectly. Why don't any of the stupid books tell you that you
need the AS statement?
Because they assumed you would access it just like you asked for it.
$bar['SUM(Revenue)']
--
Greg Donald
Zend Certified
; ?
/BODY
/HTML
Also, your code is subject to SQL injection. You might want to
investigate PHP's addslashes() function. And maybe read this too:
http://shiflett.org/php-security.pdf
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing
and skip the PHP.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, or file_put_contents() if your PHP is new
enough. You won't need to output any headers, they only matter when
you render the file in an application such as a web client.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http
anything to do with
protecting the end user from a virus or from spyware. The execution
of a PHP script begins and ends on the web server. The output is sent
to the requester for rendering, not further execution.
Can you please explain a bit more?
--
Greg Donald
Zend Certified Engineer
http
with PYTHONHOME/PYTHONPATH/etc, ruby with
RUBYOPT/RUBYLIB/RUBYPATH/etc).
PS: I am aware of -c. It would be nice to have something like
PHP_INI_PATH/PHP_INI_DIR/PHP_INI_NAME though...
print_r($_ENV);
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP
freshmeat.
http://cpan.perl.org/
http://freshmeat.net/
For graphing in PHP I use JPGraph:
http://www.aditus.nu/jpgraph/index.php
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
- not exactly a timesaver, unless you simply give up
on making your code better :)
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
than a single connection at once. You can simulate thread
functionality to a degree using the PHP execution functions here:
http://www.php.net/manual/en/ref.exec.php
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http
.
global $defined;
db( $defined[9], $defined[1], $defined[2], $defined[3] );
... do some processing ...
What does print_r( $defined ) show you? Is that what you expect to be
in the array?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP
On Thu, 11 Nov 2004 12:42:44 -0700, Jason [EMAIL PROTECTED] wrote:
There isnt an error at all.
How could there be an error? You're using @ to suppress nearly every
mysql function call. Makes it kind of hard to debug that way.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com
Justin French wrote:
Hi,
What's the quickest way to add a space every four characters?
Eg 123456789 becomes 1234 5678 9
?php
$a = '123456789';
echo implode(' ', str_split($a, 4));
?
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 10 Nov 2004 10:49:29 -0500, Al [EMAIL PROTECTED] wrote:
ini_set(error_log, /AutoSch/error.log);
Looks like this might be a path relative to your domain or your vhost
definition? I'd go with a full system path if that's the case.
--
Greg Donald
Zend Certified Engineer
http
On Wed, 10 Nov 2004 23:14:43 +, Jason Wong [EMAIL PROTECTED] wrote:
Or you can wait for Manuel Lemos' reply :)
Good one. :)
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
like using the @ error
suppression. I usually have a single common file like config.php or
something that I do session_start() in, so I've never actually ran
across this issue.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http
understand parts but googling for the proper use of functions in php
hasn't gotten me anywhere...
Looks like you understand already. Did you have some broken code you
wanted help with?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing
/; done
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. :) /
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
but you didn't say what db
you're using. Looks like MySQL output but I could be wrong.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 10 Nov 2004 20:34:46 + (GMT), abhilash kumar
[EMAIL PROTECTED] wrote:
The error log file is showing Segmentation fault.
Did you happen to try display_startup_errors = On in your php.ini..
I'm not sure but it might provide a more informative error message.
--
Greg Donald
Zend
that support this claim? Thanks.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.easysoft.com/tech/php/tut_001/main.phtml
http://shiflett.org/talks/phpworks2004/php-session-security
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
://www.devshed.com/c/a/PHP/Search-This/
http://www.htdig.org/
This setup allows me a great deal of graphical customization in the
results display while putting all the real work with search results
and search logic on htdig.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http
than looping through the results
with PHP scripting.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 8 Nov 2004 13:06:41 -0500, Aaron Todd [EMAIL PROTECTED] wrote:
Is there any way yo get the date and time using date() from a Internet time
server?
php -r system('ntpdate -q ntp.nasa.gov');
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP
to vger.kernel.org.. seems to keep
most people from yelling at me too much.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
from rpms, did you run ldconfig?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
parsing could be handled with preg_match_all().
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
what a cookie is, a file on the
user's computer, created by the web client.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the php.ini setting.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to PHP for that matter), so please don't get too technical in
replies. Thanks so much for help.
Where is you (broken) PHP code that you have written so far?
What is it not doing that you are expecting it to do?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http
that.
php.net/preg_match
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
'/pre';
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/ports/databases/mysql41-server
Using FreeBSD 4.7 stable if that help (don't want to use the port)
To each his own, but it seems the easiest way to me.
cd /usr/ports/databases/mysql41-server
make install clean
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com
On Fri, 5 Nov 2004 20:55:00 +0200, Phpu [EMAIL PROTECTED] wrote:
if(ereg(^[a-zA-Z0-9_]{2,30}$, $name)) {
if(ereg(^[a-zA-Z0-9_\ ]{2,30}$, $name)) {
Need to allow spaces in the regular expression.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP
On Fri, 5 Nov 2004 13:10:43 -0500, Frantzcy Paisible
[EMAIL PROTECTED] wrote:
I need to recreate this perl script in php :
I'm not sure if you realize it, but you can call the Perl script from
PHP using system().
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http
On Fri, 05 Nov 2004 13:03:31 -0800, Todd Cary [EMAIL PROTECTED] wrote:
I have seen instances where the surfer can open a new window to get
email addresses and these addresses appear in the first window.
Javascript.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http
On Fri, 5 Nov 2004 15:30:43 -0600, Jay Blanchard
[EMAIL PROTECTED] wrote:
Thousands of examples will be yours to behold.
14.8 million from where I sit.
I'm tired of all your inaccurate answers Jay. :)
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com
/
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 05 Nov 2004 13:17:29 -0800, Todd Cary [EMAIL PROTECTED] wrote:
Is there a place where I can view some examples of using JavaScript?
http://google.com/search?q=javascript
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List
are as efficient as you make them.
Also, PHP doesn't have threads. You can use some of the execution
functions to simulate them to some extent however:
http://www.php.net/manual/en/ref.exec.php
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General
. :) Did you need some help
with installing it perhaps?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 04 Nov 2004 08:22:18 -0800, Robin Getz
[EMAIL PROTECTED] wrote:
and now I don't loose 250 Meg of memory every time I download a 250Meg
file. If someone wants to add this to the readfile() php manual - great.
Anyone can post user comments in the manual. Give it a shot.
--
Greg
246 2 0 4 86
-/+ buffers/cache:154 94
Swap: 486 12473
The system has to support whatever memory command you use.
*nix: free
windoze: mem
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http
On Thu, 4 Nov 2004 08:59:50 -0800, bb9876 [EMAIL PROTECTED] wrote:
Is there any way to use PHP to determine the zip code someone is visiting
from, assuming they are all from the US?
http://www.usps.com/webtools/
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http
On Thu, 4 Nov 2004 13:02:19 -0700, Vail, Warren [EMAIL PROTECTED] wrote:
It is too bad this clause is not supported by some of the other
databases I have had to use
I think calling a limit a limit and an offset an offset is a good thing.
--
Greg Donald
Zend Certified Engineer
http
On Fri, 5 Nov 2004 06:20:11 +0800, Exile [EMAIL PROTECTED] wrote:
Is there any package like 'strict' or 'warnings' in PHP, like Perl ?
error_reporting(E_ALL | E_STRICT);
E_STRICT was added in PHP5.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP
, don't mind me, I'm as much of a hypocrite as the next person.
We all are at times.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
question perhaps?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
http://pear.php.net/manual/en/installation.manually.php
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yourself.
Some folks detest html emails, while others use plugins to make URLs
become links in text emails. You're really at the mercy of the
recipient email client. *shrug*
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http
?
Or to track down the slowdown?
Did you happen to try running the Apache benchmark tool 'ab' on it.
It provides quite a bit of info aside from the actual timed requests.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http
();
$_POST = isset( $_POST ) ? array_map( 'slashes', $_POST ) : array();
$_COOKIE = isset( $_COOKIE ) ? array_map( 'slashes', $_COOKIE ) : array();
}
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net
something like this:
SELECT
*
FROM
students
WHERE
join_date = '10/12/04'
AND
join_date = '12/12/04';
But I'm doubting your dates are stored in that format, and I bet
there's more than one table to consider as well. Again, where's the
PHP code you're asking a question about?
--
Greg
://www.php.net/manual/en/faq.build.php#faq.installation.needgnu
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
live without, code that makes
your life easier when reused from project to project.
Criticism comes easy when you have nothing to contribute otherwise.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net
Greg Donald wrote:
On Wed, 3 Nov 2004 15:41:54 +0800, Roger Thomas [EMAIL PROTECTED] wrote:
I would like to install PEAR Calendar module and did a
[EMAIL PROTECTED] apps]# pear install Calendar
but got these:
No release with state equal to: 'stable' found for 'Calendar'
Please advise.
Install
On Wed, 03 Nov 2004 16:28:13 -0500, Greg Beaver [EMAIL PROTECTED] wrote:
Install it manually.
http://pear.php.net/manual/en/installation.manually.php
This is terrible advice.
$ pear install --force Calendar.
And you think --force is better? Pffft.
When the PEAR developers make
Greg Donald wrote:
On Wed, 03 Nov 2004 16:28:13 -0500, Greg Beaver [EMAIL PROTECTED] wrote:
Install it manually.
http://pear.php.net/manual/en/installation.manually.php
This is terrible advice.
$ pear install --force Calendar.
And you think --force is better? Pffft.
When the PEAR developers make
On Wed, 03 Nov 2004 17:35:04 -0500, Greg Beaver [EMAIL PROTECTED] wrote:
I am sorry I jumped on you Greg, you have given great advice very often
on this list. My country is going to Hell, and I took a bit of
frustration out on you :)
No problem. It happens. :)
--
Greg Donald
Zend
Gustavo A. Baratto wrote:
hello there,
is there anyway to know the name of the function that is being executed?
In the docs (http://www.php.net/manual/en/ref.funchand.php), we can
find out the arguments of the function, but not the name of the function
itself.
echo __FUNCTION__;
Greg
--
PHP
On Tue, 2 Nov 2004 11:12:49 -0500, Jerry Swanson [EMAIL PROTECTED] wrote:
I'm sending text email. How I can make new line.
\n seems to be not working.
Use \r\n instead of just \n.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing
instead of ||.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2 Nov 2004 13:48:30 -0500, Kelly Meeks [EMAIL PROTECTED] wrote:
I need to require username/password access in two distinct ways.
PHP Generic Access Control Lists
http://phpgacl.sourceforge.net/
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com
right away:
echo 'pre';
print_r($_POST);
echo '/pre';
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
60x60. Is there any way to do this?
getimagesize( $_FILES['userfile']['tmp_name'] ) contains the size info.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
so, the way you're doing it is a lot better than any other options, but
I would add in checks to the values before you save them in $_SESSION.
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 31 Oct 2004 12:58:04 +0100, Nick Wilson [EMAIL PROTECTED] wrote:
I think in_array() sounds like a great solution, wonder if it's faster
than comparing each ooe with == ? thanks!
Benchmark it both ways and find out. Then post back and tell us. :)
--
Greg Donald
Zend Certified
= mysql_query() || die('bad query: ' . mysql_error());
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this
penalty in light of any meager advantages offered by keeping the files
in the databases instead of in a directory.
/snip
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
only appear as one character when
viewed as html, but to str_pad() it's 6 characters.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
What's the standard line ending for Darwin? is it still the same as old
Mac, which I think was just \r? Or does it use \n like unix?
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
actual code, people will most likely help
you debug it.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 29 Oct 2004 11:52:46 +0100, Nunners [EMAIL PROTECTED] wrote:
Can someone suggest a way of going through the string to find the relevant
bits - is split the easiest way?
I would use preg_match().
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com
on the client when
possible I say.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 29 Oct 2004 16:28:39 +0200, -{ Rene Brehmer }-
[EMAIL PROTECTED] wrote:
I do realise that this error means I've forgotten a curly brace or
semi-colon somewhere, but seriously ...
I use vim. Shift-5 matches braces and parentheses easy enough.
--
Greg Donald
Zend Certified Engineer
. adodb.sf.net
My favorite feature is the md5 bzip'd PHP sessions.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 29 Oct 2004 10:15:57 -0500, Jay Blanchard
[EMAIL PROTECTED] wrote:
Make mine Communicty New Orleans Blend w/Chicory pleaseintravenously
please...
Bah.. Mountain Dew and a couple of Sudafed is where it's at. :)
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com
701 - 800 of 1436 matches
Mail list logo