refactoring. A framework that reflects this flexibility is a
help, one that doesn't is a hindrance.
------
michal migurski- contact info, blog, and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://
i Wiki. For these applications, the cost of a conflict is high
(which would indicate that a pessimistic lock might be better), but
there is a clean method provided to resolve them when they come up.
--
michal migurski- contact info, blog, an
Is there anyway of creating a config.php file on the fly using a form.
To obtain verbose output, include the keyword "how" at the beginning of
your query.
------
michal migurski- contact info, blog, and pgp key:
sf/ca
world.
--
michal migurski- contact info, blog, and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nless
you're looking for constants instead of strings. Sometimes a quick R of
the first few chapters in TFM beats a benchmark.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
our
arguments to the constructor, and that all lat/long units are expected in
radian, not degrees. Sorry that the comments aren't as extensive as they
ought to be.
-----
michal migurski- contact info and pgp key:
sf/ca
://c2.com/cgi/wiki?DiffAlgorithm
Also there is this:
http://pear.php.net/package/Text_Diff
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Maili
be a historical legacy of RCS, from a time when storage was not
quite so cheap.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
database schema
to understand how they implement the multi-user text editing, and how to
handle the related problems of locking and revision control.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.te
your home
directory with all the required features, and use that. See the manual
for relevant configuration details.
----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Maili
-line may or may not be
the same installation as the one used by Apache. Use the following to
see what your CLI installation does or does not have enabled:
php -r "phpinfo();"
--------
michal migurski- contact info and
yntax highlighting from being
fooled.
--------
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
f all-at-once, using fgets().
Check your max execution time, as William suggests.
Post a little example code or an error message.
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP Ge
ere a
> better function to use in this instance?
preg_match() should get you started.
/(\w+\.\w+)$/ ought to match just the primary domain.
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.co
> I've been asked to make a php script to automatically fill out and
> submit a form on a remote site. I know this is possible, but have no
> idea where to begin
SimpleTest can do this quite elegantly.
-----
m
d"), date("Y")));
echo '';
}
It's a good thing you're trying this today; if you had tried it a few
days ago, you wouldn't have had any idea that your method wasn't
working.
--
michal migursk
_function().
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ying to append something to it. Change that first ".=" to a "=", like
the line above, and see if that doesn't help.
------
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP Ge
ov 1977 10:00:00 CET'); // date in past
header('Last-Modified: '.date('r'));// right -now-
header('Pragma: no-cache'); // HTTP/1.0
-
michal mi
people occasionally imply
that it's not the best/fastest/most stable method to use, so I try not to.
-mike.
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ve array containing the seventh result
row from your query. If you check out the results of print_r($things),
you'd see the array structure immediately.
---------
michal migurski- contact info and pgp key:
sf/cahttp://m
o. See:
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
of background knowledge
of HTTP. Luckily there's someone on this list who knows a great deal about
that. :)
---------
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General
ot;Allowoverride All" is one way to make sure they're permitted. :D
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ner, but I'm willing to learn. I realize that this is a
fairly complex problem compounded by the fact that PHP is generally a
library used within an apache child process.
Any thoughts?
-----
michal migurski- contact info an
ur database.
---------
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
determine what's there, and recompile/reinstall if you're lacking PG
support. Or, try to find the command line instance that corresponds to the
apache module you're using.
-----
michal migurski- contact info and pgp key:
quot; - " . $v . "";
>}
"foreach" needs an "as", probably that was meant to say:
foreach(array_slice($z['distance'], $start, 10) as $k => $v) { ...
-
michal migurski- c
ting(E_ALL))
Does the apache user have read/write privileges on the files in that
directory? CVS makes heavy usage of stderr, so that may be a reason you
are not seeing output.
-----
michal migurski- contact info and pgp key:
sf/ca
et:
string uniqid ( [string prefix [, bool more_entropy]])
You would run the risk of messing up the form with (sound of pipe organ)
*excessive entropy*.
-
michal migurski- contact info and pgp key:
sf/cahttp://m
) and then routing around them with
an insecure web login.
-mike.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
what are you trying to do exactly? Is ssh
actually necessary, or are you really just trying to authenticate users by
their unix accounts?
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/c
$formatted = sprintf('ORD%05d', $id);
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
et/manual/en/function.utf8-encode.php
http://php.net/manual/en/function.utf8-decode.php
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing L
rt Apache, or just
point your browser to http://localhost:8080
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uth']['username'] or $_SESSION['prefs']['boxers_or_briefs'].
-mike.
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> > i tried to do a "\ > any idea as to what's going on, and can someone
> > point me to a list of the actual php reserved
> > chars/words couldn't seem to track them down
> > on the php site/google...
>
> < is not reserved. The problem is your HTML.
>
> Your result ends up like this:
Eithe
#x27;). Or, use PHP's built-in session support. The cookie stores a
unique ID, whie the actual values are stored on the server.
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
o have set-up code such as session_start() be
one of the very first things you call in a script.
Wrong:
Right:
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.
.types.string.php#language.types.string.parsing.complex
---------
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he.php
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n: use provided sprintf, but parse out any
unwanted placeholders first, using preg_replace.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
u'll need to look
elsewhere.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
vulge its content (apache config or .htaccess is a
personal favorite of mine), and (important!) back up your DB regularly so
that you can recover from attacks cleanly.
-mike.
---------
michal migurski- contact info and pgp key:
sf/c
former case, you will set
the size of your output image to W width and H height. In the latter case,
I believe that the 'x H' is ignored, and you implicitly set the size of
your output image to W width and W height. Big difference for any aspect
ratio besides 1:1.
---
pe' supplied to
db_array_to_query()", E_USER_WARNING);
return false;
}
return $query;
}
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y would that have been posted
as advice?
---------
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
);
flock($fh, LOCK_SH);
// read from file here
flock($fh, LOCK_UN);
fclose($fh);
See example 1 in the manual page for flock for more info.
---------
michal migurski- contact info and pgp key:
sf/ca
/beta
You may need to add a RewriteCond:
http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Ma
ntent-type header. See header().
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt;
I'm not even sure that's remotely valid PHP or HTML.
What's it supposed to do?
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
al 'B' --
> arrgh!
You could just look for lowercase words, instead of "not-uppercase" words,
like so:
/\b[a-z]\w+\b/
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/c
er encountered a project where
this level of care was called-for while SSL was not.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he
information you're transmitting, and you may decide to go with SSL.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is complete. Combine that with a bit of javascript waiting
for the image to load, and you should have basic loading-bar behavior.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
, but once it become a hex string (after dechex()), all that info is
gone. I think the way to handle this situation is to use pack & unpack.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com
opriate include_path setting as
well.
---------
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
p_children ()
#13 0x0806042c in standalone_main ()
#14 0x08060c8f in main ()
#15 0x400b01c4 in __libc_start_main () from /lib/libc.so.6
-----
michal migurski- contact info and pgp key:
sf/ca
> What does the { } around the array mean?
http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.
heck_time} <= end_time;
(Adjust as appropriate for date formatting, SQL injection, etc.)
If you're using MySQL, this page is informative:
http://dev.mysql.com/doc/mysql/en/Date_and_time_types.html
-mike.
-----
michal migurski-
> about this? Thanks!
Looks like UTF-8. Make sure your output character encoding matches the
database encoding, and use htmlentities() and the mb_* (multibyte string)
functions where necessary.
Debugging this stuff is a pain. :P
-------
strtotime($end);
$timestampCheck = strtotime($check);
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
many ways of achieving the same end.
---------
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ng parsed, and that the Content-Type
header is correct.
You'd be better off not messing with AddType at all to parse .css files
- it's more important that the content-type be "text/css."
---------
michal mi
, follows the syntax rules properly.
Most of the syntax is described here:
http://www.w3schools.com/xml/xml_syntax.asp
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
leaving open the possiblity of someone using up all
> your memory and bringing the machine to a standstill till, then when
> swap space runs out.. watch out! :)
This makes sense, thanks.
-----
michal migurski- contact
requests to clog the pipes with
them. Would the proper way to handle this risk be to disallow POST at the
webserver level, or does turning always_populate_raw_post_data off cause
the connection to be automatically dropped after Connection: close?
-mike.
-------
http://php.net/manual/en/ref.funchand.php
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ays.
Anyone have any clue why this is the case? Is there a performance reason
that raw post data must be explicitly enabled, or is it more of a
protective measure for overly permissive beginner scripts?
Inquiring minds demand answers!
--------
}
...Which isn't much of an improvement over a plain old echo/print. And if
that's good enough for Brian Kernighan, I'd hope it's good enough for you.
:D
-----
michal migurski- contact info and pgp key:
sf
, then I stand corrected,
and John Nichel's initial response is all that's needed.
A huge table count is often evidence of a need for some refactoring.
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Run into this before, PHP seams to do quite well when you set the locale
> right ( de_DE ) which will place AÄBCD instead of ABCDÄÖÜ.
>
> Hope this helps :-)
Thanks, I hadn't thought of that.
-----
michal
ar ways, you should
probably merge them all into a single table with an extra column that
corresponds to whatever differentiating characteristic used to distinguish
your original tables.
I.e., go with John Holmes' suggestion before you're really up the creek.
---
XML
output for flash, which is always expected to be in UTF-8), but none of
them seems to be made for string comparison.
thanks,
-mike.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/co
ue about windows.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Will this work on both a Windows and Unix server?
No, it's most assuredly a unix-only thing.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing Li
-q -i $SQL_FILE;
else
rcs -q -l $RCS_FILE;
fi;
echo "mysql_backup.sh" | ci -q $SQL_FILE;
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
essions".
The ereg functions use a slightly different syntax.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Uh-oh, does that mean an Atheist has to use ASP??? ;)
> [/snip]
>
> And if so, what must a Buddhist use?
Lisp, of course.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/
yesterday, and it seems relevant:
http://www.oreillynet.com/pub/wlg/4715
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s to dump the database, then back up the
> dump. Depending on how well the dump utility works, you might be able
> to do away with the downtime.
mysql has mysqldump, and postgresql has pg_dump. Both of these are pretty
much all you'd need, and neither requires any site downtime.
x27;s just a big "read" operation.
---------
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
args &");
Wish php had fork() in a non-experimental context. :\
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
executable, and
you consider exec to be a "standard" function, there's always this:
$response = shell_exec("curl http://www.example.com";);
I always use last method that in preference to the curl functions.
I find them incredibly overengineered. :)
--
y_two
}
return $this->property_two;
}
}
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
echo "A banana is {$fruits['banana']}.";
// Works but PHP looks for a constant named banana first
// as described below.
echo "A banana is {$fruits[banana]}.";
// Won't work, use braces. This results in a parse error.
e
constructions like that instead of templating classes like smarty or
printf constructiions, and I've been very pleased with em.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
)
[1] => Array
(
[0] =>
Breadth Requirement
[1] =>
More Matched Content!
)
)
-----
michal mig
that are in RTF format, so I guess
an RTF parser would work too.
Any leads?
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
put where it fails would be good,
perhaps in a reduced case, like:
foreach($array_of_inputs_to_check as $input)
printf("input: %s, matches?: %d\n", $input, check($input);
-----
michal migurski- con
uot;&client_id=".$_GET[client_id]."&rep_name=".$_GET[rep_name]."&client_name=".$_GET[client_name]."");
exit;
}
}
Also, your regexp is a little permissive; you can anchor it like so:
$regexp = "/^447[0-9]{9}$/&q
path? Check the
output of `which lynx` or phpinfo() to figure out what your path is, and
whether it includes lynx. Alternatively, use a full path to lynx to avoid
confusion.
-----
michal migurski- contact info and pgp key:
sf/ca
oting with AMFPHP is speedy and easy, but you may be a little better
off using XML - it's definitely chatty, but the API is stable on both
sides, and there's no reverse-engineering voodoo associated with it.
-----
mich
r two here or there? Jus let the user know
they're in good hands and get to it when you get to it.
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e 3rd party code then? Or send your Location
header before you call it? Curl won't help you here, for the same reasons
that fsockopen won't work.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczn
preg_replace('/\W+/', '', $in);
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rl_str."\r\n");
That won't get sent to the browser, it will get sent to 192.168.0.2, which
is (I guess) some machine behind your router. You can't initiate a TCP
connection -- what fsockopen does -- with the client's machine.
I'll ask even though you said not to - Why doe
the database also means that
you don't have to worry about various filesystem considerations, like
keeping a world-writeable directory or potential undesired access from
others users in a shared hosting environment.
-----
michal m
caching, I think just setting up the appropriate
cache-control headers should make it indistinguishable from a regular,
static CSS file.
-----
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/conta
1 - 100 of 137 matches
Mail list logo